LoslegenKostenlos loslegen

Using proportion of historical averages

Now let's try doing that exact same thing, but with the proportion of historical averages technique instead. Your forecast is saved as for_MET_t_xts, your sales objects are MET_hi, MET_lo, MET_sp, and MET_total, and you have three validation data sets called MET_hi_v, MET_lo_v, and MET_sp_v.

Diese Übung ist Teil des Kurses

Forecasting Product Demand in R

Kurs anzeigen

Interaktive Übung

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

# Calculate the average historical proportions
prop_hi_2 <- mean(___)/mean(MET_total)
prop_lo_2 <- mean(___)/___(___)
prop_sp_2 <- ___(___)/___(___)
Code bearbeiten und ausführen