# Tutorial CS-7: Critical speed from a watch archive

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.

Address: https://apopt.com/data/tutorials/cs07-critical-speed/  
License: CC BY 4.0  
Prepared: 2026-12-03

## Description

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 | description |
|---|---|---|---|
| [clean/best_efforts.csv](https://apopt.com/data/tutorials/cs07-critical-speed/clean/best_efforts.csv) | 806 B | 8 rows | Cleaned copy written by the tutorial |
| [expected/printed-output.txt](https://apopt.com/data/tutorials/cs07-critical-speed/expected/printed-output.txt) | 4.5 KB |  | Everything the tutorial prints, cell by cell |
| [raw/activities.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/activities.csv) | 3.4 KB | 19 rows | one row per run, 19 runs from 10 April to 18 May 2026 (date, distance_km, moving and elapsed time, pace in min/km, heart rate, cadence, elevation, power, laps, the records file, a load score) |
| [raw/laps.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/laps.csv) | 14.3 KB | 176 rows | the watch's lap summaries for the same runs (start time, timer_s, distance_m, heart rate, cadence, ascent, power) |
| [raw/records/2026-04-10_1505_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-04-10_1505_running.csv) | 243.3 KB | 3,596 rows | Input file the tutorial opens |
| [raw/records/2026-04-11_0809_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-04-11_0809_running.csv) | 282.5 KB | 4,150 rows | Input file the tutorial opens |
| [raw/records/2026-05-04_1028_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-05-04_1028_running.csv) | 186.9 KB | 2,439 rows | Input file the tutorial opens |
| [raw/records/2026-05-04_1509_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-05-04_1509_running.csv) | 217.6 KB | 2,864 rows | Input file the tutorial opens |
| [raw/records/2026-05-05_0827_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-05-05_0827_running.csv) | 192.4 KB | 2,510 rows | Input file the tutorial opens |
| [raw/records/2026-05-06_0831_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-05-06_0831_running.csv) | 214.5 KB | 2,818 rows | Input file the tutorial opens |
| [raw/records/2026-05-06_1507_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-05-06_1507_running.csv) | 282.0 KB | 3,705 rows | Input file the tutorial opens |
| [raw/records/2026-05-08_0755_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-05-08_0755_running.csv) | 305.7 KB | 3,971 rows | Input file the tutorial opens |
| [raw/records/2026-05-08_1517_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-05-08_1517_running.csv) | 173.1 KB | 2,268 rows | Input file the tutorial opens |
| [raw/records/2026-05-09_0830_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-05-09_0830_running.csv) | 347.7 KB | 4,509 rows | Input file the tutorial opens |
| [raw/records/2026-05-11_0945_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-05-11_0945_running.csv) | 176.9 KB | 2,317 rows | Input file the tutorial opens |
| [raw/records/2026-05-11_1507_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-05-11_1507_running.csv) | 282.5 KB | 3,746 rows | Input file the tutorial opens |
| [raw/records/2026-05-12_0616_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-05-12_0616_running.csv) | 373.7 KB | 4,852 rows | Input file the tutorial opens |
| [raw/records/2026-05-13_1005_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-05-13_1005_running.csv) | 194.9 KB | 2,536 rows | Input file the tutorial opens |
| [raw/records/2026-05-13_1506_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-05-13_1506_running.csv) | 312.7 KB | 4,072 rows | Input file the tutorial opens |
| [raw/records/2026-05-14_0726_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-05-14_0726_running.csv) | 137.1 KB | 1,803 rows | Input file the tutorial opens |
| [raw/records/2026-05-15_1509_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-05-15_1509_running.csv) | 274.4 KB | 3,623 rows | Input file the tutorial opens |
| [raw/records/2026-05-16_1118_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-05-16_1118_running.csv) | 251.9 KB | 3,297 rows | Input file the tutorial opens |
| [raw/records/2026-05-18_1507_running.csv](https://apopt.com/data/tutorials/cs07-critical-speed/raw/records/2026-05-18_1507_running.csv) | 183.2 KB | 2,407 rows | Input file the tutorial opens |

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

## Columns

| 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 |

## Provenance

- 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 basis: Published with the course under CC BY 4.0
- Prepared with: dda/tutorials/build.py

## Used in

- Book: [Chapter 6: GPS Watches and Motion Sensors](https://apopt.com/book/ch06-gps-motion/)
- Course: [Week 6 lesson](https://apopt.com/course/week/6/)
- Homework H12: [https://apopt.com/course/assess/h12/](https://apopt.com/course/assess/h12/)
- Homework H13: [https://apopt.com/course/assess/h13/](https://apopt.com/course/assess/h13/)

## 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/

## Load it

```python
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/cs07-critical-speed/raw/activities.csv")
```
