(f)
We will calculate the confidence interval of median by bootstrap samples. Let M = 1000 be the number of bootstrapped samples.
Below is the R code:
#vector
x <- c(8.05, 12.16, 11.16, 11.28, 11.11, 9.66, 8.4, 13.3, 5.32,
8.87)
alpha <- 0.1
df = length(x) - 1
#1000 bootstrapped samples
median_vec <- c()
for (i in 1:1000) {
boot_x <- sample(x, replace = TRUE)
median_vec <- c(median_vec, median(boot_x))
}
#standard error of median calculation
sd_median <- sd(median_vec)
#90% confidence interval calculation
margin_of_err <- qt(1 - alpha/2, df) * sd_median
left <- median(x) - margin_of_err
right <- median(x) + margin_of_err
print(paste("The left limit of the confidence interval", left))
#Ans: 8.54734549334714
print(paste("The right limit of the confidence interval", right))
#Ans: 12.2226545066529
So the confidence interval is = [8.54734549334714, 12.2226545066529]
** If the answer does not match please comment.
Please focus on f) 4. A commonly used drug produces increases in blood pressure that are...
A pharmaceutical company claims that its new drug reduces systolic blood pressure. The systolic blood pressure (in millimeters of mercury) for nine patients before taking the new drug and 2 hours after taking the drug are shown in the table below. Is there enough evidence to support the company's claim? Let d=(blood pressure before taking new drug)?(blood pressure after taking new drug) . Use a significance level of ?=0.05 for the test. Assume that the systolic blood pressure levels are...
A pharmaceutical company claims that its new drug reduces systolic blood pressure. The systolic blood pressure (in millimeters of mercury) for nine patients before taking the new drug and 2 hours after taking the drug are shown in the table below. Is there enough evidence to support the company's claim? Let d = (blood pressure before taking new drug)-(blood pressure after taking new drug). Use a significance level of a = 0.05 for the test. Assume that the systolic blood...
The following are the Systolic blood pressure (mm Hg) of 12 patients undergoing drug therapy for hypertension: 183, 152, 178, 157, 194, 163, 144, 114, 178, 152, 118, 158. Please use the sign test to test if there is evidence that the median of the blood pressures of the population from which we assume this sample to have been drawn is different from 135 mmHg (the norm for the group). level of significance .05
A pharmaceutical company claims that its new drug reduces systolic blood pressure. The systolic blood pressure (in millimeters of mercury) for nine patients before taking the new drug and 2 hours after taking the drug are shown in the table below. Is there enough evidence to support the company's claim? 0.05 for the test. Assume that the systolic Let d = (blood pressure before taking new drug-blood pressure after taking new drug. Use a significance level of ? blood pressure...
A pharmaceutical company.claims that its new drug reduces systolic blood pressure. The systolic blood pressure (in millimeters of mercury) for nine patients before taking the new drug and 2 hours after taking the drug are shown in the table below. Is there enough evidence to support the company's claim? Let d (blood pressure before taking new drug)-(blood pressure after taking new drug). Use a significance level of a 0.05 for the test. Assume that the systolic blood pressure levels are...
A pharmaceutical company claims that its new drug reduces systolic blood pressure. The systolic blood pressure (in millimeters of mercury) for nine patients before taking the new drug and 2 hours after taking the drug are shown in the table below. Is there enough evidence to support the company's claim? Let d=(blood pressure before taking new drug)−(blood pressure after taking new drug). Use a significance level of α=0.1 for the test. Assume that the systolic blood pressure levels are normally...
Patient 1 2 3 4 5 6 7 8 9 Blood Pressure (before) 161 189 205 201 187 161 169 157 200 Blood Pressure (after) 152 169 193 195 163 141 149 142 178 A pharmaceutical company claims that its new drug reduces systolic blood pressure. The systolic blood pressure (in millimeters of mercury) for nine patients before taking the new drug and 22 hours after taking the drug are shown in the table below. Is there enough evidence to...
A pharmaceutical company claims that its new drug reduces systolic blood pressure. The systolic blood pressure (in millimeters of mercury) for nine patients before taking the new drug and 2 hours after taking the drug are shown in the table below. Using this data, find the 99% confidence interval for the true difference in blood pressure for each patient after taking the new drug. Assume that the blood pressures are normally distributed for the population of patients both before and...
Suppose that measurements of your systolic blood pressure are normally distributed with some unknown mean μ and unknown standard deviation σ. You suspect that your average systolic blood pressure is high, that is μ > 140 mmHg. In order to perform the test you are taking n = 20 independent measurements over several days. The sample mean is 3.3 and the sample standard deviation is 7.4. A) Find the value of the test statistic. Round your answer to the nearest...
A pharmaceutical company claims that its new drug reduces systolic blood pressure. The systolic blood pressure (in millimeters of mercury) for nine patients before taking the new drug and 22 hours after taking the drug are shown in the table below. Using this data, find the 99%99% confidence interval for the true difference in blood pressure for each patient after taking the new drug. Assume that the blood pressures are normally distributed for the population of patients both before and...