# Controller Sampling — Two-Measure Correlation + Secondary-Measure Weighted Mean

> Controller Sampling — Two-Measure Correlation + Secondary-Measure Weighted Mean is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-02).

Computes Pearson correlation between input_latency_ms and sample_count, plus a weighted mean for a chosen secondary measure, across up to 200 controller sampling records.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-game-15-181?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/controller-sampling-two-measure-correlation-secondary-measure-c5cde185
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WEmW5Gd9kwIwCdkZ1lhAY

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 controller-sampling-two-measure-correlation-secondary-measure-c5cde185 -d '<json body>'
```

Example prompt: I have 4 rows of controller sampling data — row-1 on 2026-10-01 in group-a with input_latency_ms=10 and sample_count=1, row-2 on 2026-10-02 in group-b with latency=20 and sample_count=2, row-3 on 2026-10-03 in group-a with latency=15 and sample_count=3, row-4 on 2026-10-04 in group-b with latency=30 and sample_count=4 — can you compute the correlation between input_latency_ms and sample_count, and also give me the weighted mean for input_latency_ms?

## When to prefer this

Choose this endpoint when you have tabular controller sampling data with input_latency_ms and sample_count columns and need both a two-measure correlation and a weighted mean in a single cheap call ($0.01 USDC). Prefer it over general-purpose analytics when your dataset is under 200 rows and you want a bundled pair of statistical reports without setting up a full data pipeline.

## Known failure modes

- Empty or missing rows array returns validation error
- More than 200 rows causes rejection due to maxItems limit
- Null values in both numeric fields may reduce correlation validity
- Invalid date format (not YYYY-MM-DD) causes schema rejection
- Missing required fields (row_id, game_area, date, input_latency_ms, sample_count) causes row rejection
- Field enum value not in ['input_latency_ms','sample_count'] causes error

## How this service works

Controller sampling — Two-measure correlation + Secondary-measure weighted mean: Two-measure correlation + Secondary-measure weighted mean for supplied controller sampling records (input_latency_ms, sample_count). 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 analytical reports: (1) a Pearson-style correlation coefficient between input_latency_ms and sample_count across all supplied rows, and (2) a weighted mean of the selected secondary measure (input_latency_ms or sample_count), computed locally with no external lookups. Results cover up to 200 input rows.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/controller-sampling-two-measure-correlation-secondary-measure-c5cde185/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)
