How to Perform a Chi-Square Test by Hand (Step-by-Step)

A chi-square test by hand is a statistical technique used to compare observed data to expected data. The process involves calculating the chi-square statistic, its degrees of freedom, and the critical value. If the chi-square statistic is greater than the critical value, the null hypothesis is rejected and the alternative hypothesis is accepted. This process can be done by hand by first calculating the expected values and then the observed values, and subtracting the observed values from the expected values. The differences are then squared and divided by the expected values. The resulting values are summed and the chi-square statistic is calculated. The degrees of freedom can then be determined and the critical value can be looked up in a chi-square table. Finally, the chi-square statistic can be compared to the critical value to determine the outcome of the test.


A Chi-Square goodness of fit test is used to determine whether or not a follows a hypothesized distribution.

The following step-by-step example shows how to perform a Chi-Square goodness of fit test by hand.

Chi-Square Goodness of Fit Test By Hand

Suppose we believe that a certain dice is fair. In other words, we believe the dice is equally likely to land on a 1, 2, 3, 4, 5, or 6 on a given roll.

To test this, we we roll it 60 times and record the number that it lands on each time. The results are as follows:

  • 1: 8 times
  • 2: 12 times
  • 3: 18 times
  • 4: 9 times
  • 5: 7 times
  • 6: 6 times

Use the following steps to perform a Chi-Square goodness of fit test to determine if the dice is fair.

Step 1: Define the Null and Alternative Hypotheses

  • H0 (null): The dice is equally likely to land on each number.
  • H1 (alternative) : The dice is not equally likely to land on each number.

Step 2: Calculate the Observed and Expected Frequencies

Next, let’s create a table of observed and expected frequencies for each number on the dice:

Note: If we believe the dice is fair, this means we expect it to land on each number an equal amount of times – in this case, 10 times each. 

Step 3: Calculate the Test Statistic

The Chi-Square test statistic, X2, is calculated as:

  • X2 = Σ(O-E)2 / E

The following table shows how to calculate this test statistic:

In this case, X2 turns out to be 9.8.

Step 4: Find the Critical Value

Next, we need to find the critical value in the that corresponds to α = .05 and df = (#categories – 1).

In this case, there are 6 categories, so we will use df = 6 – 1 = 5.

We can see that the critical value is 11.07.

Step 5: Reject or Fail to Reject the Null Hypothesis

Since our test statistic is less than the critical value, we fail to reject the null hypothesis. This means we do not have sufficient evidence to say that the dice is unfair.

The following resources offer additional information on the Chi-Square goodness of fit test:

x