# Tutorial Q-6: A first-order response: heart rate after a step

Cut the first stage out of a chest strap's step-test record, fit a first-order response with curve_fit, and read the time constant three ways.

Address: https://apopt.com/data/tutorials/q06-first-order/  
License: CC BY 4.0  
Prepared: 2026-12-03

## Description

Files for the tutorial *A first-order response: heart rate after a step* (https://apopt.com/course/tutorials/q06-first-order/). `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 |
|---|---|---|---|
| [expected/printed-output.txt](https://apopt.com/data/tutorials/q06-first-order/expected/printed-output.txt) | 352 B |  | Everything the tutorial prints, cell by cell |
| [raw/steptest_hr.csv](https://apopt.com/data/tutorials/q06-first-order/raw/steptest_hr.csv) | 13.8 KB | 1,030 rows | second-by-second heart rate through a three-stage step test and five minutes of recovery, with the phase of each second (synthetic) |

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

## Provenance

- Source: Data-Driven Athletics tutorials (IRSRI, 2027)
- Removed: nothing; inputs are synthetic, published course data, or the instructor's own
- Permission basis: Published with the course under CC BY 4.0
- Prepared with: dda/tutorials/build.py

## Used in

- Book: [Chapter 2: The Athlete as a System](https://apopt.com/book/ch02-system/)
- Course: [Week 2 lesson](https://apopt.com/course/week/2/)
- Homework H04: [https://apopt.com/course/assess/h04/](https://apopt.com/course/assess/h04/)
- Homework H05: [https://apopt.com/course/assess/h05/](https://apopt.com/course/assess/h05/)

## How to cite

Tutorial Q-6: A first-order response: heart rate after a step. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q06-first-order/

## Load it

```python
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/q06-first-order/raw/steptest_hr.csv")
```
