Week 1: Pendahuluan dan Metode Sederhana
Definition: Cross-section Data
Tip
“Table” of subjects and variables at specific single “slice” of time.
Definition: Time Series Data
Tip
The “raw” data itself, related to time. Usually for stochastic process
Definition: Panel/Pooled Data
Tip
Definition Cross-section Data but in an interval “slice” of time rather than a single slice
Definition: Stochastic Process
Tip
Random variable indexed with time
Cheatsheet: Time Series Components (Trend, Seasonal, Cyclical, Irregular)
Tip
If time series is a kite,
- Trend: String that “pulls” or “leads” the kite to its “expected” path
- Seasonal: The wind is always stronger at noon because the sun is out. (Predictable by time).
- Cyclical: A “Storm System” is passing through. The wind howls for 3 days, then it’s calm for 10 days, then another storm lasts for 5 days. It is a long-term wave of energy that lingers, but there is no calendar for when the next storm starts.
- Irregular: unpredictable deviations
Definition: Autocovariance and Autocorrelation
Tip
Respectively, cov and corr of 2 random variables from same sequence at two time points
Definition: Weakly Stationary
Let : Function of the lag and is independent of .
A stochastic process is weakly stationary
If it satisfies three conditions:
- (constant mean)
- (finite variance)
- (cov independent of )
Definition: Strictly Stationary
A stochastic process is strictly stationary
If for any , any set of time points , lag the joint cumulative distribution function of is identical to that of
If is strictly stationary and of is finite for all , then is also weakly stationary
Some simple time series forecasting methods
Naive method
Future prediction is based on the last observation.
Averaging method
Forecasting is based on the average of all past observations.
Smoothing methods
Methods to identify data patterns by smoothing local variation, generally using the average principle.
Formula: Single Moving Average (SMA)
Tip
Average of the last data points. Suitable for stationary data patterns.
Formula: Double Moving Average (DMA)
Tip
SMA process performed twice. Suitable for data with trends.
Formula: Single Exponential Smoothing (SES)
Assigns exponentially decreasing weights to older data.
Formula: Double Exponential Smoothing (Holt’s Linear Trend)
Involves two smoothing parameters ( and ) for level and trend.
Formula: Holt-Winter Seasonal Method
Smoothing method for data with seasonal patterns with period length .
Additive
Used when the seasonal component is constant relative to the level.
Multiplicative
Used when seasonal variation changes along with the data level.