**Select menu: Stats | Statistical Tests | Goodness of Fit**

A Goodness of Fit test compares data values with a set of expected values.

## Available Data

Lists the data structures appropriate to the current input field. The contents will change as you move from one field to the next. Double-click a name to copy it into the input field, or type the name in directly.

## Observed Data

Table containing the observed data values.

To create a table click Create Tablethen select a method for populating the table with data: either as a spreadsheet or using grouping factors.

## Expected Frequencies

Table containing the expected frequencies.

To create a table click Create Tablethen select a method for populating the table with data: either as a spreadsheet or using grouping factors.

## Degrees of Freedom

Specify the degrees of freedom. If you enter a value here Genstat can calculate the probability value for the test.

## Method

You can choose between two ways of calculating the test: Pearson uses the familiar method; the alternative, which may be more accurate, is to use Maximum Likelihood.

## Create Table

Lets you create a new table either from existing data or by typing the values into a blank spreadsheet.

## See Also

- CHISQUARE procedure in command mode
- Chi-square Tests of association for contingency tables
- Contingency Table Options
- Contingency Table Save Options
- Summary Tables to create tables from existing data