# Duplicate Observations — Secondary-Measure Weighted Mean + Keyed Dataset Comparison

> Duplicate Observations — Secondary-Measure Weighted Mean + Keyed Dataset Comparison 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-16).

Computes a secondary-measure weighted mean on duplicate observation records and compares two keyed datasets, producing two analytical reports for up to 200 rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-analytics-04-186?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/duplicate-observations-secondary-measure-weighted-mean-keyed-dataset-b3d2fa0f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_itjs2C-ss0cYnQZMPfYTv

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 duplicate-observations-secondary-measure-weighted-mean-keyed-dataset-b3d2fa0f -d '<json body>'
```

Example prompt: I have two sets of duplicate observation records — each row has a row_id, dataset_group, date, duplicate_rows, and total_rows — and I want you to compute the secondary-measure weighted mean for duplicate_rows across both sets and give me a keyed comparison report between them. Here's my primary dataset (4 rows across group-a and group-b from 2026-10-01 to 2026-10-04) and my comparison dataset with slightly different duplicate counts.

## When to prefer this

Choose this endpoint when you need both a weighted mean computation (using a secondary numeric measure as weights) and a structured keyed comparison between two datasets of duplicate observation records in a single call. It is ideal for data quality audits, pipeline deduplication validation, and before/after duplicate count comparisons across up to 200 rows per dataset. Prefer it over single-report endpoints when you want both analyses for the same data in one $0.01 payment.

## Known failure modes

- Input array exceeds 200 rows — request rejected
- Missing required fields (row_id, dataset_group, date, duplicate_rows, total_rows) — validation error
- Date field does not match YYYY-MM-DD pattern — schema validation failure
- Null numeric values may affect weighted mean calculation if not handled
- Empty rows array (minItems:1 not met) — request rejected
- Mismatched or unkeyed rows between primary and 'other' dataset may yield empty comparison results

## How this service works

Duplicate observations — Secondary-measure weighted mean + Keyed dataset comparison: Secondary-measure weighted mean + Keyed dataset comparison for supplied duplicate observations records (duplicate_rows, total_rows). 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

Two independent analytical reports: (1) a secondary-measure weighted mean of the selected field (duplicate_rows or total_rows) computed across the primary input rows, and (2) a keyed dataset comparison between the primary rows and the secondary 'other' rows, highlighting differences by row_id and dataset_group. No external lookups or predictions are made; all computation is local.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/duplicate-observations-secondary-measure-weighted-mean-keyed-dataset-b3d2fa0f/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)
