What does Habit Curves and the 21-Day Myth conclude, in numbers, about “Where Twenty-One Days Came From: Maltz's Minimum and Lally's Sixty-Six”?
Answer: Chapter 1 traces the 21 days to Maltz's clinical impression of how plastic-surgery patients adjusted their mental image, which he stated as a minimum; the 2010 tracking study of Lally and colleagues found a median of 66 days, with individuals ranging from 18 to 254. In a lognormal rebuilt from its summary, only 0.027 of people arrive within 21 days, and only 0.228 even at the largest spread a later review allows.
Scope of the numbers: Its population parameters, forgetting rates and cue indices are illustrative; all calculations are generated by its programs; it is not medical or psychological advice, nor personalised business advice. Marked boxes separate published evidence, runnable Python calculations (19 programs), classical sources and the author's hypotheses.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 0.027, 0.228, 18, 21, 66
| source | sigma | P(T95<=21) | P(T95<=21) |
| median 66 | median 59 | ||
| range 18-254, n=39 | 0.593 | 0.027 | 0.041 |
| drinking IQR 39-75 | 0.485 | 0.009 | 0.017 |
| exercise IQR 44-118 | 0.731 | 0.059 | 0.079 |
| eating IQR 35-106 | 0.821 | 0.082 | 0.104 |
| review 106 / 66 | 0.973 | 0.120 | 0.144 |
| review 154 / 59 | 1.385 | 0.204 | 0.228 |
| largest 21-day share in the scan: 0.228 | |||
| even then, odds against 21 days: 3.4 to 1 |
Show the full program
# Chapter 1. p12: Sensitivity scan. How large could the 21-day share be?
# The log-sd sigma of T95 is not published, so we infer it four ways:
# (a) range 18 to 254 of 39 people (p11); (b) the quartiles of the eating,
# drinking and exercise subgroups in Lally et al. (2010): 35-106, 39-75,
# 44-118 days; (c) the review of Singh et al. (2024), whose medians run
# 59 to 66 days and means 106 to 154 days, read as a lognormal with
# mean / median = exp(sigma^2 / 2). Medians 59 and 66 are both scanned.
# Pairing (c) across studies is the author's assumption (illustrative).
import math
from statistics import NormalDist
Z = NormalDist()
zq = Z.inv_cdf(0.75)
zx = Z.inv_cdf((39 - 0.5) / 39)
cases = [
("range 18-254, n=39", math.log(254 / 18) / (2 * zx)),
("drinking IQR 39-75", math.log(75 / 39) / (2 * zq)),
("exercise IQR 44-118", math.log(118 / 44) / (2 * zq)),
("eating IQR 35-106", math.log(106 / 35) / (2 * zq)),
("review 106 / 66", math.sqrt(2 * math.log(106 / 66))),
("review 154 / 59", math.sqrt(2 * math.log(154 / 59))),
]
print(" source sigma P(T95<=21) P(T95<=21)")
print(" median 66 median 59")
worst = 0.0
for name, s in cases:
p66 = Z.cdf(math.log(21 / 66) / s)
p59 = Z.cdf(math.log(21 / 59) / s)
worst = max(worst, p59)
print(" %-21s %6.3f %9.3f %15.3f" % (name, s, p66, p59))
print("")
print("largest 21-day share in the scan: %.3f" % worst)
print("even then, odds against 21 days: %.1f to 1"
% ((1 - worst) / worst))Single source and citation
Fan, Y. (2026). Asymptotic Habit-Formation Curves, Debunking the 21-Day Myth and a Cue-Based Automaticity Index (Version 1.0.0), Chapter 1: Where Twenty-One Days Came From: Maltz's Minimum and Lally's Sixty-Six. 5D Library. DOI pending
DOI pending · monograph page goes live after publication · 5DL-B-197 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026197,
author = {Fan, Yafu},
title = {Asymptotic Habit-Formation Curves, Debunking the 21-Day Myth and a Cue-Based Automaticity Index},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
note = {DOI pending}
}Other chapter answers in this book
- Chapter 2 · The Asymptotic Curve: Plateau, Gap, Rate and T95 in Closed Form
- Chapter 3 · A Standard-Library Fitter: Grid Search, Gauss-Newton, Screening Bias and Extrapolation Error
- Chapter 4 · The Missed Day: Absence Shocks, the Dose of Compliance and the Cost of Streak Resets
- Chapter 5 · A Cue-Based Automaticity Index: Cue Entropy, Time of Day and a Repetition Clock
- Chapter 6 · Scales, Noise and the Average Curve: SRHI, SRBAI and the Trap of Right Skew
- Chapter 7 · East and West in the Classics: "By Nature Near, by Practice Far" and Aristotle on Hexis
- Chapter 8 · Closing the Loop: a Flexible Sixty-Six-Day Cycle, the Habit Curve Fitter and a Pre-Registered Plan