Goodness-of-Fit Procedure

Calculating the Test Statistic

The Problem

Example #463: Let us have a 4-sided die. Let us, furthermore, hypothesize that the die is fair. To test this hypothesis, we collect data. In this case, that data consists of rolling that die 29 times and recording which face came up each time. Here is the data summarized in tabular form:

Summarized data from rolling the 4-sided die 29 times.
Die Face 1234
Frequency 9866

With this information, calculate the test statistic corresponding to the null hypothesis that this die is fair. Note that the faces of a fair die are equally likely. Thus, \(p_i = 1/g = 1/ 4 = 0.25\).

Information given:

To summarize the above, the values of import are:

Summary statistics from the problem
\( x_1 \)=
\( x_2 \)=
\( x_3 \)=
\( x_4 \)=
 
\( \mu_1 \)=
\( \mu_2 \)=
\( \mu_3 \)=
\( \mu_4 \)=

It may be helpful if you calculate these values yourself. Once you have, you can check your answers by hovering your mouse over the grey spaces to see if you calculated them correctly.

Your Answer

In the box below, please enter the test statistic for the null hypothesis and the data given above. Once you have done so, click on the “Check your answer!” button. Please round your answer to the ten-thousandths place.

Assistance

Show Formula

Show Solution

Show the R Code

Show the Excel Code

© Ole J. Forsberg, Ph.D. 2024. All rights reserved.   .