Lecture 9
Lecture 9
Normal distribution.
2 parameters:
+ proportion, p (Binomial)
mean.
Because the point estimator does give the level of confidence, we use
1-α.
Example:
Data were collected on the amount spent by 64 customers for lunch at a major Houston
restaurant. These data are contained in the file named Houston. Based upon past studies
the population standard deviation is known with σ = $6.
a. At 99% confidence, what is the margin of error?
b. Develop a 99% confidence interval estimate of the mean amount spent for lunch.
x_bar= 21.52 CI 99% for population mean is: 21.52 +/- 1.94
(19.58, 23,46)
Interpretation: With 99% confidence level, the mean amount of spending for lunch
The CI 95% for their Math score with ME= 5 points. Assume σ=3.5 point.
CI is:
s
x ± t α / 2 (n−1)
√n
Note that if sample size, n is large (n >30) tn-1α/2 zα/2
Example: Sales personnel for Skillings Distributors submit weekly reports listing the customer
contacts made during the week. A sample of 65 weekly reports showed a sample mean of
19.5 customer contacts per week. The sample standard deviation was 5.2. Provide 90% and
95% confidence intervals for the population mean number of weekly customer contacts for
the sales personnel.
CI for µ:
s
x ± t α / 2 (n−1)
√n
xbar = 19.5, s=5.2, n=65, tn-1α/2 = t640.05 ~ 1.645, (1.67)
Take a sample of n observations in which there are m elements having the qualitative
We take a sample of 150 students in NEU to which there are 65 of them who hold
random sample of 200 attendees, we see that there are 75 of them who are female
1. Produce the confidence interval 98% for the population proportion of female?
2. If we want to produce the interval with 2% margin of error, what is the sample
size required (confidence level is still 98%)
p ± z α /2
√ p(1−p)
n
pbar =75/200= 0.375, 1-α=0.98 zα/2 = z0.01 = 2.33
Margin of error: ME = z α/ 2
√ p (1− p)
n
= 2.33* sqrt(0.375*(1-0.375)/200)=0.08
If we want to compare µ with µo: there are possible three types of hypothesis
Step 2: calculate the test statistic: use t test (test statistic is t distribution)
x−μ0
t=
s/√n
Step 3: Rejection rule: when to reject Ho:
Given the value of significant level (α)- the probability of rejecting the Ho
Two tail test: Ho: µ=µo; H1: µ ≠ µo : Reject Ho if t > tn-1α/2 or t < - tn-1α/2
Left tail test: Ho: µ ≥ µo; H1: µ < µo : Reject Ho if t < -tn-1α
Right tail test: Ho: µ ≤ µo; Ho: µ > µo : Reject Ho if t > tn-1α
Example: To test for the assumption that the average GPA of NEU students is more
than 3.3, we take a sample of 30 students randomly. The mean and standard deviation
from this sample are 3.6 and 0.4. Do the test with 5% significant level.
Solution:
x−μ0
t=
s/√n
t= (3.6-3.3)/(0.4/sqrt(30)) = 4.108
So, we reject Ho
Step 4: The average GPA of NEU students is truly more than 3.3.
Example: A shareholders’ group, in lodging a protest, claimed that the mean tenure for a
chief executive office (CEO) was at least nine years. A survey of companies reported in The Wall
Street Journal found a sample mean tenure of 7.27 years for CEOs with a standard
deviation of s = 6.38 years.
a. Formulate hypotheses that can be used to challenge the validity of the claim made by
the shareholders’ group.
b. Assume 85 companies were included in the sample. What is the p-value for your
hypothesis test?
c. At α = .01, what is your conclusion?
Solution:
So, Reject Ho. It means the mean tenure of CEO is less than 9 years.
t= (85272-90000)/(11039/sqrt(25))=-2.14
One-Sample Test
Two tail: Ho: p =p0; H1: p≠ p0 : Reject Ho if z > zα/2 or z < -zα/2
Test statistic:
In which:
Rejection rule:
If we take a random sample of 300 students in which there are 175 females.
pbar = 175/300=0.583
t=x 1−x 2 /s x −x
1 2
In which:
And
Rejection rule:
Two tail: Reject Ho if t > tn1+n2-2α/2 or t < - tn1+n2-2α/2
Right tail: Reject ho if t > tn1+n2-2α
Left tail: Reject Ho if t < - tn1+n2-2α
Example:
Conclusion: The mean of gas consumption of two types of cars are different
Example: Use the data HomePrices: compare the average prices of houses in
Two points of time: in 2006 and in 2009: whether the home price increases?
Solution:
Hypothesis: Ho: µ1 >= µ2; H1: µ1 > µ2 (increases)
( p1 −p 2)
z=
s p −p
1 2
In which:
Example: To compare the proportion of students who hold the IELTS certificate
in two Universities A and B, we take two sample of 250 and 300 students in each Uni.
Calculate z value:
z= (0.48-0.53)/0.043 =-1.16
So, we do not reject Ho, the proportions of that of two Uni are the same.