# Inventory Counts Two-Measure Correlation

> Inventory Counts Two-Measure Correlation 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-19).

Computes the statistical correlation between book_units and counted_units across up to 200 inventory count records, returning a local numeric analysis with no external dependencies.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-analytics-inventory-counts-correlation?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/inventory-counts-two-measure-correlation-970b29a2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iJ-VpTe67EooeFGo-Bp4x

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 inventory-counts-two-measure-correlation-970b29a2 -d '<json body>'
```

Example prompt: Can you run a two-measure correlation on my inventory count data — I have 50 rows with row IDs, warehouse names, dates, book units, and counted units, and I want to see how tightly the physical counts correlate with the book values?

## When to prefer this

Choose this endpoint when you need a fast, self-contained statistical correlation between two inventory measures (book vs. counted units) without external enrichment or forecasting. It is ideal for data quality validation, shrinkage analysis, or audit workflows where you have up to 200 typed inventory records and need a numeric correlation result immediately.

## Known failure modes

- Empty or malformed rows array returns a validation error
- rows exceeding 200 items are rejected with a max-items constraint error
- Missing required fields (row_id, warehouse, date, book_units, counted_units) cause schema validation failure
- Date strings not matching YYYY-MM-DD pattern are rejected
- Null values in both measures for a row may reduce effective sample size or return a data-quality warning
- Payment of 0.01 USDC not provided or rejected results in a 402 Payment Required response

## How this service works

Inventory counts - Two-measure correlation: Two-measure correlation for Inventory counts. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded two-measure correlation deliverable.

## Output

Returns a bounded correlation deliverable containing the two-measure correlation coefficient (and associated statistics) computed from the submitted inventory count rows, along with any data-quality indicators derived locally from the input records.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/inventory-counts-two-measure-correlation-970b29a2/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)
