# Chi-Square Goodness-of-Fit Test API

> Chi-Square Goodness-of-Fit Test API is a paid API for AI agents from kihustle.tech, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Computes a chi-square goodness-of-fit test comparing observed frequency counts to expected frequency counts

## Facts

- Endpoint: POST https://kihustle.tech/agents/api/v1/chi-square-goodness?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chi-square-goodness-of-fit-test-api-f9691ab6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mt2BYleX63MYPATAUKWb5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability chi-square-goodness-of-fit-test-api-f9691ab6 -d '<json body>'
```

Example prompt: 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].

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "expected": {
   "type": "array",
   "items": {
    "type": "number"
   }
  },
  "observed": {
   "type": "array",
   "items": {
    "type": "number"
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": "processed",
  "status": "success"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chi-square-goodness-of-fit-test-api-f9691ab6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kihustle.tech](https://www.zero.xyz/host/kihustle.tech/llms.txt)
