apopt.com

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

FileSizeRowsWhat it is
expected/printed-output.txt486 BEverything the tutorial prints, cell by cell
raw/steptest_counts.csv338 B8 rowspulse 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

labeltime_st_mid_srate_cpmpower_Wcount15hr_bpm
stage 1300309.51551.52496
stage 2500509.52068.727108
stage 3700709.52585.831124
recovery 1 min760767.500.02288
recovery 2 min820827.500.02184
recovery 3 min880887.500.01976
recovery 4 min940947.500.01976
recovery 5 min10001007.500.02080

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/