chris.bbrs
Athens, GR

A season in the orchard

Move through a synthetic olive fruit fly season and test a simple forecast against the following week.

My role Forecast experiment design

Reading the cutoff

A forecast can only use observations available at the time it is made. The moss line shows synthetic counts available by the cutoff week. The dotted line extends the latest count forward as a one-week persistence baseline. The copper point marks the following observation.

At week 6 the trap count is 13 flies. Carrying that value forward predicts 13 for week 7, when the synthetic count is 21. The absolute error is 8 flies per trap. Change the cutoff to see where the same rule works better.

What the experiment measures

The twelve weekly counts describe a made-up growing season. The exhibit demonstrates how to keep a forecast and its evaluation apart in time. Real-world accuracy would require held-out observations, trap locations and collection dates from a publishable dataset.

Keep the next observation out of the forecast

The cutoff separates the known series from the next observation. The persistence baseline copies the last known count. The following count is read separately to score the forecast, so moving the cutoff preserves the order in which information becomes available.

Tech stack

Astro + React
Astro serves the written example. A React island updates the forecast from one cutoff control.
TypeScript + SVG
A fixed synthetic series drives the forecast, holdout and chart geometry from the same data.

Challenges and approaches

Make forecast error inspectable

Show the forecast and the held-out point at the same week on the chart. Report their absolute difference in flies per trap in a live region, keeping the error in the original unit.

Development harness

Validation
The portfolio’s Playwright suite opens the exhibit and checks keyboard changes to the cutoff.