Overview

Use a goodness of fit test to check whether observed frequencies match those expected from a theoretical distribution. For example, you might check whether the weights of a sample of adults follow a normal distribution before using a test that assumes normality, or whether counts of insects per leaf follow a Poisson distribution.

Compare discrete frequency data or continuous data with a theoretical distribution, or with any distribution you specify from theory or earlier data.

A histogram of frequency against value, roughly bell-shaped, with the expected normal curve drawn over it, closely following the bars.
Observed frequencies with the expected normal distribution.

Methods

  • Normal distribution
  • Binomial distribution
  • Poisson distribution
  • Uniform distribution
  • Circular distribution
  • User-specified distribution, with your own expected frequencies

Running the analysis

Arrange your data as a column of categories and a column of observed frequencies; for the circular distribution, the categories are angles. Click Goodness of Fit on the statistiXL ribbon and choose the distribution to test against. In the dialog, select your category and frequency ranges and the output location, and set any options. A user-specified test also takes a range of expected frequencies.

The Goodness of Fit button on the statistiXL ribbon with its menu open, listing Binomial, Circular, Normal (highlighted), Poisson, Uniform and User Specified.
The Goodness of Fit menu on the statistiXL ribbon.
The Goodness of Fit - Normal Distribution dialog, with boxes for the category and frequency ranges, a Labels in First Row option, an output range, options to pool expected frequencies below 1 and to output summary tables, and the QuickHelp pane on the right.
The normal distribution Goodness of Fit dialog, with QuickHelp on the right.

What the output includes

The output depends on the distribution tested. It typically includes:

  • A table of observed and expected frequencies and their differences (optional)
  • Chi-square and log-likelihood ratio (G) tests, with degrees of freedom and P values, for the binomial, normal, Poisson and user-specified distributions
  • The Kolmogorov–Smirnov test, for the normal and uniform distributions
  • Tests of skewness and kurtosis, for the normal distribution
  • Rayleigh's Z test, and the V test when an expected angle is given, for the circular distribution
  • A note when too many expected frequencies are small, so that categories can be combined
  • Descriptive statistics and a scatter plot, for the circular distribution (optional)
Normal distribution goodness of fit output in Excel for height. A frequency table lists observed and expected frequencies and their differences for each height class, followed by test results for chi-square (10.297, P of 0.669), log-likelihood (12.032, P of 0.525), Kolmogorov-Smirnov (0.159, P of 0.051), skewness and kurtosis.
Output from a normal distribution goodness of fit test.