# Deming Regression (Errors-in-Variables) Line Fitting

> Deming Regression (Errors-in-Variables) Line Fitting is a paid API for AI agents from detect.halowerk.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-12-01).

Fits a Deming regression line to paired measurements where both X and Y axes have stated measurement error, using the specified variance ratio.

## Facts

- Endpoint: POST https://detect.halowerk.com/v1/F-TD2000-GEO-INDUSTRY-B001/paired-measurement-deming-errors-in-variables-line?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/deming-regression-errors-in-variables-line-fitting-53f70336
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qlB_XouJUO_eUIzI9tktN

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 deming-regression-errors-in-variables-line-fitting-53f70336 -d '<json body>'
```

Example prompt: Fit a Deming regression line to these 20 paired measurement readings from two lab instruments — here are the (x, y) pairs, and I know the variance ratio between the two methods is 1.5.

## When to prefer this

Use this endpoint when you need to compare two measurement methods and both have non-negligible measurement error — standard OLS regression is inappropriate in that case. Ideal for clinical chemistry method comparison, instrument calibration, and metrology tasks where the variance ratio between the two error sources is known or estimable. Prefer this over ordinary linear regression whenever error on the x-axis cannot be ignored.

## Known failure modes

- Fewer than 3 data pairs provided — minimum is 3
- Variance ratio outside allowed range (0.0001–10000)
- Data values outside allowed range (-1,000,000 to 1,000,000)
- More than 128 pairs supplied — maximum is 128
- Malformed pairs (not exactly 2 numbers per pair)
- Degenerate data (all x or y values identical, causing singular fit)
- Missing required fields: pairs or variance_ratio

## How this service works

Fit paired measurement methods when both axes have stated measurement error.

## Output

Returns the fitted Deming regression line parameters — including slope and intercept estimates — derived from the paired measurement data and variance ratio, accounting for measurement error on both axes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "artifact": {
   "type": "object",
   "required": [
    "deming"
   ],
   "properties": {
    "deming": {
     "type": "object",
     "required": [
      "data",
      "claim"
     ],
     "properties": {
      "data": {
       "type": "object",
       "required": [
        "pairs",
        "variance_ratio"
       ],
       "properties": {
        "pairs": {
         "type": "array",
         "items": {
          "type": "array",
          "items": {
           "type": "number",
           "maximum": 1000000,
           "minimum": -1000000
          },
          "maxItems": 2,
          "minItems": 2
         },
         "maxItems": 128,
         "minItems": 3
        },
        "variance_ratio": {
         "type": "number",
         "maximum": 10000,
         "minimum": 0.0001
        }
       },
       "additionalProperties": false
      },
      "claim": {}
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/deming-regression-errors-in-variables-line-fitting-53f70336/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from detect.halowerk.com](https://www.zero.xyz/host/detect.halowerk.com/llms.txt)
