Eduardo Belluti · Exploratory observational study · November 14, 2026

Does climbing improve predictions of cycling duration?

Distance tells part of the story. In 354 recorded cycling rides, adding elevation gain reduced prediction error on later rides by about 20.7% compared with distance alone. This supports the hypothesis for this rider and this test period, with important limits to inference.

1. Question and hypothesis

For a cyclist planning a workout, is distance enough to estimate its duration, or does the amount of climbing provide useful additional information?

Primary hypothesis: Adding ascent to distance will reduce both mean absolute error (MAE) and root mean squared error (RMSE) on later rides, compared with a distance-only model and a constant training-mean baseline.

Secondary statistical test: H₀: the ascent coefficient is zero after accounting for distance. Use a two-sided HC3 Wald test with α = 0.05.

This is an exploratory hypothesis applied to an existing export, not a preregistered experiment. The coefficient test and the prediction comparison answer different questions; a small coefficient p-value does not prove better future predictions.

2. Data and methods

The export contains 1,180 activities from 2021-11-14 to 2026-09-30. Of 357 Cycling or Road Cycling records, 354 rides were retained and 3 were excluded for missing or invalid required fields. The retained cycling rides cover 2021-11-14 to 2026-09-30.

Distance is in kilometers and ascent in meters. The CSV does not carry unit metadata. Duration is Garmin’s Time field converted to hours, rather than moving time or elapsed time.

Rides are sorted chronologically: 283 earlier rides train the models; 71 rides from 2025-06-27 onward form the holdout. Three predictions are compared: the training mean, distance-only ordinary least squares (OLS), and OLS with distance plus ascent. Missing values are not filled with zero, and unusual valid rides are kept.

Duration (hours) = intercept + β₁ × distance (km) + β₂ × ascent (100 m)

Two scatterplots showing recorded cycling duration against distance and total ascent.
Figure 1. Both distance and ascent rise with duration. These plots describe all retained rides; model coefficients are fit only on the earlier training rides.

3. Did adding ascent improve prediction?

Yes, on this holdout. MAE falls from 25.40 to 20.15 minutes and RMSE from 41.69 to 33.12 minutes when ascent is added: reductions of 20.7% and 20.6%, respectively. Both regressions also outperform the training-mean baseline.

Prediction error on 71 later rides. Lower MAE/RMSE is better.
ModelMAE (min)RMSE (min)Holdout R²
Training mean baseline51.9366.86-0.002
Distance only25.4041.690.611
Distance + ascent20.1533.120.754

MAE is the average absolute miss; RMSE gives larger misses more weight. The remaining gap between them shows that some rides have substantial errors. These are descriptive results from one chronological split, without a confidence interval or significance test for the difference in prediction error.

Actual versus predicted holdout duration, with a diagonal line showing perfect predictions.
Figure 2. Points on the diagonal are predicted exactly; points below it are underpredicted. The model captures much of the variation but still misses individual rides.

4. What do distance and ascent contribute?

Training-model coefficients in minutes, with 95% HC3 confidence intervals.
TermEstimate95% interval
Intercept (minutes)4.31-2.32 to 10.93
Distance (minutes per km)0.880.55 to 1.22
Ascent (minutes per 100 m)15.0912.58 to 17.61

Holding ascent fixed, an additional kilometer is associated with about 0.88 more minutes. Holding distance fixed, another 100 meters of ascent is associated with about 15.09 more minutes. These are conditional associations, not estimates of what changing a route would cause.

The ascent coefficient’s two-sided HC3 p-value is 5.50e-32. Under the model assumptions, reject H₀ at α = 0.05. Both predictor intervals exclude zero. HC3 accommodates unequal residual variance; it does not correct dependence between repeated rides or unmeasured conditions. These intervals describe uncertainty in coefficients, not prediction intervals for individual rides.

5. What do the diagnostics reveal?

Training residuals against fitted duration, a normal Q–Q plot, and residuals over time.
Figure 3. Residuals are actual minus fitted duration. The panels examine changing error spread, tail behavior, and patterns over time.

Correlated predictors: distance and ascent have Pearson r = 0.871 across retained rides. Longer rides often include more climbing, making their separate coefficients harder to interpret.

Unequal error spread: absolute training residuals correlate with fitted duration (r = 0.419), consistent with larger misses on longer predicted rides. The residual distribution is positively skewed (0.556); the Q–Q tails depart from a straight line.

Dependence over time: Durbin–Watson is 1.524, suggesting positive serial dependence rather than establishing it. A future analysis should test time-aware uncertainty estimates and validation.

Three most influential training rides by Cook’s distance.
Date / rideDistance (km)Ascent (m)Cook’s distance
2024-05-19
Truckee Cycling
93.9419810.366
2023-05-29
Truckee Cycling
112.6715240.118
2021-12-12
Santa Cruz County Cycling
34.7011210.084

The May 19, 2024 Truckee ride has the greatest influence on the fit. These observations remain included: influence warrants inspection of the original record, rather than automatic deletion. No sensitivity refit excluding them has been performed.

6. Limitations and next test

Repeated observations come from one person. Fitness changes over time, while weather, terrain, stops, effort, equipment, and route are not modeled. Only recorded and exported workouts enter the sample. Selection, correlated predictors, and residual dependence limit inference and generalization.

The holdout has now been inspected, and exploratory plots include it. Further model choices should use rolling time validation and a fresh final period. A useful next test would compare nonlinear models and cycling subtypes, assess influential rides, and use uncertainty estimates that account for time dependence. Average speed should not be used to predict duration because it is derived from distance and time.

Conclusion: Ascent adds useful predictive information for this rider’s later rides, reducing both error measures by about one fifth compared with distance alone. The model remains an approximate duration estimate, with substantial individual errors and no causal interpretation.