knitr::opts_chunk$set(echo = TRUE)

#question1

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)
s<-cbind(machine1,machine2)
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
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

##Comment on Result:- As the p value is greather than 0.05, we can state that we failed to reject the null hypothesis.

’’’EVAL {Allcode,eval=FALSE} ```