How long does it take to form a habit?

Our latest paper tackles this question by applying machine learning to 52 million observations of people’s gym attendance and hand-sanitizing decisions.