How to Test an AI Forecast on Days It Has Never Seen

Compare three next-day rental forecasts over 91 actual days and inspect the misses behind their average errors.

A forecaster compares a dated observation ledger with rows of forecast cards.
A forecast must be recorded before the quantity it predicts becomes available.

How many bikes will people rent tomorrow? A forecasting AI model can learn from past rental counts and calendar patterns. A fair test must respect the clock. Yenra evaluated three one-day-ahead forecasts against the same 91 later observations in the Washington, DC, bike-sharing data, using only information that would have been known before each forecast day.

Which columns would give away the answer?

The UCI Bike Sharing archive includes daily rentals for 2011 and 2012. Its casual and registered rider counts add up to the daily total, so those same-day counts cannot be inputs to a forecast of that total. We also left out weather measured on the target day. The comparison covers completed rentals, which can fall short of demand if bikes are unavailable. Hadi Fanaee-T’s UCI Bike Sharing dataset

Tall blue-lit panels extend above a walkway.
A next-day prediction should have a recorded issue time.

What did learning add to two weekday baselines?

The first forecast copied the count seven days earlier. The second averaged the preceding four matching weekdays. The fitted linear regression used calendar features and rental counts through the previous day. We fitted it once on 612 eligible days before October 2, 2012. All three methods could use newly observed counts on subsequent days, while the fitted coefficients stayed fixed.

The inputs were the previous day, previous week, seven-day mean, linear time trend, annual sine and cosine, holiday flag and weekday. From October 2 through December 31, mean absolute errors were 1,466, 1,246 and 975 rentals per day, respectively, rounded to whole rentals. Each measure averages the size of the misses regardless of direction. October 29 was the largest absolute miss for all three. The counts tell us how far they missed. Establishing why would require other dated evidence.

Weekly mean absolute errors for three next-day rental forecasts over thirteen held-out weeks.
Each point averages seven daily absolute errors. The source series counts rentals across the system. Individual stations can experience different demand. Open the full-size chart.

Download the 91 daily observations and forecasts (CSV). Dates and counts are from Hadi Fanaee-T’s Bike Sharing dataset, UCI Machine Learning Repository, CC BY 4.0. Yenra calculated the forecasts. The fitted predictions in the download are rounded to three decimals. Creative Commons license.

A branching network sits within a glass enclosure.
A learned forecast needs a simple baseline on the same dates.

What would change a staffing decision?

A system-wide daily forecast cannot tell a station manager whether bikes will be available outside one office at 08:30. For that decision, build a station-and-time test, use only data available by the staffing cutoff and score costly shortages separately from surpluses. For another example of matching the outcome to the decision, see the workload placement guide. When Can an AI Forecast Help Two Cloud Workloads Share a Machine?

A dark display contains rows of red and green lights.
A system-wide forecast needs finer data to guide a local allocation.

Try it with the evidence

Score the first held-out day

Source notes. Published comparison for October 2, 2012. Actual rentals 4,639. The previous-week forecast was 7,538, the four-week weekday mean was 6,560.5 and the fitted regression predicted 6,816.609. The 91-day mean absolute errors were approximately 1,466, 1,246 and 975, respectively.

Prompt. Compute the three absolute errors for this day. Which was closest that day and which was closest on average over the 91-day test? Explain the difference.

Check your reading

The absolute errors were 2,899, 1,921.5 and 2,177.609 rentals. The four-week weekday mean won on this day. The regression had the smallest average miss over the full test. Selecting a method from a single day would miss that distinction.

Illustrated field notes

Source observations and their timing
Red and blue paths intersect on a grid.
Check whether each input was available before the forecast cutoff.
Several people stand before a large display.
Later observations may update inputs even when the fitted coefficients stay fixed.
Bright points form a grid against dark blue.
A large residual identifies an unusual miss without explaining its cause.
Figures stand beneath a high light-filled ceiling.
Transaction counts describe recorded use and may omit unmet demand.
Checking forecasts against a decision
A person studies an illuminated panel.
The cost of an underestimate may differ from the cost of an overestimate.
Blue equipment fills a machinery room.
An observed equipment event is a different forecast target from daily rentals.
Colorful displays line a long interior.
Forecast performance in one domain needs a new evaluation in another.