Time-series analysis — Part 2

Photo by Aron Visuals on Unsplash
Equation used to forecast
Holt-Winter’s equation (ADDITIVE)
Holt-Winter’s equation (Multiplicative)
Holt’s equation with damping parameter

Forecasting in R

data_week <- read.csv('data_week.csv')
week <- ts(data_week, start=c(2015), frequency=52.25)
xx = ts(temp, frequency = 52, start = c(2015,1))
plot(xx)
fc2 <- holt(xx, h=100)
fc <- holt(xx, damped=TRUE, phi = 0.8, h=100)
fit1 <- HoltWinters(xx, beta = TRUE, gamma = TRUE, seasonal="additive")
fit2 <- HoltWinters(xx, beta = TRUE, gamma = TRUE, seasonal="multiplicative")
Various Holt’s method forecast
Holt’s method (gamma removed)
Holt’s method (beta removed)
Modified Holt-Winter’s Forecast

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store