# A tibble: 3 × 10
.model .type ME RMSE MAE MPE MAPE MASE RMSSE ACF1
<chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 Drift Test 11.2 28.5 24.4 3.01 9.46 NaN NaN 0.681
2 Naive Test 31.3 47.8 40.4 10.5 15.0 NaN NaN 0.730
3 SNaive Test 40.6 55.2 42.7 14.7 15.7 NaN NaN 0.769
# Rank models by RMSEaccuracy(forecast_stock, test) %>%arrange(RMSE)
# A tibble: 3 × 10
.model .type ME RMSE MAE MPE MAPE MASE RMSSE ACF1
<chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
1 Drift Test 11.2 28.5 24.4 3.01 9.46 NaN NaN 0.681
2 Naive Test 31.3 47.8 40.4 10.5 15.0 NaN NaN 0.730
3 SNaive Test 40.6 55.2 42.7 14.7 15.7 NaN NaN 0.769
cat("\nRecommendation:\n")
Recommendation:
cat("Choose the model with the lowest RMSE.\n")
Choose the model with the lowest RMSE.
cat("If the Drift model has the lowest RMSE and predicts an upward trend, Buy/Hold the stock.\n")
If the Drift model has the lowest RMSE and predicts an upward trend, Buy/Hold the stock.
cat("If the forecast trends downward, Sell or Avoid buying.\n")
If the forecast trends downward, Sell or Avoid buying.