Published April 17, 2023
| Version v1
Journal article
Open
What can machine learning teach us about habit formation? Evidence from exercise and hygiene
Creators
- 1. HEC Paris
- 2. University of Chicago
- 3. University of Pennsylvania
- 4. California Institute of Technology
Description
We apply a machine learning technique to characterize habit formation in two large panel data sets with objective measures of 1) gym attendance (over 12 million observations) and 2) hospital handwashing (over 40 million observations). Our Predicting Context Sensitivity (PCS) approach identifies context variables that best predict behavior for each individual. This approach also creates a time series of overall predictability for each individual. These time series predictability values are used to trace a habit formation curve for each individual, operationalizing the time of habit formation as the asymptotic limit of when behavior becomes highly predictable. Contrary to the popular belief in a "magic number" of days to develop a habit, we find that it typically takes months to form the habit of going to the gym but weeks to develop the habit of handwashing in the hospital. Furthermore, we find that gymgoers who are more predictable are less responsive to an intervention designed to promote more gym attendance, consistent with past experiments showing that habit formation generates insensitivity to reward devaluation.
Data availability
The data analyzed in this paper were provided by 24 h Fitness and Proventix. We have their legal permission to share the deidentified data. The data and code to replicate the analyses are available at https://osf.io/m8gdp/.Files
What-can-machine-learning-teach-us-about-habit-formation-Evidence-from-exercise-and-hygiene.pdf
Files
(3.9 MB)
| Name | Size | Download all |
|---|---|---|
|
Supporting information md5:7e7d69dfa8918ed181322ff1ca2be3a3 |
3.1 MB | Preview Download |
|
Article md5:4a8e908270d87866039ff89dbd0e66d6 |
756.5 kB | Preview Download |
Additional details
Identifiers
- DOI
- 10.1073/pnas.2216115120
- Other
- oai:uchicago.tind.io:5774
Funding
- Alfred P. Sloan Foundation
- G2018 11259
- Robert Wood Johnson Foundation
- Unknown funder
- AKO Foundation
- Harvard University
- Pershing Square Fund for Research on the Foundations of Human Behavior
- National Institute on Aging
- Roybal Center grant
- National Institute on Aging
- Roybal Center grant
- California Institute of Technology
- The Linde Institute
- California Institute of Technology
- Chen Neuroscience Institute