24 total
We test how well observed data from an experiment fits the expected values from a theoretical distribution. This is crucial for determining whether our data follows a particular probability model.
🔑 Key Concept: A discrete uniform distribution occurs when each outcome is equally likely and has the same probability.
For a hypothesis test, we define:
Critical: Always refer to the specific distribution you are testing in your hypotheses, and ensure your conclusions address the initial problem.
Expected frequency for outcome i:
Ei=N×P(X=xi)
where N is the total number of trials and P(X=xi) is the probability of outcome xi.
The −1 accounts for the constraint that the total observed frequency equals the total expected frequency.
χ2=∑Ei(Oi−Ei)2
where:
Alternative computational formula:
χ2=∑(EiOi2)−N
This form is often more convenient for calculations.
Problem: An experiment is carried out to test whether a die is biased. A die is rolled 180 times with the following observations:
| Number (n) | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| Observed frequency | 29 | 31 | 34 | 39 | 23 | 24 |
Test, at the 5% significance level, whether the die is biased.
Solution:
Step 1: Set up hypotheses
Step 2: Calculate expected frequencies
For a fair die, each outcome has probability 61.
Ei=180×61=30 for each outcomeStep 3: Calculate the test statistic
| Number | Observed (Oi) | Expected (Ei) | Ei(Oi−Ei)2 |
|---|---|---|---|
| 1 | 29 | 30 | 0.0333 |
| 2 | 31 | 30 | 0.0333 |
| 3 | 34 | 30 | 0.5333 |
| 4 | 39 | 30 | 2.7 |
| 5 | 23 | 30 | 1.6333 |
| 6 | 24 | 30 | 1.2 |
χ2=∑Ei(Oi−Ei)2=6.1333
Step 4: Determine degrees of freedom
ν=6−1−0=5
(6 categories, no parameters estimated)
Step 5: Find critical value
From tables: χ52(0.95)=11.07
Step 6: Make decision
Since 6.1333<11.07, there is insufficient evidence to reject H0.
Conclusion: There is insufficient evidence to suggest that the die is biased. A discrete uniform distribution is a good fit for the data.
Sign in to view full notes