Free plan

Find outliers and trend

Spot unusual numbers and see the trend in a column
POST
/v1/data/outliers

About this tool

An outlier is a number far away from the others, often a mistake or a special case. This tool marks them in the columns you pick, using a method and strictness you choose, and can check each group separately. It can also describe how a column changes over time and forecast the next values. It points things out and does not decide for you.
For example, you spot a payment of 100,000 among payments of about 100.

How to use it

  1. Choose this tool.
  2. Add your table with Upload or drag and drop.
  3. Choose the number columns to check.
  4. Pick the method, how strict it should be and whether to include the trend, then press Generate.
  5. Download the result.

What you get back

You get a table with the unusual values flagged, and a trend and forecast if you asked. Download it.
GOOD TO KNOW
Numbers written as text ("1,200") are read. A date x_column is turned into days. A column with fewer numbers than min_values is listed with a note and not flagged. Counts as one conversion.
TEST IT LIVE

Try Find outliers and trend in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
Data
Plan
Free
Method
POST
Endpoint
/v1/data/outliers
Tool ID
data.outliers
Authentication
API key
Accepts
Text and settings
Background jobs
Yes
Usage group
Data
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/data/outliers" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'columns=["amount"]' \
  -F 'method=zscore' \
  -F 'threshold=0.1'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.data.outliers({
    "file": 'document.pdf',
    "columns": "[\"amount\"]",
    "method": "zscore",
    "threshold": 0.1
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->data()->outliers([
    'file' => 'document.pdf',
    'columns' => '["amount"]',
    'method' => 'zscore',
    'threshold' => 0.1,
]);
echo $result->requestId;
FAQ

Frequently asked questions

Flag numbers that sit far from the rest (z-score, median absolute deviation or interquartile range), per group if you like, and describe the trend of a column over time (straight line, moving average or exponential smoothing) with a forecast of the next values.

Find outliers and trend works from text and settings, so no file is needed. Every input is optional.

Find outliers and trend is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/data/outliers with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.