Sie sind auf Seite 1von 6

Nicholas Sita

Lab 5
Stat 401
1)
a)
Yes there is evidence that the proportion p of men who are taller than 6ft is greater than 0.. !he p
val"e is 0.4#11
ht$read.table%&http'((stat.ps".ed"()mga(401(*ata(+atherSon,eights.t-t&. header $ !)
/ 0$ht1S2,
/ -1$ht1+2,
/ -$s"m%-1/3#)4 n$length%-1)
/ prop.test%-.n. p$0.. alternative$&greater&)
15sample proportions test with contin"it0 correction
data' - o"t of n. n"ll probabilit0 0.
65s7"ared $ 0.083. df $ 1. p5val"e $ 0.4#11
alternative h0pothesis' tr"e p is greater than 0.
85 percent confidence interval'
0.18319#9 1.0000000
sample estimates'
p
0.
b)
Yes the average height of men is less then 6 foot. !he p val"e is 0.068#
/ t.test%-1. m"$3#. alternative $ &less&)
:ne Sample t5test
data' -1
t $ 51.9543. df $ #8. p5val"e $ 0.068#
alternative h0pothesis' tr"e mean is less than 3#
85 percent confidence interval'
5;nf 31.95461
sample estimates'
mean of -
30.#6663
#)
,o' mean of car<$ mean of car=
,a$ mean of car< %not e7"al too) mean of car=
!here is evidence that t0pe = car does better in a 10 mph crash test
/ -a$18
/ -b$##
/ n$c%-a>-b)
data' - o"t of n. n"ll probabilit0 0.5
65s7"ared $ 10.3561. df $ 1. p5val"e $ 0.8885
alternative h0pothesis' tr"e p is greater than 0.5
80 percent confidence interval'
0.16981# 1.0000000
sample estimates'
p
0.#480#4
)
/ 01$df1Sample
/ -1$df1?al"e
/ -$-1@1'#A
/ 0$-1@'63A
/ delta$mean%-)5mean%0)
/ wilco-.test%-.0. m"$delta. alternative$&two.sided&. conf.level$.8)
Bilco-on ranC s"m test
data' - and 0
1 2
2
0
2
5
3
0
3
5
4
0
4
5
B $ 540. p5val"e $ 0.9038
alternative h0pothesis' tr"e location shift is not e7"al to 54.800116
/ wilco-.test%-.0.conf.int$0.8)
Bilco-on ranC s"m test
data' - and 0
B $ #39. p5val"e $ 0.000#86
alternative h0pothesis' tr"e location shift is not e7"al to 0
85 percent confidence interval'
53.88 5#.69
sample estimates'
difference in location
55.#85
+or ?ar-$?ar0
/ var.test%-.0.alternative$&two.sided&)
+ test to compare two variances
data' - and 0
+ $ 0.5##. n"m df $ 1. denom df $ 4. p5val"e $ 0.004#49
alternative h0pothesis' tr"e ratio of variances is not e7"al to 1
85 percent confidence interval'
0.13538#8 0.313#35
sample estimates'
ratio of variances
0.5#189
4)
a)
/ df$read.table%&http'((www.stat.ps".ed"()mga(401(*ata(Soil*ata2nhi.t-t&.header$!)
/ -$df1Soil14 0$df1Soil#4 t.test%-.0.paired$!)
Daired t5test
data' - and 0
t $ 5#.19#. df $ 1. p5val"e $ 0.0691
alternative h0pothesis' tr"e difference in means is not e7"al to 0
85 percent confidence interval'
55.498654# 50.195459
sample estimates'
mean of the differences
5#.935
b)
/ wilco-.test%-. 0. paired $ !. conf.int $!. conf.level$.85)
Bilco-on signed ranC test with contin"it0 correction
data' - and 0
? $ 141.5. p5val"e $ 0.0336
alternative h0pothesis' tr"e location shift is not e7"al to 0
85 percent confidence interval'
55.45005# 50.1000#55
sample estimates'
%pse"do)median
5#.848884
5)
a)
/ wilco-.test%hi1Level)hi1Sample)
Bilco-on ranC s"m test
data' hi1Level b0 hi1Sample
B $ 106. p5val"e $ 0.00033#
alternative h0pothesis' tr"e location shift is not e7"al to 0
/ -$hi1Level
/ 0$hi1Sample
/ t.test%-.0. var.e7"al$!)
!wo Sample t5test
data' - and 0
t $ 1.9986. df $ 4#. p5val"e $ 0.0653
alternative h0pothesis' tr"e difference in means is not e7"al to 0
85 percent confidence interval'
511.0518 6.19856
sample estimates'
mean of - mean of 0
164.158081 1.580808
/ wilco-.test%hi1Level)hi1Sample. conf.int$!)
Bilco-on ranC s"m test
data' hi1Level b0 hi1Sample
B $ 106. p5val"e $ 0.00033#
alternative h0pothesis' tr"e location shift is not e7"al to 0
85 percent confidence interval'
##.# 85.9
sample estimates'
difference in location
54.
6)
/ rem$read.table%&http'((www.stat.ps".ed"()mga(401(*ata(SleepEem.t-t&. header$!)4 rem@1'.A
val"es ind
1 95.#9 61
# 3#.40 61
96.44 61
/
/ anova%aov%val"es)ind. data$rem))4 plot%aov%val"es ) ind. data$rem))
<nal0sis of ?ariance !able
Eesponse' val"es
*f S"m S7 Fean S7 + val"e Dr%/+)
ind 5991.3 1860.59 #1.08 9.##e506 GGG
Eesid"als 16 1493.1 8#.85
555
Signif. codes' 0 HGGGI 0.001 HGGI 0.01 HGI 0.05 H.I 0.1 H I 1
Baiting to confirm page change...
/
/ !"Ce0,S*%aov%val"es)ind. data$rem). conf.level$.85)
!"Ce0 m"ltiple comparisons of means
85J famil05wise confidence level
+it' aov%form"la $ val"es ) ind. data $ rem)
1ind
diff lwr "pr p adK
6#561 513.39 55.19#99 50.#81193 0.045595
6561 51.56 549.90099 51.8111193 0.0005145
64561 546.519 56.86#99 5#8.031193 0.0000056
656# 51.619 51.06#99 .9#6991 0.15681
6456# 5#9.390 546.##499 511.51193 0.0011815
6456 515.16# 5#.60699 #.#9#991 0.10044#4
- 6 0 - 4 0 - 2 0 0
X
4
-
X
3
X
3
-
X
2
X
3
-
X
1
9 5 % f a m i l y - w i s e c o n f i d e n c e l e v e l
D i f f e r e n c e s i n m e a n l e v e l s o f i n d