Part 4: From Data to Decisions · Week 12 · Tue, Mar 23
Chapter 12: Build Your Own Performance App
A coach says: “My runners record their heart in the morning, and the files sit on their phones. I just want to know whether this morning's file is good enough to use, and what the number is. Can you make me something?” What is the smallest tool that answers that one question?
- Ask (this week)
- Collect
- Check (this week)
- Interpret
- Coach (this week)
- Reassess
Read
Read Chapter 12 pp. 329–354
- 12.1Start from One Decision
- 12.2How a Browser App Is Put Together
- 12.3Building with an Assistant
- 12.4Getting the Numbers Right
- 12.5Privacy by Design
- 12.6Basic First
- 12.7Reports People Read
- Read to here before Tuesday
- 12.8Testing with Users
- 12.9Putting It Online
- 12.10Responsible Tools
- 12.11Telling the Athlete
- 12.12Summary
- 12.13Exercises
- Read to here before Thursday
Bring to class
- A laptop with a recent browser; a phone; one RR-interval file (your own from Chapter 5, or the example file); five people for twenty minutes each.
Data you collect: A user test.
No one has to exercise hard, buy a device, or share health data: every collection has a case-file path.
Lecture slides
Class 23One Decision, One Screen, the Right Number
27 slides · about 35 min · PDF
Class 24Private, Plain and Tested with Users
25 slides · about 32 min · PDF
Classes
Start from one decision; app structure; getting the numbers right
Due: P23 Classification and a leakage audit
Class 24 · Thu, Mar 25Privacy by design; reports; testing with users; putting it online
Due: P24 Prototype
Homework
Prototype
End-to-end app on sample input with three tests: normal, missing, invalid.
Project checkpoint 3
User test
A structured user test: five people and three tasks (Chapter 12: five users find most of the problems), prioritised changes, and a privacy check.
Project checkpoint 4
Tutorials
From a raw file to something an athlete can act on. The case study is this week's worked example in class; the quick tutorials prepare you for it and for the homework. The data workflow · Your athlete record
From a notebook to a page an athlete can open
Move the foot-plant force formula out of a notebook into a JavaScript function that refuses bad input, prove the Python and JavaScript versions agree on normal, missing and invalid cases and on 44 real foot plants, compare a file analysed afterwards with a stream read step by step, and specify the phone page.
Build step B-12: Consolidate: a working app
One decision, a PDF report, tests, privacy by design, user testing.
Exercise board
24 exercises in 10 strands; 8 are CORE, the set homework draws on. Tick them off as you go; ticks stay in this browser.
Data for this week
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.
book
Book data, Chapter 12: Build Your Own Performance App
The 2 example files that Chapter 12 of Data-Driven Athletics reads, under the same names the listings use.
tutorial
Tutorial CS-17: From a notebook to a page an athlete can open
Move the foot-plant force formula out of a notebook into a JavaScript function that refuses bad input, prove the Python and JavaScript versions agree on normal, missing and invalid cases and on 44 real foot plants, compare a file analysed afterwards with a stream read step by step, and specify the phone page.
tutorial
Tutorial Q-34: A calculation in a web page
Write the foot-plant force formula in Python and in JavaScript, run both on three hand-checked cases, and confirm they give the same numbers.
tutorial
Tutorial Q-35: Three tests: normal, missing, invalid
Write the three input tests every app must pass, with assert, for a Python copy of the book's resting-heart app, then feed it a real-sized file in the right and the wrong units.
tutorial
Tutorial Q-36: Read a results file in the browser
Open the jump app's JSON receipts field by field, check each against a filming log, join the jump height from the text results, and leave out the clip analyzed at the wrong frame rate.
open
ECG in high-intensity exercise
Single-lead ECG from maximal cycling tests; 8.9 MB.
Go further
- Companion reading: the IRSRI Data-Driven Coaching course, module 12.
- Cite this chapter: citation in BibTeX, RIS or text.