{"uid":"cap_JdDqPPKHdWgezhMtoBuTU","slug":"aggregation-checks-two-measure-correlation-secondary-measure-weighted-6e2c8287","name":"Aggregation Checks — Two-Measure Correlation + Secondary-Measure Weighted Mean","description":"Aggregation checks — Two-measure correlation + Secondary-measure weighted mean: Two-measure correlation + Secondary-measure weighted mean for supplied aggregation checks records (source_sum, aggregate_sum). 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-analytics-17-181?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","source_sum","aggregate_sum"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"source_sum":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"aggregate_sum":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"dataset_group":{"type":"string","default":"","maxLength":80}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","source_sum":10,"aggregate_sum":1,"dataset_group":"group-a"},{"date":"2026-10-02","row_id":"row-2","source_sum":20,"aggregate_sum":2,"dataset_group":"group-b"},{"date":"2026-10-03","row_id":"row-3","source_sum":15,"aggregate_sum":3,"dataset_group":"group-a"},{"date":"2026-10-04","row_id":"row-4","source_sum":30,"aggregate_sum":4,"dataset_group":"group-b"}],"maxItems":200,"minItems":1},"field":{"enum":["source_sum","aggregate_sum"],"type":"string","default":"source_sum"}}},"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_zKRNc7-Tb7T1UBu753Cuv","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":"Computes Pearson/Spearman correlation between source_sum and aggregate_sum, plus a weighted mean of a chosen secondary measure, across up to 200 supplied aggregation-check rows.","exampleAgentPrompt":"I have 150 rows of aggregation check data with source_sum and aggregate_sum values grouped by dataset — can you compute the correlation between those two measures and give me the weighted mean of source_sum across all rows?","exampleUseCases":[{"title":"Financial reconciliation correlation check","prompt":"I've got 80 rows of monthly source-vs-aggregate financial totals by region — run the two-measure correlation on source_sum and aggregate_sum, and also give me the weighted mean for source_sum."},{"title":"Data pipeline quality validation","prompt":"My ETL pipeline produces source_sum and aggregate_sum for each batch — can you analyze the statistical correlation between them across these 200 rows and compute the weighted mean of aggregate_sum to spot systematic drift?"},{"title":"Multi-group aggregation audit","prompt":"I have audit data with source_sum and aggregate_sum split across group-a and group-b over the past quarter — compute the two-measure correlation and weighted mean for aggregate_sum so I can see if the groups are in agreement."}],"resultDescription":"Returns two independent analytical reports: (1) a two-measure correlation coefficient between source_sum and aggregate_sum across the supplied rows, and (2) a weighted mean of the specified field (source_sum or aggregate_sum). Results are computed locally with no external lookup or prediction.","failureModes":["rows array empty or missing — minItems:1 violated","more than 200 rows supplied — maxItems exceeded","date field does not match YYYY-MM-DD pattern","source_sum or aggregate_sum out of range (±1,000,000,000,000)","row_id or dataset_group exceeds maxLength of 80 characters","field enum value not one of source_sum or aggregate_sum","insufficient numeric data (all nulls) to compute correlation or weighted mean"],"whenToPreferThis":"Choose this endpoint when you need both a correlation analysis and a weighted mean computed together in a single paid call on up to 200 rows of aggregation check data (source_sum vs aggregate_sum). It is purpose-built for data reconciliation and aggregation auditing workflows where you want two statistical reports for a single $0.01 USDC fee, with no external data fetching or prediction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:38:55.467Z","isFirstParty":false,"canonicalSlug":"aggregation-checks-two-measure-correlation-secondary-measure-weighted-6e2c8287"}