Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. Using Weather Data in Demand Forecasting
AI & Machine Learning

Using Weather Data in Demand Forecasting

Weather affects trade, but adding it to a forecast helps less often than expected. How to test whether it earns its place, and the forecast-of-a-forecast trap.

Updated 2 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

Weather affects demand but improves forecasts only within the range where weather forecasts themselves are reliable - roughly the next few days. Beyond that you are feeding a prediction into a prediction. Test the uplift against a baseline before buying a data feed.

The intuition is right, the benefit is smaller

Nobody selling ice cream, garden furniture or hot drinks doubts that weather moves demand. The question for a forecasting project is narrower: does adding weather data make the forecast better than one that already knows the date?

Often it does less than expected, because seasonality already captures most of it. A model that knows it is July has implicitly learned that July is warm. Weather only adds value where it deviates from the seasonal norm.

The forecast-of-a-forecast problem

To use weather in a forecast covering next month, you need next month's weather, which nobody has. You have a weather forecast, and its accuracy decays quickly.

That places a hard ceiling on the useful horizon. Within a few days ahead, weather forecasts are good and the benefit is real. Beyond a week or two, you are adding an uncertain input to an uncertain model and usually making it worse.

  • Short horizon, weather-sensitive category - genuine, measurable benefit
  • Long horizon - use seasonal norms rather than a weather forecast
  • Backtesting - use the forecast that was available then, not the weather that actually happened, or you will badly overstate the benefit

That last point catches many projects. Backtesting with actual historical weather shows an impressive uplift that cannot be reproduced live, because live you only have the forecast.

Deviation from normal is the useful variable

Raw temperature is usually the wrong feature. What moves demand is the difference from what is normal for that place at that time of year - the first warm weekend in spring does more to garden centre trade than an equally warm day in August.

Threshold and change features tend to work better than the raw number: days above a temperature that matters for your category, consecutive dry days, a sharp drop from the previous week.

Test before you buy

Weather data feeds cost money and add a dependency that can fail. Establish the benefit before committing.

  1. Build the forecast without weather and record its accuracy honestly.
  2. Add weather using historical forecast data, not observed actuals.
  3. Compare at the horizon you actually operate at.
  4. Check the uplift is concentrated where you expected - if a feed improves accuracy on categories with no plausible weather link, suspect a leak.
Within three days, weather is information. Beyond three weeks, it is a guess wrapped in a model.

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

Which businesses benefit most from weather data?

Those with short lead times and genuinely weather-driven demand - food and drink, garden and outdoor, seasonal clothing, and some hospitality and leisure.

Is free weather data good enough?

Often yes for testing. What matters more is whether you can obtain historical forecasts rather than only observed weather, since that is what determines honest backtesting.

Should I use temperature or something else?

Usually deviation from the seasonal norm, plus category-relevant thresholds, rather than raw temperature.

Can weather explain a bad trading week after the event?

Yes, and that is a legitimate separate use. Explaining variance is easier than predicting it.

Keep reading

More on AI & Machine Learning

Start here

Want machine learning project details from us?

Tell us what you are trying to predict and roughly what data you hold. We will come back with an honest view on whether machine learning is the right tool, what the work would involve and a realistic cost range. If a spreadsheet would do the job, we will say so.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →