Lesson 13 - 1 Comparing Two Means.

Slides:



Advertisements
Similar presentations
Lesson Tests about a Population Mean. Knowledge Objectives Define the one-sample t statistic.
Advertisements

Conditions with σ Unknown Note: the same as what we saw before.
Two-Sample Inference Procedures with Means. Remember: We will be intereste d in the differen ce of means, so we will use this to find standard error.
Introduction Comparing Two Means
Confidence Interval and Hypothesis Testing for:
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
BCOR 1020 Business Statistics
Chapter 11: Inference for Distributions
CHAPTER 19: Two-Sample Problems
C HAPTER 11 Section 11.2 – Comparing Two Means. C OMPARING T WO M EANS Comparing two populations or two treatments is one of the most common situations.
Objective: To test claims about inferences for two sample means, under specific conditions.
AP Statistics Section 13.1 A. Which of two popular drugs, Lipitor or Pravachol, helps lower bad cholesterol more? 4000 people with heart disease were.
Chapter 24: Comparing Means.
Chapter 10: Comparing Two Populations or Groups
Lesson Carrying Out Significance Tests. Vocabulary Hypothesis – a statement or claim regarding a characteristic of one or more populations Hypothesis.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 2 – Slide 1 of 25 Chapter 11 Section 2 Inference about Two Means: Independent.
Ch 11 – Inference for Distributions YMS Inference for the Mean of a Population.
Lesson 11 - R Review of Testing a Claim. Objectives Explain the logic of significance testing. List and explain the differences between a null hypothesis.
Comparing 2 population parameters Chapter 13. Introduction: Two Sample problems  Ex: How do small businesses that fail differ from those that succeed?
AP STATISTICS LESSON 11 – 2 (DAY 1) Comparing Two Means.
Chapter 10 Comparing Two Means Target Goal: I can use two-sample t procedures to compare two means. 10.2a h.w: pg. 626: 29 – 32, pg. 652: 35, 37, 57.
Lesson Estimating a Population Mean. Knowledge Objectives Identify the three conditions that must be present before estimating a population mean.
About 42,000 high school students took the AP Statistics exam in 2001
Copyright © Cengage Learning. All rights reserved. 10 Inferences Involving Two Populations.
Lesson Comparing Two Proportions. Knowledge Objectives Identify the mean and standard deviation of the sampling distribution of p-hat 1 – p-hat.
The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates.
AP Statistics Section 13.1 A. Which of two popular drugs, Lipitor or Pravachol, helps lower bad cholesterol more? 4000 people with heart disease were.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section Inference about Two Means: Independent Samples 11.3.
Comparing Three or More Means ANOVA (One-Way Analysis of Variance)
Chapter 23 Inference for One- Sample Means. Steps for doing a confidence interval: 1)State the parameter 2)Conditions 1) The sample should be chosen randomly.
Lesson Comparing Two Proportions. Inference Toolbox Review Step 1: Hypothesis –Identify population of interest and parameter –State H 0 and H a.
Example 1: a) Describe the shape, center, and spread of the sampling distribution of. The sampling distribution of is Normal because both population distributions.
Comparing Two Population Parameters Comparing 2 Means.
CONFIDENCE INTERVAL FOR 2-SAMPLE MEANS
Lesson Inference about Two Means - Dependent Samples.
Lesson Comparing Two Means. Knowledge Objectives Describe the three conditions necessary for doing inference involving two population means. Clarify.
AP Statistics Chapter 24 Comparing Means.
Week111 The t distribution Suppose that a SRS of size n is drawn from a N(μ, σ) population. Then the one sample t statistic has a t distribution with n.
Section 11.2 Comparing Two Means AP Statistics
Section 11.2 Comparing Two Means AP Statistics Winter 2006.
SECTION 11.2 COMPARING TWO MEANS AP Statistics. Comparing Two Means AP Statistics, Section  Very useful compare two populations  Two population.
Lesson Testing Claims about a Population Mean in Practice.
Suppose we have a population of adult men with a mean height of 71 inches and standard deviation of 2.6 inches. We also have a population of adult women.
AP Statistics. Chap 13-1 Chapter 13 Estimation and Hypothesis Testing for Two Population Parameters.
+ Unit 6: Comparing Two Populations or Groups Section 10.2 Comparing Two Means.
Learning Objectives After this section, you should be able to: The Practice of Statistics, 5 th Edition1 DESCRIBE the shape, center, and spread of the.
Comparing Two Means Ch. 13. Two-Sample t Interval for a Difference Between Two Means.
Essential Statistics Chapter 171 Two-Sample Problems.
Lesson 12 - R Review of Chapter 12 Significance Tests in Practice.
Two Sample Problems  Compare the responses of two treatments or compare the characteristics of 2 populations  Separate samples from each population.
CHAPTER 19: Two-Sample Problems ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture Presentation.
AP Statistics Chapter 11 Section 2. TestConfidence IntervalFormulasAssumptions 1-sample z-test mean SRS Normal pop. Or large n (n>40) Know 1-sample t-test.
AP Statistics Chapter 24 Comparing Means. Objectives: Two-sample t methods Two-Sample t Interval for the Difference Between Means Two-Sample t Test for.
Two-Sample Inference Procedures with Means. Two independent samples Difference of Means.
2 sample hypothesis testing. Does increasing the amount of calcium in our diet reduce blood pressure? Examination of a large sample of people revealed.
Review of Testing a Claim
Inference about Two Means - Independent Samples
AP Stats Check In Where we’ve been…
Unit 6: Comparing Two Populations or Groups
CHAPTER 19: Two-Sample Problems
Comparing Two Means.
Lesson Comparing Two Means.
Confidence intervals for the difference between two means: Independent samples Section 10.1.
Which of the popular two drugs – Lipitor or Pravachol – helps lower.
Lesson Comparing Two Means.
Review of Chapter 10 Comparing Two Population Parameters
Carrying Out Significance Tests
CHAPTER 19: Two-Sample Problems
Section 10.2 Comparing Two Means.
Chapter 10 Comparing Two Populations or Treatments Section 10.2
Presentation transcript:

