arrow
Return

Best Practices in Supervised Machine Learning: A Tutorial for Psychologists

delete2023-08-03
delete19
delete
OA
AI
F
Florian Pargent *
R
Ramona Schoedel
C
Clemens Stachl
DOI:10.1177/25152459231162559delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

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
Advances in Methods and Practices in Psychological Science
IF:
13.4
Papers:
320
Citations:
3.7K

Organization

U
University of Munich
Scholars:
5.7W
Papers: 4.2W
Citations: 68
Cited Papers

Cited Papers

errShare
errSave
Interpretable machine learning: Fundamental principles and 10 grand challenges
err2022-01-01
err290
errOAAI
errRudin, Cynthia; Chen, Chaofan; Chen, Zhi; Huang, Haiyang; Semenova, Lesia; Zhong, Chudi
errShare
errSave
Investment-specific technology shocks and international business cycles: An empirical assessment
err2011-01-01
err0
PREAI
errFederico S. Mandelman; Pau Rabanal; Juan F. Rubio-Ramírez; Diego Vilán
errShare
errSave
Personality Computing With Naturalistic Music Listening Behavior: Comparing Audio and Lyrics Preferences
err2023-06-02
err2
errOAAI
errSust, Larissa; Stachl, Clemens; Kudchadker, Gayatri; Buehner, Markus; Schoedel, Ramona
errShare
errSave
Eculizumab in the treatment of refractory idiopathic thrombotic thrombocytopenic purpura
err2012-03-13
err0
errOAAI
errJohn Chapin; Babette Weksler; Cynthia Magro; Jeffrey Laurence
errShare
errSave
errShare
errSave
researcher View more