{
  "fictional": true,
  "target": "accepted completed-order counts, not latent unrestricted demand",
  "horizon": "rolling one observation ahead; actual available before the next origin",
  "errorSign": "forecast minus actual",
  "rows": [
    {
      "day": 1,
      "actual": 100,
      "role": "history"
    },
    {
      "day": 2,
      "actual": 120,
      "role": "history"
    },
    {
      "day": 3,
      "actual": 110,
      "role": "history"
    },
    {
      "day": 4,
      "actual": 130,
      "role": "history"
    },
    {
      "day": 5,
      "actual": 140,
      "role": "development"
    },
    {
      "day": 6,
      "actual": 125,
      "role": "development"
    },
    {
      "day": 7,
      "actual": 150,
      "role": "development"
    },
    {
      "day": 8,
      "actual": 160,
      "role": "development"
    },
    {
      "day": 9,
      "actual": 155,
      "role": "final-test"
    },
    {
      "day": 10,
      "actual": 145,
      "role": "final-test"
    }
  ],
  "expected": {
    "lastObservationDevelopment": {
      "forecasts": [
        130.0,
        140.0,
        125.0,
        150.0
      ],
      "errors": [
        -10.0,
        15.0,
        -25.0,
        -10.0
      ],
      "absoluteErrorSum": 60.0,
      "meanAbsoluteError": 15.0,
      "meanError": -7.5,
      "actualTotal": 575,
      "volumeErrorRatio": 0.10434782608695652,
      "underTotal": 45.0,
      "overTotal": 15.0,
      "lossUnder3Over1": 150.0,
      "lossUnder1Over3": 90.0
    },
    "trailingThreeDevelopment": {
      "forecasts": [
        120.0,
        126.66666666666667,
        131.66666666666666,
        138.33333333333334
      ],
      "errors": [
        -20.0,
        1.6666666666666667,
        -18.333333333333332,
        -21.666666666666668
      ],
      "absoluteErrorSum": 61.666666666666664,
      "meanAbsoluteError": 15.416666666666666,
      "meanError": -14.583333333333334,
      "actualTotal": 575,
      "volumeErrorRatio": 0.1072463768115942,
      "underTotal": 60.0,
      "overTotal": 1.6666666666666667,
      "lossUnder3Over1": 181.66666666666666,
      "lossUnder1Over3": 65.0
    },
    "lastObservationFinalTest": {
      "forecasts": [
        160.0,
        155.0
      ],
      "errors": [
        5.0,
        10.0
      ],
      "absoluteErrorSum": 15.0,
      "meanAbsoluteError": 7.5,
      "meanError": 7.5,
      "actualTotal": 300,
      "volumeErrorRatio": 0.05,
      "underTotal": 0.0,
      "overTotal": 15.0,
      "lossUnder3Over1": 15.0,
      "lossUnder1Over3": 45.0
    },
    "trailingThreeFinalTest": {
      "forecasts": [
        145.0,
        155.0
      ],
      "errors": [
        -10.0,
        10.0
      ],
      "absoluteErrorSum": 20.0,
      "meanAbsoluteError": 10.0,
      "meanError": 0.0,
      "actualTotal": 300,
      "volumeErrorRatio": 0.06666666666666667,
      "underTotal": 10.0,
      "overTotal": 10.0,
      "lossUnder3Over1": 40.0,
      "lossUnder1Over3": 40.0
    },
    "nextLastObservation": 145,
    "nextTrailingThree": 153.33333333333334,
    "ceilingMeanDevelopment": {
      "forecasts": [
        120,
        127,
        132,
        139
      ],
      "absoluteErrorSum": 61,
      "meanAbsoluteError": 15.25,
      "underTotal": 59,
      "overTotal": 2,
      "lossUnder3Over1": 179
    }
  },
  "tests": [
    {
      "mutation": "Change day10 actual",
      "invariant": "Forecasts for days5..10 unchanged; day10 error and day11 forecast may change"
    },
    {
      "mutation": "Change day5 actual",
      "invariant": "Day5 forecast unchanged; later forecasts update only through permitted prior history"
    },
    {
      "mutation": "All actual counts0",
      "expected": "absolute errors0; volume error ratio undefined/null"
    },
    {
      "mutation": "Missing count or duplicate period",
      "expected": "reject, do not fill zero"
    }
  ],
  "sources": [
    {
      "url": "https://otexts.com/fpp3/toolbox.html",
      "claim": "Author textbook reference for simple comparators, genuine forecast evaluation and chronological cross-validation; not support for invented counts or production performance"
    }
  ]
}