# U.S. High School Students: Mental Health, Social Media, Sleep & Grades

**Release:** student-health-yrbs2023-r1 · **Schema:** 1.0.0 · **Rows:** 20,103 (one per questionnaire) · **Columns:** 35 · **Price:** free

One research-ready CSV built from the **2023 CDC national Youth Risk Behavior Survey (YRBS)**: every one of the
20,103 usable questionnaires from a nationally representative sample of U.S. students in grades 9–12,
with four headline measures — **social media frequency, poor mental health frequency, school-night sleep and
self-reported grades** — plus the survey weight, stratum and primary sampling unit you need for correct population
estimates, and a focused set of context variables (demographics, physical activity, dietary behavior, bullying,
school connectedness and housing instability).

> Source: CDC, 2023 national Youth Risk Behavior Survey (YRBS). The original YRBS data and documentation are available free of charge from CDC at https://www.cdc.gov/yrbs/data/national-yrbs-datasets-documentation.html.
>
> Use of CDC data, and any link to CDC, ATSDR or HHS websites, does not imply endorsement by CDC, ATSDR, HHS or the United States Government of Persistfolio, this dataset, its documentation, notebook or conclusions, or any product or service.

## What the headline measures are — and are not

| Measure | CDC question | Valid answers |
|---|---|---:|
| Social media **frequency** (`q80_…`) | Q80 “How often do you use social media?” — frequency, **not** time spent | 15,203 |
| Poor mental health **frequency** (`q84_…`) | Q84 “During the past 30 days, how often was your mental health not good?” — self-report, **not** a diagnosis | 15,705 |
| School-night sleep (`q85_…`) | Q85 “On an average school night, how many hours of sleep do you get?” | 17,441 |
| Self-reported grades (`q87_…`) | Q87 “During the past 12 months, how would you describe your grades in school?” — **self-reported**, not school records | 15,694 with an A–F grade |

Q87 keeps all its answers distinct: codes 1–5 are mostly A's to mostly F's, 6 is *None of these grades*, 7 is *Not
sure*, and an empty cell means no answer. AI use, time spent on social media and clinical diagnoses are **not** in
this edition.

## Use the survey weights

Population estimates must use `survey_weight`, with `stratum` and `psu` for standard errors. For example, CDC
reports that 77.0% (95% CI 73.5%–80.1%) of students used social media at least several times a day. From this file
the survey-weighted estimate is **76.9704%** (95% CI 73.5068%–80.1037%),
which rounds to CDC's figures; the simple unweighted share, 78.09%, does not. See
`docs/METHODOLOGY.md` for the variance method and `notebooks/student_health_research.ipynb` for working code.

## How many students answered each combination

| Measures answered | Respondents |
|---|---:|
| Social media + mental health | 11,602 |
| Social media + grades (A–F) | 13,793 |
| Sleep + grades (A–F) | 13,937 |
| Social media + sleep + grades (A–F) | 12,516 |
| All four, with an A–F grade | 10,206 |

All 15 combinations are in `docs/QUESTION_OVERLAP.csv`.

## Files

| Path | Content |
|---|---|
| `data/student_health_yrbs2023.csv` | 20,103 rows × 35 columns, UTF-8, comma-separated; empty cell = missing |
| `docs/DATA_DICTIONARY.csv` | Every column: original CDC variable and file position, CDC question wording, codes and labels, missing values |
| `docs/QUESTION_OVERLAP.csv` | Respondents answering every combination of the four headline measures |
| `docs/METHODOLOGY.md` | Source, parsing, column selection, survey design and variance method |
| `docs/QUALITY_REPORT.md` | Acceptance tests and 87 QA checks run on the finished CSV |
| `docs/PROVENANCE.md` | Source files, sizes and SHA-256 hashes; build commands |
| `notebooks/student_health_research.ipynb` | Executed research notebook: benchmark, sleep × social media × grades, mental health example |
| `license/LICENSE.md`, `license/SOURCE_NOTICE.md` | Licence of Persistfolio's work; CDC attribution, free-source statement and non-endorsement notice |
| `metadata/release_metadata.json`, `metadata/qa_results.json`, `metadata/build_facts.json` | Machine-readable release facts |
| `SHA256SUMS.txt` | Checksums of every file in the package |

## Quick start

```python
import pandas as pd
df = pd.read_csv("data/student_health_yrbs2023.csv", dtype=str, keep_default_na=False)  # keep codes as text; "" = missing
grades_af = df[df.q87_self_reported_grades.isin(list("12345"))]
```

## Limits

- Self-reported, cross-sectional data from students in school on the survey day. Associations in this file do not
  show cause and effect.
- Overall response rate 35.4% (school 49.8% × student 71.0%, CDC users guide). Weights adjust for nonresponse and
  oversampling but cannot remove every bias.
- This is a selection of 30 CDC variables, not the full questionnaire; the full file is free from CDC.
- One-time dated release. It will not be changed in place, and no update is scheduled or promised.

## Licence and citation

- **Persistfolio's original work** — documentation, data dictionary descriptions, column names and selection,
  question-overlap table, notebook and build code — is licensed **CC BY 4.0** (`license/LICENSE.md`).
- **CDC's data and wording** (response codes and values, value labels, question text, weights and design variables)
  are a U.S. Government work in the public domain in the United States; Persistfolio claims no rights in them. CDC's
  reuse conditions — attribution, non-endorsement, no change to substantive content, free availability — are met in
  `license/SOURCE_NOTICE.md`.
- **Suggested citation:** Persistfolio (2026). U.S. High School Students: Mental Health, Social Media, Sleep & Grades, release student-health-yrbs2023-r1. CC BY 4.0. Source data: Centers for Disease Control and Prevention, 2023 national Youth Risk Behavior Survey (public domain in the United States).
- Dataset page: https://www.persistfolio.com/datasets/student-mental-health-social-media-sleep-grades · Contact: info@persistfolio.com
