CalcWorldHub
Free online calculator · no signup

Mean Absolute Scaled Error (MASE) Calculator

Compare forecast errors with a naïve or seasonal-naïve baseline computed from the training series.

4,000 tools
Mean Absolute Scaled Error (MASE) Calculator — Training actual values, Evaluation actual values, Evaluation forecasts and calculation method
Mean Absolute Scaled Error (MASE) Calculator: inputs and calculation method.

How to use this calculator

Compare forecast errors with a naïve or seasonal-naïve baseline computed from the training series.

  1. Enter Training actual values, Evaluation actual values, Evaluation forecasts, Seasonal period m. Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Data science calculation

How this calculation works

Absolute errors are hard to compare across series measured on different scales. MASE rescales the mean absolute test forecast error by the average in-sample error from a naïve forecast, with a lag that can represent a seasonal period.

Inputs and units

trainingActuals — Training actual values
Historical training observations in chronological order. Enter at least seasonal-period + 1 finite values, separated by commas or spaces.
evaluationActuals — Evaluation actual values
Observed values for the forecast horizon, in chronological order.
evaluationForecasts — Evaluation forecasts
Forecasts for exactly the same periods and order as the evaluation actual values.
seasonalPeriod — Seasonal period m
Use 1 for a nonseasonal naïve baseline; for seasonal data enter the number of observations in one season.

Formula

Displayed formula

MASE = [J⁻¹ Σⱼ₌₁ᴶ |yⱼ − ŷⱼ|] / [(T − m)⁻¹ Σₜ₌ₘ₊₁ᵀ |yₜ − yₜ₋ₘ|], where T is training length, J is test length, and m is the seasonal lag.

Method

Enter the training actual values, the actual values for the evaluation horizon, the forecasts for those same periods, and seasonal period m. The denominator is the mean absolute seasonal-naïve error on the training data; m = 1 gives the ordinary one-step naïve benchmark. The numerator is the mean absolute error on the evaluation values.

Worked example

Training values 10, 12, 13, 15, 18 have a one-step naïve scale of (2 + 1 + 2 + 3) / 4 = 2. For actuals 20, 22 and forecasts 21, 20, test MAE is 1.5, so MASE = 1.5 / 2 = 0.75.

For a seasonal period of 2, training values [10, 11, 10, 12, 11, 13, 10, 12] give a lag-2 naïve scale of (0 + 1 + 1 + 1 + 1 + 1) ÷ 6 = 0.8333. Test actuals [14, 13, 15] and forecasts [13, 14, 14] have MAE 1, so MASE = 1 ÷ 0.8333 = 1.20 against that seasonal baseline.

Assumptions and limits

Training and evaluation values must use the same units, and the evaluation actual and forecast lists must have equal length. MASE is undefined when the training seasonal-naïve scale is zero; this calculator reports a validation error in that case. A value below 1 means the test MAE is below the in-sample naïve scale, not that every forecast beats a benchmark on the test horizon.

Frequently asked questions

What does MASE below 1 indicate?

The evaluation mean absolute error is below the selected in-sample naïve scale. It is a scale comparison, not a statistical significance test.

What should I enter for the seasonal period?

Use 1 for a nonseasonal series, 12 for monthly values with annual seasonality, or another lag that matches the cycle being benchmarked.

Why does the calculator need training values separately?

The scaling denominator is computed from in-sample training data. Using the test horizon for that denominator would change the standard MASE definition.

Why can MASE be undefined?

If all training values are equal at the selected seasonal lag, the naïve scale is zero and division is undefined.

How do I use the Mean Absolute Scaled Error (MASE) Calculator?

Enter Training actual values, Evaluation actual values, Evaluation forecasts, Seasonal period m. Match the units shown beside each field and review the result together with the assumptions below.