# Travel Administration — Two-Measure Correlation + Secondary-Measure Weighted Mean

> Travel Administration — 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-29).

Computes Pearson correlation between trip_count and recorded_cost, plus a weighted mean of a selected secondary measure, across up to 200 travel administration records.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-operations-14-181?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/travel-administration-two-measure-correlation-secondary-measure-0a50a88c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mUXp-gzVrWFl4fxGsEiED

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 travel-administration-two-measure-correlation-secondary-measure-0a50a88c -d '<json body>'
```

Example prompt: Can you run a correlation analysis between trip_count and recorded_cost, plus compute the weighted mean of trip_count, for these travel records: team-a had 10 trips costing $500 on 2024-01-01, team-b had 20 trips costing $800 on 2024-01-02, and team-a had 15 trips costing $620 on 2024-01-03?

## When to prefer this

Choose this endpoint when you have up to 200 travel administration records with trip counts and costs and need both a correlation coefficient and a weighted mean in a single cheap ($0.01 USDC) call, with no need for live data, predictions, or external enrichment. It is ideal for lightweight, self-contained statistical reporting on local datasets where you want two distinct analytical outputs in one request.

## Known failure modes

- More than 200 rows submitted — request rejected or truncated
- Missing required fields (row_id, date, trip_count, recorded_cost) cause validation errors
- Null values in both measure columns may produce undefined correlation
- Invalid date format (not YYYY-MM-DD) causes schema validation failure
- Insufficient variance in one measure may yield correlation of NaN or undefined
- Invalid enum value for 'field' parameter causes rejection

## How this service works

Travel administration — Two-measure correlation + Secondary-measure weighted mean: Two-measure correlation + Secondary-measure weighted mean for supplied travel administration records (trip_count, recorded_cost). 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 correlation coefficient between the trip_count and recorded_cost columns across all supplied rows, and (2) a weighted mean for the selected secondary measure field (trip_count or recorded_cost). All computation is local with no external lookups or predictions.

## Request schema (JSON Schema)

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

## More

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