Two Sample Statistical Inferences

Slides:



Advertisements
Similar presentations
Chapter 10: The t Test For Two Independent Samples
Advertisements

Estimation of Means and Proportions
Statistics Review – Part II Topics: – Hypothesis Testing – Paired Tests – Tests of variability 1.
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
Chapter 9: Inferences for Two –Samples
Copyright © Cengage Learning. All rights reserved. 9 Inferences Based on Two Samples.
10-1 Introduction 10-2 Inference for a Difference in Means of Two Normal Distributions, Variances Known Figure 10-1 Two independent populations.
Chap 11-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 11 Hypothesis Testing II Statistics for Business and Economics.
BCOR 1020 Business Statistics
1/45 Chapter 11 Hypothesis Testing II EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008.
IEEM 3201 Two-Sample Estimation: Paired Observation, Difference.
Chapter 11: Inference for Distributions
Inferences About Process Quality
Chapter 9 Hypothesis Testing.
ESTIMATION AND HYPOTHESIS TESTING: TWO POPULATIONS
5-3 Inference on the Means of Two Populations, Variances Unknown
Statistical Inference for Two Samples
AM Recitation 2/10/11.
An importer of Herbs and Spices claims that average weight of packets of Saffron is 20 grams. However packets are actually filled to an average weight,
Hypothesis testing – mean differences between populations
1 Level of Significance α is a predetermined value by convention usually 0.05 α = 0.05 corresponds to the 95% confidence level We are accepting the risk.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
Comparing Two Population Means
T tests comparing two means t tests comparing two means.
QBM117 Business Statistics Estimating the population mean , when the population variance  2, is known.
10-1 Introduction 10-2 Inference for a Difference in Means of Two Normal Distributions, Variances Known Figure 10-1 Two independent populations.
Copyright © Cengage Learning. All rights reserved. 10 Inferences Involving Two Populations.
STATISTICAL INFERENCE PART VIII HYPOTHESIS TESTING - APPLICATIONS – TWO POPULATION TESTS 1.
1 10 Statistical Inference for Two Samples 10-1 Inference on the Difference in Means of Two Normal Distributions, Variances Known Hypothesis tests.
AP STATISTICS LESSON 11 – 2 (DAY 2) More Accurate Levels in The t Procedures.
Math 4030 – 9b Comparing Two Means 1 Dependent and independent samples Comparing two means.
STATISTICAL INFERENCE PART VI HYPOTHESIS TESTING 1.
Chapter 10: The t Test For Two Independent Samples.
Confidence Intervals with Means Chapter 9. What is the purpose of a confidence interval? To estimate an unknown population parameter.
Irwin/McGraw-Hill © Andrew F. Siegel, 1997 and l Chapter 7 l Hypothesis Tests 7.1 Developing Null and Alternative Hypotheses 7.2 Type I & Type.
Class Six Turn In: Chapter 15: 30, 32, 38, 44, 48, 50 Chapter 17: 28, 38, 44 For Class Seven: Chapter 18: 32, 34, 36 Chapter 19: 26, 34, 44 Quiz 3 Read.
Independent Samples: Comparing Means Lecture 39 Section 11.4 Fri, Apr 1, 2005.
HYPOTHESIS TESTING.
Testing the Difference between Means, Variances, and Proportions
Exploring Group Differences
Hypothesis Tests l Chapter 7 l 7.1 Developing Null and Alternative
Chapter 9 Hypothesis Testing.
Chapter 10 Two Sample Tests
Testing the Difference between Means and Variances
Two-Sample Hypothesis Testing
Lecture Slides Elementary Statistics Twelfth Edition
3. The X and Y samples are independent of one another.
Exercises #8.74, 8.78 on page 403 #8.110, on page 416
Estimation & Hypothesis Testing for Two Population Parameters
Math 4030 – 10a Tests for Population Mean(s)
Chapter 8: Inference for Proportions
Towson University - J. Jung
Hypothesis Tests for a Population Mean in Practice
Chapter 9 Hypothesis Testing.
Data Mining 2016/2017 Fall MIS 331 Chapter 2 Sampliing Distribution
Two-Sample Inference Procedures with Means
The t distribution and the independent sample t-test
LESSON 20: HYPOTHESIS TESTING
Comparing Populations
Quantitative Methods in HPELS HPELS 6210
Independent Samples: Comparing Means
STAT Z-Tests and Confidence Intervals for a
ESTIMATION AND HYPOTHESIS TESTING: TWO POPULATIONS
Chapter 13: Inferences about Comparing Two Populations Lecture 7a
Some statistics questions answered:
Hypothesis Testing: The Difference Between Two Population Means
ESTIMATION.
Chapter 8: Confidence Intervals
Chapter 9 Lecture 4 Section: 9.4.
Chapter 9 Lecture 3 Section: 9.3.
Presentation transcript:

Two Sample Statistical Inferences Additional material

