{"uid":"cap_mt2BYleX63MYPATAUKWb5","slug":"chi-square-goodness-of-fit-test-api-f9691ab6","name":"Chi-Square Goodness-of-Fit Test API","description":"Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.","url":"https://kihustle.tech/agents/api/v1/chi-square-goodness?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"expected":{"type":"array","items":{"type":"number"}},"observed":{"type":"array","items":{"type":"number"}}}},"responseSchema":{"type":"json","example":{"result":"processed","status":"success"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_egu-DiDquinc-Pzw01e0L","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a chi-square goodness-of-fit test comparing observed frequency counts to expected frequency counts","exampleAgentPrompt":"Run a chi-square goodness-of-fit test for me — my expected frequencies are [25, 25, 25, 25] and my observed counts came out to [30, 20, 28, 22].","exampleUseCases":[{"title":"Fairness test for a dice game","prompt":"I want to check if my six-sided die is fair — I rolled it 120 times and got these observed counts per face: [18, 22, 19, 21, 20, 20]. The expected count for each face is 20. Can you run a chi-square goodness-of-fit test on that?"},{"title":"Survey response distribution check","prompt":"I ran a survey with 4 answer options and expected an even split of 50 responses each. The actual responses were [62, 41, 55, 42]. Can you do a chi-square test to see if the distribution matches what I expected?"},{"title":"A/B test category distribution validation","prompt":"I'm checking whether traffic across 5 campaign categories matches our projected distribution. Expected values are [100, 150, 200, 100, 50] and observed values are [110, 140, 195, 105, 50] — please run a chi-square goodness-of-fit test."}],"resultDescription":"Returns a JSON object with a 'result' field indicating the test outcome and a 'status' field confirming whether the computation was successful. Likely includes the chi-square statistic and possibly a p-value or pass/fail determination on the distribution fit.","failureModes":["Mismatched array lengths between expected and observed arrays — likely returns an error","Zero values in expected array causing division-by-zero in chi-square computation","Empty arrays provided — likely returns a validation error","Non-numeric values in the arrays causing parse failures","Sum of observed frequencies not matching sum of expected frequencies — may produce misleading results","Network timeout or service unavailability"],"whenToPreferThis":"Use this endpoint when you need a quick, paid statistical computation of a chi-square goodness-of-fit test without setting up a local stats library. Suitable for lightweight agent workflows that need on-demand hypothesis testing against categorical frequency data. Prefer local computation (scipy, R) for large datasets or when chaining with other statistical tests.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:37:07.760Z","isFirstParty":false,"canonicalSlug":"chi-square-goodness-of-fit-test-api-f9691ab6"}