Lesson 13 - 1 Comparing Two Means

Two Sample Problems The goal of inference is to compare the responses to two treatments or to compare the characteristics of two populations We have a separate sample from each treatment or each population The response of each group are independent of those in other group

Conditions for Comparing 2 Means SRS Two SRS’s from two distinct populations Measure same variable from both populations Normality Both populations are Normally distributed In practice, (large sample sizes for CLT to apply) similar shapes with no strong outliers Independence Samples are independent of each other Ni ≥ 10ni

2-Sample z Statistic Facts about sampling distribution of x1 – x2 Mean of x1 – x2 is 1 - 2 (since sample means are an unbiased estimator) Variance of the difference of x1 – x2 is If the two population distributions are Normal, then so is the distribution of x1 – x2 σ1 σ2 --- + --- n1 n2 ² ²

2-Sample z Statistic Since we almost never know the population standard deviation (or for sure that the populations are normal), we very rarely use this in practice.

2-Sample t Statistic Since we don’t know the standard deviations we use the t-distribution for our test statistic. But we have a problem with calculating the degrees of freedom! We have two options: Let our calculator handle the complex calculations and tell us what the degrees of freedom are Use the smaller of n1 – 1 and n2 – 1 as a conservative estimate of the degrees of freedom

P-Value is the area highlighted Reject null hypothesis, if Classical and P-Value Approach – Two Means P-Value is the area highlighted Remember to add the areas in the two-tailed! -tα -tα/2 tα/2 tα t0 -|t0| |t0| t0 Critical Region (x1 – x2) – (μ1 – μ2 ) t0 = ------------------------------- s12 s22 ----- + ----- n1 n2 Test Statistic: Reject null hypothesis, if P-value < α Left-Tailed Two-Tailed Right-Tailed t0 < - tα t0 < - tα/2 or t0 > tα/2 t0 > tα

t-Test Statistic Since H0 assumes that the two population means are the same, our test statistic is reduce to: Similar in form to all of our other test statistics (x1 – x2) t0 = ------------------------------- s12 s22 ----- + ----- n1 n2 Test Statistic:

Confidence Intervals Lower Bound: s12 s22 ----- + ----- Upper Bound: tα/2 is determined using the smaller of n1 -1 or n2 -1 degrees of freedom x1 and x2 are the means of the two samples s1 and s2 are the standard deviations of the two samples Note: The two populations need to be normally distributed or the sample sizes large s12 s22 ----- + ----- n1 n2 (x1 – x2) – tα/2 · PE ± MOE s12 s22 ----- + ----- n1 n2 (x1 – x2) + tα/2 ·

Two-sample, independent, T-Test on TI If you have raw data: enter data in L1 and L2 Press STAT, TESTS, select 2-SampT-Test raw data: List1 set to L1, List2 set to L2 and freq to 1 summary data: enter as before Set Pooled to NO copy off t* value and the degrees of freedom Confidence Intervals follow hypothesis test steps, except select 2-SampTInt and input confidence level

