Given: n = 507, min = 147.2, Q1 = 163.8, median = 170.3, mean = 171.1, sd = 9.4, Q3 = 177.8, max = 198.1
mu<-171.1
sd<-9.4
x<-180
z<-(x-mu)/sd
paste("z-score of 180 cm is = ",round(z,2))
## [1] "z-score of 180 cm is = 0.95"
x<-155
z<-(x-mu)/sd
paste("z-score of 155 cm is = ",round(z,2))
## [1] "z-score of 155 cm is = -1.71"
Both are not unusual.
The new sample is a different sample population with different estimates and will have different values than the given sample. In such a case, the new values will have a slightly different mean and standard deviation values but close enough to the given.
As the question hints, to quantify the variability standard error will be used:
n<-507
se<-sd/sqrt(n)
paste("Standard Error: SE = ",round(se,2))
## [1] "Standard Error: SE = 0.42"
Given: n = 436, mean = 84.71 95% confidence: (80.31, 89.11) * => point estimate = 80.31, * => confidence interval (for 95% is 1.96) * standard error = 1.96 * SE = 89.11
front_tail<-89.11
back_tail<-80.31
error_margin <- (front_tail - back_tail) / 2
paste("The error margin is:",round(error_margin,2))
## [1] "The error margin is: 4.4"
Given: n = 36, min = 21, mean = 30.69, sd = 4.31, max = 39
n<-36
x<-30.69
mu<-32
sd<-4.31
se<-sd/sqrt(n)
z<-(x-mu)/se
paste("z-score =",round(z,2))
## [1] "z-score = -1.82"
paste("Based on the Normal Probabilities table: p-value = P(z) =",0.0344)
## [1] "Based on the Normal Probabilities table: p-value = P(z) = 0.0344"
We notice that \((p-value=0.0344) < (\alpha=0.10)\), for this reason we reject H0.
\(p-value=0.0344=3.44\%\) for a population with 32 months and a sample 36 children
90% confidence uses 1.65 as confidence interval rate
mu<-30.69
front_tail<-mu + 1.65 * se
back_tail<-mu - 1.65 * se
paste("decreased_mean_sample=",round(back_tail,2),",increased_mean_sample=",round(front_tail,2))
## [1] "decreased_mean_sample= 29.5 ,increased_mean_sample= 31.88"
Given: n = 36, min = 101, mean = 118.2, sd = 6.5, max = 131
n<-36
x<-118.2
mu<-100
sd<-6.5
se<-sd/sqrt(n)
z<-(x-mu)/se
paste("z-score =",round(z,2))
## [1] "z-score = 16.8"
paste("Based on the Normal Probabilities table: p-value = P(z) ~",0.0001,"= 0")
## [1] "Based on the Normal Probabilities table: p-value = P(z) ~ 1e-04 = 0"
We notice that \((p-value=0) < (\alpha=0.10)\), for this reason we reject H0.
front_tail<-x + 1.65 * se
back_tail<-x - 1.65 * se
paste("decreased_mean_sample=",round(back_tail,2),",increased_mean_sample=",round(front_tail,2))
## [1] "decreased_mean_sample= 116.41 ,increased_mean_sample= 119.99"
Given: mean = 9000, sd = 1000
x<-10500
mu<-9000
sd<-1000
z<-(x-mu)/sd
paste("z-score =",round(z,2))
## [1] "z-score = 1.5"
paste("Based on the Normal Probabilities table: p-value = P(z > 10500) = 1-P(z) =",1-0.9332)
## [1] "Based on the Normal Probabilities table: p-value = P(z > 10500) = 1-P(z) = 0.0668"
n<-15
s<-sd/sqrt(n)
paste("s =",round(s,2))
## [1] "s = 258.2"
z<-(x-mu)/s
paste("z-score of 15 bulbs =",round(z,2))
## [1] "z-score of 15 bulbs = 5.81"
paste("Based on the Normal Probabilities table: p-value = P(z > 10500) = 1-P(z<5.81) =",1-1)
## [1] "Based on the Normal Probabilities table: p-value = P(z > 10500) = 1-P(z<5.81) = 0"
sample15 <- rnorm(n, mean = mu, sd = s)
mu_15 <- mean(sample15)
sd_15<-sd(sample15)
hist(sample15, probability = TRUE)
x <- 0:15000
y_15 <- dnorm(x = x, mean = mu_15, sd = sd_15)
y <- dnorm(x = x, mean = mu, sd = sd)
lines(x=x, y=y_15, col = "red")
abline(v=mu_15,col="red")
lines(x=x, y=y, col = "blue")
abline(v=mu, col="blue")
Given: n = 50, p-value = 0.08
\(n_1 = 500\)