{"uid":"cap_e1689FSSjsa_BpkQci3lW","slug":"numora-chi-square-test-api-3d88fa7e","name":"Numora Chi-Square Test API","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://numormo.vercel.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":"registry","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.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_qKYeaL14BUIVMDfsa3uLO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a chi-square goodness-of-fit or independence test given observed (and optionally expected) frequency arrays","exampleAgentPrompt":"Run a chi-square goodness-of-fit test on my observed counts [50, 30, 20] against expected counts [40, 35, 25] and tell me the chi-square statistic and whether the result is statistically significant.","exampleUseCases":[{"title":"A/B test categorical outcome analysis","prompt":"I ran an A/B test and got these click counts across three button colors: observed [120, 85, 95] vs expected equal distribution [100, 100, 100]. Run a chi-square test and tell me if the differences are statistically significant."},{"title":"Survey response distribution check","prompt":"I surveyed 200 people on their favorite product category and got observed counts [80, 60, 40, 20]. I expected a uniform distribution of 50 each. Does my observed data fit the expected distribution — run a chi-square goodness-of-fit test."},{"title":"Dice fairness verification","prompt":"I rolled a six-sided die 600 times and got these face counts: [95, 105, 98, 102, 97, 103]. Run a chi-square test against the expected uniform frequency of 100 per face to check if the die is fair."}],"resultDescription":"Returns a JSON object with success: true, a result object containing the chi-square statistic, degrees of freedom, p-value, and whether the result is significant, plus a human-readable computation string describing what was calculated.","failureModes":["Missing required 'observed' array returns a 400 error","Mismatched array lengths between observed and expected cause a computation error","Non-numeric values in arrays cause parsing errors","Empty arrays return an error or undefined result","Payment failure via x402 returns 402 Payment Required before computation"],"whenToPreferThis":"Use this endpoint when you need a quick, dependency-free chi-square computation without setting up a statistics library or data science environment. Ideal for AI agents that need on-the-fly hypothesis testing on categorical data with micropayment-based access. Prefer this over full stats platforms when you only need a single chi-square result and want deterministic, serverless math.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:48:06.751Z","isFirstParty":false}