# Customer Segment Observations — IQR Outlier Flags + Secondary-Measure Weighted Mean

> Customer Segment Observations — IQR Outlier Flags + 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-20).

Runs two local analytical reports on customer segment data: IQR-based outlier detection on account_count or revenue_amount, plus a secondary-measure weighted mean calculation.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-company-16-177?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/customer-segment-observations-iqr-outlier-flags-secondary-measure-ddc2e29d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nCE3W59zy-VlTETj3pcdu

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 customer-segment-observations-iqr-outlier-flags-secondary-measure-ddc2e29d -d '<json body>'
```

Example prompt: I have customer segment observations for groups A and B across several dates — can you run IQR outlier detection and a weighted mean on the account_count field for these rows: row-1 group-a 2026-10-01 accounts=10 revenue=1000, row-2 group-b 2026-10-02 accounts=200 revenue=2000, row-3 group-a 2026-10-03 accounts=15 revenue=1500?

## When to prefer this

Choose this endpoint when you need both IQR-based outlier detection and a weighted mean computed together in a single paid call on customer segment data containing account_count and revenue_amount fields grouped by company. Ideal for batch statistical analysis of up to 200 segment observations without needing an external analytics platform. Best when data is already structured with row IDs, dates, and company group labels.

## Known failure modes

- Fewer than 1 row submitted — minimum row count not met
- More than 200 rows submitted — exceeds maximum batch size
- Missing required fields (row_id, company_group, date, account_count, revenue_amount) on any row
- Invalid date format (must match YYYY-MM-DD pattern)
- Payment not provided or insufficient USDC (requires 0.01 USDC)
- Numeric values outside allowed range (-1,000,000,000,000 to 1,000,000,000,000)
- Invalid field enum value — must be 'account_count' or 'revenue_amount'

## How this service works

Customer segment observations — IQR outlier flags + Secondary-measure weighted mean: IQR outlier flags + Secondary-measure weighted mean for supplied customer segment observations records (account_count, revenue_amount). 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 for the submitted rows: (1) IQR outlier flags identifying which rows fall outside the interquartile range for the selected measure, and (2) a secondary-measure weighted mean calculation. Both reports are computed locally from the supplied data with no external lookups.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/customer-segment-observations-iqr-outlier-flags-secondary-measure-ddc2e29d/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)
