{"uid":"cap_ARcfcydih-UaUPOy5_-8D","slug":"data-freshness-two-measure-correlation-and-secondary-measure-weighted-7638e981","name":"Data Freshness Two-Measure Correlation and Secondary-Measure Weighted Mean","description":"Data freshness — Two-measure correlation + Secondary-measure weighted mean: Two-measure correlation + Secondary-measure weighted mean for supplied data freshness records (age_minutes, record_count). 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-06-181?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","age_minutes","record_count"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"age_minutes":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"record_count":{"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","age_minutes":10,"record_count":1,"dataset_group":"group-a"},{"date":"2026-10-02","row_id":"row-2","age_minutes":20,"record_count":2,"dataset_group":"group-b"},{"date":"2026-10-03","row_id":"row-3","age_minutes":15,"record_count":3,"dataset_group":"group-a"},{"date":"2026-10-04","row_id":"row-4","age_minutes":30,"record_count":4,"dataset_group":"group-b"}],"maxItems":200,"minItems":1},"field":{"enum":["age_minutes","record_count"],"type":"string","default":"age_minutes"}}},"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_9dryD4GiyVDx_O2EOI2so","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 correlation between age_minutes and record_count, plus a weighted mean of a chosen secondary measure, across up to 200 data freshness records in a single paid call.","exampleAgentPrompt":"Run a two-measure correlation and weighted mean on my data freshness records — I have rows with age_minutes and record_count across two groups, group-a and group-b, for dates 2026-10-01 through 2026-10-04, and I want the secondary weighted mean computed on age_minutes.","exampleUseCases":[{"title":"Pipeline freshness health check","prompt":"I have up to 50 rows of freshness logs from my ETL pipelines — each has a date, dataset group name, age in minutes, and record count. Can you run a correlation between age_minutes and record_count and also give me a weighted mean for age_minutes across all of them?"},{"title":"Dataset group staleness comparison","prompt":"I want to understand if older data tends to have fewer records across my monitoring groups. I have 120 rows with dates, group labels, age_minutes, and record_count — please compute the two-measure correlation and the weighted mean on record_count."},{"title":"Freshness metric summary for weekly report","prompt":"For my weekly data quality report, can you take these 80 freshness records covering group-a and group-b and give me both the correlation between age and record count, and a weighted mean of age_minutes?"}],"resultDescription":"Returns two statistical reports: (1) a Pearson correlation coefficient between age_minutes and record_count across the submitted rows, and (2) a weighted mean of the selected secondary measure (age_minutes or record_count), computed locally without any external lookup or live data access.","failureModes":["More than 200 rows submitted — request will be rejected or truncated","Missing required fields (row_id, dataset_group, date, age_minutes, record_count) cause validation errors","Null values in age_minutes or record_count may reduce effective sample size for correlation","Invalid date format (non-YYYY-MM-DD) triggers schema validation failure","Payment not included or insufficient USDC causes 402 rejection before processing"],"whenToPreferThis":"Choose this endpoint when you have your own tabular data freshness records (age_minutes, record_count) and need two lightweight statistical outputs — a correlation and a weighted mean — in a single inexpensive call, without needing live data lookup, prediction, or external enrichment. Ideal for data engineers monitoring pipeline freshness who want a quick statistical snapshot on up to 200 rows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:39:28.474Z","isFirstParty":false,"canonicalSlug":"data-freshness-two-measure-correlation-and-secondary-measure-weighted-7638e981"}