# Forecasting

Forecasting determines the forecast of the graph given based on mathematical regression techniques. This feature appends two columns to the dataset, AnomalyForecast, and forecast. AnomalyForecast is a local forecast of the data where the data seems anomalous. The forecasting is done for the window selected in the forecasting configuration. This feature uses catboost regression analysis to compute results.

#### Steps to configure standard deviation for a query:

1. Open a query page in edit query mode.
2. Select a meaningful time-series column and a value column.
3. Select the forecasting option from the operations selection box.
4. The forecasting configuration box appears. This has two sliders namely hours and minutes. Use the sliders to create a time segment in the future for future forecasting.
5. The resulting dataset contains two columns forecast and anomaly-forecast.

#### Steps to visualize the Forecasting:

1. Create a new visualization or open an already existing visualization in edit mode.
2. Select the chart type as a line for better visualization.
3. Select the time column as the X column and the value column as the Y column. Add the standard deviation columns i.e; forecast and anomaly-forecast, into the Y column multi-selection box. A graph similar to the following picture must be rendered.

![](/files/tbYqQbo9RzpQydwd2tXR)

![](/files/1v8Rk3rpGq2s1i5hj7kD)


---

# Agent Instructions: 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.apica.io/autonomous-insights/time-series-ai-ml/forecasting.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.
