In: Statistics and Probability
** Please use only Rstudio and include code **
The target activation force of the buttons on a clicker is 1.967 newtons. Variation exists in activation force due to the nature of the manufacturing process. A sample of 9 clickers showed a mean activation force of 1.88 newtons. The population standard deviation is known to be 0.145 newton. Too much force makes the keys hard to click, while too little force means the keys might be clicked accidentally. We want to use an appropriate hypothesis test to detect excessive deviations in either direction. What is the appropriate hypothesis test? What is the test statistic value? At α = .05, does the sample indicate a significant deviation from the target?
** Please use only Rstudio and include code **
code
xbar = 1.88 # sample mean
mu = 1.967 # hypothetical value to be tested
sigma = 0.145 # population standard deviation
n = 9 # sample size
#ztest
Z = (xbar-mu)/(sigma/sqrt(n));Z #test statistic
p=pnorm(Z)*2; p #pvalue