Forecast Accuracy Calculator & Backtest Comparison
Paste actuals and up to two previously issued forecasts in matching periods. Score all rows or a recent window, see which periods drive error, and compare metrics when actual values include zeros.
Score forecasts against the same actual periods
Compare error, bias and percentage metrics from one aligned holdout window.
Edit matched values and scoring window
Paste a period label, actual, Forecast A, and optional Forecast B. Keep one unit and put the newest period last.
Scoring 4 of 4 periods. MAPE uses 3 with positive actuals.
Forecast A
8.709677%
Weighted absolute percentage error
- MAE
- 6.75
- RMSE
- 9.06917857
- Mean bias
- −5.75
- MAPE · positive actuals
- 6.666667%
Forecast B
4.193548%
Weighted absolute percentage error
- MAE
- 3.25
- RMSE
- 5.22015325
- Mean bias
- 3.25
- MAPE · positive actuals
- 33.333333%
Actuals and forecasts in the holdout
Rows are spaced equally in reporting order. The gold guide marks the selected period.
- Actual
- Forecast A
- Forecast B
Week 1
- Actual
- 100
- Forecast A
- 85
- Forecast B
- 100
Review period errors and export CSV
| Period | Actual | Forecast A | Error A | Forecast B | Error B |
|---|---|---|---|---|---|
| Week 1 | 100 | 85 | −15 | 100 | 0 |
| Week 2 | 10 | 10 | 0 | 20 | 10 |
| Week 3 | 0 | 2 | 2 | 3 | 3 |
| Week 4 | 200 | 190 | −10 | 200 | 0 |
CSV records all input periods and marks those included in the score.
How to use this calculator
- Paste period label, actual, Forecast A and optional Forecast B in chronological order.
- Enter the number of most recent periods to score or leave it blank to use all rows.
- Compare metrics and switch to Signed errors to locate over- or under-forecasting. Use the period slider to inspect exact values.
- Review scored rows and download the full input data with included rows and exact error components.
The Formula
The mathematical logic powering this calculation is:
Define signed error e = forecast − actual for each scored period. Mean bias = Σe/n. MAE = Σ|e|/n and RMSE = √(Σe²/n). Positive bias means the forecast averages above actual values. For nonnegative actuals, WAPE = 100 × Σ|e|/Σ actual. Every scored row contributes to that numerator, including periods with zero actual. If the total actual is zero, WAPE is unavailable.
The worksheet’s positive-actual MAPE is the mean of 100 × |e|/actual over the scored rows with actual greater than zero. The number of rows used is displayed. Full-period MAPE is undefined in the presence of zero actuals. WAPE weights by total actual volume, while positive-actual MAPE gives each eligible period equal weight. Their rankings can differ. When their window is the same, MAE and WAPE ranks agree as long as the actual total is positive.
Use 1–48 records in chronological order, with one row per matched forecast horizon and actual. Enter nonnegative actual and forecast values through 1 billion, with up to six decimals in one unit. Supply Forecast B for every record when comparing. Leave the period count blank for all rows or score the last N records. Arithmetic input values, errors, MAE, MSE, bias and percentage scores retain exact fractions; RMSE uses an approximate square root. Evaluate forecasts issued before the held-out actuals were available at the same forecast horizon.Worked Example
If you input:
- Actuals: 100, 10, 0, 200
- Forecast A: 85, 10, 2, 190
- Forecast B: 100, 20, 3, 200
Result:
A’s WAPE is 8.709677% and B’s is 4.193548%. Positive-actual MAPE favors A at 6.666667% over B at 33.333333%. All four periods count toward WAPE and the three positive-actual periods count toward MAPE.
Frequently Asked Questions
What happens when actual demand is zero?
Absolute errors and signed bias still score that row. Its absolute error contributes to WAPE if other scored actuals are positive. The positive-actual MAPE skips that row.
Why can WAPE and MAPE favor different forecasts?
WAPE divides total absolute error by total actual volume. MAPE gives equal weight to eligible period percentages, so a small actual can have a large influence.
How do you interpret forecast bias?
This worksheet subtracts actual from forecast. Positive average signed error indicates over-forecasting and negative average signed error indicates under-forecasting.
Which periods belong in a holdout comparison?
Use matching actual and forecast periods and the same forecast horizon. Compare forecasts saved before the outcomes became available.
Why is RMSE larger than MAE?
RMSE squares the errors before averaging, which places more weight on larger misses. The values coincide when absolute errors stay constant.
Similar Calculators
EOQ & Inventory Ordering Planner
Compare economic order quantities with pack sizes, all-units discounts, storage and order budgets. Visualize carrying costs, stock cycles and supplier tradeoffs.
Linear Regression Calculator
Fit a least-squares line, inspect scatter and residual plots, and calculate Student-t confidence and prediction intervals. Paste paired data and export the full ledger.
Inventory Turnover & Days on Hand Audit
Reconcile reported inventory averages by calendar days. Compare two periods’ turnover, days on hand and the amounts implied by a days target.
