1 - pnorm(10, 24, 25)[1] 0.7122603
For the problems in which calculations are needed, please include your R code, otherwise you will not be given full credit. Please upload your solution as an pdf or html file by Friday, September 5 at 11:59 pm under the assignments tab in Sakai.
1 - pnorm(10, 24, 25)[1] 0.7122603
qnorm(0.65, mean = 24, sd = 25)[1] 33.63301
pf(5.98, 2, 37)[1] 0.9943809
qf(0.2, 9, 16)[1] 0.5731567
#check
pf(0.5732, 9, 16)[1] 0.2000329
scores = c(10, 15, 49, 34, 16, 25, 47, 55, 66, 3, 15, 46, 68)
mean(scores)[1] 34.53846
median(scores)[1] 34
var(scores)[1] 484.9359
xbar <- 18
s <- 6
n <- 40
alpha <- 0.05
crit <- qt(1-alpha/2, n-1)
CI <- xbar + c(-1, 1) * crit * s / sqrt(n)
CI[1] 16.08111 19.91889
#We are 95% confident that the true mean weight loss (lbs.) over 3 weeks is between 16.08 and 19.92. No, with this confidence interval, there is evidence to reject H0 , as 15 is not contained in the interval, and we cannot fail to reject H0 if the value we’re testing against is not in the interval. The proper conclusion to make is to reject H0 , as there is statistically significant evidence that the true mean weight loss is different than 15 lbs.
H0 : 𝜇 = 25 g, Ha : 𝜇 ≠ 25 g
Find the test statistic, degrees of freedom, and p-value for the data below. Be sure to clearly identify them from your output.
library("datarium")
test_stat = (mean(mice$weight) - 25)/(sd(mice$weight)/sqrt(length(mice$weight)))
test_stat[1] -8.104504
df_mice = length(mice$weight) - 1
df_mice[1] 9
t.test(mice$weight, mu = 25, sd = sd(mice$weight), n = length(mice$weight))
One Sample t-test
data: mice$weight
t = -8.1045, df = 9, p-value = 1.995e-05
alternative hypothesis: true mean is not equal to 25
95 percent confidence interval:
18.78346 21.49654
sample estimates:
mean of x
20.14
p_val = 0.00001995
p_val[1] 1.995e-05
State your decision and conclusion for the given problem.
We are 95% sure at the ⍺ = 0.05 level that the true average weight of this species of mice is different than 25g since p < ⍺ (0.00001995 < 0.05)