Professional Documents
Culture Documents
PSY417 Week12
PSY417 Week12
0373
Week 1
Introduction to the course and review of univariate statistics Chapters 1 & 2
(06/03/2023)
Week 2
(13/03/2023) Non-parametric models Chapters 6 & 7
Week 4
Moderation and mediation Chapter 11
(27/03/2023)
Week 5
Advanced ANOVA: Repeated measures and mixed designs Chapters 15 & 16
(03/04/2023)
Week 6
ANCOVA and MANOVA Chapters 13 & 17
(17/04/2023)
Week 9
Factor analysis and principal component analysis Chapter 18
(08/05/2023)
Week 10
Structural Equation Modelling
(15/05/2023)
Week 11
Synthesizing statistics// Reading and writing scientific reports
(22/05/2023)
• Application of ML in psychology
3
What is machine learning (ML)?
“A set of methods that can automatically detect patterns in data, and then use
the patterns to predict future data.”
(Rosenbusch et al., 2021).
• The key distinction is that ML can use regression to predict future data.
1. Supervised machine
learning
2. Unsupervised
machine learning
Low
extraversion 0
10
Supervised machine learning also has
predictor and outcome variables
The intercept is the value
of extraversion when Recall from Lecture 3:
minutes = 0
Extraversion
Extraversion
The model is evaluated to
retain or reject the null
hypothesis if is it
significantly different from
the mean line (mean of Y)
Extraversion
individual value of Y in the
testing set
15
Now just looking at ML regression...
16
In supervised machine learning for
regression problems, it’s not all about fitting
a line
• In supervised ML, the regression model
may not be linear (although it can be).
Extraversion
• To capture more complex relationships
between X and Y, flexible non-linear
models can be implemented
Extraversion
It can be a problem for both linear and
non-linear regression models.
Extraversion
These include:
• Ridge regression
• Lasso regression
• Elastic net regression
20
In supervised machine learning for
classification problems, it’s not all about
fitting a logit function
High 1
• In supervised ML, the classification
model may not be logistic (although it extraversion
can be).
Low
• Some common nonlinear classification extraversion 0
models used in ML are support vector
machines (SVMs)*. Minutes spent playing
online games each week 21
*May also find in regression
Support vector machines are used for both
simple and complex classification
22
Source: analyticsvidhya.com
Summary of machine learning
• The focus of research aims in studies using ML is prediction.
• The ‘significant result’ is how well the model fits the data compared
to other models (such as regular, linear regression).
23
Today’s Lecture Outline
• Application of ML in psychology
24
25
Introduction
• Problematic smartphone use (PSU) is overuse of a smartphone with functional
impairment.
• PSU severity is most widely studied in relation to depression, anxiety, stress and
low self-esteem.
• Recent research has shown that fear of missing out (FOMO) is associated with PSU.
• A fear of missing out on rewarding and pleasurable experiences, and a cognitive bias
related to one’s social resources.
Hypotheses:
H1: Depression and anxiety severity should be positively associated with PSU severity.
H2: FOMO and rumination should be positively associated with PSU severity.
H3: Machine learning procedures will produce an algorithm which can predict PSU severity.
27
Methods
Participants
1238 students recruited to complete online survey. 141 were excluded for careless
responding. Among 1097 remaining, mean age = 19.4 (+/- 1.2) years. 18.1% were
male.
Instruments
1. Demographics (age, sex)
2. Smartphone addition short-scale version (SAS-SV): PSU severity
3. Depression Anxiety Stress Scale-21 (DASS-21)
4. Fear of missing out (FOMO) scale
5. Ruminative Response Scale (RRS)
28
Methods
Analysis
1. Data screened for missing/careless responses
2. Correlations between variables computed
3. Data split into training (70%) and testing sets
• k-folds cross validation (k = 10) used
4. Data entered into 6 different ML models
• Predictors = age, sex, depression + anxiety, FOMO, rumination
• Outcome = PSU severity
5. The 6 ML models were
• Ridge regression
• Lasso regression
• Elastic net regression
• Random forest
• Support vector machine
• Extreme gradient boosting
29
6. ML models compared using RMSE, MAE, R2, and statistical tests
Results
ANOVAs showed sex
differences in terms of
• PSU severity (women higher
scores)
• Depression, anxiety (women
lower scores)
• Rumination (women lower
scores)
30
Shrinkage regression techniques
FOMO was performed the best
Results largest predictor
of PSU severity
31
Discussion
• Shrinkage regression models performed the best in explaining PSU severity.
• H2 was partly supported: FOMO but not rumination conferred a relatively large
contribution in modelling PSU severity.