Supporting Materials and References

The technical components, terminology, and source material used in building and analyzing this mini-site.

Image showing tired software engineer at a computer

Getting Started

To better understand patterns in the dataset, consider these guided examples that explore sleep quality based on participant-provided data.

Example 1: Stress vs Sleep Quality How to compare stress levels across low/high sleep quality rows
  1. Locate the Quality of Sleep column and scan for rows with lower sleep quality scores.
  2. In those same rows, examine the corresponding values in the Stress Level column.
  3. Click Person ID 81 and Person ID 87 to compare stress and sleep duration together.

Reflect

Do higher stress values consistently appear in rows with lower sleep quality?

Using this cross-section of data, we can plot it on a scatter chart to show that individuals reporting higher stress levels tend to also report lower sleep quality scores, suggesting an inverse relationship between perceived stress and restorative sleep.

Example 2: Activity vs Sleep Quality How to compare minutes of activity to sleep quality

Example 2: Comparing Physical Activity and Sleep Outcomes

This example explores how daily movement compares across individuals with varying sleep quality scores.

  1. Identify rows with higher Quality of Sleep scores.
  2. Compare the values in the Physical Activity Level and Daily Steps columns.
  3. Select two individuals with similar Stress Levels but different activity levels.
  4. Click their Person IDs to compare their full profiles in the summary output box.

Reflect

Do higher activity minutes tend to align with higher sleep quality?

When they do not as in the 76 - 90 minute activity range visualized in a bar chart, what other indicators might influence the outcome?

Example 3: Disorders as Signals How to view sleep quality by incidence of sleep disorders

Example 3: Examining Sleep Disorders and Associated Signals

This example compares individuals reporting sleep disorders to those without reported conditions.

  1. Locate rows where the Sleep Disorder column indicates Insomnia or Sleep Apnea.
  2. Compare their Sleep Duration, Quality of Sleep, and Stress Level values.
  3. Identify at least one row where the disorder is listed as None.
  4. Click the Person IDs from both groups to generate profile summaries.

Reflect

Do individuals reporting a sleep disorder show consistent differences in sleep quality?

Visualizing this cross-section as a bar chart shows an obvious connection between insomnia and poor sleep quality.

Glossary

Hover to see definitions for key terms used in the dataset.

Sleep Duration
Average number of hours slept per day.
Quality of Sleep
Self-reported sleep quality score on a 1–10 scale (higher indicates better perceived sleep).
Stress Level
Self-reported stress score on a 1–10 scale (higher indicates greater perceived stress).
Physical Activity Level
Daily physical activity duration, recorded as minutes per day.
Daily Steps
Number of steps taken in a day.
BMI Category
Body Mass Index classification (e.g., Normal, Overweight, Obese) used as a broad indicator of weight status.
Blood Pressure
Systolic/diastolic blood pressure recorded in mmHg (for example, 120/80).
Sleep Disorder
Reported sleep condition category (None, Insomnia, or Sleep Apnea).

Data and Reference Material

Data, definitions, and references used to build this mini-site.

Dataset

  • Kaggle: Sleep Cycle & Productivity (Sleep Health and Lifestyle Dataset), uploaded by Adil Shamim. View dataset.

Analytical Methodology

  • Pearson correlation coefficient for linear association.
  • Charts and data snippets created by E. McLeod in Canva using the Kaggle dataset above.

Authoritative Definitions

  • Insomnia: National Heart, Lung, and Blood Institute (NHLBI), NIH.
  • Sleep Apnea: National Heart, Lung, and Blood Institute (NHLBI), NIH.
  • BMI categories: Centers for Disease Control and Prevention (CDC) — Adult BMI Categories.

Development Context

Built as a multi-page data interaction project integrating structured HTML, consistent layout design, and basic interactive comparison functionality.