You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_analysis/Analysis-3.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,9 @@ author_profile: true
7
7
toc: true
8
8
toc_label: "Table of Contents"
9
9
toc_icon: "file"
10
-
toc_sticky: "true"
10
+
toc_sticky: false
11
11
order: 3
12
-
classes: wide
12
+
#classes: wide
13
13
---
14
14
15
15
Date Posted: 2025-04-22
@@ -20,8 +20,7 @@ In this page I practice forecasting, feature engineering, and using various regr
20
20
21
21
# Store Sales Forecasting
22
22
23
-
This project uses the [Store Sales Dataset](https://www.kaggle.com/competitions/store-sales-time-series-forecasting).
24
-
from Kaggle. The goal of this project is to optimize inventory for the store Favorita in Ecuador. The desired outcomes are to:
23
+
This project uses the [Store Sales Dataset](https://www.kaggle.com/competitions/store-sales-time-series-forecasting) from Kaggle. The goal of this project is to optimize inventory for the store Favorita in Ecuador. The desired outcomes are to:
25
24
26
25
1. Reduce Waste (By reducing wasted inventory)
27
26
2. Improving customer satisfaction by ensuring inventory is always adequate
@@ -53,19 +52,19 @@ We will use the SARIMAX model for time series forecasting. We expect strong week
53
52
54
53
### Model Building
55
54
56
-
As we are using an ARIMA model, we check for stationarity with ADF.
55
+
As we are using an ARIMA model, we check for stationarity with Augmented Dickey-Fuller (ADF) test.
57
56
58
57

59
58
60
59
Both datasets were within the acceptable range to be stationary.
61
60
62
61
We then plotted the auto-correlation (ACF) and partial auto-correlation (PACF) plots to investigate the AR & MA.
63
62
64
-
Initial inspection of the ACF and PACF plots revealed that although data was stationary, it was not seasonally stationary. With spikes at 7, 14, 21... , we can clearly see strong weekly seasonality as expected.
63
+
Initial inspection of the ACF and PACF plots revealed that although data was stationary according to the ADF test, it was not seasonally stationary. With spikes at 7, 14, 21... , we can clearly see strong weekly seasonality as expected. The following are the ACF and PACF plots after differencing for the weekly seasonality.
65
64
66
65

67
66
68
-
67
+
We use these plots to identify candidates orders for the p & q components of the ARIMA model. For example, since information drops off after lags 1 & 2, we do a grid search with range 0-2 for both p & q.
0 commit comments