{"uid":"cap_7rKNMqJavz6JnsnisLqbL","slug":"duplicate-observations-trailing-mean-iqr-outlier-flags-5a527ddf","name":"Duplicate Observations Trailing Mean & IQR Outlier Flags","description":"Duplicate observations — Trailing mean series + IQR outlier flags: Trailing mean series + IQR outlier flags for supplied duplicate observations records (duplicate_rows, total_rows). 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-04-149?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","dataset_group","date","duplicate_rows","total_rows"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"total_rows":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"dataset_group":{"type":"string","default":"","maxLength":80},"duplicate_rows":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","total_rows":1,"dataset_group":"group-a","duplicate_rows":10},{"date":"2026-10-02","row_id":"row-2","total_rows":2,"dataset_group":"group-b","duplicate_rows":20},{"date":"2026-10-03","row_id":"row-3","total_rows":3,"dataset_group":"group-a","duplicate_rows":15},{"date":"2026-10-04","row_id":"row-4","total_rows":4,"dataset_group":"group-b","duplicate_rows":30}],"maxItems":200,"minItems":1},"field":{"enum":["duplicate_rows","total_rows"],"type":"string","default":"duplicate_rows"},"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_rZQDScYDSnMqEjX7DzKZS","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 flags IQR-based outliers for duplicate_rows or total_rows observations across up to 200 records in two independent analytical reports.","exampleAgentPrompt":"Analyze my duplicate observation records for the 'orders' dataset group — I have 10 rows with dates from 2024-01-01 to 2024-01-10 and duplicate_rows counts ranging from 5 to 120. Use a window of 3 to compute the trailing mean series and flag any IQR outliers in the duplicate_rows field.","exampleUseCases":[{"title":"Data pipeline duplication spike detection","prompt":"I'm seeing some suspicious dates in my ETL logs — can you run a trailing mean with a window of 5 and IQR outlier flags on these 30 days of duplicate_rows counts for the 'transactions' dataset group? I want to know which dates had abnormally high duplicates."},{"title":"Weekly data quality audit for multiple groups","prompt":"Every week I want to check my data quality metrics — here are 50 rows of duplicate_rows and total_rows observations across two dataset groups from the past quarter. Use a window of 4 to compute the trailing mean and flag outliers so I can see where duplication got out of hand."},{"title":"Automated alert triage for duplicate anomalies","prompt":"I got an alert that duplication rates spiked recently. Can you take these 80 observation records for the 'user_events' group and run IQR outlier detection on total_rows with a window of 7 so I can identify which specific dates are statistically anomalous?"}],"resultDescription":"Returns two independent analytical reports per call: (1) a trailing mean time series computed over the specified window for the chosen field (duplicate_rows or total_rows), and (2) IQR-based outlier flags marking which observations fall beyond 1.5× the interquartile range — all derived from the supplied input rows without any external lookups.","failureModes":["Input array exceeds 200 rows — request will be rejected or truncated","Window size larger than number of input rows — trailing mean cannot be computed for early rows","Missing required fields (row_id, date, dataset_group) — validation error returned","Date strings not matching YYYY-MM-DD pattern — schema validation failure","Numeric fields outside allowed range (±1 trillion) — rejected by schema validation","Empty rows array — minimum 1 item required"],"whenToPreferThis":"Choose this endpoint when you need fast, local statistical analysis of duplicate observation records — specifically trailing mean time series and IQR outlier detection — without requiring any external data sources, live lookups, or predictions. It is ideal for data quality monitoring workflows where you supply pre-collected duplicate_rows/total_rows metrics and want two complementary statistical views in a single low-cost call. Prefer it over general-purpose analytics tools when your dataset fits within 200 rows and you want deterministic, reproducible outlier flags based on IQR methodology.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T07:19:41.634Z","isFirstParty":false,"canonicalSlug":"duplicate-observations-trailing-mean-iqr-outlier-flags-5a527ddf"}