You are on page 1of 17

Textbook Method

q1 q2 q3 q4 q5 total
5 4 3 5 4 21 q1
4 5 4 4 5 22 q2
3 2 3 2 3 13 q3
3 4 5 3 3 18 q4
2 3 5 3 4 17 q5
3 3 4 2 3 15
2 3 2 1 2 10
5 3 4 5 4 21 N
5 4 2 4 5 20 rbar
2 3 3 2 4 14 Cronbach's alpha
q1 q2 q3 q4 q5 Total

0.458333 0.458333
-0.16265 0.121988 -0.040663
0.871795 0.538462 0.187673 1.59793
0.574074 0.583333 0.054217 0.709402 1.921026
3.936626

5
0.393663
0.764497
Lecture slide method

q1 q2 q3 q4 q5 total
5 4 3 5 4 21
4 5 4 4 5 22
3 2 3 2 3 13
3 4 5 3 3 18
2 3 5 3 4 17
3 3 4 2 3 15
2 3 2 1 2 10
5 3 4 5 4 21
5 4 2 4 5 20
2 3 3 2 4 14
1.264911 0.843274 1.080123 1.37032 0.948683 4.012481 SD
1.6 0.711111 1.166667 1.877778 0.9 16.1 variance

Cronbach alpha 0.76432


q1 q2 q3 q4 q5 Cronbach's alpha
5 4 3 5 4
4 5 4 4 5
3 2 3 2 3
3 4 5 3 3
2 3 5 3 4
3 3 4 2 3
2 3 2 1 2
5 3 4 5 4
5 4 2 4 5
2 3 3 2 4
#NAME?
Ex 10.1

p 0.7 p 0.6
N 10 n 20
a. Probability that all 10 customers have a coupon k 20
k 10 3.656158E-05
binom.dist(10,10,0.7,FALSE) 0.028248
0.7^10 0.028248

b. At least two will not have a coupon


Pr (X <= 8) pr(x<=5)
binom.dist(8,10,0.7,TRUE) 0.850692 0.001611525
0.949048047

Ex 10.2
Pr(smoke) 0.26
N 125
The probability of observing at least 43 smokers in a random sample of 125 people is:
1-binom.dist(42,125,0.26,TRUE) 0.022983

Ex 10.3 (similar to 10.2)


Pr(drinking) 0.023
N 520
k 19
Pr(K>= 19)
1-binom.dist(42,125,0.26,TRUE) 0.034663

Ex 10.4 tablet
Pr(tablet) 0.7 wifi 420
Pr(wifi|tablet) 0.3 no wifi 980
Pr(wifi| no tablet) 0 Total 1400
Pr(tablet|wifi) 1
N 2000
a. Number of HH having a tablet but no wifi connection?
Number of HH having a tablet = 0.7 x 2000 = 1400
Number of HH having wifi given they have a tablet:
Pr(wifi|tablet)*1400 420
Number of HH having no wifi and have tablet
980

b. Number of HH have a tablet and a wifi


420
c. Number of HH having no tablet and no wifi:
Number of HH having no tablet: 600
Number of HH having wifi and no tablet
0
Number of HH having no wifi and no tablet
600
no tablet Total
0 420
600 1580
600 2000
Fertiliser A  Fertiliser B  Fertiliser C
Crop A 7.8 7.5 8.8
Crop B 9.2 8.9 10
Crop C 5.1 6.9 7.7
Crop D 6.5 4.7 11
Crop E 3.9 5 12
Crop F 5 6.3 11.6 Anova: Two-Factor With Replication

SUMMARY
7.8
Count
Sum
Average
Variance

Total
Count
Sum
Average
Variance

ANOVA
Source of Variation
Sample
Columns
Interaction
Within

Total

Anova: Two-Factor With Replication

SUMMARY
Crop A
Count
Sum
Average
Variance

Total
Count
Sum
Average
Variance

ANOVA
Source of Variation
Sample
Columns
Interaction
Within

