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:
Find P(ˉX≤26.3)
Find P(ˉX≥22.3)
Find P(21.2≤ˉX≤26.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, ˉX∼N(25.36,2.6225). The satndard deviation is then √2.6225=2.65 (a) P(ˉX≤26.3)=P(Z≤26.3−25.362.6/5)=P(Z≤1.81)≈0.9649
P(ˉX≥22.3)=P(Z≥22.3−25.362.6/5)=P(Z≥−5.8846)=1−P(Z≤−5.8846)≈0.9999(#eq:05002)
P(21.2≤ˉX≤26.3)=P(ˉX≤26.3)−P(ˉX≤21.2)=P(Z≤1.81)−P(Z≤21.2−25.362.6/5)=P(Z≤1.81)−P(Z≤−8)=0.9649−0.0001≈0.9648(#eq:05003)
Reference: Standard Normal Distribution Table
Confidence Interval
- What is a confidence interval?
An estimate of plausible values for the population parameter based on data.
- Will the true parameter always be within the interval?
Not necessarily.
- What is the point estimate?
Sample Statistics.
- 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.
- State Null and Alternative Hypotheses.
- State significance level and Determine Critical Value.
- Perform Statistical Test.
- State Conclusion.
Proof. 1. State Null and Alternative Hypotheses: H0:μ=5.4 vs H1:μ<5.4.
State significance level and Determine critical value: α=0.01, CV=|−2.33|=2.33.
Perform Statistical Test: TS=|5.23−5.40.54/√50|=|−2.226|=2.226. |TS|<CV, therefore we fail to reject H0.
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
Type-I error: rejection of a true null hypothesis
Type-II error: failure to reject a false null hypothesis
Proof. 1. State Null and Alternative Hypotheses: H0:p=0.75 vs H1:p≠0.75.
State significance level and Determine critical value: α=0.01, CV=|−2.57|=2.57.
Perform Statistical Test: TS=|0.7906−0.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.
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.