Академический Документы
Профессиональный Документы
Культура Документы
EXPERIMENT NO: 6
Submitted by
Name of the Student: Rohith Sai Gamini
Reg. no.: 18BCE0451
Sample 1 2 3 4 5 6 7 8 9 10 11 12
Treatments 2.0 2.7 2.9 1.9 2.1 2.6 2.7 2.9 3.0 2.6 2.6 2.7
0.2%
0.4% 3.2 3.6 3.7 3.5 2.9 2.6 2.5 2.7
INPUT IN R:
> x=c(2.0,2.7,2.9,1.9,2.1,2.6,2.7,2.9,3.0,2.6,2.6,2.7)
> y=c(3.2,3.6,3.7,3.5,2.9,2.6,2.5,2.7)
> t.test(x,y,var.equal=FALSE)
OUTPUT IN R:
Welch Two Sample t-test
data: x and y
t = -2.6676, df = 12.294, p-value = 0.02014
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-0.96022459 -0.09810875
sample estimates:
mean of x mean of y
2.558333 3.087500
INTERPRETATION:
The p-value is less than significance level, we conclude that the means of the two groups are
not identical and thus we say they don’t have identical effects.
No 237 289 257 228 303 275 262 304 244 233
Drug(x1)
Drug(x2) 194 240 230 186 265 222 242 281 240 212
Null Hypothesis:
Mu1-Mu2=0
Alternative Hypothesis:
Mu1-Mu2≠0
INPUT IN R:
> no_drug<-c(237,289,257,228,303,275,262,304,244,233)
> drug<-c(194,240,230,186,265,222,242,281,240,212)
> t.test(no_drug,drug,alternative="greater",mu=0)
OUTPUT IN R:
Welch Two Sample t-test
INTERPRETATION:
We can reject the null hypothesis and support the claim because the P-value (≈ .0118) is less
than the significance level.