{"uid":"cap_Ik-5SukQftLT24-iE_m_v","slug":"24k-labs-stats-toolkit-7fb9cd42","name":"24K Labs Stats Toolkit","description":"One call for mean/median/mode, stddev/variance, quartiles/percentiles, z-scores, IQR and z-score outlier flags; optional Pearson correlation and linear regression against a second series.","url":"https://api.24klabs.ai/api/stats-toolkit","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"array"}}},"responseSchema":{"type":"json","example":{"mean":5,"stdev":2,"median":4.5,"outliers":[]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_36at-pnUIqRN9uMoxvD88","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes descriptive statistics (mean/median/mode, stddev/variance, quartiles/percentiles, z-scores, IQR), flags outliers, and optionally computes Pearson correlation and linear regression against a second data series.","exampleAgentPrompt":"Give me a full statistical summary of this dataset — [12, 15, 14, 10, 100, 13, 11, 14, 15, 12] — including mean, median, mode, standard deviation, quartiles, z-scores, and flag any outliers using both IQR and z-score methods. Also run a Pearson correlation and linear regression against a second series [1,2,3,4,5,6,7,8,9,10].","exampleUseCases":[{"title":"Outlier detection in sensor data","prompt":"I have a list of temperature readings from my IoT sensors — [22.1, 21.8, 22.5, 22.0, 75.3, 21.9, 22.2, 22.4] — can you calculate the full stats summary and flag any outliers using both z-score and IQR methods?"},{"title":"Correlating marketing spend and revenue","prompt":"I want to know if my weekly ad spend correlates with weekly revenue — ad spend is [500, 800, 600, 1200, 900, 1100] and revenue is [4200, 6100, 4800, 9500, 7100, 8800]. Can you compute the Pearson correlation and fit a linear regression so I can see the relationship?"},{"title":"Summarizing exam score distribution","prompt":"Here are exam scores for my class: [45, 67, 72, 55, 88, 91, 60, 74, 82, 49, 95, 58]. Can you give me the mean, median, mode, standard deviation, quartiles, the 25th and 75th percentiles, and tell me if any scores are statistical outliers?"}],"resultDescription":"Returns a JSON object containing descriptive statistics (mean, median, mode, standard deviation, variance), quartiles, requested percentile values, z-scores for each data point, IQR value, outlier flags (IQR-based and/or z-score-based), and optionally Pearson correlation coefficient and linear regression slope/intercept against a second series.","failureModes":["Empty or non-numeric array returns validation error","Single-element array may produce undefined stddev or mode","Non-numeric values in array cause parse/type error","Second series of mismatched length causes regression/correlation error","Extremely large arrays may hit payload size limits","Missing required data field returns 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need a comprehensive, single-call statistical summary of a numeric dataset rather than computing individual statistics separately. It is ideal for data quality checks, exploratory data analysis, outlier detection pipelines, or whenever you need correlation and regression alongside descriptive stats without stitching together multiple tools. Prefer it over general-purpose LLM math when you need precise, reproducible numerical results.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:57:17.086Z","isFirstParty":false}