Advanced Analytics, Assignment 1
Advanced Analytics, Assignment 1
ASSIGNMENT 1
INTERPRETATION
Components of the Holt-Winters Plot
The Original Data: Data consist of 397 rows and two columns. It is time series data and it has a trend.
Fitted Values: The fitted values are between 34-35, blue lines represent the forecast.
Forecasted Values: The blue line beyond the end of the original data represents future forecasting.
Seasonal Patterns: Data between 0-20 is continually increasing in trend. There is a pattern of peak,
average and drop in the plot.
Forecast Horizon:
Blue line after data ends indicates the future data forecasting for next two year (appx.)
Confidence Intervals:
The forecast plot often includes shaded areas around the forecasted values. These shaded areas represent
confidence intervals. Shaded areas with blue lines is visible here.
Chavi Agarwal ADVANCED ANALYTICS PG21200
R-CODE
#Load data
head(data)
install.packages("forecast")
library(forecast)
ts_electric_prod.
fit_electric_prod
forecast(fit_electric_prod, h = 12)
# Finally, we print the forecast for the next 12 months using the forecast() function and specifying h = 12
as the number of periods to forecast.
plot(forecast_electric_prod)
dev.off()
Screenshot: