Memuat
Memuat
Moving Average and Smoothing for Logistics and Supply Chain
0 views
Forecast daily parcel count in e-commerce last-mile delivery with moving average and smoothing and compare errors on test data. A moving average averages values over a time window to damp random fluctuation and reveal the trend. It is used when exploring a time series or as a simple benchmark forecast.

Forecast daily parcel count in e-commerce last-mile delivery with moving average and smoothing and compare errors on test data.
| Role | Variable | Unit |
|---|---|---|
| Main | daily parcel count | paket |
| Supporting 1 | number of drop points | titik |
| Supporting 2 | distance between stops | km |
A window-3 moving average smooths daily parcel count with an RMSE of 6.451 against the raw series and removes 16.8% of short-run variation.
Computed from illustrative synthetic data, not from a real study.
A moving average averages values over a time window to damp random fluctuation and reveal the trend. It is used when exploring a time series or as a simple benchmark forecast.
Explain how window width affects smoothness and lag, then report the MAE of the simple forecast. Stress that the method does not model seasonality explicitly.
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 pandas as pd
import matplotlib.pyplot as plt
rng = np.random.default_rng(10)
n = 120
number_of_drop_points = np.arange(n)
daily_parcel_count = pd.Series(50 + 0.3 * number_of_drop_points + 5 * np.sin(2 * np.pi * number_of_drop_points / 12) + rng.normal(0, 3, n))
ma3 = daily_parcel_count.rolling(3).mean()
ma12 = daily_parcel_count.rolling(12).mean()
ema = daily_parcel_count.ewm(span=12, adjust=False).mean()
# One-step forecast: the MA of the previous window predicts the next value
for w in (3, 6, 12):
fc = daily_parcel_count.rolling(w).mean().shift(1)
mae = (daily_parcel_count - fc).abs().mean()
print("Window", w, "MAE:", round(mae, 3))
plt.figure(figsize=(9, 4))
plt.plot(number_of_drop_points, daily_parcel_count, alpha=0.4, label="Raw")
plt.plot(number_of_drop_points, ma3, label="SMA 3")
plt.plot(number_of_drop_points, ma12, label="SMA 12")
plt.plot(number_of_drop_points, ema, "--", label="EMA 12")
plt.xlabel("Time"); 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$16
excl. 11% VAT
Duration: 3 working days
Output: Python files + result figures
Deliverables
Package 2 · most chosen
US$47
excl. 11% VAT
Duration: 7 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$100
excl. 11% VAT
Duration: 12-15 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. Moving Average and Smoothing is commonly used at this level in Logistics and Supply Chain. 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$16, Package 2 (your data analysis and interpretation) US$47 and Package 3 (full guidance) US$100, 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