{"uid":"cap_UUV1ZWMdVP0ntppmxYh8m","slug":"margin-of-safety-iqr-outlier-flags-calculator-fa8b272a","name":"Margin of Safety IQR Outlier Flags Calculator","description":"Margin of safety - IQR outlier flags: Flag observations beyond 1.5 times the interquartile range; statistical flags are not errors or fraud findings. Metric: Margin of safety. Supplied figures only; returns JSON with formula, units and limitations. One of 50 calculators with 20 analysis modes. No live feed, financial advice or trade execution. 0.01 USDC includes one bounded iqr outlier flags report.","url":"https://market.datapackvibe.com/x402/assistant-finance-margin-safety-outliers?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["actual_sales","break_even_sales"],"properties":{"actual_sales":{"type":"number","default":10000,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period","exclusiveMinimum":0},"break_even_sales":{"type":"number","default":7000,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period"}},"additionalProperties":false},"default":[{"actual_sales":10000,"break_even_sales":7000},{"actual_sales":11000,"break_even_sales":7700.000000000001},{"actual_sales":10000,"break_even_sales":7000},{"actual_sales":11000,"break_even_sales":7700.000000000001}],"maxItems":200,"minItems":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_z4TrpxMyE1gcqF2zHkI9j","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":"Flags observations where the margin of safety metric falls beyond 1.5× the interquartile range, identifying statistical outliers across a supplied dataset.","exampleAgentPrompt":"I have 6 periods of sales data — actual sales of 10000, 11000, 9500, 50000, 10500, 10200 and break-even sales of 7000, 7700, 6650, 7500, 7350, 7140 — can you run the IQR outlier flags analysis on the margin of safety for these and tell me which observations are statistical outliers?","exampleUseCases":[{"title":"Quarterly margin of safety outlier audit","prompt":"Here are 8 quarters of actual and break-even sales figures for our retail division — can you flag which quarters have a margin of safety that's a statistical outlier using the 1.5 IQR method? Actual sales: 120000, 135000, 118000, 400000, 122000, 130000, 125000, 119000; break-even sales: 84000, 94500, 82600, 88000, 85400, 91000, 87500, 83300."},{"title":"Detecting data entry errors in sales records","prompt":"We think someone may have entered a wrong figure in our monthly sales records. Can you run the IQR outlier flags check on margin of safety across these 5 months — actual: 50000, 52000, 49000, 51000, 5200000; break-even: 35000, 36400, 34300, 35700, 36000 — and flag anything that looks statistically anomalous?"},{"title":"Multi-store break-even performance comparison","prompt":"I have margin of safety data for 10 store locations — actual sales are 200000, 210000, 195000, 205000, 198000, 215000, 203000, 199000, 600000, 207000 and break-even sales are 140000, 147000, 136500, 143500, 138600, 150500, 142100, 139300, 145000, 144900 — please flag which stores are IQR outliers on margin of safety."}],"resultDescription":"A JSON report containing the formula used to compute margin of safety, the IQR-based outlier threshold, a flag for each input row indicating whether it is an outlier (beyond 1.5× IQR from the nearest quartile), the units of measurement, and a limitations disclaimer clarifying these are statistical flags rather than error or fraud findings.","failureModes":["Fewer than 2 rows supplied — minimum required is 2 observations","actual_sales value of 0 or negative — must be exclusively greater than 0","Values exceeding the maximum of 1,000,000,000,000 will be rejected","More than 200 rows supplied — dataset exceeds maxItems limit","Missing required fields actual_sales or break_even_sales on any row — returns validation error","Inconsistent currency or reporting periods across rows will produce statistically meaningless but technically valid output"],"whenToPreferThis":"Use this endpoint when you need a quick, bounded statistical check on whether any margin of safety observations in a multi-period or multi-entity dataset are extreme relative to the rest of the group, using the standard 1.5×IQR method. Prefer it over manual analysis when you have 2–200 rows of actual vs break-even sales and want a structured JSON report with formula and limitations included. Do not use if you need real-time market data, financial advice, fraud detection findings, or trade execution.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:58:35.856Z","isFirstParty":false,"canonicalSlug":"margin-of-safety-iqr-outlier-flags-calculator-fa8b272a"}