H13 · due at the start of Class 13, Tue, Feb 16
Linear regression 2 and a coach brief
Linear regressionPresentationBuild B-6
Fit the speed–duration line (critical speed) from a watch archive; chart load over weeks. Presentation 1: three slides for a coach — one finding, the evidence, one limit, one action.
Chapter 6: GPS Watches and Motion Sensors · Week 6 hub
Book exercises
Course Guide: Linear regression 2 (the speed–duration line) and a coach brief
- Exercise 6.10 CORE Python analysis, 25 min
Your own file, three ways. Run Listings 6.1, 6.7 and 6.8 on data/run.csv. Known answers: 4840 m from positions against 4836 m from the device over 1492 steps; kilometer splits 298.3, 288.0, 303.8,… - Exercise 6.19 CORE Build, 90 min
Build step B-6: an activity file on a map (W-6, W-7). Work in your Vite project from earlier weeks. Prompt your AI assistant for each part, then test it. parts Load a GPX file and compute cumulative… - Exercise 6.20 CORE Communicate, 30 min
A weekly summary for a coach. Use four or more weeks of your own runs in the Watch dashboard (or the synthetic season of Listing 6.12, week 11). Write a summary of the latest week for a coach: three… - Exercise 6.21 Check the AI, 10 min
An AI assistant wrote this to compute the distance of a route from a GPX file: quoted = np.hypot(np.diff(lat), np.diff(lon)) 111195 # metres per degree total = d.sum() quote On a route at 40 north… - Exercise 6.22 Python analysis, 25 min
Core. Start from Listing 6.11 and the three trials: 1200 m in 240 s, 2200 m in 480 s, 3600 m in 800 s. parts Fit $d = CS\,t + D'$ and give both numbers with units, and the RMSE. 4.291 m/s; 159 m;… - Exercise 6.24 Python analysis, 45 min
Case file: use your case-file athlete's watch archive (see https://apopt.com/data/athletes) to fit a speed--duration line. parts For every running activity, find the greatest distance covered in any…
Prepare with these tutorials
- Q-16 Open an activity file and list its fields (quick tutorial, 15 min)
- Q-17 Split a run into laps (quick tutorial, 15 min)
- CS-7 Critical speed from a watch archive (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.
watch
John Hedengren: COROS watch runs, spring 2026
19 runs recorded on a COROS PACE Pro between 2026-04-10 and 2026-05-18: one row per run, lap splits, weekly totals, and a per-second record file for every run. GPS coordinates removed.
Build step
B-6 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% |