Exercises - (Activity #6)
Exercises - (Activity #6)
1. Consider the data below to determine if there exists a significance difference in the
degree of seriousness encountered by the College Freshmen Students. Use 0.01
as the level of significance.
Σ D=3.62 2
Σ D =2.28 η=7
1. H 0 : x1 =x2
H 0 : x1 ≠ x2
2. 0.01
3. (n-1) = (7-1) = 6 ; Critical Value = 16.81
4. If computed t-test is ≥ 2.15 .reject H 0
If computed t-test is ¿ 2.15 accept H 0
3.62
5. t=
√❑
t = 5.24
6. reject H 0
7. There is a significant difference between the before and after in the degree of
seriousness encountered by the College Freshmen Students.
Σ D=456 2
Σ D =14966 η=15
1. H 0 : x1 =x2
H 0 : x1 ≠ x2
2. 0.05
3. (n-1) = (15-1) = 14 ; Critical Value = 23.685
4. If computed t-test is ≥ 23.685 .reject H 0
If computed t-test is ¿ 23.685 accept H 0
456
5. t=
√❑
t = 13.26
6. accept H 0
7. There is no significant difference in the knowledge of students before and after
the subject was taken using pre-test and post-test.
3. John is an investor. His portfolio primarily tracks the performance of the S&P 500 and
John wants to add the stock of Apple Inc. Before adding Apple to his portfolio, he wants
to assess the correlation between the stock and the S&P 500 to ensure that adding the
stock won’t increase the systematic risk of his portfolio. To find the coefficient, John
gathers the following prices for the last five years
1. H 0 : x❑ = y
H 1 : x❑ ≠ y
2. 0.05
3. (n-2) = 5-2 = 3 ; Tabular Value=3.18
4. If computed t ≥ 3.18, reject H 0
If computed t < 3.18, accept H 0
5(1149737)−(10224.13)(544.43)
5. 𝑟 =
√❑
𝑟 = 0.95
t=0.95 √ ❑
t = 5.27
6. reject H 0
7. There is a significant correlation between the stocks of Apple and S&P500.
4. A researcher tried to test if there is a significant relationship in the knowledge of
students before and after the subject was taken using pre-test and post-test with an
alpha of 0.05.
1. H 0 : x1 =x2
H 1 : x1 ≠ x2
2. 0.05
3. (n-1) = (15-1) = 14 ; Critical Value = 23.685
4. If computed t-test is ≥ 23.685 .reject H 0
If computed t-test is ¿ 23.685 accept H 0
456
5. t=
√❑
t = 13.26
6. accept H 0
7. There is no significant difference in the knowledge of students before and after
the subject was taken using pre-test and post-test.
5. Consider the gain in weight of 19 female rats between 28 and 84 days after birth. 12
were fed on a high protein diet and 7 on a low protein diet. Use 95% confidence
level.
High protein Low protein
134 70
146 118
104 101
119 85
124 107
161 132
107 94
83
113
129
97
123
A)
The sample mean of high protein:
= 120
70+118+101+85+107+132+94
7
= 101
B)
S1 = √ ❑
s 1=√❑
s1= 21.388
s 2=√❑
s2= 20.624
=446.118
C)
H 1 : μ 1−μ2 >0(The mean of the first population is less than the second )
= (12-1) + (7-1)
= 17
S M −M = √❑
1 2
¿ √❑
¿ 10.04
To analyze these data in StatsDirect first prepare them in two workbook columns and
label these columns appropriately. Alternatively, open the test workbook using the file
open function of the file menu. Then select the unpaired t test from the parametric
methods section of the analysis menu. Select the columns marked "High protein" and
"Low protein" when prompted for data.
Unpaired t test
df = 17
t = 1.891436
df = 13.081702
t(d) = 1.9107
Comparison of variances
Thus we have a difference that is not quite significant at the 5% level. The most
important information is, however, conveyed by the confidence interval. The 95% CI
includes zero therefore we can not be confident (at the 95% level) that these data show
any difference in weight gain.
As most of the interval is toward weight gain and as the test result is in the grey
"suggestive" 5%-10% zone we have good evidence for repeating this experiment with
larger numbers. Bigger samples will probably shrink the range of uncertainty so that the
confidence interval contracts to a narrower band that excludes zero.
N.B. We did not consider a one sided P value here because we could not be absolutely
certain that the rats would all benefit from a high protein diet in comparison with those
on a low protein diet.
6. Three different milling machines were being considered for purchase by a
manufacturer. Potentially, the company would be purchasing hundreds of these
machines, so it wanted to make sure it made the best decision. Initially, five of each
machine were borrowed, and each was randomly assigned to one of 15 technicians
(all technicians were similar in skill). Each machine was put through a series of
tasks and rated using a standardized test. The higher the score on the test, the
better the performance of the machine. The data are:
∑ ❑ X 2ij
ij
3477.88 4789.3 3325.47
n 5 5 5
df total =15−1=14
df betweem=3−1=2
( )
❑ ❑ 2 ❑
1 414.5
SStotal=¿ ∑ ❑X ij −
2
N
∑ X ij =11592.65−
❑
15
=138.633
ij ij
SS between 79.785
MS between = = =39.893
df between 2
SSwithin 58.848
MS within= = =4.904
df within 12
MSbetween 39.893
F= = =8.135
MS within 3.904
Ho: μ 1=μ2=μ3❑
2) Rejection Region
df 1 =2
df 2 =2
Therefore, the rejection region for this F-test is: R={ F : F>6.927 }
3) Test Statistics
MSbetween 39.893
F= = =8.135
MS within 4.904
4) Null hypothesis
F=8.135> F c =6.927
5) ANOVA
Summary
ANOVA
Total 138.633 14
7. A firm wishes to compare four programs for training workers to perform a certain
manual task. Twenty new employees are randomly assigned to the training
programs, with 5 in each program. At the end of training period, a test conducted to
see how quickly trainees can perform the task. The number of times the task is
performed per minute is recorded for each trainee, with the following results:
1 9 10 12 9
2 12 6 14 8
3 14 9 11 11
4 11 9 13 7
5 13 10 11 8
Σ P1 – 59 Σ P12 – 711
P2 – 44 P22 – 398
P3 – 61 P32 – 751
P4 – 43 P42 – 279
207 2,239
1. H 0: There is no significant relationship between the programs conducted on how
quickly the trainees can perform the certain manual task.
H 1: There is a significant relationship between the programs conducted on how
quickly the trainees can perform the certain manual task.
2. 0.05
3. (n-1) = (5-1) = 4 ; 2.776
4. If computed t ≥ 2.776 reject H 0
If computed t < 2.776 accept H 0
5. SSt =∑ x −¿ ¿ SSt =2239−¿¿ SSt =96.55
2
2 2 2 2 2
59 44 61 43 207
SSb = + + + − =54.95
5 5 5 5 20
2197.4 – 2142.45 = 54.95
SSw = SSt – SSb = 96.55 – 54.95 = 41.6
ss b 54.95
M sb= = = 18.32
k −1 3
ss w 41.6
M sw = = = ¿ 2.6
h−k 16
F ratio = 7.046
6. reject H 0
7. The time for the completion for the manual task of the trainee has no effect at the
program conducted by the firm.