Share of people in each group with no disorder, insomnia or sleep apnea
Averages for each group
Average hours of sleep at each stress level (1–10); hover for sleep quality and group size
Decision Tree predicting None / Insomnia / Sleep apnea (full dataset)
Original split: the notebook's random 80/20 split. 66 of its 75 test rows also appear in training, because 242 of 374 rows repeat another person's exact profile.
Leak-free: identical profiles kept together, so the model is always tested on profiles it has not seen. The score holds at about 89%.
Unique profiles: each distinct profile counted once. The common, repeated profiles are the easy ones.
Decision Tree feature importance
Data: Sleep Health and Lifestyle Dataset (Kaggle), a synthetic dataset. Patterns describe how the data was generated, not medical cause and effect. Built by scripts/build.py.