Example Ch101
Example Ch101
Example Ch101
Example (1)
You are a financial analyst for a brokerage firm. Is there a difference in dividend
yield between stocks listed on the NYSE & NASDAQ? You collect the following
data:
NYSE: 𝑛1 = 21 , 𝑋̅1 = 3.27 , 𝑆1 = 1.30
NASDAQ: 𝑛2 = 25 , 𝑋̄2 = 2.53 , 𝑆2 = 1.16
Assuming both populations are approximately normal with equal variances, is
there a difference in mean
yield ( = 0.05)?
Solution:
(𝜎1 & 𝜎2 𝑢𝑛𝑘𝑛𝑜𝑤𝑛) (𝜎1 = 𝜎2 ) t
Step 1: state the hypothesis:
𝐻0 : 𝜇`1 = 𝜇2
𝐻1 : 𝜇1 ≠ 𝜇2
Test is two-tailed test (key word is difference between 2 samples)
Step 2- Select the level of significance and critical value.
α = 0.05 as stated in the problem
±𝑡(𝛼 ,𝑛 ±𝑡 0.05 ±𝑡(0.025 ,44)=±2.0154
2 1 +𝑛2 −2)= ( ,21+25−2)=
2
Reject H0 at a = 0.05
There is evidence of a difference in means.
Since we rejected H0 can we be 95% confident that µNYSE > µNASDAQ?
2
95% Confidence Interval for µNYSE - µNASDAQ
1 1
(𝑋1 − 𝑋2 ) ± 𝑡𝛼/2 √𝑆𝑝2 ( + ) = 0.74 ± 2.0154 × 0.3628 = (0.009, 1.471)
𝑛1 𝑛2
Since 0 is less than the entire interval, we can be 95% confident that µNYSE >
µNASDAQ
3
Example (2)
Assume you send your salespeople to a “customer service” training
workshop. Has the training made a difference in the number of complaints
(at the 0.01 level)? You collect the following data:
Number of Number of
Salesperson Complaints Complaints
Before After
C.B. 6 4
T.F. 20 6
M.H. 3 2
R.K. 0 0
M.O. 4 0
Solution:
Step 1: state the hypothesis:
H0: μD = 0
H1: μD 0
4
Step2: Select the level of significance and critical value.
t0.005 = ± 4.604 d.f. = n - 1 = 4
Step 3: Find the appropriate test statistic.
(D − D ) (D − D )
Number of Number of 2
Salesperso Complaints Complaints D
n i i
Before After (X2-X1)
C.B. 6 4 -2 -2-(-4.2)= 2.2 4.84
T.F. 20 6 -14 -14-(-4.2)=-9.8 96.04
M.H. 3 2 -1 -1-(-4.2)= 3.2 10.24
R.K. 0 0 0 0-(-4.2)=4.2 17.64
M.O. 4 0 -4 4-(-4.2)=0.2 0.04
Total -21 128.8
∑ 𝑫𝒊 −𝟐𝟏
̄ =
𝑫 = = −𝟒. 𝟐
𝒏 𝟓
̅ )2
∑(𝐷𝑖 − D 128.8
SD = √ =√ = 5.6745
n−1 4
̄
𝑫 −𝟒. 𝟐 −𝟒. 𝟐
𝒕𝒄 = = = = −𝟏. 𝟔𝟔
𝑺𝑫 𝟓. 𝟔𝟕𝟒𝟓⁄ 𝟐. 𝟓𝟑𝟕𝟕
⁄ 𝟐. 𝟐𝟑𝟔𝟏
√𝒏
5
Step 4: State the decision rule
Reject H 0 if
t c 4.604
or
t c −4.604
6
Example (3)
Is there a significant difference between the proportion of men and the proportion
of women who will vote Yes on Proposition A?
In a random sample, 36 of 72 men and 35 of 50 women indicated they would
vote Yes
Test at the .05 level of significance
Solution:
Step 1: State the null and alternate hypotheses.
H0: π1 – π2 = 0 (the two proportions are equal)
H1: π1 – π2 ≠ 0 (there is a significant difference between proportions)
Step 2: State the level of significance and critical value.
The .05 significance level is stated in the problem.
±𝑍𝛼 = ±𝑍0.05 = ±𝑍0.025
2 2
±𝑍0.025 = ±1.96
7
Step 3: Find the appropriate test statistic.
The sample proportions are:
(𝑝1 − 𝑝2 ) − (𝜋1 − 𝜋2 )
𝑧STAT =
1 1
√𝑝(1 − 𝑝) ( + )
𝑛1 𝑛2
(.50 − .70) − (0)
= = −2.20
1
√.582(1 − .582) ( + ) 1
72 50
Step 4: State the decision rule
Zc Z Z c −Z
Reject H0 if 2 Or 2
Z c 1.96 Or Z c −1.96
8
Step 5:Decision Reject H0
There is evidence of a significant difference in the proportion of men and women
who will vote yes.
The confidence interval for
π1 – π2 is:
𝑝1 (1 − 𝑝1 ) 𝑝2 (1 − 𝑝2 )
(𝑝1 − 𝑝2 ) ± 𝑍𝛼/2 √ +
𝑛1 𝑛2
0.50(0.50) 0.70(0.30)
(0.50 − 0.70) ± 1.96 √ +
72 50
= (-0.37, -0.03)
Since this interval does not contain 0 can be 95% confident the two proportions are
different.
9
Example (4)
You are a financial analyst for a brokerage firm. Is there a difference in dividend
yield between stocks listed on the NYSE & NASDAQ? You collect the following
data:
NYSE: 𝑛1 = 21 , 𝑆1 = 1.30
NASDAQ: 𝑛2 = 25 , 𝑆2 = 1.16
Is there a difference in the variances between the NYSE & NASDAQ at the
= 0.05 level?
Step 1: state the hypothesis:
H0: σ21 = σ22 (there is no difference between variances)
H1: σ21 ≠ σ22 (there is a difference between variances)
10
Step 3: Find the appropriate test statistic.
The test statistic is:
𝑆12 1.302
𝐹𝑆𝑇𝐴𝑇 = 2= = 1.256
𝑆2 1.162
11
12
Example (5)page 372 & 373
Waiting time is a critical issue at fast-food chains, which not only want to
minimize the mean service time but also want to minimize the variation in the
service time from customer to customer .One fast-food chain carried out a study to
measure the variability in the waiting time (defined as the time in minutes from
when an order was completed to when it was delivered to the customer ) at lunch
and breakfast at one of the chain’s stores. The results were as follows:
𝐿𝑢𝑛𝑐ℎ: 𝑛1 = 25 , 𝑆12 = 4.4
Breakfast:𝑛2 = 21 , 𝑆22 =1.9
At the 0.05 level of significance, is there evidence that there is more variability in
the service time at lunch than at breakfast? Assume that the population service
times are normally distributed
Solution
1)
𝐻0 : 𝜎12 ≤ 𝜎22
𝐻1 : 𝜎12 > 𝜎22
2)
𝐹𝛼,𝑛1−1,𝑛2−1 = 𝐹0.05,25−1,21−1 = 𝐹0.05,24,20 = 2.08
3)
𝑆12 4.4
𝐹𝑠𝑡𝑎𝑡 = 2 = = 2.3158
𝑆2 1.9
4)
Reject 𝐻0 if 𝐹𝑠𝑡𝑎𝑡 > 2.08
13
5) because 𝐹𝑠𝑡𝑎𝑡 = 2.3158 > 2.08,you reject 𝐻0 .using a 0.05 level of
significance, you conclude that there is evidence that there is more variability in
the service time at lunch than at breakfast.
Reject the null hypothesis, there was a significant difference between two
variances (σ12 ≠ σ22 ). The test statistic will be use is Separate variance t-test
× 𝐻0 : 𝜎12 ≤ 𝜎22
√ 𝐻1 : 𝜎12 > 𝜎22
14
Example (6)
An experiment has a Sigle factor with four groups and nine values in each group.
If SSA=752, SST=1250
Answer the following questions:
1) How many degrees of freedom are there in determining
the among-group variation?
2) How many degrees of freedom are there in determining
the within-group variation?
3) How many degrees of freedom are there in determining
the total variation?
4) What is SSW?
5) What is MSA?
6) What is MSW?
7) What is the value of 𝐹𝑠𝑡𝑎𝑡 ?
Solution:
1) How many degrees of freedom are there in determining
The among-group variation?
c-1=4-1=3
2) How many degrees of freedom are there in determining
The within-group variation?
n-c=9-4=5
3) How many degrees of freedom are there in determining
The total variation?
n-1=9-1=8
4)What is SSW?
SST-SSA=1250-752=498
5)What is MSA?
15
752
𝑀𝑆𝐴 = = 250.67
3
6)What is MSW?
498
𝑀𝑆𝑊 = = 99.6
5
16
Example(7) (Slide 65-68)
You want to see if three different golf clubs yield different distances. You
randomly select five measurements from trials on an automated driving machine
for each club. At the 0.05 significance level, is there a difference in mean distance?
Club 1 Club 2 Club 3
254 234 200
263 218 222
241 235 197
237 227 206
251 216 204
Total 1246 1130 1029
Mean 249.2 226 205.8
𝑋̿ = 227
C=3 n=15
SSA = 4716.4 , SSW = 1119.6
Solution:
17
H0 : µ1 = µ2 = µ3
Reject Ho at α =0.05
18