{"uid":"cap_nCE3W59zy-VlTETj3pcdu","slug":"customer-segment-observations-iqr-outlier-flags-secondary-measure-ddc2e29d","name":"Customer Segment Observations — IQR Outlier Flags + Secondary-Measure Weighted Mean","description":"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.","url":"https://market.datapackvibe.com/x402/assistant-ib26-company-16-177?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Ygu-MGDJysoWw0HEYd6C4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Flagging revenue anomalies in segment data","prompt":"I have weekly revenue_amount observations for three company groups over the last quarter — can you run IQR outlier detection and a weighted mean on the revenue_amount field so I can spot which segment weeks had abnormal revenue?"},{"title":"Account count outlier audit for BI report","prompt":"Run an IQR outlier analysis and weighted mean on these account_count records across my company groups — I need to flag any unusual spikes before I publish the monthly BI report. Here are up to 50 rows with row IDs, dates, company_group, account_count, and revenue_amount."},{"title":"Comparing segment balance across company groups","prompt":"Can you analyze this set of customer segment observations — about 80 rows with group labels, dates, account counts, and revenue amounts — and give me IQR outlier flags plus a weighted mean on account_count to see which groups are out of balance?"}],"resultDescription":"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.","failureModes":["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'"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:49:00.276Z","isFirstParty":false,"canonicalSlug":"customer-segment-observations-iqr-outlier-flags-secondary-measure-ddc2e29d"}