# Tutorial Q-14: Heart rate from beat intervals

Turn a strap's beat-to-beat intervals into heart rate, find out why the mean of the beat rates is the wrong session average, and compare with the strap's own smoothed display.

Address: https://apopt.com/data/tutorials/q14-hr-from-rr/  
License: CC BY 4.0  
Prepared: 2026-12-03

## Description

Files for the tutorial *Heart rate from beat intervals* (https://apopt.com/course/tutorials/q14-hr-from-rr/). `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/q14-hr-from-rr/expected/printed-output.txt) | 461 B |  | Everything the tutorial prints, cell by cell |
| [raw/2026-06-27_1810_day.csv.gz](https://apopt.com/data/tutorials/q14-hr-from-rr/raw/2026-06-27_1810_day.csv.gz) | 524.4 KB | 65,189 rows | eight minutes of the instructor's chest-strap ECG with the strap's RR intervals and displayed heart rate (columns time, ecg, hr, rr, marker; gzip) |

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 H10: [https://apopt.com/course/assess/h10/](https://apopt.com/course/assess/h10/)
- Homework H11: [https://apopt.com/course/assess/h11/](https://apopt.com/course/assess/h11/)

## How to cite

Tutorial Q-14: Heart rate from beat intervals. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q14-hr-from-rr/
