8. HOLT smoothing

The exercise was created 2024-03-25 by Makizon. Question count: 11.




Select questions (11)

Normally, all words in an exercise is used when performing the test and playing the games. You can choose to include only a subset of the words. This setting affects both the regular test, the games, and the printable tests.

All None

  • gör holt model på adj.close holt_model <- holt(training$adj.close, h=4, exponential=FALSE)
  • varför är h=4? vår testing set har 4 rader
  • summary holt summary(holt_model)
  • plot holt model ( xlim= c(75,84) för att zooma in, den kan starta från tex 50 och 0 också) plot(holt_model, xlim=c(75,84))
  • lägg till linjer på holt model lines(81:84, testing$adj.close, type="o", col="darkblue", lwd=2)
  • gör holt forecast vector holt_forecast <- holt_model$mean
  • varför mean? forecasted values are called mean in the holt model
  • gör holt forecast error vector holt_forecast_error <- testing$adj.close - holt_forecast
  • gör holt table holt_table <- data.frame(cbind(testing$adj.close, holt_forecast, holt_forecast_error))
  • gör RMSE holt RMSE_holt <- rmse(holt_table$testing.adj.close, holt_table$holt_forecast)
  • visa RMSE_holt RMSE_holt

All None

Shared exercise

https://spellic.com/eng/exercise/8-holt-smoothing.11989268.html

Share