How can we compare two means? Suppose that we have two populations. Furthermore, suppose that the first population has a mean 1 and the second population a mean 2. We would like to use inferential statistics to compare 1 and 2 by using either a confidence interval and/or a significance test.

Independent Samples Independent Samples occur when observations are gathered independently from two different populations. For example, suppose we want to compare starting salaries for males and females at a certain bank. We collect a random sample of males and a random sample of females and measure their starting salaries.

Paired Samples Paired Samples occur when observations are gathered in pairs, where each pair consists of an observation from population 1 and an observation from population 2, and these two observations are related. Although there are other types of paired samples, a common type is a before-after sample.

Paired Samples For example, suppose we want to determine the effectiveness of a new drug in reducing blood pressure. For each individual in the sample a measurement is taken prior to the medication and another measurement is taken after using the medication for a fixed period of time. These two observations (for each individual) are related. This constitutes a paired sample.

Outline Two sample comparisons: Paired Samples (dependent samples) Independent Samples – Population Standard Deviations Not Assumed to be Equal (σ1≠ σ2) Independent Samples – Population Standard Deviations Assumed to be Equal (σ1= σ2) All methods assume random samples from normal populations with unknown means and unknown standard deviations. For small sample sizes, it is critical that our observations are normal or approximately normal. However, for sufficiently large sample sizes (from the C.L.T.) the assumptions of normality can be relaxed. 6 6

Paired Samples 7 7

Paired (dependent) Samples

Paired (dependent) Samples

Paired (dependent) Samples t-score = di invttail(n-1,α/2)

Paired (dependent) Samples

Independent Two Samples 12 12

Independent Two Samples We gather independent and random samples from each population. 13 13

Independent Two Samples 14 14

Independent Two Samples 15 15

Independent Two Samples: Not Assuming Equal Standard Deviations (σ1≠ σ2) ~ tdf=v, Note: Unless we obtain our degrees of freedom using a computer, we will round v down to the nearest integer. 16 16

Independent Two Samples: Not Assuming Equal Standard Deviations (σ1≠ σ2) A (1-α)×100% CI is where a critical value that makes the right tail probability equal to α/2 Stata: di invttail(df, α/2) 17 17

Independent Two Samples: Not Assuming Equal Standard Deviations (σ1≠ σ2) 18 18

Exercise: Does alcohol affect males and females differently? A study involving males and females with similar physical characteristics was conducted. In a controlled setting, each individual was asked to consume 4 ounces of alcohol. One hour after consumption each participant took a Breathalyzer to measure his or her blood alcohol level. The following results were obtained: Is there a real difference in blood alcohol levels between males and females? Carry out an appropriate test to answer this question. Calculate a 99% confidence interval for the difference in blood alcohol levels between males and females. 19 19

Exercise Stata command and outputs: ttesti n1 u1 s1 n2 u2 s2, unequal level(#) 20

Independent Samples: Assuming Equal Standard Deviations (σ1= σ2) 21 21

Independent Samples: Assuming Equal Standard Deviations (σ1= σ2) 22 22

Independent Samples: Assuming Equal Standard Deviations (σ1= σ2) 23 23

Independent Samples: Assuming Equal Standard Deviations (σ1= σ2) 24 24

To be pooled, or not to be pooled? Equal S.D. or not equal? We could base our decision on an informal rule (usually works and is much less complicated). If no sample standard deviation is twice the other, (i.e 0.5 < s1/s2 < 2), then the assumption of equal standard deviations should be ok. We could perform a graphical analysis and look at the box-plots for the samples to informally assess the equal standard deviations assumption. There are formal tests to assess the evidence against equal population standard deviations Variance Ratio Test Levene’s Test 25 25

Variance Ratio Test Ho: σ12 = σ22 vs. Ha: σ12 ≠ σ22 Test statistic: F= s12 / s22 ~ Fdf1=n1-1, df2=n2-1 p-value: 26

Variance Ratio Test Stata command: sdtesti n1 . sd1 n2 . sd2 Example: Test σ1= σ2 when observed n1=75, sd1=6.5, n2=65, and sd2= 7.5 sdtesti 75 . 6.5 65 . 7.5 27

Exercise Two machines are used to fill plastic bottles with dishwashing detergent. Two random samples are taken and the following results are obtained: Is there a real difference between their average fills? Carry out an appropriate test to answer this question. Calculate a 95% confidence interval for the difference in the mean fill between the two machines 28 28

Exercise s1=√0.113=0.336; s2= √0.125 =0.354 Testing for Equal Variances 29

Exercise Stata command for two-sample t test with equal variances ttesti N1 u1 s1 N2 u2 S2, level(#) Compared with machine 2, machine 1 had a statistically significantly lower mean fill. The difference in mean fill was -0.41 (95%CI: -0.59 to -0.23) for machine 2 relative to machine 1 (p<0.001). 30