{"uid":"cap_TTd1f4rgyykIVxoFrn1yD","slug":"sampling-observations-trailing-mean-series-secondary-measure-weighted-7883920a","name":"Sampling Observations — Trailing Mean Series + Secondary-Measure Weighted Mean","description":"Sampling observations — Trailing mean series + Secondary-measure weighted mean: Trailing mean series + Secondary-measure weighted mean 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-151?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_w9CsjmaNyhWhRBemLvSwv","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 (rolling) mean time series and a secondary-measure weighted mean over up to 200 user-supplied sampling observation rows in a single paid call.","exampleAgentPrompt":"Can you calculate both a trailing mean series with a window of 3 and the secondary-measure weighted mean for these sampling observations — I have rows with dates from 2026-10-01 to 2026-10-04, values like 10, 20, 15, 30 and weights 1, 2, 3, 4 across groups 'group-a' and 'group-b', and I want to run the analysis on the sample_value field?","exampleUseCases":[{"title":"Rolling average smoothing for survey data","prompt":"I have 50 weekly survey response scores with their associated weights, grouped by region. Can you compute a trailing mean series with a window of 5 on the sample_value field so I can see the smoothed trend over time?"},{"title":"Weight-adjusted mean for quality sampling","prompt":"I've got 120 quality-control sample readings from our factory floor, each with a measurement value and an inspection weight. Can you calculate the secondary-measure weighted mean across all those records to get a weight-adjusted average quality score?"},{"title":"Grouped time-series analysis for experiment data","prompt":"We ran an A/B experiment and collected 80 daily observation rows across two groups with numeric outcomes and sample weights. Please run both the trailing mean series with a window of 7 and the weighted mean on the sample_value field so I can compare smoothed trends and weighted averages for each group."}],"resultDescription":"Returns two reports in a single response: (1) a trailing (rolling) mean series computed over the specified window size for the chosen field across all submitted rows, and (2) a secondary-measure weighted mean that uses sample_weight as the weighting factor for sample_value (or vice versa). Both reports are produced locally from the submitted data with no external lookups. Results cover up to 200 input rows.","failureModes":["Missing required fields (row_id, dataset_group, date, sample_value, sample_weight) return validation errors","Dates not matching YYYY-MM-DD pattern cause schema validation failure","Submitting more than 200 rows exceeds maxItems limit and is rejected","Window size below 2 or above 200 is rejected by schema validation","Null values in sample_value or sample_weight may produce partial or NaN results in calculations","Payment failure via x402 protocol prevents call execution"],"whenToPreferThis":"Choose this endpoint when you need both a rolling/trailing mean time series AND a weighted mean computed from the same set of sampling observation records in a single low-cost call ($0.01 USDC). It is ideal for offline/batch analytical work on up to 200 rows where no live data lookup, external prediction, or professional assessment is needed — just local statistical computation on supplied data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-15T12:38:54.154Z","isFirstParty":false,"canonicalSlug":"sampling-observations-trailing-mean-series-secondary-measure-weighted-7883920a"}