You are here: Project Scarlet » Statistical Inference » Test Statistic
Goodness-of-Fit Procedure
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:
Die Face | 1 | 2 | 3 | 4 |
---|---|---|---|---|
Frequency | 9 | 8 | 6 | 6 |
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\).
To summarize the above, the values of import are:
\( x_1 \) | = | 9 |
---|---|---|
\( x_2 \) | = | 8 |
\( x_3 \) | = | 6 |
\( x_4 \) | = | 6 |
\( \mu_1 \) | = | 7.25 |
\( \mu_2 \) | = | 7.25 |
\( \mu_3 \) | = | 7.25 |
\( \mu_4 \) | = | 7.25 |
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.
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.
Show Formula
Show Solution
Show the R Code
Show the Excel Code
© Ole J. Forsberg, Ph.D. 2024. All rights reserved. | . | |