time series models Flashcards
exponential smoothing equation
st - the baseline at time period t
xt- the observed vlaue (response)
st = axt + (1-a)st-1
0<a<1
exponential smoothing tradeoff
a -> 0 there is a lot of randomness in the system, fluctuations are due to randomness, therefore yesterdays baseline is probably a good indicator of todays baseline
a-> 1 not much randomness in the system, fluctuations are probably due to changes in baseline
How to start exponential smoothing?
S1 or baseline = x1 or first value recorded
What does exponential smoothing not deal with?
-doesn’t deal with trends or cyclical variations
trends
the value is increasing or decreasing over time
What is time series data?
that in which the same response is known for many time periods
cyclical patterns
ex - annual temp cycles
-weekly sales cycles
-daily blood pressure cycles
add trend to exp smoothing calculation
Tt: trend at time period t
st = alphaxt + (1-alpha)(st-1+Tt-1)
How do you calculate trend?
just like you do for the baseline
Tt = Beta(St- St-1) + (1-Beta)Tt-1
Trend initial condition
T1 (trend) = 0
What two methods can you use to deal with cyclical patterns?
additive and multiplicative
Seasonalities additional variables
L: length of cycle
Ct: the mutiplicative seasonality for time t
(inflate or deflate the observed observation)
Baseline formula w/ trend and seasonality (multiplicative)
st = alphaxt/Ct-L + (1-alpha)(st-1+Tt-1)
How do we update seasonality? What is the initial value?
Ct = gamma(xt/St)+ (1-gamma)Ct-L
-no initial cyclic effect b/c it can’t be measured until the end of the first season
How would you interpret a seasonality value of 1.1 for weekly cyclical data? How would this change your results?
on that day, the value is 10% higher just because it is that day.
if you sold 550 items, 500 was your baseline and 50 was because it was sunday
Multiplicative seasonality starting condition
-start by multiplying by 1(no seasonality/cyclic effect) for the first L values of C