Professional Documents
Culture Documents
data: x and y
t = 4.0164, df = 8, p-value = 0.003861
alternative hypothesis: true correlation is not equal to 0
95 percent confidence interval:
0.3874142 0.9554034
sample estimates:
cor
0.8176052
2. For the above data find the linear regression X on Y.
Answer: > x=c(23,27,28,28,29,30,31,33,35,36)
> y=c(18,20,22,27,21,29,27,29,28,29)
> model=lm(x~y)
> model
Call:
lm(formula = x ~ y)
Coefficients:
(Intercept) y
11.25 0.75
3.
Answer:
1(i) pbinom(7,20,prob=0.5)
[1] 0.131588
(ii) 1 - pbinom(12,20,prob=0.5)
[1] 0.131588
2. (i) pbinom(79,200,prob=0.5)
[1] 0.001817474
[1] 0.001817474
[1] 0.9963651
[1] 1.162645e-19
(ii) 1 - pbinom(1200,2000,prob=0.5)
[1] 1.162645e-19
[1] 1
[1] 0.3769531
[1] 0.2460938
[1] 0.65625
[1] 0.8195608
[1] 0.06024745
[1] 0.1804392
[1] -0.5518197
[1] 1.608001e-05
[1] 5.89326e-17
[1] 7.220755e-246
[1] 0