Answer:
test of
Homogeneity:The given contingency table is as below:
| Infected ? | Treatment | Row Total | ||
| T1 | T2 | T3 | ||
| Yes | 26 | 48 | 18 | 92 |
| No | 174 | 152 | 182 | 508 |
| Column Total | 200 | 200 | 200 | 600 |
For answering the questions (a) and (b), we have to perform the six steps of hypotheses testing given as below:
Step 1: Set the null and alternative hypotheses
The null and alternative hypotheses can be stated as below:
H0: The three treatments are homogeneous.
H1: The three treatments are not homogeneous.
Step 2: Determine the appropriate statistical test
The test statistic for
test of
homogeneity is

with degrees of freedom = (number of rows - 1) x (number of columns - 1)
where, fo = Observed frequency
fe = Expected frequency =
RT = row total, CT = column total and N = Grand total.
Step 3: Set the decision rule
For the given value of
,
rules for acceptance or rejection of null hypothesis are as
below:
If
reject the null hypothesis, otherwise, do not reject the null
hypothesis.
By using the standard Chi-square table, the critical
value is
where degrees of freedom = (number of rows - 1) x (number of columns - 1) = (2-1) x (3-1) = 2.
Step 4: Computing the test statistic
Expected frequency for cell (1, 1) (from the above given table) can be calculated as below:

Similarly, the expected frequencies for other cells can be calculated.
The contingency table with observed and expected frequencies is as below:
| Infected ? | Treatment | Row Total | ||
| T1 | T2 | T3 | ||
| Yes | 26 (30.67) | 48 (30.67) | 18 (30.67) | 92 |
| No | 174 (169.33) | 152 (169.33) | 182 (169.33) | 508 |
| Column Total | 200 | 200 | 200 | 600 |
Computation for chi-square statistic:
| fo (Observed fre) | fe (Expected fre) |
![]() |
| 26 | 30.67 | 0.711082 |
| 48 | 30.67 | 9.792269 |
| 18 | 30.67 | 5.234069 |
| 174 | 169.33 | 0.128795 |
| 152 | 169.33 | 1.773631 |
| 182 | 169.33 | 0.948024 |
| Total |
![]() |
|
So,

Step 6: Arrive at statistical conclusion
At 95% confidence level (
), the
critical value obtained from the chi-square table is
. And the calculated value is
, which is greater than the critical value and falls in rejection
region. Hence the null hypothesis is rejected and alternative
hypothesis is accepted.
There is not enough evidence to indicate that the treatments are homogeneous. So, we can conclude that the treatments are different at 5% level of significance.
Ans (a):
Form the above calculations,
Chi-square statistic is given as:
And the corresponding p-value = 0.0000919 which is same as Zero.
Ans (b):
For the Step 6 in above given answer, we can say that, the treatments are different at 5% level of significance.
Can you show me how to figure out A using the formula BY HAND? (not with...