# Tourism Observations — Two-Measure Correlation + Secondary-Measure Weighted Mean

> Tourism Observations — 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-10-26).

Computes Pearson correlation between visitor_count and overnight_stays, plus a weighted mean for the secondary measure, across up to 200 tourism observation rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-economics-14-181?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tourism-observations-two-measure-correlation-secondary-measure-d0bddac4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bX9_54hWvj2U24zpxbBda

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 tourism-observations-two-measure-correlation-secondary-measure-d0bddac4 -d '<json body>'
```

Example prompt: I have a dataset of tourism observations with visitor_count and overnight_stays across multiple regions and dates — can you run the two-measure correlation between those fields plus compute the weighted mean for overnight_stays across all my rows?

## When to prefer this

Choose this endpoint when you have a structured tourism dataset (up to 200 rows) with visitor_count and overnight_stays fields and need both a correlation coefficient between the two measures and a weighted mean for the secondary measure in a single API call. It is purpose-built for tourism/hospitality observation data and bundles two reports for $0.01 USDC. Prefer it over general-purpose statistics APIs when you want a low-cost, no-setup, payload-in/result-out statistical summary with no external data dependencies.

## Known failure modes

- Fewer than 1 row submitted — request rejected
- Row missing required fields (row_id, region, date, visitor_count, overnight_stays) — validation error
- More than 200 rows submitted — rejected with max-items error
- Invalid date format (not YYYY-MM-DD) — schema validation failure
- Numeric values out of allowed range (±1,000,000,000,000) — rejected
- Payment not provided or insufficient USDC — 402 payment required error
- All values for one measure are null — correlation cannot be computed

## How this service works

Tourism observations — Two-measure correlation + Secondary-measure weighted mean: Two-measure correlation + Secondary-measure weighted mean for supplied tourism observations records (visitor_count, overnight_stays). 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 correlation result quantifying the linear relationship between visitor_count and overnight_stays across the submitted rows, and (2) a weighted mean value for the secondary measure (overnight_stays), computed locally using shared analytical engines with no external data access.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "region",
     "date",
     "visitor_count",
     "overnight_stays"
    ],
    "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
     },
     "visitor_count": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "overnight_stays": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "region": "group-a",
     "row_id": "row-1",
     "visitor_count": 10,
     "overnight_stays": 1
    },
    {
     "date": "2026-10-02",
     "region": "group-b",
     "row_id": "row-2",
     "visitor_count": 20,
     "overnight_stays": 2
    },
    {
     "date": "2026-10-03",
     "region": "group-a",
     "row_id": "row-3",
     "visitor_count": 15,
     "overnight_stays": 3
    },
    {
     "date": "2026-10-04",
     "region": "group-b",
     "row_id": "row-4",
     "visitor_count": 30,
     "overnight_stays": 4
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "visitor_count",
    "overnight_stays"
   ],
   "type": "string",
   "default": "visitor_count"
  }
 }
}
```

## More

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