# Anomaly Detection

Anomaly Detection determines the anomalous data points from the selected value columns. Anomalous data points are the values in the dataset which deviate substantially from the regular pattern of the target data. Use the anomaly detection slider and select the appropriate percentage of anomalies. 10% gives fewer anomalous points, and 100% detects more anomalous points. The anomaly column is added to the results. Use the anomaly column as the error column in the visualization configuration. This feature uses iforest outlier detection algorithm to compute results.

**Steps to configure anomaly detection for a query:**

1. Open the Alogorithim section inder the Querybuilder panel.
2. Select a meaningful time-series column and a value column.
3. Select the Anomaly Detection option from the operations selection box.
4. An anomaly detection box appears. This box contains a slider using which the percentage of the outlier points to be detected can be set. Usually, a 10% to 30% outlier detection is ideal.
5. Click on apply.
6. The resulting dataset contains a column called Anomaly which indicates if the value is an outlier or not.

**Steps to visualize anomaly detection :**

1. Go to plot section .
2. Select the chart type as a line for better visualization.
3. Select the X-Axis as timestamp and for Y-Axis select value and anomaly.
4. Click on Apply  button

<figure><img src="/files/dAwRLEQbk4ja2ZkVtRHZ" alt=""><figcaption></figcaption></figure>


---

# 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/data-management/overview-1/time-series-ai-ml/anomaly-detection.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.
