> For the complete documentation index, see [llms.txt](https://time-series-features.gitbook.io/catch22-features/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://time-series-features.gitbook.io/catch22-features/catch22/the-simple-forecasting-based-features.md).

# Simple forecasting

## `forecast_error`

**Naming info**: This feature matches the *hctsa* feature called `FC_LocalSimple_mean3_stderr`. It computes the `stderr` output from running the code `FC_LocalSimple(x_z,'mean',3)` in *hctsa*.&#x20;

`forecast_error` returns the a measure of error from using the mean of the previous 3 values of the time series to predict the next value. The error statistic used here is the standard deviation of the residuals from the full set of simple 1-step forecasts. Because the input time series is *z*-scored (standard deviation of 1), the residuals should have a standard deviation less than 1 if this forecasting method is doing something (at least minimally) useful.

Time series that are easy to predict (i.e., time series for which the mean of the 3 previous time steps are a good prediction of the current value) will get low values of this feature.

Here's an example of a predator-prey system (black) for which the dynamics are varying on a timescale of 3 steps, such that mean-3 predictions (blue) are very poor forecasts. For this time series, the residuals have a higher variance than the original time series.

![](/files/-Mfa69lDo8f86IZdoLge)

This ODE system, by contrast is very highly sampled, such that the time series is a similar value in 3 steps, and the forecasts (blue) are very close to the original time series, yielding residuals with a very low standard deviation (0.03).

![](/files/-Mfa6XHjZgjkMiQQMeor)


---

# 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, and the optional `goal` query parameter:

```
GET https://time-series-features.gitbook.io/catch22-features/catch22/the-simple-forecasting-based-features.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
