# Manufacturing Output – Secondary-Measure Weighted Mean

> Manufacturing Output – 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-10-18).

Computes a secondary-measure weighted mean (e.g. defects-weighted average of units, or vice versa) across up to 200 manufacturing output records, locally, with no external enrichment.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-sector-analytics-manufacturing-output-weighted-average?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/manufacturing-output-secondary-measure-weighted-mean-6751627e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1XFvfOUeelrwRAkXpSgSU

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 manufacturing-output-secondary-measure-weighted-mean-6751627e -d '<json body>'
```

Example prompt: Calculate the defects-weighted mean of units produced for these 4 production records: line group-a on 2026-10-01 had 10 units and 1 defect, line group-b on 2026-10-02 had 20 units and 2 defects, line group-a on 2026-10-03 had 15 units and 3 defects, and line group-b on 2026-10-04 had 30 units and 4 defects — use 'units' as the target field.

## When to prefer this

Use this endpoint when you need a statistically rigorous weighted mean across manufacturing output records where one numeric dimension (units or defects) serves as the weighting factor for the other. Prefer it over simple averages when defect counts or unit volumes meaningfully vary across records and should influence the mean. It is not a forecasting or enrichment service — it performs deterministic local computation only.

## Known failure modes

- Empty or missing rows array returns a validation error
- Records with null values for the selected weight or target field may be excluded or cause errors
- Submitting more than 200 rows exceeds the maxItems limit and will be rejected
- Invalid date format (not YYYY-MM-DD) will fail schema validation
- Unknown field enum value other than 'units' or 'defects' will be rejected
- Rows missing required fields (row_id, line, date, units, defects) will fail validation

## How this service works

Manufacturing output - Secondary-measure weighted mean: Secondary-measure weighted mean for Manufacturing output. 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 secondary-measure weighted mean deliverable.

## Output

Returns a single secondary-measure weighted mean value computed from the supplied manufacturing records, where one numeric field (units or defects) is weighted by the other, based on the selected target field. Processing is local with no external enrichment.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/manufacturing-output-secondary-measure-weighted-mean-6751627e/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)
