# Tutorial CS-16: Forecast next week, and beat "same as last week"

Turn two and a half years of watch activity summaries into weekly training load from heart rate, build forecasts from the past only, split by time, and test whether a regression really beats the persistence baseline; end with next week's load and a range.

Address: https://apopt.com/data/tutorials/cs16-forecast-load/  
License: CC BY 4.0  
Prepared: 2026-12-03

## Description

Files for the tutorial *Forecast next week, and beat "same as last week"* (https://apopt.com/course/tutorials/cs16-forecast-load/). `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/change_log.csv](https://apopt.com/data/tutorials/cs16-forecast-load/clean/change_log.csv) | 109 B | 3 rows | Cleaned copy written by the tutorial |
| [clean/weekly_load.csv](https://apopt.com/data/tutorials/cs16-forecast-load/clean/weekly_load.csv) | 2.1 KB | 126 rows | Cleaned copy written by the tutorial |
| [expected/printed-output.txt](https://apopt.com/data/tutorials/cs16-forecast-load/expected/printed-output.txt) | 2.4 KB |  | Everything the tutorial prints, cell by cell |
| [raw/sessions_fit.csv](https://apopt.com/data/tutorials/cs16-forecast-load/raw/sessions_fit.csv) | 114.5 KB | 693 rows | 693 activity summaries (running, elliptical, swimming, cycling, hiking and others), June 2024 to November 2026, as FIT session fields in the watch's own names and units (seconds, meters, UTC start plus an offset) |

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

## Columns

| column | unit | meaning |
|---|---|---|
| start_time | ISO 8601 UTC (ends in Z) | start of the activity |
| utc_offset_h | h | local clock minus UTC at the start |
| sport | text | sport as the watch labels it |
| total_timer_time | s | timer time with pauses excluded (the moving time) |
| total_distance | m | distance |
| avg_heart_rate | beats/min | average heart rate (wrist) |
| max_heart_rate | beats/min | highest heart rate in the activity |

## Provenance

- Source: COROS Training Hub bulk export of FIT activity files (session summaries only), as published in the course case file (athletes/jh/coros-history)
- Removed: as published in the case file: every GPS position, all per-second records, the archive's activity ids and file names, device serial and account identifiers
- Permission basis: The athlete publishes his own data in the course case file.
- Prepared with: dda/tutorials/build.py

## Used in

- Book: [Chapter 11: Is the Change Real? Statistics and Machine Learning](https://apopt.com/book/ch11-statistics/)
- Course: [Week 11 lesson](https://apopt.com/course/week/11/)
- Homework P23: [https://apopt.com/course/assess/p23/](https://apopt.com/course/assess/p23/)

## How to cite

Tutorial CS-16: Forecast next week, and beat "same as last week". IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/cs16-forecast-load/

## Load it

```python
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/cs16-forecast-load/raw/sessions_fit.csv")
```
