{"uid":"cap_g3WmLHX6f8_ztUp5nFS-s","slug":"numora-chi-square-computation-fd8be062","name":"Numora Chi-Square Computation","description":"100 pure math computation endpoints for AI agents. Statistics, financial math, linear algebra, equation solving, calculus, number theory, sequence generation, and unit conversions. Zero external dependencies. x402 micropayments on Base.","url":"https://numormor.netlify.app/api/statistics/chisquare","method":"POST","headers":{},"bodySchema":{"type":"object","required":["observed"],"properties":{"expected":{"type":"array"},"observed":{"type":"array"}}},"responseSchema":{"type":"object","required":["success","result","computation"],"properties":{"result":{"type":"object","description":"Computation result varies by endpoint"},"success":{"type":"boolean","description":"Always true on success"},"computation":{"type":"string","description":"Human-readable description of what was computed"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.1","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":{"p10Cents":"10.0000","medianCents":"10.0000","p90Cents":"10.0000","minCents":"10.0000","maxCents":"10.0000","p95Cents":"10.0000","sampleCount":1,"varies":false,"failureChargeRate":1},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.1/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lhH7FG9zgLWxzx9op_r2q","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes the chi-square statistic from observed (and optionally expected) frequency arrays","exampleAgentPrompt":"Run a chi-square goodness-of-fit test on these observed counts [10, 20, 30, 40] against these expected counts [25, 25, 25, 25] and tell me the test statistic and whether the difference is significant.","exampleUseCases":null,"resultDescription":"Returns a JSON object with success:true, a result object containing the chi-square statistic, degrees of freedom, and p-value, plus a human-readable computation description string explaining what was calculated.","failureModes":["Missing required 'observed' array returns validation error","Mismatched lengths between observed and expected arrays cause computation error","Non-numeric values in arrays cause parse/type errors","Empty arrays return error or undefined result","Payment failure (x402) blocks request if USDC balance insufficient"],"whenToPreferThis":"Use this endpoint when you need a fast, dependency-free chi-square computation without setting up a local statistics library. Ideal for AI agents doing quick hypothesis tests on categorical data, goodness-of-fit checks, or independence tests where micropayment-per-call economics are acceptable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:32:43.852Z","isFirstParty":false}