Inference Toolbox Review Step 1: Hypothesis Identify population of interest and parameter State H0 and Ha Step 2: Conditions Check appropriate conditions Step 3: Calculations State test or test statistic Use calculator to calculate test statistic and p-value Step 4: Interpretation Interpret the p-value (fail-to-reject or reject) Don’t forget 3 C’s: conclusion, connection and context

Example 1 Does increasing the amount of calcium in our diet reduce blood pressure? Subjects in the experiment were 21 healthy black men. A randomly chosen group of 10 received a calcium supplement for 12 weeks. The control group of 11 men received a placebo pill that looked identical. The response variable is the decrease in systolic (top #) blood pressure for a subject after 12 weeks, in millimeters of mercury. An increase appears as a negative response. Data summarized below Calculate the summary statistics. Test the claim Subjects 1 2 3 4 5 6 7 8 9 10 11 Calcium -4 18 17 -3 -5 -2 ---- Control -1 12 -11

Example 1a Calculate the summary statistics. Subjects 1 2 3 4 5 6 7 8 9 10 11 Calcium -4 18 17 -3 -5 -2 ---- Control -1 12 -11 Group Treatment N x-bar s 1 Calcium 10 5.000 8.743 2 Control 11 -0.273 5.901 Looks like there might be a difference!

Example 1b Test the claim Hypotheses: Group Treatment N x-bar s 1 Calcium 10 5.000 8.743 2 Control 11 -0.273 5.901 1 = mean decreases in black men taking calcium 2 = mean decreases in black men taking placebo HO: 1 = 2 Ha: 1 > 2 or equivalently HO: 1 - 2 = 0 Ha: 1 - 2 > 0

Example 1b cont Conditions: SRS Normality Independence The 21 subjects were not a random selection from all healthy black men. Hard to generalize to that population any findings. Random assignment of subjects to treatments should ensure differences due to treatments only. Sample size too small for CLT to apply; Plots Ok. Because of the randomization, the groups can be treated as two independent samples

Example 1b cont Calculations: Conclusions: df = min(11-1,10-1) = 9 (x1 – x2) 5.273 t0 = ------------------------------- = ------------ = 1.604 s12 s22 3.2878 ----- + ----- n1 n2 from calculator: t=1.6038 p-value = 0.0644 df = 15.59 Since p-value is above an  = 0.05 level, we conclude that the difference in sample mean systolic blood pressures is not sufficient evidence to reject H0. Not enough evidence to support Calcium supplements lowering blood pressure.

Example 2 Given the following data collected from two independently done simple random samples on average cell phone costs: Test the claim that μ1 > μ2 at the α = 0.05 level of significance Construct a 95% confidence interval about μ1 - μ2 Data Provider 1 Provider 2 n 23 13 x-bar 43.1 41.0 s 4.5 5.1

Example 2a Cont Parameters Hypothesis H0: H1: Requirements: SRS: Normality: Independence: ui is average cell phone cost for provider i μ1 = μ2 (No difference in average costs) μ1 > μ2 (Provider 1 costs more than Provider 2) Stated in the problem Have to assume to work the problem. Sample size to small for CLT to apply Stated in the problem

Example 2a Cont Calculation: Critical Value: x1 – x2 - 0 Conclusion: x1 – x2 - 0 t0 = ------------------------ (s²1/n1) + (s²2/n2) = 1.237, p-value = 0.1144 tc(13-1,0.05) = 1.782, α = 0.05 Since the p-value >  (or that tc > t0), we would not have evidence to reject H0. The cell phone providers average costs seem to be the same.

Example 2b Confidence Interval: PE ± MOE s12 s22 ----- + ----- n1 n2 (x1 – x2) ± tα/2 · tc(13-1,0.025) = 2.179 2.1 ± 2.179  (20.25/23) + (26.01/13) 2.1 ± 2.179 (1.6974) = 2.1 ± 3.6986 [ -1.5986, 5.7986] by hand [ -1.4166, 5.6156] by calculator It uses a different way to calculate the degrees of freedom (as shown on pg 792)

DF - Welch and Satterthwaite Apx Using this approximation results in narrower confidence intervals and smaller p-values than the conservative approach mentioned before

Pooling Standard Deviations?? DON’T Pooling assumes that the standard deviations of the two populations are equal – very hard to justify this This could be tested using the F-statistic (a non robust procedure beyond AP Stats) Beware: formula on AP Stat equation set under Descriptive Statistics

Summary and Homework Summary Homework Two sets of data are independent when observations in one have no affect on observations in the other Differences of the two means usually use a Student’s t-test of mean differences The overall process, other than the formula for the standard error, are the general hypothesis test and confidence intervals process Homework 13.1, 7, 8, 13, 17