Module 12 Assignment
Daniel Tafmizi Lis 4273 Dr. Ajani April 6, 2024 Module 12 Assignment Charge<-c(31.9,27,31.3,31,39.4,40.7,42.3,49.5,45,50,50.9,58.5,39.4,36.2,40.5,44.6,46.8,44.7,52.2,54,48.8 ,55.8,58.7,63.4) #creates a list of all charges. Chargetimeseries <-ts(Charge) #the 24 charges are arranged in a time series of 24 values. Chargetimeseries <-ts(Charge, frequency = 12, start=c(2012,1), end = c(2013, 12)) #applies the time span ?ts Time series function consists of (data, start: natural time unit, frequency: # of obs per time unit) Data is charge, frequency is 12 observations per 1 year, start is 2012 with time unit being 1 year plot(Chargetimeseries) The visualization shows that there were more charges in 2013 than 2012. Charges tend to increase as the year progresses. We should use Holt-Winters exponential smoothing because we see an increasing trend and seasonality. ?HoltWinters Chargeforecast<-HoltWinters(Chargetimeseries) plot(Chargeforecast) Chargeforecast Holt-Wint...