> For the complete documentation index, see [llms.txt](https://docs.fractalworks.io/joule/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fractalworks.io/joule/components/analytics/analytic-tools/analytic-functions/stateless/statistics.md).

# Statistics

> Statistics provides various methods for summarising and analysing event data within streaming environments. Operations such as moving averages, event counts, and statistical summaries help derive insights by applying functions like weighted or simple averages, counts, and robust statistics to event attributes over defined time windows.

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td></td><td><mark style="color:orange;"><strong>Statistic summaries</strong></mark></td><td></td><td><a href="/pages/ndjroVM65I8SHVle836N">/pages/ndjroVM65I8SHVle836N</a></td></tr><tr><td></td><td><mark style="color:orange;"><strong>Weighted moving average</strong></mark></td><td></td><td><a href="/pages/fSljVcgDascHp3yULTVo">/pages/fSljVcgDascHp3yULTVo</a></td></tr><tr><td></td><td><mark style="color:orange;"><strong>Simple moving average</strong></mark></td><td></td><td><a href="/pages/4ajgdE0dQLPvlgPEMkhV">/pages/4ajgdE0dQLPvlgPEMkhV</a></td></tr><tr><td></td><td><mark style="color:orange;"><strong>Count</strong></mark></td><td></td><td><a href="/pages/ZRHFfBdGonnCszrUS8e7">/pages/ZRHFfBdGonnCszrUS8e7</a></td></tr></tbody></table>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fractalworks.io/joule/components/analytics/analytic-tools/analytic-functions/stateless/statistics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
