LoslegenKostenlos loslegen

Calculating transfer function MAPE and MAE

Just how off were these forecasts? The MAE and MAPE will help us understand this. Your validation data is stored as MET_hi_v and your final forecast is for_MET_hi_final. Remember that MAE is the absolute difference while the MAPE is the relative absolute difference.

Diese Übung ist Teil des Kurses

Forecasting Product Demand in R

Kurs anzeigen

Anleitung zur Übung

  • Calculate the MAE of this forecast.
  • Calculate the MAPE of this forecast.

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Calculate the MAE
MAE <- mean(abs(___ - ___))
print(MAE)

# Calculate the MAPE
MAPE <- 100*mean(abs((___ - ___)/___))
print(MAPE)
Code bearbeiten und ausführen