Total
Anova: Single Factor
nova: Two-Factor With Replication
SUMMARY
Fertiliser B  Fertiliser C Total Groups Count Sum
Fertiliser A  6 37.5
6 6 12 Fertiliser B  6 39.3
39.3 61.1 100.4 Fertiliser C 6 61.1
6.55 10.1833333 8.36666667
2.487 2.81766667 6.01151515
ANOVA
Source of Variation SS df
6 6 Between Gro 57.5244444 2
39.3 61.1 Within Group 46.0983333 15
6.55 10.1833333
2.487 2.81766667 Total 103.622778 17

SS df MS F P-value
0 0 65535 65535 #NUM!
39.6033333 1 39.6033333 14.9315068 0.00313904
0 0 65535 65535 #NUM!
26.5233333 10 2.65233333

66.1266667 11

nova: Two-Factor With Replication

Fertiliser A  Fertiliser B  Fertiliser C Total Source of Variation

6 6 6 18
37.5 39.3 61.1 137.9
6.25 6.55 10.1833333 7.66111111
3.915 2.487 2.81766667 6.09545752

6 6 6
37.5 39.3 61.1
6.25 6.55 10.1833333
3.915 2.487 2.81766667

SS df MS F P-value
0 0 65535 65535 #NUM!
57.5244444 2 28.7622222 9.35897899 0.00229998
0 0 65535 65535 #NUM!
46.0983333 15 3.07322222

103.622778 17
Average Variance
6.25 3.915
6.55 2.48700000000001
10.1833333 2.81766666666665

MS F P-value F crit
28.7622222 9.35897899417911 0.002299984736 3.68232034367
3.07322222

Anova: Single Factor

SUMMARY
Groups Count Sum Average Variance
Crop A 3 24.1 8.03333333333 0.46333333
Crop B 3 28.1 9.36666666667 0.32333333
Crop C 3 19.7 6.56666666667 1.77333333
Crop D 3 22.2 7.4 10.53
Crop E 3 20.9 6.96666666667 19.3033333
Crop F 3 22.9 7.63333333333 12.2233333

ANOVA
Source of Variation SS df MS F P-value
Between Gro 14.3894444444444 5 2.87788888889 0.38701532 0.84834662
Within Group 89.2333333333334 12 7.43611111111

Total 103.622777777778 17
F crit
3.10587524
Ex 10.7
average rate:
2 crimes every ten minites
per 15 minutes, the average number of crime is 2*15/10
3
a. Pr(no crimes) 0.049787 6.931656E-29
b. Pr(X=3) 0.224042
c. Pr(X>=2) = 1-Pr(X<=1)
0.800852

Ex 10.10
average rate of flaw: 1 every 1.5 square meters.
a. The average rate of flaw over 1 square meter is 1/1.5
0.666667
The probability of no flaw for 1 square meter sheets
0.513417

Ex 10.14
Pr(men) 0.45
N 20
Pr(K>=13)? 0.058034
Ex 10.18
Survey: assess strength of the safety culture on the shop floor

Q1 Q2 Q3 Q4
3 2 4 7 Q1 Q2 Q3
6 8 7 4 Q1
6 7 5 9 Q2 0.755352
2 4 3 7 Q3 0.777978 0.517207
5 4 6 3 Q4 -0.435477 -0.182953 -0.735616
4 4 5 7
7 6 8 4 N 4
8 7 6 5 rbar 0.116082
3 5 4 6 Cronbach's alpha 0.344393
7 6 8 4
8 7 6 5 Alpha is lower than 0.7, so the questions are not reliable
5 6 4 8 Trying to remove question 4, alpha will increase to 0.86.

Cronbach's alpha
Q1,2,3 #NAME?
Q2,3,4 #NAME?
Q1,3,4 #NAME?
Q1,2,4 #NAME?
Q1 Q3 Q4 Q1
Q4 3 4 7 3
6 7 4 6
6 5 9 6
2 3 7 2
5 6 3 5
4 5 7 4
7 8 4 7
8 6 5 8
3 4 6 3
7 8 4 7
not reliable 8 6 5 8
ase to 0.86. 5 4 8 5
Q2 Q4
2 7
8 4
7 9
4 7
4 3
4 7
6 4
7 5
5 6
6 4
7 5
6 8

You might also like