# Tutorial Q-15: One night's RMSSD

Apply an artifact rule to a night of chest-strap beat intervals, compute RMSSD in five-minute windows, and report the night as the median of its valid windows.

Address: https://apopt.com/data/tutorials/q15-rmssd/  
License: CC BY 4.0  
Prepared: 2026-12-03

## Description

Files for the tutorial *One night's RMSSD* (https://apopt.com/course/tutorials/q15-rmssd/). `raw/` holds the inputs as the device or app wrote them; `clean/` holds the cleaned copies the tutorial writes; `expected/` holds what a correct run prints and saves, so you can check your own run.

## Files

| file | size | rows | description |
|---|---|---|---|
| [expected/printed-output.txt](https://apopt.com/data/tutorials/q15-rmssd/expected/printed-output.txt) | 420 B |  | Everything the tutorial prints, cell by cell |
| [raw/2026-06-28_2343_sleep_rr.csv](https://apopt.com/data/tutorials/q15-rmssd/raw/2026-06-28_2343_sleep_rr.csv) | 276.1 KB | 17,082 rows | one night of the instructor's sleep, one row per beat (t_s seconds from the start, rr_ms the strap's beat interval, hr_bpm the strap's heart rate where reported) |

Large files are stated with their size. A `preview.md` in this folder shows the first rows of each table.

## Provenance

- Source: Data-Driven Athletics tutorials (IRSRI, 2027)
- Removed: nothing; inputs are synthetic, published course data, or the instructor's own
- Permission basis: Published with the course under CC BY 4.0
- Prepared with: dda/tutorials/build.py

## Used in

- Book: [Chapter 5: Heart Rate, ECG and Heart Rate Variability](https://apopt.com/book/ch05-heart/)
- Course: [Week 5 lesson](https://apopt.com/course/week/5/)
- Homework H11: [https://apopt.com/course/assess/h11/](https://apopt.com/course/assess/h11/)

## How to cite

Tutorial Q-15: One night's RMSSD. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q15-rmssd/

## Load it

```python
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/q15-rmssd/raw/2026-06-28_2343_sleep_rr.csv")
```
