Presentation is loading. Please wait.

Presentation is loading. Please wait.

Confidence intervals for the difference between two means: Independent samples Section 10.1.

Similar presentations


Presentation on theme: "Confidence intervals for the difference between two means: Independent samples Section 10.1."β€” Presentation transcript:

1 Confidence intervals for the difference between two means: Independent samples
Section 10.1

2 Objectives Distinguish between independent and paired samples
Construct confidence intervals for the difference between two population means Describe the pooled standard deviation and the known standard deviation methods

3 Distinguish between independent and paired samples
Objective 1 Distinguish between independent and paired samples

4 Independent Samples vs. Paired Samples
A drug company has developed a new drug that is designed to reduce high blood pressure. The researchers wish to design a study to compare the effectiveness of the new drug to that of the old drug. Here is one way in which the study can be designed. Design 1: Two samples of individuals are chosen. One sample is given the old drug and the other sample is given the new drug. After several months, blood pressures of the members of both samples are measured. We compare the blood pressures in the first sample to the blood pressures in the second sample to determine which drug is more effective. In this design, the samples are independent. This means that the observations in one sample do not influence the observations in the other.

5 Independent Samples vs. Paired Samples
A drug company has developed a new drug that is designed to reduce high blood pressure. The researchers wish to design a study to compare the effectiveness of the new drug to that of the old drug. Here is another way in which the study can be designed. Design 2: A single group of individuals is chosen. They are given the old drug for a month, then their blood pressures are measured. They then switch to the new drug for a month, after which their blood pressures are measured again. This produces two samples of measurements, the first one from the old drug and the second one from the new drug. We compare the blood pressures in the first sample to the blood pressures in the second sample to determine which drug is more effective. In this design, the samples are paired. Each observation in one sample can be paired with an observation in the second.

6 Objective 2 Construct confidence intervals for the difference between two population means

7 Confidence Intervals for the Difference Between Two Population Means
Imagine that we will compare the effectiveness of a new drug designed to reduce blood pressure to the effectiveness of a standard drug. We will draw two independent samples. The first sample will get the new drug, and the second sample will get the standard drug. We can imagine these samples as coming from two populationsβ€”a population of patients who take the new drug, and a population of patients who take the standard drug. For each population, there is a mean reduction in blood pressure. We are interested in estimating the difference between the population means. Let πœ‡ 1 be the population mean reduction for the new drug, and let πœ‡ 2 be the population mean reduction for the standard drug. We wish to construct a confidence interval for the difference πœ‡ 1 βˆ’ πœ‡ 2 . It follows that the point estimate for the difference πœ‡ 1 βˆ’ πœ‡ 2 is the difference between the sample mean. In other words, the point estimate for πœ‡ 1 βˆ’ πœ‡ 2 is π‘₯ 1 βˆ’ π‘₯ 2 .

8 Standard error of π‘₯ 1 βˆ’ π‘₯ 2 The sample means π‘₯ 1 and π‘₯ 2 have variances 𝜎 1 2 𝑛 1 and 𝜎 2 2 𝑛 2 . When the samples are independent, the variance of the difference π‘₯ 1 βˆ’ π‘₯ 2 can be shown to be the sum of the variances. In other words, the variance of π‘₯ 1 βˆ’ π‘₯ 2 is 𝜎 1 2 𝑛 1 + 𝜎 2 2 𝑛 2 The standard error of π‘₯ 1 βˆ’ π‘₯ 2 is the square root of the variance. Since we don’t know the values of 𝜎 1 2 and 𝜎 2 2 , we approximate them with the sample variance 𝑠 1 2 and 𝑠 Therefore, the standard error is 𝑠 1 2 𝑛 1 + 𝑠 2 2 𝑛 2 .

9 Critical Value and Margin of Error
Let 1βˆ’π›Ό be the confidence level, expressed as a decimal. The critical value for a confidence interval is 𝑑 𝛼 2 , based on the Student’s 𝑑 distribution. There are two ways to compute the number of degrees of freedom: a simple method that is easier when computing by hand, and a more complicated method that is used by software packages and calculator procedures. The simple method is: Degrees of Freedom = smaller of 𝑛 1 βˆ’ 1 and 𝑛 2 βˆ’ 1. The margin of error is obtained by multiplying the critical value and the standard error. The margin of error is 𝑑 𝛼 2 βˆ™ 𝑠 1 2 𝑛 1 + 𝑠 2 2 𝑛 2 . The confidence interval is constructed by adding and subtracting the margin of error from the point estimate. π‘₯ 1 βˆ’ π‘₯ 2 βˆ’ 𝑑 𝛼 2 βˆ™ 𝑠 1 2 𝑛 1 + 𝑠 2 2 𝑛 2 < πœ‡ 1 βˆ’ πœ‡ 2 < π‘₯ 1 βˆ’ π‘₯ 2 + 𝑑 𝛼 2 βˆ™ 𝑠 1 2 𝑛 1 + 𝑠 2 2 𝑛 2 This method is often referred to as Welch’s method.

