# Percentile & Outlier Calculator

> Percentile & Outlier Calculator is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-13).

Accepts a numeric array and returns p25/p50/p75/p90/p99 percentile cutoffs, IQR-based outlier flags, mean, median, and standard deviation

## Facts

- Endpoint: POST https://x402.forgemesh.io/percentile-calculator
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/percentile-outlier-calculator-3db42cb1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_83L0aQEMHPf_eBz7xNDco

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 percentile-outlier-calculator-3db42cb1 -d '<json body>'
```

Example prompt: Can you calculate p25, p50, p75, p90, and p99 percentiles for these response times in milliseconds, and flag any outliers: [45, 52, 48, 61, 200, 55, 49, 310, 53, 47, 58, 62, 51]?

## When to prefer this

Use this endpoint when you need a full distribution summary — percentiles, IQR outlier detection, mean, median, and standard deviation — all in a single call. Ideal for latency analysis, academic grading curves, pricing tier segmentation, quality control, or any workflow where you need exact quantile boundaries and outlier identification without writing custom statistical code.

## Known failure modes

- Empty or missing numbers array returns a validation error
- Non-numeric values in the array cause a parsing failure
- Insufficient data points (e.g. single value) may produce degenerate percentile results
- Payment failure or insufficient USDC balance returns a 402 response

## How this service works

Percentile and outlier calculator: submit a numeric array and get p25, p50, p75, p90, p99 cutoffs plus IQR-based outlier flags alongside mean, median, and standard deviation. Useful for latency analysis, grading curves, pricing tiers, and any workflow that needs an exact distribution summary.

## Output

Returns a distribution summary including p25, p50, p75, p90, p99 percentile cutoff values, the interquartile range (IQR), IQR-based outlier flags for individual data points, plus mean, median, and standard deviation for the submitted numeric array.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "numbers": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "description": "array or comma-separated string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mean": 27.166667,
  "median": 13.5,
  "outliers_iqr": [
   98
  ],
  "std_dev_sample": 34.749604
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/percentile-outlier-calculator-3db42cb1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
