#Question 2.8.a
#From Z-table: Between 0.9495 and 0.9505 --> 1.645
qnorm(1-0.05)
## [1] 1.644854
#Question 2.8.B
#From Z-table: Between 0.9798 and 0.9803 --> 2.055
qnorm(1-0.02)
## [1] 2.053749
#Question 2.8.C
#From Z-table: Between 0.9898 and 0.9901 --> 2.325
qnorm(1-0.01)
## [1] 2.326348
#Question 2.8.D
#From Z-table: Between 0.9949 and 0.9951 - 2.575
qnorm(1-0.005)
## [1] 2.575829
#Question 2.9.A
#From t-table: df: 7 p: 0.05 --> 1.895
qt(1-0.05,7)
## [1] 1.894579
#Question 2.9.B
#From t-table: df: 7 p: 0.01 --> 2.998
qt(1-0.01,7)
## [1] 2.997952
#Question 2.9.C
#From t-table: df: 7 p: 0.005 --> 3.499
qt(1-0.005,7)
## [1] 3.499483
#Question 2.10.A
#From F-table 0.05: df1: 2 df2:5 --> 5.79
qf(1-0.05,2,5)
## [1] 5.786135
#Question 2.10.B
#From F-table 0.05: df1: 5 df2: 2 --> 19.30
qf(1-0.05,5,2)
## [1] 19.29641
#Question 2.11.A
#From ChiSqr Table: df: 3 --> 7.815
qchisq(1-0.05,3)
## [1] 7.814728
#Question 2.11.B
#From ChiSqr Table: df: 2 --> 9.210
qchisq(1-0.01,2)
## [1] 9.21034
#Question 2.12.A
pnorm(250000,300000,20000)
## [1] 0.006209665
#Question 2.12.B
pnorm(330000,300000,20000)-pnorm(260000,300000,20000)
## [1] 0.9104427
#Question 2.12.C
1-pnorm(346000,300000,20000)
## [1] 0.01072411
#Question 2.16.A
#90% Lower:
57.8-qnorm(1-(0.1/2))*6.02/((81)^0.5)
## [1] 56.69978
#90% Upper:
57.8+qnorm(1-(0.1/2))*6.02/((81)^0.5)
## [1] 58.90022
#95% Lower:
57.8-qnorm(1-(0.05/2))*6.02/((81)^0.5)
## [1] 56.489
#95% Upper:
57.8+qnorm(1-(0.05/2))*6.02/((81)^0.5)
## [1] 59.111
#98% Lower:
57.8-qnorm(1-(0.02/2))*6.02/((81)^0.5)
## [1] 56.24393
#98%Upper:
57.8+qnorm(1-(0.02/2))*6.02/((81)^0.5)
## [1] 59.35607
#99% Lower:
57.8-qnorm(1-(0.01/2))*6.02/((81)^0.5)
## [1] 56.07706
#99%Upper:
57.8+qnorm(1-(0.01/2))*6.02/((81)^0.5)
## [1] 59.52294
Question 2.16.B Yes we are 95% confident that the brakes have a braking distance less than 60 since the confidence interval doesnt include 60. 59.111 is our upper limit so 60 is greater than our confidence interval.
Question 2.16.C Yes we are 98% confident that the brakes have a braking distance less than 60 since the confidence interval doesn’t include 60. 59.356 is our upper limit so 60 is greater than our confidence interval.
#Question 2.17.A
#t_0:
t0 = (15.7665-16)/(0.1524/(6)^0.5);
print(t0)
## [1] -3.752991
#t_test
qt(0.95,5)
## [1] 2.015048
#Since our test statistic is greater than our t test we will reject our H_0 and the process should be readjusted.
#Question 2.17.B
#t_0:
t0 = (15.7665-16)/(0.1524/(6)^0.5);
print(t0)
## [1] -3.752991
#t_test
qt(0.99,5)
## [1] 3.36493
#Since our test statistic is greater than our t test we will fail to reject our H_0 and the process should not be readjusted.
\[ \begin{aligned} \text{Question 2.17.A}\\ \bar{x}&=15.7665, s=0.1524\\ n&=6<30\rightarrow\text{small sample size + Normality} \rightarrow \text{t.test}\\ t_0&=\frac{\bar{x}-16}{s/\sqrt{n}}=\frac{15.7665-16}{0.1524/\sqrt{6}}=-3.752991\\ t_{[0.05]}^{(6-1)}&=2.015048\\ \because&t_0=-3.752991>t_{[0.05]}^{(6-1)}=2.015048\rightarrow \text{Fail to Reject }H_0 \end{aligned} \] \[ \begin{aligned} \text{Question 2.17.B}\\ \bar{x}&=15.7665, s=0.1524\\ n&=6<30\rightarrow\text{small sample size + Normality} \rightarrow \text{t.test}\\ t_0&=\frac{\bar{x}-16}{s/\sqrt{n}}=\frac{15.7665-16}{0.1524/\sqrt{6}}=-3.752991\\ t_{[0.05]}^{(6-1)}&=3.36493\\ \because&t_0=-3.752991>t_{[0.05]}^{(6-1)}=3.36493\rightarrow \text{Fail to Reject }H_0 \end{aligned} \]
#Question 2.20.A
#Question 2.20.B
t.test(c(7,4,6,7,5,4,9), alternative = c("greater"), mu = 3.5, conf.level = 0.99)
##
## One Sample t-test
##
## data: c(7, 4, 6, 7, 5, 4, 9)
## t = 3.6228, df = 6, p-value = 0.00553
## alternative hypothesis: true mean is greater than 3.5
## 99 percent confidence interval:
## 3.831353 Inf
## sample estimates:
## mean of x
## 6
\[ \begin{aligned} H_0: \mu=3.5\\ H_1: \mu>3.5\\ \text{Reject }H_0 \end{aligned} \]