Use this calculator from VassarStats to calculate the value of chi-square for a one-way test "goodness of fit" test for up to eight categories:

**http://vassarstats.net/csfit.html**

**Important: **You must enter both observed and expected frequencies. To obtain expected frequencies, simply divide *n *by the number of categories you're working with (since the null hypothesis indicates that each category should be equally represented in your results). So, to perform a chi-square test for the data in Example 1 on page 141 of *Making Sense of Statistics*, you would enter the following:

110 voters indicated that they plan on voting for Candidate Smith, so that's the number you enter as your first observed frequency. 90 candidates indicated that they plan on voting for Candidate Doe, so that's the number you enter as your second observed frequency. Since the null hypothesis states that there is no true difference in the population--that is, that the population of registered voters is evenly split--the number you enter as your expected frequency in each case is 100.

Use this calculator from VassarStats to perform a two-way chi-square "test of independence":

**http://vassarstats.net/tab2x2.html**