Return
Best Practices in Supervised Machine Learning: A Tutorial for Psychologists
DOI:10.1177/25152459231162559.png)
Abstract
En 中文
Supervised machine learning (ML) is becoming an influential analytical method in psychology and other social sciences. However, theoretical ML concepts and predictive-modeling techniques are not yet widely taught in psychology programs. This tutorial is intended to provide an intuitive but thorough primer and introduction to supervised ML for psychologists in four consecutive modules. After introducing the basic terminology and mindset of supervised ML, in Module 1, we cover how to use resampling methods to evaluate the performance of ML models (bias-variance trade-off, performance measures, k-fold cross-validation). In Module 2, we introduce the nonlinear random forest, a type of ML model that is particularly user-friendly and well suited to predicting psychological outcomes. Module 3 is about performing empirical benchmark experiments (comparing the performance of several ML models on multiple data sets). Finally, in Module 4, we discuss the interpretation of ML models, including permutation variable importance measures, effect plots (partial dependence plots, individual conditional-expectation profiles), and the concept of model fairness. Throughout the tutorial, intuitive descriptions of theoretical concepts are provided, with as few mathematical formulas as possible, and followed by code examples using the mlr3 and companion packages in R. Key practical-analysis steps are demonstrated on the publicly available PhoneStudy data set (N = 624), which includes more than 1,800 variables from smartphone sensing to predict Big Five personality trait scores. The article contains a checklist to be used as a reminder of important elements when performing, reporting, or reviewing ML analyses in psychology. Additional examples and more advanced concepts are demonstrated in online materials (https://osf.io/9273g/).
Keywords:
tutorial
supervised machine learning
cross-validation
interpretable machine learning
random forest
open data
open materials
Journal
A
IF:
13.4
Papers:
320
Citations:
3.7K
Organization
Cited Papers
Interpretable machine learning: Fundamental principles and 10 grand challenges
STATISTICS SURVEYS
IF15.4
Personality Computing With Naturalistic Music Listening Behavior: Comparing Audio and Lyrics Preferences
COLLABRA-PSYCHOLOGY
IF3.2
Different Effects of Castration and Estrogen Administration on Glomerular Injury in Spontaneously Hyperglycemic Otsuka Long-Evans Tokushima Fatty (OLETF) Rats
Nephron
IF0

