2080 9

STA215 · 2080 · 5 marks

Define type I and type II error in testing of hypothesis. It is claimed that Samsung and Huawei mobiles are equally popular in Kathmandu. A random sample of 600 people from Kathmandu showed 350 have Samsung mobile. Test the claim at 5% level of significance.

Define type I and type II error in testing of hypothesis. It is claimed that Samsung and Huawei mobiles are equally popular in Kathmandu. A random sample of 600 people from Kathmandu showed 350 have Samsung mobile. Test the claim at 5% level of significance. [5]

Statistics IIChapter 2: Testing of hypothesistest for single proportionNumerical: hypothesis test proportion

Type I and Type II Errors + Test of Hypothesis on Mobile Popularity

Given Data

  • Sample size: $n = 600$
  • Number with Samsung: $X = 350$
  • Claim: equally popular, so $p_0 = 0.5$
  • Level of significance: $\alpha = 0.05$

Part 1: Type I and Type II Error

Type I Error ($\alpha$): Rejecting the null hypothesis $H_0$ when it is actually true. Its probability equals the level of significance $\alpha$.

Type II Error ($\beta$): Accepting the null hypothesis $H_0$ when it is actually false.

Decision$H_0$ True$H_0$ False
Accept $H_0$Correct DecisionType II Error ($\beta$)
Reject $H_0$Type I Error ($\alpha$)Correct Decision

Part 2: Test of Hypothesis

Step 1: Hypotheses

$$H_0: p = 0.5 \quad \text{(equally popular)}$$ $$H_1: p \neq 0.5 \quad \text{(not equally popular)} \quad \text{(two-tailed test)}$$

Step 2: Sample Proportion

$$\hat{p} = \frac{X}{n} = \frac{350}{600} = 0.5833$$

Step 3: Test Statistic (Z-test for proportion)

$$Z = \frac{\hat{p} - p_0}{\sqrt{\dfrac{p_0 q_0}{n}}}$$

where $q_0 = 1 - 0.5 = 0.5$.

$$\text{S.E.} = \sqrt{\frac{0.5 \times 0.5}{600}} = \sqrt{\frac{0.25}{600}} = \sqrt{0.0004167} = 0.020412$$

$$Z = \frac{0.5833 - 0.5}{0.020412} = \frac{0.0833}{0.020412} = 4.08$$

On the continuity correction: applying it gives $Z_{cal} = 4.04$; without it (the standard approach at this level) $Z = 4.08$. The two are numerically equivalent for the decision. Using the raw count form:

$$Z = \frac{X - np_0}{\sqrt{np_0 q_0}} = \frac{350 - 300}{\sqrt{150}} = \frac{50}{12.247} = 4.08$$

Step 4: Critical Value

At $\alpha = 0.05$, two-tailed:

$$Z_{\alpha/2} = Z_{0.025} = 1.96$$

Step 5: Decision

$$|Z| = 4.08 > 1.96$$

Since the calculated value exceeds the critical value, we reject $H_0$.

Step 6: Conclusion

At the 5% level of significance, there is sufficient evidence to reject the claim that Samsung and Huawei mobiles are equally popular in Kathmandu. The data indicates Samsung is significantly more popular.


Final Result: $Z_{cal} = 4.08$ (without continuity correction) vs $Z_{tab} = 1.96$; reject $H_0$. With the continuity correction $Z_{cal} = 4.04$, and the decision and conclusion are identical.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.