Free AI
Prompt Library
← Explore the libraryData & Spreadsheets

Backtest a demand forecast without leaking future data

Build a rolling-origin evaluation from the supplied time series.

Inputs & setup What you need before copying

Bring: Dated observations; Forecast horizon; Known future events

Start here: Use spreadsheet or code execution to verify calculations. Supply source observations and definitions; no model fit or test run is assumed.

← Explore this collectionCopy · Add your context · Refine

Best for: Data & analysis

Use this prompt with: ChatGPT · Claude · Gemini

Choose a tool that supports the files or features listed above.

Example result

Sample input

Weekly sales for weeks 1–52; forecast four weeks ahead. A promotion starts week 50 and was first announced in week 48. No fitted model outputs supplied.

ILLUSTRATIVE SAMPLE RESULT

Evaluation plan: train through week 36, test weeks 37–40; advance the origin four weeks until the last complete fold, train 48/test 49–52. Add overlapping weekly origins only if their dependence is reported. A promotion flag is unavailable to the origin-36 model and becomes available at origin 48. Compare last-value and same-week-last-year only where a full seasonal history exists; 52 weeks is insufficient for an early seasonal fold. MAE and interval coverage are pending execution. Request another year of history before evaluating annual seasonality.

YOUR STARTING POINT
Make it yours Fill in your details

Optional. Your details stay in this browser tab.

Read full prompt
Build a rolling-origin evaluation from the supplied time series. Confirm regular frequency, units, missing periods, stockouts and data cut-off. Compare a last-value and seasonal-naive baseline with suitable candidate models using only data available at each origin. Use the same horizon and folds for all candidates. Report MAE by horizon; explain why percentage errors can fail near zero. Check residual structure and forecast interval coverage. Separate observed backtest scores from proposed tests; do not manufacture fit results or choose a model from training error. End with a reproducible split table and the minimum evidence needed to approve deployment.

Dated observations: [ADD YOUR INPUT]
Forecast horizon: [ADD YOUR INPUT]
Known future events: [ADD YOUR INPUT]

Try a variation 1 ideas

After your first result, try one of these follow-ups.

  • Repeat with one input missing; state which conclusion can no longer be supported.
Check your result
  • Every feature must have been available at its forecast origin.
  • Verify the sample arithmetic and all source facts before using the result.

Weekly prompts & AI news

Useful prompts, fresh image ideas and AI updates. One email a week.

Subscribe to our weekly newsletter. Unsubscribe anytime. Privacy · Open signup form ↗

A LITTLE INSPIRATION, EVERY WEEK

Your next great AI idea
starts here.

Get useful prompts, fresh image ideas and AI news. Free, once a week.

Subscribe to our weekly newsletter. Unsubscribe anytime. Privacy · Open signup form ↗