# Tutorial Q-31: Scale two features, the right way and the wrong way

Predict running pace from step rate and step length with a nearest-neighbor model, and see what scaling does, and what fitting the scaler on the test runs too does, with only 30 runs.

Address: https://apopt.com/data/tutorials/q31-scale-right/  
License: CC BY 4.0  
Prepared: 2026-12-03

## Description

Files for the tutorial *Scale two features, the right way and the wrong way* (https://apopt.com/course/tutorials/q31-scale-right/). `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/q31-scale-right/expected/printed-output.txt) | 489 B |  | Everything the tutorial prints, cell by cell |
| [raw/sessions_fit.csv](https://apopt.com/data/tutorials/q31-scale-right/raw/sessions_fit.csv) | 114.5 KB | 693 rows | 693 watch activity summaries (FIT session fields), June 2024 to November 2026, in the watch's own units (step length in millimeters, cadence in strides per minute for one foot); this tutorial uses the first 30 outdoor runs |

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 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 P22: [https://apopt.com/course/assess/p22/](https://apopt.com/course/assess/p22/)

## How to cite

Tutorial Q-31: Scale two features, the right way and the wrong way. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q31-scale-right/

## Load it

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