# Replenishment Timing Two-Measure Correlation and Missing-Value Fill

> Replenishment Timing Two-Measure Correlation and Missing-Value Fill 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-29).

Computes Pearson correlation between lead_days and received_units, and fills missing values using zero, mean, or median imputation, for up to 200 replenishment timing rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-retail-12-184?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/replenishment-timing-two-measure-correlation-and-missing-value-fill-4cef6965
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MkW1CpvKOHgwZ3PDfV9L_

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 replenishment-timing-two-measure-correlation-and-missing-value-fill-4cef6965 -d '<json body>'
```

Example prompt: I have 150 rows of replenishment timing records with lead_days and received_units — can you run a two-measure correlation on them and fill any missing lead_days values using median imputation?

## When to prefer this

Use this endpoint when you need lightweight, offline statistical analysis of replenishment timing data — specifically a Pearson-style two-measure correlation and missing-value imputation — without requiring a live database connection, external prediction model, or professional assessment. Ideal for small-to-medium batches (up to 200 rows) of retail supply chain records where lead time and received quantity data may be incomplete.

## Known failure modes

- More than 200 rows submitted — exceeds maximum row limit
- Missing required fields (row_id, date, lead_days, received_units) cause validation errors
- Invalid date format (not YYYY-MM-DD) causes schema rejection
- Both lead_days and received_units entirely null — correlation cannot be computed
- Invalid method enum value (not zero/mean/median) causes schema rejection

## How this service works

Replenishment timing — Two-measure correlation + Explicit missing-value fill: Two-measure correlation + Explicit missing-value fill for supplied replenishment timing records (lead_days, received_units). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.

## Output

Returns two independent analytical reports: (1) a two-measure correlation report showing the statistical relationship between lead_days and received_units, and (2) an explicit missing-value fill report where null values in the specified field are replaced using zero, mean, or median imputation. Covers up to 200 supplied rows.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "store_group",
     "date",
     "lead_days",
     "received_units"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "lead_days": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "store_group": {
      "type": "string",
      "default": "",
      "maxLength": 80
     },
     "received_units": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "row_id": "row-1",
     "lead_days": 10,
     "store_group": "group-a",
     "received_units": 1
    },
    {
     "date": "2026-10-02",
     "row_id": "row-2",
     "lead_days": 20,
     "store_group": "group-b",
     "received_units": 2
    },
    {
     "date": "2026-10-03",
     "row_id": "row-3",
     "lead_days": 15,
     "store_group": "group-a",
     "received_units": 3
    },
    {
     "date": "2026-10-04",
     "row_id": "row-4",
     "lead_days": 30,
     "store_group": "group-b",
     "received_units": 4
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "lead_days",
    "received_units"
   ],
   "type": "string",
   "default": "lead_days"
  },
  "method": {
   "enum": [
    "zero",
    "mean",
    "median"
   ],
   "type": "string",
   "default": "median"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/replenishment-timing-two-measure-correlation-and-missing-value-fill-4cef6965/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)
