Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Homework7: Problem 9 Previous Problem List Next (1 point) To test the efficacy o

ID: 2949468 • Letter: H

Question

Homework7: Problem 9 Previous Problem List Next (1 point) To test the efficacy of a new cholesterol-lowering medication, 10 people are selected at random. Each has their LDL levels measured (shown below as Before), then take the medicine for 10 weeks, and then has their LDL levels measured again (After). Subject Before After 1150 140 2 180 148 3 146 158 4 192 174 5 138 111 6 132 104 7 123 102 193 173 9 161 130 10 186 158 Give a 95.1% confidence interval for ?8-??, the difference between LDL levels before and after taking the medication. Confidence Interval at 95.1% confidence. Give your answer as an open interval, in the form (A,B) where A is the lower bound and B is the upper bound. Preview My Answers Submit Answers

Explanation / Answer

SolutionA:

Use below R code to get answer:

before <- c(150,180,146,192,138,132,123,193,161,186)
after <- c(140,148,158,174,111,104,102,173,130,158)
t.test(before,after,conf.level = 0.951)

Output:

Welch Two Sample t-test

data: before and after

t = 1.7048, df = 17.971, p-value = 0.1055

alternative hypothesis: true difference in means is not equal to 0

95.1 percent confidence interval:

-4.841883 45.441883

sample estimates:

mean of x mean of y

160.1 139.8

ANSWR:

95.1 percent confidence interval:

(-4.841883, 45.441883)