H11 · due at the start of Class 11, Tue, Feb 9
How sure are we? Heart-rate variability and recovery
AnalyzeStatisticsAppBuild B-5
From the instructor's sleep and day recordings: RMSSD by night, recovery after effort, and a bootstrap interval that resamples windows or repeats, not single samples.
Chapter 5: Heart Rate, ECG and Heart Rate Variability · Week 5 hub
Book exercises
Course Guide: How sure are we? Heart rate variability, recovery and a bootstrap
- Exercise 5.10 CORE Python analysis, 20 min
Run Listings 5.1, 5.2 and 5.3 on the resting example. Predict before you run: will RMSSD of the first 6 intervals be larger or smaller than RMSSD of the first 20? Then compute both, and SDNN and… - Exercise 5.20 CORE Build, 90 min
Build step B-5: heart rate from a file, then live (W-1 to W-4, H-13). Work in your Vite project from earlier weeks. Prompt your AI assistant for each part, then test it. parts A page that loads an… - Exercise 5.21 CORE Communicate, 30 min
Report for a teammate (H-15). With your teammate's written consent (Appendix E; under 18, a parent or guardian's consent and the teammate's own assent), analyze one of their workout recordings in the… - Exercise 5.22 Check the AI, 10 min
An AI assistant analyzed a one-minute seated recording made just after a hard workout. It reported: “RMSSD is 311 ms, which indicates excellent recovery and very high vagal tone.” The intervals were… - Exercise 5.23 Python analysis, 60 min
Case file: the instructor's case file holds chest-strap recordings of several nights of sleep and of an interval session, as CSV files with the columns time (nanoseconds), ecg (millivolts), hr, rr… - Exercise 11.22 Hand calculation, 12 min
The five one-minute recoveries of the Heart app's workout example (Section 11.1.5) are 23.3, 18.5, 22.9, 29.3 and 30.1 bpm. parts Compute the mean, the median and the standard deviation. 24.82, 23.3,…
Prepare with these tutorials
- Q-14 Heart rate from beat intervals (quick tutorial, 15 min)
- Q-15 One night's RMSSD (quick tutorial, 20 min)
- CS-6 From a chest-strap recording to a recovery number (case study, 60 min)
Two paths, same skills
Course data
Use the files below. The instructor's own data is the default.
Your own data
Any watch, phone, video or chest-strap recording of your own works in place of the course data. It stays on your device. How to collect it.
heart
John Hedengren: Polar H10 chest-strap recordings
4 chest-strap sessions (ECG at 130 Hz with beat-by-beat RR) from June 2026: 2 full nights and 2 daytime sessions, with 3-minute excerpts and nightly HRV.
Build step
B-5 is part of this assignment.
What to turn in
- A notebook (or app) that runs top to bottom, reading the data by its address or from a file you include.
- The answer to the task, with units and how sure you are.
- One paragraph for the athlete or coach: what to do, and the limit of the finding.
- Your AI-use statement and the verify-it checklist (how).
Scoring
| Method and correctness | 40% |
| Reproducibility and data handling | 25% |
| Interpretation and limitations | 25% |
| Presentation and AI disclosure | 10% |