# Tutorial CS-8: Find a lactate threshold, and see if it moved

Apply four threshold rules to two SIMULATED step tests made with the production–clearance model, compare them with the true threshold the model knows, estimate each rule's typical error, and decide whether eight weeks of training moved the threshold.

Address: https://apopt.com/data/tutorials/cs08-lactate-threshold/  
License: CC BY 4.0  
Prepared: 2026-12-03

## Description

Files for the tutorial *Find a lactate threshold, and see if it moved* (https://apopt.com/course/tutorials/cs08-lactate-threshold/). `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/steptests_simulated_clean.csv](https://apopt.com/data/tutorials/cs08-lactate-threshold/clean/steptests_simulated_clean.csv) | 459 B | 15 rows | Cleaned copy written by the tutorial |
| [expected/printed-output.txt](https://apopt.com/data/tutorials/cs08-lactate-threshold/expected/printed-output.txt) | 3.0 KB |  | Everything the tutorial prints, cell by cell |
| [raw/steptests_simulated.csv](https://apopt.com/data/tutorials/cs08-lactate-threshold/raw/steptests_simulated.csv) | 508 B | 16 rows | SIMULATED step tests of an invented runner, A (2027-01-11) and B (2027-03-08): one row per 3-minute stage (test, date, stage, speed_kmh, stage_min, lactate_mmol, note); one reading of B is missing |

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

## Columns

| column | unit | meaning |
|---|---|---|
| test | — | which test |
| date | YYYY-MM-DD | test date (invented) |
| stage | count | stage number |
| speed_kmh | km/h | treadmill speed for the stage |
| stage_min | min | stage length |
| lactate_mmol | read to 0.1 | simulated blood lactate at the end of the stage |
| note | text | what happened at the stage |

## Provenance

- Source: Simulated with the production–clearance model of Data-Driven Athletics Section 7.4 (prepare.py in the tutorial source)
- Removed: nothing; no real person's data are used
- Permission basis: Simulated data, published with the course under CC BY 4.0
- Prepared with: dda/tutorials/build.py

## Used in

- Book: [Chapter 7: Glucose, Lactate and Emerging Sensors](https://apopt.com/book/ch07-emerging/)
- Course: [Week 7 lesson](https://apopt.com/course/week/7/)

## How to cite

Tutorial CS-8: Find a lactate threshold, and see if it moved. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/cs08-lactate-threshold/

## Load it

```python
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/cs08-lactate-threshold/raw/steptests_simulated.csv")
```
