Memuat
Memuat
Holt-Winters Exponential Smoothing for Civil Engineering and Transportation
0 views
Forecast passenger count with Holt-Winters Exponential Smoothing using holiday season index and mean fare as supporting variables. 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 passenger count with Holt-Winters Exponential Smoothing using holiday season index and mean fare as supporting variables.
| Role | Variable | Unit |
|---|---|---|
| Main | Passenger count | orang |
| Supporting 1 | Holiday season index | - |
| Supporting 2 | Mean fare | Rp ribu |
The additive Holt-Winters model forecasts Passenger count 12 periods ahead with RMSE 10.286 and MAPE 10.74%. Best parameters: alpha 0.10, beta 0.01, gamma 0.30.
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
holiday_season_index = np.arange(n)
passenger_count = 100 + 0.8 * holiday_season_index + 10 * np.sin(2 * np.pi * holiday_season_index / m) + rng.normal(0, 2, n)
train, test = passenger_count[:-12], passenger_count[-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(holiday_season_index, passenger_count, label="Data")
plt.plot(holiday_season_index[-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$34
excl. 11% VAT
Duration: 7 working days
Output: Python files + result figures
Deliverables
Package 2 · most chosen
US$97
excl. 11% VAT
Duration: 13 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$213
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 Civil Engineering and Transportation. 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$34, Package 2 (your data analysis and interpretation) US$97 and Package 3 (full guidance) US$213, 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