{"uid":"cap_1wpLteavvYs7gTpm_MuSO","slug":"api-contracts-two-measure-correlation-secondary-measure-weighted-mean-6a44a3b8","name":"API Contracts — Two-Measure Correlation + Secondary-Measure Weighted Mean","description":"API contracts — Two-measure correlation + Secondary-measure weighted mean: Two-measure correlation + Secondary-measure weighted mean for supplied api contracts records (fields_checked, incompatible_fields). 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-software-19-181?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","component","date","fields_checked","incompatible_fields"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"component":{"type":"string","default":"","maxLength":80},"fields_checked":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"incompatible_fields":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","component":"group-a","fields_checked":10,"incompatible_fields":1},{"date":"2026-10-02","row_id":"row-2","component":"group-b","fields_checked":20,"incompatible_fields":2},{"date":"2026-10-03","row_id":"row-3","component":"group-a","fields_checked":15,"incompatible_fields":3},{"date":"2026-10-04","row_id":"row-4","component":"group-b","fields_checked":30,"incompatible_fields":4}],"maxItems":200,"minItems":1},"field":{"enum":["fields_checked","incompatible_fields"],"type":"string","default":"fields_checked"}}},"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_xBZVT_fd716mP5Zt1kOeY","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/rank correlation between fields_checked and incompatible_fields, plus a weighted mean of a chosen secondary measure, across up to 200 API contract records.","exampleAgentPrompt":"I have up to 200 rows of API contract data with fields_checked and incompatible_fields per component and date — can you compute the correlation between those two measures and also give me the weighted mean of fields_checked across all the records?","exampleUseCases":[{"title":"API compatibility audit statistical review","prompt":"I've got a set of API contract audit records — each row has a component name, date, number of fields checked, and number of incompatible fields. Can you run a correlation between fields_checked and incompatible_fields and also compute the weighted mean of incompatible_fields across all 150 rows?"},{"title":"Schema change impact analysis","prompt":"After our last API version bump I have 80 contract check records tagged by component and date. Can you tell me how strongly fields_checked correlates with incompatible_fields, and what the weighted mean of fields_checked looks like across those records?"},{"title":"Multi-team API health comparison","prompt":"I have contract data for two groups — group-a and group-b — across 60 rows, each with fields_checked and incompatible_fields counts. Please compute the correlation between those two measures and give me the weighted mean of incompatible_fields so I can compare team quality."}],"resultDescription":"Returns two analytical reports: (1) a correlation coefficient (and supporting stats) between fields_checked and incompatible_fields across the supplied rows, and (2) a weighted mean of the selected secondary measure (fields_checked or incompatible_fields) across the same dataset. Both reports are computed locally from the supplied data with no external lookups.","failureModes":["Fewer than 1 row supplied — request rejected due to minItems:1 constraint","More than 200 rows supplied — request rejected due to maxItems:200 constraint","Missing required fields (row_id, fields_checked, incompatible_fields, date, component) — validation error","Invalid date format (not YYYY-MM-DD) — schema pattern mismatch","Numeric values outside ±1,000,000,000,000 range — schema validation error","Null values for both measures across all rows — correlation undefined or NaN result"],"whenToPreferThis":"Choose this endpoint when you have up to 200 rows of API contract records with numeric fields_checked and incompatible_fields columns and need two statistical outputs — a correlation and a weighted mean — in a single low-cost call ($0.01 USDC). Ideal for lightweight offline analytics on contract audit exports without needing a full data warehouse or external computation service.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:35:30.049Z","isFirstParty":false,"canonicalSlug":"api-contracts-two-measure-correlation-secondary-measure-weighted-mean-6a44a3b8"}