{"uid":"cap_MNbLsCz6h7TLjn9uZeE-n","slug":"sampling-observations-trailing-mean-series-two-measure-correlation-27df4cdf","name":"Sampling Observations — Trailing Mean Series + Two-Measure Correlation","description":"Sampling observations — Trailing mean series + Two-measure correlation: Trailing mean series + Two-measure correlation for supplied sampling observations records (sample_value, sample_weight). 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-15-150?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","sample_value","sample_weight"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"sample_value":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"dataset_group":{"type":"string","default":"","maxLength":80},"sample_weight":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","sample_value":10,"dataset_group":"group-a","sample_weight":1},{"date":"2026-10-02","row_id":"row-2","sample_value":20,"dataset_group":"group-b","sample_weight":2},{"date":"2026-10-03","row_id":"row-3","sample_value":15,"dataset_group":"group-a","sample_weight":3},{"date":"2026-10-04","row_id":"row-4","sample_value":30,"dataset_group":"group-b","sample_weight":4}],"maxItems":200,"minItems":1},"field":{"enum":["sample_value","sample_weight"],"type":"string","default":"sample_value"},"window":{"type":"integer","default":2,"maximum":200,"minimum":2}}},"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_vSv1m9oPD1_bUsMU9rq8s","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 a trailing mean time series and a two-measure correlation report for up to 200 rows of weighted sampling observations in a single paid call.","exampleAgentPrompt":"Can you run a trailing mean series with a window of 7 and a two-measure correlation report on these sampling observations — I have about 50 rows with sample_value and sample_weight fields, grouped into 'control' and 'treatment' groups, dated from 2025-01-01 to 2025-02-19?","exampleUseCases":[{"title":"QA sensor drift trend analysis","prompt":"I have 120 rows of sensor readings with sample_value and sample_weight tagged by sensor group and date — can you compute a trailing mean series using a window of 5 and also tell me the correlation between sample_value and sample_weight?"},{"title":"Survey response smoothing","prompt":"We ran a weekly survey for 40 weeks and I have each week's average response score as sample_value and response count as sample_weight — please calculate the trailing mean with a window of 4 and show the correlation between those two measures."},{"title":"A/B test sample weight correlation","prompt":"I've got 80 rows of A/B test observations split between 'variant-a' and 'variant-b' groups, with conversion rates as sample_value and traffic volume as sample_weight — run the trailing mean series with window size 3 and tell me how correlated those two fields are."}],"resultDescription":"Returns two reports: (1) a trailing mean time series computed over the specified window for the chosen field (sample_value or sample_weight) across all supplied dated rows, and (2) a two-measure correlation analysis between sample_value and sample_weight across the dataset. Both reports are generated locally from the supplied data with no external lookups.","failureModes":["Fewer than 2 rows supplied — minItems:1 but meaningful trailing mean requires at least window-size rows","Window size larger than number of rows — leading periods will have insufficient data for full window calculation","Null sample_value or sample_weight fields — nullable inputs may reduce effective rows for correlation","Invalid date format (not YYYY-MM-DD) — rejected by pattern validation","Row count exceeds 200 — request rejected with schema validation error","Missing required fields (row_id, dataset_group, date) — request rejected"],"whenToPreferThis":"Choose this endpoint when you need both a rolling/trailing mean time series AND a two-measure correlation between sample_value and sample_weight in a single low-cost call on up to 200 rows of offline sampling data. It is ideal when you want purely local analytical computation with no external data dependencies, predictions, or professional assessments. Prefer it over general-purpose analytics platforms when cost predictability ($0.01 for two reports) and simplicity matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:38:11.170Z","isFirstParty":false,"canonicalSlug":"sampling-observations-trailing-mean-series-two-measure-correlation-27df4cdf"}