# ChiSquaredGoodnessOfFitTestResult

Defined in: [packages/hypothesis-test/src/chi-squared-goodness-of-fit-test.ts:14](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/hypothesis-test/src/chi-squared-goodness-of-fit-test.ts#L14)

## Extends

* [`HypothesisTestResult`](/reference/knotkit/hypothesis-test/interfaces/hypothesistestresult/)

## Properties

### statistic

> `readonly` **statistic**: `number`

Defined in: [packages/hypothesis-test/src/chi-squared-goodness-of-fit-test.ts:16](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/hypothesis-test/src/chi-squared-goodness-of-fit-test.ts#L16)

Sum of squared observed-minus-expected count differences divided by the respective expectations.

#### Overrides

[`HypothesisTestResult`](/reference/knotkit/hypothesis-test/interfaces/hypothesistestresult/).[`statistic`](/reference/knotkit/hypothesis-test/interfaces/hypothesistestresult/#statistic)

***

### method

> `readonly` **method**: `"asymptotic"`

Defined in: [packages/hypothesis-test/src/chi-squared-goodness-of-fit-test.ts:17](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/hypothesis-test/src/chi-squared-goodness-of-fit-test.ts#L17)

#### Overrides

[`HypothesisTestResult`](/reference/knotkit/hypothesis-test/interfaces/hypothesistestresult/).[`method`](/reference/knotkit/hypothesis-test/interfaces/hypothesistestresult/#method)

***

### degreesOfFreedom

> `readonly` **degreesOfFreedom**: `number`

Defined in: [packages/hypothesis-test/src/chi-squared-goodness-of-fit-test.ts:19](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/hypothesis-test/src/chi-squared-goodness-of-fit-test.ts#L19)

Retained categories minus one minus the fitted parameter count.

***

### smallestExpectedCount

> `readonly` **smallestExpectedCount**: `number`

Defined in: [packages/hypothesis-test/src/chi-squared-goodness-of-fit-test.ts:21](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/hypothesis-test/src/chi-squared-goodness-of-fit-test.ts#L21)

Smallest expected count among retained categories after any pooling.

***

### pValue

> `readonly` **pValue**: [`Probability`](/reference/knotkit/distribution/type-aliases/probability/)

Defined in: [packages/hypothesis-test/src/hypothesis-test-result.ts:23](https://github.com/jkomyno/knotkit/blob/ef04dc6fd5182dca281abddf3e1dcb13118c15a4/packages/hypothesis-test/src/hypothesis-test-result.ts#L23)

Null probability of a result at least as extreme as the observed one.

#### Inherited from

[`HypothesisTestResult`](/reference/knotkit/hypothesis-test/interfaces/hypothesistestresult/).[`pValue`](/reference/knotkit/hypothesis-test/interfaces/hypothesistestresult/#pvalue)
