# Margin of Safety - Benchmark Correlation Calculator

> Margin of Safety - Benchmark Correlation 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).

Calculates the Pearson correlation between margin-of-safety values (derived from actual vs. break-even sales rows) and user-supplied benchmark series, returning a descriptive statistical report with formula, units, and limitations.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-finance-margin-safety-correlation?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-benchmark-correlation-calculator-c55a0904
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E3d005HVBv5y2EfqUQzzy

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-benchmark-correlation-calculator-c55a0904 -d '<json body>'
```

Example prompt: Can you calculate the Pearson correlation between my margin of safety figures and a benchmark series? My actual sales were [10000, 11000, 12000, 10500] and break-even sales were [7000, 7700, 8400, 7350], and my benchmark values are [10, 20, 30, 40].

## When to prefer this

Choose this endpoint when you need a quick, bounded Pearson correlation between a margin-of-safety time series (derived from actual vs. break-even sales) and an externally supplied benchmark series. It is ideal for descriptive statistical alignment checks — not for forecasting or causal inference. Prefer it over general-purpose statistics APIs when you need the margin-of-safety metric specifically computed inline with the correlation, and when a flat $0.01 USDC per-call cost model is acceptable.

## Known failure modes

- Mismatched array lengths between rows and benchmarks returns an error
- Fewer than 2 rows or benchmark values triggers a minimum-items validation error
- Actual sales of zero or negative values are rejected by exclusiveMinimum constraint
- Extremely large values near the maximum boundary may cause floating-point precision issues
- Non-numeric or missing required fields (actual_sales, break_even_sales) cause schema validation failure

## How this service works

Margin of safety - Benchmark correlation: Calculate Pearson correlation against aligned supplied benchmarks; no causal or predictive claim. 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 benchmark correlation report.

## Output

A JSON object containing the Pearson correlation coefficient between the computed margin-of-safety series and the supplied benchmark array, along with the formula used, units, and a clear statement of statistical limitations (descriptive only, no causal or predictive claims).

## 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
  },
  "benchmarks": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 1,
    "maximum": 1000000000000000000,
    "minimum": -1000000000000000000
   },
   "default": [
    10,
    20,
    30,
    40
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/margin-of-safety-benchmark-correlation-calculator-c55a0904/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)
