> For the complete documentation index, see [llms.txt](https://docs.predicthq.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.predicthq.com/getting-started/guides/beam-guides/understanding-demand-variability-and-event-contribution-in-beam.md).

# Understanding demand variability and event contribution in Beam

Not all demand fluctuations are equal. Some are predictable, because day-of-week patterns, long-term growth trends, or seasonal cycles drive them. Others are anomalous: unexpected spikes or drops that sit outside those regular patterns. These anomalies are where events have the most impact, and where accurate forecasting is hardest.

Beam helps you understand and act on this anomalous demand. It identifies how much of your demand is anomalous, and then quantifies how much of that anomalous demand real-world context drives - things like concerts, sports games, conferences, or public holidays near your location.

## How Beam identifies anomalous demand

Beam analyzes your historical demand data and decomposes it into two components:

* **Baseline demand**: The stable, predictable portion of demand. This captures long-term trends, regular seasonal patterns, and recurring cycles - the demand you'd expect even without any unusual external influences.
* **Anomalous demand**: Everything left over after the baseline is removed. This is the variable, irregular portion of demand - the spikes and dips that can't be explained by your regular structured patterns alone. External factors like events, weather, or promotions tend to show up here.

The **demand variability ratio** measures the proportion of your total demand that is anomalous. A higher ratio means anomalous, external factors drive more of your demand - which in turn means there's more opportunity for real-world context to improve your forecasts.

> PredictHQ optimized Beam's decomposition to identify event-driven anomalies, so it may differ from decompositions that other tools such as STL or Prophet produce.

<table><thead><tr><th width="228.62890625">Demand Variability Ratio</th><th>What it means</th></tr></thead><tbody><tr><td>0–5%</td><td>Most demand follows predictable baseline patterns</td></tr><tr><td>5–10%</td><td>Some variability exists, likely influenced by external factors</td></tr><tr><td>>10%</td><td>Anomalies are a significant driver of demand fluctuations</td></tr></tbody></table>

Beam calculates this separately for **positive anomalies** (demand surges) and **negative anomalies** (demand drops), so you can understand both the upside and downside impact.

## How events explain that variability

Once Beam has identified your anomalous demand, the next step is to determine how much of it can be attributed to events.

Beam measures how much of your anomalous demand events explain. This gives you an **event contribution percentage**: the share of your anomalous demand that events happening near your location explain.

For example:

> *"Positive demand variability contributes 12.9% to total demand, and events explain 78% of that."*

This means that roughly 12.9% of your total demand sits above your predictable baseline, and of that elevated demand, events account for nearly 80%.

{% hint style="success" %}
Based on analysis of over 300,000 Beam Analyses across 59,000+ locations in 171 countries over the last 12 months, PredictHQ's event data explains an average of 61% of positive demand variability - though this varies depending on location, industry, and the types of events near your business.
{% endhint %}

Like the demand variability ratio, Beam calculates this separately for positive and negative anomalies, so you can see how events drive both demand surges and demand drops.

## Why this matters for forecasting

Understanding demand variability and event contribution gives you two practical advantages:

1. **Knowing whether events are relevant to your business.** If events explain a large share of your anomalous demand, incorporating event features into your forecasting model is likely to meaningfully improve accuracy. If the contribution is low, other factors (promotions, weather, etc.) may be more important to focus on.
2. **Knowing which events matter.** Beam's Feature Importance analysis goes a step further - it identifies which specific event categories (concerts, sports, conferences, public holidays, etc.) are the primary drivers of your demand variability. This lets you prioritize the right signals when building or refining your models.

## Next steps

To continue:

* To run an analysis on your demand data, use the [Beam API](/api/beam/overview.md).
* See [Feature Importance in Beam](/api/beam/analyses/get-feature-importance.md) to understand which event categories are driving your demand.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.predicthq.com/getting-started/guides/beam-guides/understanding-demand-variability-and-event-contribution-in-beam.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
