{"uid":"cap_Ks_ZPDBdjIoeWyX78tusv","slug":"record-routing-analytics-trailing-mean-series-two-measure-correlation-14bae6b3","name":"Record Routing Analytics: Trailing Mean Series + Two-Measure Correlation","description":"Record routing — Trailing mean series + Two-measure correlation: Trailing mean series + Two-measure correlation for supplied record routing records (accepted_records, rejected_records). 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-19-150?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","accepted_records","rejected_records"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"dataset_group":{"type":"string","default":"","maxLength":80},"accepted_records":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"rejected_records":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","dataset_group":"group-a","accepted_records":10,"rejected_records":1},{"date":"2026-10-02","row_id":"row-2","dataset_group":"group-b","accepted_records":20,"rejected_records":2},{"date":"2026-10-03","row_id":"row-3","dataset_group":"group-a","accepted_records":15,"rejected_records":3},{"date":"2026-10-04","row_id":"row-4","dataset_group":"group-b","accepted_records":30,"rejected_records":4}],"maxItems":200,"minItems":1},"field":{"enum":["accepted_records","rejected_records"],"type":"string","default":"accepted_records"},"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_FCd7vuiEmJUMys-NTye2R","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 Pearson/correlation analysis for accepted_records and rejected_records data supplied by the caller, using local analytical engines with no external lookups.","exampleAgentPrompt":"Run a trailing mean and correlation analysis on my record routing data — here are 4 rows with dates from 2026-10-01 to 2026-10-04, accepted_records values of 10, 20, 15, 30 and rejected_records of 1, 2, 3, 4, grouped into group-a and group-b, using a window of 2 and the accepted_records field.","exampleUseCases":[{"title":"Data pipeline acceptance rate trend","prompt":"I have daily record routing logs for the past month with accepted and rejected counts per group — can you compute a trailing mean series with a window of 7 over accepted_records so I can see the smoothed acceptance trend?"},{"title":"Correlation between accepted and rejected records","prompt":"For this dataset of 50 record routing rows across two groups, I want to know how strongly accepted_records and rejected_records correlate with each other — run the two-measure correlation report for me."},{"title":"Detect anomalies in rejection spikes","prompt":"I've got 120 rows of daily record routing data split across three dataset groups — run a trailing mean analysis with a window of 5 on rejected_records so I can spot where rejection rates deviate from the rolling baseline."}],"resultDescription":"Returns two analytical reports: (1) a trailing mean time series for the chosen field (accepted_records or rejected_records) computed over the specified rolling window across up to 200 rows, and (2) a two-measure correlation report quantifying the statistical relationship between accepted_records and rejected_records. All computation is performed locally with no external data fetching.","failureModes":["Fewer than 1 row provided — rejected with validation error","Window size larger than number of rows — may produce empty or sparse trailing mean output","Null values in accepted_records or rejected_records — may reduce effective row count for correlation","Invalid date format not matching YYYY-MM-DD — schema validation failure","More than 200 rows submitted — request rejected, maxItems exceeded","Invalid field enum value — schema validation error"],"whenToPreferThis":"Choose this endpoint when you have up to 200 rows of record routing data (with accepted and rejected counts) and need both a rolling/trailing mean time series AND a correlation analysis between the two measures in a single low-cost call ($0.01 USDC). Prefer it over generic statistics APIs when your data fits the accepted_records/rejected_records schema and you want two bundled analytical reports without external data dependencies or live lookups.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T18:51:30.739Z","isFirstParty":false,"canonicalSlug":"record-routing-analytics-trailing-mean-series-two-measure-correlation-14bae6b3"}