Memuat
Memuat
Holt-Winters Exponential Smoothing for Sports and Kinesiology
0 views
Forecast weekly swim distance in student swimming clubs with Holt-Winters capturing trend and seasonality, then evaluate forecast error. Holt-Winters is three-component exponential smoothing (level, trend, seasonality) for forecasting seasonal time series. It suits monthly or quarterly data with fairly stable trend and seasonal patterns.

Forecast weekly swim distance in student swimming clubs with Holt-Winters capturing trend and seasonality, then evaluate forecast error.
| Role | Variable | Unit |
|---|---|---|
| Main | weekly swim distance | km |
| Supporting 1 | arm span | cm |
| Supporting 2 | stroke rate | kayuhan/menit |
The additive Holt-Winters model forecasts weekly swim distance 12 periods ahead with RMSE 8.228 and MAPE 5.96%. Best parameters: alpha 0.30, beta 0.01, gamma 0.50.
Computed from illustrative synthetic data, not from a real study.
Holt-Winters is three-component exponential smoothing (level, trend, seasonality) for forecasting seasonal time series. It suits monthly or quarterly data with fairly stable trend and seasonal patterns.
Report the smoothing parameters and test MAE and RMSE, and compare against a seasonal naive forecast. Also discuss that long-horizon forecasts become increasingly uncertain.
A short starting script with this project's variable names. The delivered version is adapted to your data and fully commented.
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import minimize
def hw_run(y, m, a, b, g):
n = len(y)
l = y[:m].mean()
t = (y[m:2 * m].mean() - y[:m].mean()) / m
s = np.zeros(n + m)
s[:m] = y[:m] - l
fit = np.zeros(n)
for i in range(n):
fit[i] = l + t + s[i]
l_new = a * (y[i] - s[i]) + (1 - a) * (l + t)
t = b * (l_new - l) + (1 - b) * t
s[i + m] = g * (y[i] - l_new) + (1 - g) * s[i]
l = l_new
return fit, l, t, s
rng = np.random.default_rng(11)
m, n = 12, 96
arm_span = np.arange(n)
weekly_swim_distance = 100 + 0.8 * arm_span + 10 * np.sin(2 * np.pi * arm_span / m) + rng.normal(0, 2, n)
train, test = weekly_swim_distance[:-12], weekly_swim_distance[-12:]
sse = lambda p: ((train - hw_run(train, m, *p)[0]) ** 2).sum()
res = minimize(sse, [0.3, 0.1, 0.1], bounds=[(0.01, 1)] * 3, method="L-BFGS-B")
a, b, g = res.x
_, l, t, s = hw_run(train, m, a, b, g)
nt = len(train)
fc = np.array([l + (h + 1) * t + s[nt + h % m] for h in range(12)])
print("alpha, beta, gamma:", res.x.round(3))
print("MAE:", round(np.abs(test - fc).mean(), 3), "RMSE:", round(np.sqrt(((test - fc) ** 2).mean()), 3))
plt.plot(arm_span, weekly_swim_distance, label="Data")
plt.plot(arm_span[-12:], fc, "r", label="Forecast")
plt.legend()
plt.show()Choose how much help you need. Each higher package includes everything in the lower ones. Prices exclude 11% VAT.
Package 1
US$28
excl. 11% VAT
Duration: 7 working days
Output: Python files + result figures
Deliverables
Package 2 · most chosen
US$81
excl. 11% VAT
Duration: 13 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$178
excl. 11% VAT
Duration: 18-21 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. Holt-Winters Exponential Smoothing is commonly used at this level in Sports and Kinesiology. We adapt the analysis to your research question, your own data and your supervisor's requirements.
No. The sheet is computed from illustrative synthetic data so you can see the kind of output Python gives. For your order we run the same method on your own data.
That is the point of the packages. Every script is commented, and Package 3 includes two coaching sessions plus practice questions so you can explain the method and the results at your seminar and defence.
Each project has three packages: Package 1 (code and explanation) US$28, Package 2 (your data analysis and interpretation) US$81 and Package 3 (full guidance) US$178, excluding 11% VAT. Larger datasets, extra methods or tight deadlines adjust the quote after a short consultation.
The result sheet uses illustrative synthetic data. Python is a trademark of the Python Software Foundation.
Back to Python portfolio