# Chi-Square Goodness-of-Fit Test

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

Performs a chi-square goodness-of-fit statistical test comparing observed frequencies to expected frequencies

## Facts

- Endpoint: POST https://kihustle.tech/nexus/api/v1/chi-square-goodness
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chi-square-goodness-of-fit-test-3344b51d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gbFFIH6fRfLlpjcIDOBv6

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-3344b51d -d '<json body>'
```

Example prompt: Run a chi-square goodness-of-fit test for me — my observed counts are [52, 48, 60, 40] and I expected them to be evenly distributed at [50, 50, 50, 50].

## When to prefer this

Use this endpoint when you need a quick, cheap statistical computation to test whether observed categorical frequencies match a theoretically expected distribution. Suitable for automated pipelines needing hypothesis testing at scale without spinning up a local statistics library.

## Known failure modes

- Mismatched array lengths between observed and expected arrays may cause errors
- Non-numeric values in arrays will likely cause computation failure
- Empty arrays may return an error or unexpected result
- Expected frequencies of zero could cause division-by-zero issues in chi-square calculation
- Very large arrays may time out

## 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 whether the chi-square test was processed and a status field confirming success. Note: the response schema is minimal and may not include the full chi-square statistic, p-value, or degrees of freedom in the current implementation.

## 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-3344b51d/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)
