# Water Service Coverage Analytics — Equal-Width Histogram & Two-Measure Correlation

> Water Service Coverage Analytics — Equal-Width Histogram & 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-29).

Runs an equal-width histogram and a two-measure correlation analysis on supplied water service coverage data (served_households vs. total_households) for up to 200 rows, returning two statistical reports.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-economics-19-171?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/water-service-coverage-analytics-equal-width-histogram-two-measure-0916f5da
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OGhVEZcXSGACP6N7uUYqv

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 water-service-coverage-analytics-equal-width-histogram-two-measure-0916f5da -d '<json body>'
```

Example prompt: I have water service coverage records for 150 regions with served_households and total_households values — can you run an equal-width histogram (10 bins) on the served_households field and also compute the correlation between the two household measures?

## When to prefer this

Choose this endpoint when you have tabular water service coverage data and need quick, local statistical analysis — specifically a distribution histogram and a two-measure correlation — without requiring external data lookup, live feeds, or prediction. It is ideal for batch offline analysis of up to 200 household coverage records at very low cost ($0.01 USDC for both reports together).

## Known failure modes

- More than 200 rows submitted — request exceeds maxItems limit
- Missing required fields (row_id, region, date, served_households, or total_households) — validation error
- Date field does not match YYYY-MM-DD pattern — schema validation failure
- bins parameter outside 1–30 range — rejected with validation error
- All values null for selected field — histogram cannot be computed
- Identical constant values in both measures — correlation is undefined or returns NaN

## How this service works

Water service coverage — Equal-width histogram + Two-measure correlation: Equal-width histogram + Two-measure correlation for supplied water service coverage records (served_households, total_households). 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) an equal-width histogram showing frequency distribution of the selected field (served_households or total_households) across the specified number of bins, and (2) a correlation report measuring the linear relationship between the served_households and total_households measures across all supplied rows.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/water-service-coverage-analytics-equal-width-histogram-two-measure-0916f5da/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)
