Professional Documents
Culture Documents
4
MAT 2001 – Statistics for Engineers
EMBEDDED LAB – Programming with R
RESULT :-
At α = 0.05, Zcal = -1.291, we know Zα = 1.96,
We see that |Zcal|< Zα, therefore we have no
evidence to reject Null Hypothesis.
The rejection region is: R – [12.74091, 14.25909]
Or everything excluding the confidence interval in
the output.
zsum.test(mean.x = 63.5,sigma.x=5.4,n.x=45,
mean.y = 66.2,sigma.y = 5.8 ,n.y=60,alternative
= "less",conf.level =0.95)
zsum.test(mean.x =63.5,sigma.x=5.4,n.x=45,mean.y
= 66.2,sigma.y = 5.8,n.y = 60,alternative =
"less",conf.level =0.90)
OUTPUT WINDOW
RESULT:-
Zcal = - 2.4559
| Zcal | > | Z α | (at 10 % & 5%)
Test Statistics is greater than 1.644 and 1.28,
therefore we reject Null Hypothesis
Hence, we accept the Alternate Hypothesis that
u1>u2
Or
Since the P value = 0.007027 which is less
than 0.05 and 0.1 Hence, we have solid
evidence to reject Null Hypothesis.
INPUT
prop.test(c(100,55),c(190,65),alternative =
"two.sided",conf.level = 0.99)
prop.test(c(100,55),c(190,65),alternative =
"two.sided",conf.level = 0.90)
OUTPUT WINDOW
RESULT:-
At α = 0.01, the p-value is very small,
therefore we have evidence to reject null
hypothesis being correct is very small.
Hence, we accept alternate hypothesis.