Data / tutorials / q05-straight-line
Tutorial Q-5: Fit a straight line and read the slope's units
Tutorial
Fit heart rate against step-test workload with least squares, state the slope in beats a minute per watt and per step cycle, and see why the line's intercept is not the resting heart rate.
Files for the tutorial Fit a straight line and read the slope's units (https://apopt.com/course/tutorials/q05-straight-line/). 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 | What it is |
|---|---|---|---|
| expected/printed-output.txt | 486 B | Everything the tutorial prints, cell by cell | |
| raw/steptest_counts.csv | 338 B | 8 rows | pulse counts after three step-test stages and in recovery, with the lifting power of each stage (synthetic) |
Every file has its own fixed address: copy a link and load it directly. preview.md shows the first rows of each table as text; datapackage.json lists columns, sizes and checksums.
Preview of raw/steptest_counts.csv
| label | time_s | t_mid_s | rate_cpm | power_W | count15 | hr_bpm |
|---|---|---|---|---|---|---|
| stage 1 | 300 | 309.5 | 15 | 51.5 | 24 | 96 |
| stage 2 | 500 | 509.5 | 20 | 68.7 | 27 | 108 |
| stage 3 | 700 | 709.5 | 25 | 85.8 | 31 | 124 |
| recovery 1 min | 760 | 767.5 | 0 | 0.0 | 22 | 88 |
| recovery 2 min | 820 | 827.5 | 0 | 0.0 | 21 | 84 |
| recovery 3 min | 880 | 887.5 | 0 | 0.0 | 19 | 76 |
| recovery 4 min | 940 | 947.5 | 0 | 0.0 | 19 | 76 |
| recovery 5 min | 1000 | 1007.5 | 0 | 0.0 | 20 | 80 |
First 8 of 8 rows.
Where it came from
- Source: Data-Driven Athletics tutorials (IRSRI, 2027)
- Removed: nothing; inputs are synthetic, published course data, or the instructor's own
- Permission: Published with the course under CC BY 4.0
- Prepared with:
dda/tutorials/build.py
Load it
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/q05-straight-line/raw/steptest_counts.csv")const text = await (await fetch("https://apopt.com/data/tutorials/q05-straight-line/raw/steptest_counts.csv")).text();Or download load.py / load.js.
How to cite
Tutorial Q-5: Fit a straight line and read the slope's units. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q05-straight-line/