GOKUL.
K 22BBA0110
#Q1
a=c(175,168,168,190,156,181,182,175,174,179)
b=c(120,180,125,188,130,190,110,185,112,188)
[Link](a,b,[Link]=FALSE,paired=FALSE)
##
## Welch Two Sample t-test
##
## data: a and b
## t = 1.8827, df = 10.224, p-value = 0.08848
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
## -3.95955 47.95955
## sample estimates:
## mean of x mean of y
## 174.8 152.8
#Q2
x=c(15,10,13,7,9,8,21,9,14,8)
y=c(15,14,12,8,14,7,16,10,15,12)
[Link](x,y,alter="less",[Link]=TRUE)
##
## Two Sample t-test
##
## data: x and y
## t = -0.53311, df = 18, p-value = 0.3002
## alternative hypothesis: true difference in means is less than 0
## 95 percent confidence interval:
## -Inf 2.027436
## sample estimates:
## mean of x mean of y
## 11.4 12.3
#Q3
before=c(237,289,257,228,303,275,262,304,244,233)
after=c(194,240,230,186,265,222,242,281,240,212)
[Link](before,after,paired=TRUE,alternative="greater",mu=0)
##
## Paired t-test
##
## data: before and after
## t = 6.5594, df = 9, p-value = 5.202e-05
1
## alternative hypothesis: true mean difference is greater than 0
## 95 percent confidence interval:
## 23.05711 Inf
## sample estimates:
## mean difference
## 32