Given Data
Machine1<-c(16.03,16.04,16.05,16.05,16.02,16.01,15.96,15.98,16.02,15.99)
Machine2<-c(16.02,15.97,15.96,16.01,15.99,16.03,16.04,16.02,16.01,16.00)
A<-cbind(Machine1,Machine2)
Finding out the Mean
summary(Machine1)
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 15.96 15.99 16.02 16.02 16.04 16.05
summary(Machine2)
## Min. 1st Qu. Median Mean 3rd Qu. Max.
## 15.96 15.99 16.01 16.00 16.02 16.04
Runninng T-Test
t.test(Machine1,Machine2,var.equal = TRUE)
##
## Two Sample t-test
##
## data: Machine1 and Machine2
## t = 0.79894, df = 18, p-value = 0.4347
## alternative hypothesis: true difference in means is not equal to 0
## 95 percent confidence interval:
## -0.01629652 0.03629652
## sample estimates:
## mean of x mean of y
## 16.015 16.005
As the p value is greater than alpha i.e. 0.05 hence we failed to reject null hypothesis