Chapter 5 Confidence Interval and Hypothesis Testing (Section on Feb 24th)

Sampling Distribution

Exercise 5.1 The ages for a random sample of 25 individuals are recorded. If the age of each individual follows a normal distribution with μ=25.36,σ=2.6. Find the following:

  1. Find P(ˉX26.3)

  2. Find P(ˉX22.3)

  3. Find P(21.2ˉX26.3)

Proof. Transfer to Standard Normal Random Variable Refer to a distribution Table or Calculator

In gereral, if the samples are from a normal distribution with mean μ and variance σ2, then the sample mean ˉX follows a noraml distribution with mean μ and variance σ2n.

In this case, ˉXN(25.36,2.6225). The satndard deviation is then 2.6225=2.65 (a) P(ˉX26.3)=P(Z26.325.362.6/5)=P(Z1.81)0.9649

  1. P(ˉX22.3)=P(Z22.325.362.6/5)=P(Z5.8846)=1P(Z5.8846)0.9999(#eq:05002)

  2. P(21.2ˉX26.3)=P(ˉX26.3)P(ˉX21.2)=P(Z1.81)P(Z21.225.362.6/5)=P(Z1.81)P(Z8)=0.96490.00010.9648(#eq:05003)

Reference: Standard Normal Distribution Table

Confidence Interval

    1. What is a confidence interval?

    An estimate of plausible values for the population parameter based on data.

    1. Will the true parameter always be within the interval?

    Not necessarily.

    1. What is the point estimate?

    Sample Statistics.

    1. How do you calculate the margin of error?

    Critical Value multiplied by the Standard Error.

Critical value is usually Z-score (when knowing variance or sample size is larger) or T-score (when variance is unknown). More information is available here.

Hypothesis Testing

State the 4 steps within hypothesis testing discussed in class.

    1. State Null and Alternative Hypotheses.
    1. State significance level and Determine Critical Value.
    1. Perform Statistical Test.
    1. State Conclusion.
Exercise 5.2 A simple random sample of 50 adults is obtained, and each person’s red blood cell count (in cells per micro- liter) is measured. The sample mean is 5.23. The population standard deviation for red blood cell counts is 0.54. Use a 0.01 significance level to test the claim that the sample is from a population with a mean less than 5.4, which is a value often used for the upper limit of the range of normal values. What type of error could you be making and why? (ASSUME Normal)

Proof. 1. State Null and Alternative Hypotheses: H0:μ=5.4 vs H1:μ<5.4.

  1. State significance level and Determine critical value: α=0.01, CV=|2.33|=2.33.

  2. Perform Statistical Test: TS=|5.235.40.54/50|=|2.226|=2.226. |TS|<CV, therefore we fail to reject H0.

  3. State Conclusion

    • Sample Size n=50

    • The population mean is equal to 5.4

    • One Sample Hypothesis Test (Mean)

    • Fail to reject that the population mean is equal to 5.4

There maybe Type-II error.

Error Types

  • Type-I error: rejection of a true null hypothesis

  • Type-II error: failure to reject a false null hypothesis

Exercise 5.3 Reporting Income In a Pew Research Center poll of 745 randomly selected adults, 589 said that it is morally wrong to not report all income on tax returns. Use a 0.01 significance level to test the claim that 75% of adults say that it is morally wrong to not report all income on tax returns. What type of error could you be making and why?

Proof. 1. State Null and Alternative Hypotheses: H0:p=0.75 vs H1:p0.75.

  1. State significance level and Determine critical value: α=0.01, CV=|2.57|=2.57.

  2. Perform Statistical Test: TS=|0.79060.75(0.75×0.25)/745|=|2.5591|=2.5591. |TS|<CV, therefore we fail to reject H0.

Here sample proportion ˆp=589745=0.7906 and variance 0.75×0.25745.

  1. State Conclusion

    • Sample Size n=745

    • 75% of adults say that it is morally wrong

    • One Sample Hypothesis Test (Proportion)

    • Fail to reject that 75% of adults say that it is morally wrong

There maybe Type-II error.