10 Assumptions Welch’s Method requires some assumptions: Assumptions:
We have simple random samples from two populations. The samples are independent of one another. Each sample size is large (𝑛 > 30), or its population is approximately normal.

11 Example A drug company has developed a new drug that is designed to reduce high blood pressure. To test the drug, a sample of 15 patients is recruited to take the drug. Their systolic blood pressures are reduced by an average of 28.3 mmHg, with a standard deviation of 12.0 mmHg. In addition, another sample of 20 patients takes a standard drug. The blood pressures in this group are reduced by an average of 17.1 mmHg with a standard deviation of 9.0 mmHg. Assume that blood pressure reductions are approximately normally distributed. Find a 95% confidence interval for the difference between the population mean reduction for the new drug and that of the standard drug. Solution: We first check the assumptions. We have two independent random samples, and the populations are approximately normally distributed. The assumptions are satisfied. We summarize the information: New Drug Standard Drug Sample mean π‘₯ 1 =28.3 π‘₯ 2 =17.1 Sample stand dev. 𝑠 1 =12 𝑠 2 =9 Sample size 𝑛 1 =15 𝑛 2 =20 Population Mean πœ‡ 1 (unknown) πœ‡ 2 (unknown)

12 Solution The point estimate is: π‘₯ 1 βˆ’ π‘₯ 2 =28.3βˆ’17.1=11.2 The degrees of freedom is the smaller of 𝑛 1 βˆ’ 1 = 14 and 𝑛 2 βˆ’ 1 = 19, which is 14. Using Table A.3, degrees of freedom of 14 and 95% confidence level, we obtain a critical value of 𝑑 𝛼 2 = The standard error is 𝑠 1 2 𝑛 1 + 𝑠 2 2 𝑛 2 = = The margin of error is 𝑑 𝛼 2 βˆ™ 𝑠 1 2 𝑛 1 + 𝑠 2 2 𝑛 2 =2.145βˆ™ = The 95% confidence interval is π‘₯ 1 βˆ’ π‘₯ 2 - 𝑑 𝛼 2 βˆ™ 𝑠 1 2 𝑛 1 + 𝑠 2 2 𝑛 2 < πœ‡ 1 βˆ’ πœ‡ 2 < π‘₯ 1 βˆ’ π‘₯ 2 + 𝑑 𝛼 2 βˆ™ 𝑠 1 2 𝑛 1 + 𝑠 2 2 𝑛 – < πœ‡ 1 βˆ’ πœ‡ 2 < < πœ‡ 1 βˆ’ πœ‡ 2 < 19.1 We are 95% confident that the new drug provides a greater reduction in systolic blood pressure, and that the improvement due to the new drug is between 3.3 and 19.1 mmHg. Remember: π‘₯ 1 = π‘₯ 2 =17.1 𝑠 1 =12 𝑠 2 =9 𝑛 1 =15 𝑛 2 =20

13 Technology and Degrees of Freedom
If you construct a confidence interval for the difference between two means with technology, you will get a somewhat different answer than you will get using the method we have presented here. The reason is that computers and calculators compute the number of degrees of freedom differently, using a more accurate but rather complicated formula. Most computers and calculators compute the degrees of freedom as follows: Degrees of freedom = 𝑠 1 2 𝑛 1 + 𝑠 2 2 𝑛 2 2 𝑠 1 2 𝑛 1 2 𝑛 1 βˆ’1 + 𝑠 2 2 𝑛 1 2 𝑛 1 βˆ’1

14 Confidence Intervals on the TI-84 PLUS
The 2-SampTInt command constructs confidence intervals for the difference of the means of two independent samples. This command is accessed by pressing STAT and highlighting the TESTS menu. If the summary statistics are given the Stats option should be selected for the input option. If the raw sample data are given, the Data option should be selected.

