Data / tutorials / cs07-critical-speed
Tutorial CS-7: Critical speed from a watch archive
Tutorial
Search 19 training runs for best efforts of 2 to 15 minutes, fit the speed–duration line, test it by holding out efforts and whole runs, and turn what it can and cannot say into a threshold pace.
Files for the tutorial Critical speed from a watch archive (https://apopt.com/course/tutorials/cs07-critical-speed/). 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 |
|---|---|---|---|
| clean/best_efforts.csv | 806 B | 8 rows | Cleaned copy written by the tutorial |
| expected/printed-output.txt | 4.5 KB | Everything the tutorial prints, cell by cell | |
| raw/ | 4.5 MB | 21 files |
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/activities.csv
| activity_id | date | start_local | sport | device | distance_km | moving_time_min | elapsed_time_min | pace_min_per_km | avg_hr_bpm | max_hr_bpm | avg_cadence_spm | elevation_gain_m | elevation_loss_m | avg_power_w | laps | records | records_file | load_au |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2026-04-10_1505_running | 2026-04-10 | 2026-04-10T15:05 | running | COROS PACE Pro | 11.567 | 59.95 | 85.16 | 5.18 | 146 | 182 | 168.0 | 60 | 59 | 246 | 15 | 3596 | records/2026-04-10_1505_running.csv | 38.6 |
| 2026-04-11_0809_running | 2026-04-11 | 2026-04-11T08:09 | running | COROS PACE Pro | 14.326 | 69.15 | 80.22 | 4.83 | 124 | 156 | 174.0 | 43 | 40 | 261 | 10 | 4150 | records/2026-04-11_0809_running.csv | 32.1 |
| 2026-05-04_1028_running | 2026-05-04 | 2026-05-04T10:28 | running | COROS PACE Pro | 8.606 | 40.63 | 40.63 | 4.72 | 154 | 172 | 174.0 | 125 | 127 | 271 | 6 | 2439 | records/2026-05-04_1028_running.csv | 29.1 |
| 2026-05-04_1509_running | 2026-05-04 | 2026-05-04T15:09 | running | COROS PACE Pro | 8.674 | 47.74 | 70.52 | 5.5 | 138 | 180 | 170.0 | 103 | 106 | 233 | 6 | 2864 | records/2026-05-04_1509_running.csv | 27.4 |
| 2026-05-05_0827_running | 2026-05-05 | 2026-05-05T08:27 | running | COROS PACE Pro | 8.343 | 41.85 | 111.15 | 5.02 | 141 | 174 | 174.0 | 55 | 69 | 251 | 6 | 2510 | records/2026-05-05_0827_running.csv | 25.1 |
| 2026-05-06_0831_running | 2026-05-06 | 2026-05-06T08:31 | running | COROS PACE Pro | 8.498 | 46.95 | 49.47 | 5.52 | 149 | 174 | 172.0 | 65 | 69 | 234 | 6 | 2818 | records/2026-05-06_0831_running.csv | 31.5 |
| 2026-05-06_1507_running | 2026-05-06 | 2026-05-06T15:07 | running | COROS PACE Pro | 11.068 | 61.72 | 84.57 | 5.58 | 138 | 176 | 166.0 | 84 | 89 | 227 | 7 | 3705 | records/2026-05-06_1507_running.csv | 35.5 |
| 2026-05-08_0755_running | 2026-05-08 | 2026-05-08T07:55 | running | COROS PACE Pro | 12.72 | 66.17 | 66.75 | 5.2 | 134 | 180 | 174.0 | 79 | 80 | 243 | 8 | 3971 | records/2026-05-08_0755_running.csv | 35.9 |
First 8 of 19 rows.
Data dictionary
| Column | Unit | Meaning |
|---|---|---|
time | ISO 8601 UTC | sample time |
elapsed_s | including pauses | seconds since the run started |
distance_m | m | cumulative distance computed by the watch |
speed_mps | m/s | instantaneous speed from the watch |
heart_rate_bpm | beats/min | optical heart rate at the wrist |
cadence_spm | steps/min | steps a minute (both feet) |
altitude_m | m | barometric altitude |
Where it came from
- Source: The instructor's own watch runs (course case file athletes/jh/watch), published under his name
- Removed: GPS coordinates, place names and device identifiers (removed in the case file before publication)
- 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/cs07-critical-speed/raw/activities.csv")const text = await (await fetch("https://apopt.com/data/tutorials/cs07-critical-speed/raw/activities.csv")).text();Or download load.py / load.js.
How to cite
Tutorial CS-7: Critical speed from a watch archive. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/cs07-critical-speed/