# Margin of Safety IQR Outlier Flags Calculator

> Margin of Safety IQR Outlier Flags Calculator is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Flags observations where the margin of safety metric falls beyond 1.5× the interquartile range, identifying statistical outliers across a supplied dataset.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-margin-safety-outliers?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/margin-of-safety-iqr-outlier-flags-calculator-fa8b272a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UUV1ZWMdVP0ntppmxYh8m

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability margin-of-safety-iqr-outlier-flags-calculator-fa8b272a -d '<json body>'
```

Example prompt: I have 6 periods of sales data — actual sales of 10000, 11000, 9500, 50000, 10500, 10200 and break-even sales of 7000, 7700, 6650, 7500, 7350, 7140 — can you run the IQR outlier flags analysis on the margin of safety for these and tell me which observations are statistical outliers?

## When to prefer this

Use this endpoint when you need a quick, bounded statistical check on whether any margin of safety observations in a multi-period or multi-entity dataset are extreme relative to the rest of the group, using the standard 1.5×IQR method. Prefer it over manual analysis when you have 2–200 rows of actual vs break-even sales and want a structured JSON report with formula and limitations included. Do not use if you need real-time market data, financial advice, fraud detection findings, or trade execution.

## Known failure modes

- Fewer than 2 rows supplied — minimum required is 2 observations
- actual_sales value of 0 or negative — must be exclusively greater than 0
- Values exceeding the maximum of 1,000,000,000,000 will be rejected
- More than 200 rows supplied — dataset exceeds maxItems limit
- Missing required fields actual_sales or break_even_sales on any row — returns validation error
- Inconsistent currency or reporting periods across rows will produce statistically meaningless but technically valid output

## How this service works

Margin of safety - IQR outlier flags: Flag observations beyond 1.5 times the interquartile range; statistical flags are not errors or fraud findings. Metric: Margin of safety. Supplied figures only; returns JSON with formula, units and limitations. One of 50 calculators with 20 analysis modes. No live feed, financial advice or trade execution. 0.01 USDC includes one bounded iqr outlier flags report.

## Output

A JSON report containing the formula used to compute margin of safety, the IQR-based outlier threshold, a flag for each input row indicating whether it is an outlier (beyond 1.5× IQR from the nearest quartile), the units of measurement, and a limitations disclaimer clarifying these are statistical flags rather than error or fraud findings.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "actual_sales",
     "break_even_sales"
    ],
    "properties": {
     "actual_sales": {
      "type": "number",
      "default": 10000,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period",
      "exclusiveMinimum": 0
     },
     "break_even_sales": {
      "type": "number",
      "default": 7000,
      "maximum": 1000000000000,
      "minimum": 0,
      "description": "Amount in a consistent supplied currency and reporting period"
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "actual_sales": 10000,
     "break_even_sales": 7000
    },
    {
     "actual_sales": 11000,
     "break_even_sales": 7700.000000000001
    },
    {
     "actual_sales": 10000,
     "break_even_sales": 7000
    },
    {
     "actual_sales": 11000,
     "break_even_sales": 7700.000000000001
    }
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/margin-of-safety-iqr-outlier-flags-calculator-fa8b272a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