15 Example (TI-84 PLUS) A drug company has developed a new drug that is designed to reduce high blood pressure. To test the drug, a sample of 15 patients is recruited to take the drug. Their systolic blood pressures are reduced by an average of 28.3 mmHg, with a standard deviation of 12.0 mmHg. In addition, another sample of 20 patients takes a standard drug. The blood pressures in this group are reduced by an average of 17.1 mmHg with a standard deviation of 9.0 mmHg. Assume that blood pressure reductions are approximately normally distributed. Find a 95% confidence interval for the difference between the population mean reduction for the new drug and that of the standard drug. Solution: We first check the assumptions. We have two independent random samples, and the populations are approximately normally distributed. The assumptions are satisfied. We summarize the information: New Drug Standard Drug Sample mean π‘₯ 1 =28.3 π‘₯ 2 =17.1 Sample stand dev. 𝑠 1 =12 𝑠 2 =9 Sample size 𝑛 1 =15 𝑛 2 =20 Population Mean πœ‡ 1 (unknown) πœ‡ 2 (unknown)

16 Example (TI-84 PLUS) Solution: We press STAT and highlight the TESTS menu and select 2-SampTInt. Select Stats as the input method and enter the following values: Enter 0.95 as the confidence level and select No for the pooled option. Select Calculate. The confidence interval is (3.5912, ). The results differ somewhat from those when calculating the confidence interval by hand, because the degrees of freedom has been calculated by the more accurate formula. π‘₯ 1 = π‘₯ 2 =17.1 𝑠 1 =12 𝑠 2 =9 𝑛 1 =15 𝑛 2 =20

17 Objective 3 Describe the pooled standard deviation and the known standard deviation methods

18 Alternate Methods In most situations in practice, Welch’s method is the method of choice for constructing confidence intervals for the difference between two means with independent samples. There are two other methods that are sometimes used. They are often not the best to use in practice, however, so we will always use Welch’s method. Alternate Methods: Using the pooled standard deviation when two population variances 𝜎 1 2 and 𝜎 2 2 are known to be equal. Using 𝑧 𝛼 2 when the population variances 𝜎 1 and 𝜎 2 are known.

19 Confidence Intervals Using Pooled Standard Deviation
When the two population variances, 𝜎 1 2 and 𝜎 1 2 , are known to be equal, there is an alternate method for computing a confidence interval. This alternate method was widely used in the past, and is still an option in many forms of technology. However, it is not recommended. The major problem with this method is that the assumption that the population variances are equal is very strict. The method can be quite unreliable if it is used when the population variances are not equal. Step 1: Compute the pooled standard deviation, 𝑠 𝑝 , as follows: 𝑠 𝑝 = 𝑛 1 βˆ’1 𝑠 𝑛 2 βˆ’1 𝑠 2 2 𝑛 1 + 𝑛 2 βˆ’2 Step 2: Compute the degrees of freedom: Degrees of freedom = 𝑛 1 + 𝑛 2 βˆ’2 A level 100(1 - 𝛼)% confidence interval is π‘₯ 1 βˆ’ π‘₯ 2 - 𝑑 𝛼 2 βˆ™ 𝑠 𝑝 1 𝑛 𝑛 2 < πœ‡ 1 βˆ’ πœ‡ 2 < π‘₯ 1 βˆ’ π‘₯ 2 + 𝑑 𝛼 2 βˆ™ 𝑠 𝑝 1 𝑛 𝑛 2

20 Confidence Intervals When 𝜎 1 and 𝜎 2 are Known
A level 100(1 βˆ’ 𝛼)% confidence interval when 𝜎 1 and 𝜎 2 are known is given by π‘₯ 1 βˆ’ π‘₯ 2 βˆ’ 𝑧 𝛼 𝜎 𝑛 𝜎 𝑛 < πœ‡ 1 βˆ’ πœ‡ 2 < π‘₯ 1 βˆ’ π‘₯ 𝑧 𝛼 𝜎 𝑛 𝜎 𝑛 2 Note that this method is the same as Welch’s except that the sample standard deviations 𝑠 1 and 𝑠 2 are replaced with the population standard deviations 𝜎 1 and 𝜎 2 , and 𝑑 𝛼 2 is replaced with 𝑧 𝛼 2 .

21 You Should Know… The difference between independent and paired samples
How to construct confidence intervals for the difference between two population means The pooled standard deviation method The known standard deviation method


Download ppt "Confidence intervals for the difference between two means: Independent samples Section 10.1."

Similar presentations


Ads by Google