Memuat
Memuat
Trend and Seasonal Regression for Informatics and Information Systems
0 views
Forecast daily visits with search-engine visit ratio and weekday index using Trend and Seasonal Regression, then compare forecast errors on a hold-out test set. Trend and seasonal regression regresses a time series on a time index and seasonal dummy variables. It suits data with a clear trend and seasonal pattern where interpreting the components matters more than maximum accuracy.

Forecast daily visits with search-engine visit ratio and weekday index using Trend and Seasonal Regression, then compare forecast errors on a hold-out test set.
| Role | Variable | Unit |
|---|---|---|
| Main | Daily visits | - |
| Supporting 1 | Search-engine visit ratio | % |
| Supporting 2 | Weekday index | - |
The trend + seasonal regression model forecasts Daily visits 12 periods ahead with RMSE 2.508 and MAPE 5.19%. The trend is 0.132 per month with a seasonal amplitude of 5.37.
Computed from illustrative synthetic data, not from a real study.
Trend and seasonal regression regresses a time series on a time index and seasonal dummy variables. It suits data with a clear trend and seasonal pattern where interpreting the components matters more than maximum accuracy.
Interpret the trend coefficient as the increase per period and the dummy coefficients as seasonal differences from the reference month. Report forecast errors and check residual autocorrelation.
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 sklearn.linear_model import LinearRegression
rng = np.random.default_rng(13)
n = 60
search_engine_visit_ratio = np.arange(n)
month = search_engine_visit_ratio % 12
daily_visits = 200 + 2.5 * search_engine_visit_ratio + 15 * np.sin(2 * np.pi * month / 12) + rng.normal(0, 4, n)
dummies = np.eye(12)[month][:, 1:]
X = np.column_stack([search_engine_visit_ratio, dummies])
X_tr, X_te, y_tr, y_te = X[:48], X[48:], daily_visits[:48], daily_visits[48:]
model = LinearRegression().fit(X_tr, y_tr)
pred = model.predict(X_te)
mae = np.abs(y_te - pred).mean()
rmse = np.sqrt(((y_te - pred) ** 2).mean())
mape = (np.abs(y_te - pred) / np.abs(y_te)).mean() * 100
print("Trend per period:", round(model.coef_[0], 3))
print("MAE:", round(mae, 2), "RMSE:", round(rmse, 2), "MAPE %:", round(mape, 2))
plt.plot(search_engine_visit_ratio, daily_visits, label="Data")
plt.plot(search_engine_visit_ratio[:48], model.predict(X_tr), label="Fitted")
plt.plot(search_engine_visit_ratio[48:], pred, "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$25
excl. 11% VAT
Duration: 5 working days
Output: Python files + result figures
Deliverables
Package 2 · most chosen
US$69
excl. 11% VAT
Duration: 9 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$147
excl. 11% VAT
Duration: 14-17 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. Trend and Seasonal Regression is commonly used at this level in Informatics and Information Systems. 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$25, Package 2 (your data analysis and interpretation) US$69 and Package 3 (full guidance) US$147, 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