Inferences About Means from Two Groups

Slides:



Advertisements
Similar presentations
Topic 6: Introduction to Hypothesis Testing
Advertisements

Probability & Statistical Inference Lecture 7 MSc in Computing (Data Analytics)
EPIDEMIOLOGY AND BIOSTATISTICS DEPT Esimating Population Value with Hypothesis Testing.
Ch 10 Comparing Two Proportions Target Goal: I can determine the significance of a two sample proportion. 10.1b h.w: pg 623: 15, 17, 21, 23.
Section 10.1 ~ t Distribution for Inferences about a Mean Introduction to Probability and Statistics Ms. Young.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on the Least-Squares Regression Model and Multiple Regression 14.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 2 – Slide 1 of 25 Chapter 11 Section 2 Inference about Two Means: Independent.
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.
Unit 8 Section : z Test for a Mean  Many hypotheses are tested using the generalized statistical formula: Test value = (Observed Value)-(expected.
The Practice of Statistics Third Edition Chapter 10: Estimating with Confidence Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates.
Introduction to Inference: Confidence Intervals and Hypothesis Testing Presentation 8 First Part.
1 CHAPTER 4 CHAPTER 4 WHAT IS A CONFIDENCE INTERVAL? WHAT IS A CONFIDENCE INTERVAL? confidence interval A confidence interval estimates a population parameter.
: An alternative representation of level of significance. - normal distribution applies. - α level of significance (e.g. 5% in two tails) determines the.
Inen 460 Lecture 2. Estimation (ch. 6,7) and Hypothesis Testing (ch.8) Two Important Aspects of Statistical Inference Point Estimation – Estimate an unknown.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 3 – Slide 1 of 27 Chapter 11 Section 3 Inference about Two Population Proportions.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
Independent Samples: Comparing Means Lecture 39 Section 11.4 Fri, Apr 1, 2005.
Virtual University of Pakistan
Chapter 9 Hypothesis Testing
More on Inference.
Unit 5 – Chapters 10 and 12 What happens if we don’t know the values of population parameters like and ? Can we estimate their values somehow?
CHAPTER 10 Comparing Two Populations or Groups
Chapter 4. Inference about Process Quality
STAT 312 Chapter 7 - Statistical Intervals Based on a Single Sample
Hypothesis Testing and Confidence Intervals (Part 1): Using the Standard Normal Lecture 8 Justin Kern October 10 and 12, 2017.
Inference for Experiments
Statistical inference: distribution, hypothesis testing
Chapter 8: Inference for Proportions
Correlation A Lecture for the Intro Stat Course
Sampling Distributions
Inferences About Proportions of Two Groups
Simple Linear Regression
Hypothesis Testing: Hypotheses
Statistical Inference
About the Two Different Standard Normal (Z) Tables
Understanding How Hypothesis Testing Works
AP Stats Check In Where we’ve been…
Determining Sample Size
Intro to Statistical Inference
Student’s t-Distribution
Inferences About Means from Two Independent Groups
More on Inference.
CHAPTER 8 Estimating with Confidence
Chapter 9 Hypothesis Testing.
CHAPTER 8 Estimating with Confidence
Estimating with Confidence
Inferences About the Population Proportion
YOU HAVE REACHED THE FINAL OBJECTIVE OF THE COURSE
CHAPTER 10 Comparing Two Populations or Groups
Virtual University of Pakistan
Lecture: statistical significance.
CHAPTER 8 Estimating with Confidence
Lecture 10/24/ Tests of Significance
Chapter 11: Testing a Claim
What are their purposes? What kinds?
Day 63 Agenda:.
Intro to Confidence Intervals Introduction to Inference
Hypothesis Testing and Confidence Intervals
CHAPTER 10 Comparing Two Populations or Groups
CHAPTER 8 Estimating with Confidence
CHAPTER 10 Comparing Two Populations or Groups
CHAPTER 10 Comparing Two Populations or Groups
Comparing Two Proportions
CHAPTER 8 Estimating with Confidence
CHAPTER 10 Comparing Two Populations or Groups
CHAPTER 10 Comparing Two Populations or Groups
Objectives 6.1 Estimating with confidence Statistical confidence
CHAPTER 10 Comparing Two Populations or Groups
How Confident Are You?.
Presentation transcript:

Inferences About Means from Two Groups Two-Sample Z-Test Inferences About Means from Two Groups Each slide has its own narration in an audio file. For the explanation of any slide click on the audio icon to start it. Professor Friedman's Statistics Course by H & L Friedman is licensed under a  Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. 

Two-Sample Hypothesis Test Researchers often want to compare two populations, with regard to a particular parameter (say, µ). For example, a researcher might wish to determine whether or not men and women are different when it comes to overall GPA in college. Two Sample Z Test

Two-Sample Hypothesis Test We test the hypothesis that there is really no difference between the two population means. H0: μ1= μ2 H1: μ1≠ μ2 Here H0 is implying that the two populations that the samples were taken from are, in effect, a single population since there is no difference between them. As we know, the null hypothesis, H0 is a “straw man.” We set it up and then see whether or not we can knock it down based on the sample evidence. Two Sample Z Test

Two-Sample Hypothesis Test The null hypothesis that μ1= μ2 is equivalent to stating that the difference between the two population means is 0. So H0 could be stated as: (μ1-μ2) = 0. Note that H0 is always about population parameters, in this case the difference between the two population means. The random variable for this test is (X̅1-X̅2), and, as always, takes its value from the sample data Two Sample Z Test

Sampling Distribution of (X̅1-X̅2) If the samples are large, random, and independent, then (X̅1-X̅2), which is a random variable, has approximately a normal distribution, with   Two Sample Z Test

Two-Sample Z-test If the sample sizes are large enough, or if population standard deviations are known, we use a Two-Sample Z-test. Two Sample Z Test

To Calculate Z But, of course, under H0, µ1= µ2, so for known σ1 and σ2 Two Sample Z Test

To Calculate Z (cont’d) If σ1 and σ2 are unknown, we can use Z= as long as n1+n2 is large enough. Two Sample Z Test

CIE for Difference of Means The confidence interval estimator (CIE) for a two-sample test is used to estimate the difference between the two population means (μ1–μ2). As always, sample data can be expected to have some sampling error (also known as the margin of error). To construct a (1-)% CIE for the difference, use this formula. The Z value in the formula comes from the Z table. We will be doing two-sided confidence intervals. Thus, for 95% CIE, use a Z of 1.96; for 90% CIE, use a Z of 1.645; for 99% CIE, use Z of 2.575; and so on. Two Sample Z Test

CIE for Difference of Means(cont’d) If the CIE includes 0, this means that we have to be willing to accept that there is a difference of 0 (fancy way of saying no difference) between the two population means). There will always be a 0 in the CIE if we find that the confidence interval goes from a negative number to a positive number or a positive number to a negative number. Two Sample Z Test

Problem 1: A New Drug Suppose a medical researcher wants to test a new drug that is supposed to protect against the common cold. The researcher randomly assigns subjects to one of two groups – patients in one group are given the drug; the others (the control group) take a placebo. The measure of interest is the number of colds subjects get in a year. (Typically, most people get about 4 to 6 colds a year.) In a “double blind” study, neither the subjects nor the researchers know who is taking the drug and who is taking the placebo. Two Sample Z Test

Problem 1: A New Drug Group 1(Drug Group) Group 2 (Placebo Group) Sample size: n1=81 Sample mean: X̅1 = 4.4 colds per year Sample standard deviation: s1 = 0.7 colds per year Group 2 (Placebo Group) Sample size: n2=64 Sample mean: X̅2 = 4.8 colds per year Sample standard deviation: s2 = 0.8 colds per year The difference between the two sample means is -0.4 colds (4.4 – 4.8). This difference could be a statistically significant difference or could just be chance. A chance difference means that another researcher comparing two other groups might find that the placebo group has fewer colds, on average. This is why we need a statistical test. Two Sample Z Test

Problem 1: A New Drug (a) Test at =.05 Therefore, REJECT H0 p < .05. The two groups are indeed statistically different. The Drug group has fewer colds per year. Two Sample Z Test

Problem 1: A New Drug (b) Construct a 95% Confidence Interval Estimator (CIE) for the difference between the two population means. The CIE in a two-sample situation is an estimator for the difference. We observed a difference in the data of -.4 colds. This was the difference between the two sample means. We want to construct a 95% CIE for the difference between the two population means. If we see a 0 in the confidence interval, this means that we have to be willing to accept a difference of 0, i.e., that the two means are the same. Two Sample Z Test

Problem 1: A New Drug 95% CIE for the difference between the two population means. The Z-value for a 95% confidence level is 1.96.   -.40 ± 1.96(.127) -.40 ± .25 Thus, the margin of sampling error is .25 colds The 95% CIE is: -.65 ←—→ -.15 Since 0 is not in the above interval, we see that there is a difference between the two groups (The difference is not 0). We are 95% sure that the true population mean difference between the drug group and the placebo (control) group is between .15 and .65 fewer colds. Two Sample Z Test

Problem 2: Science Test Scores Scores on a standardized science test. Is there a significant difference between men and women? (a) Test at =.05. Two Sample Z Test

Problem 2: Science Test Scores Do not reject H0 (p > .05). There is no statistically significant difference between men and women on test scores in science. Two Sample Z Test

Problem 2: Science Test Scores (b) Construct a 95% Confidence Interval Estimate for the difference between the two population means. The Z-value we use for 95% confidence is 1.96.   3.5± 1.96(2.24) 3.5± 4.4 The margin of sampling error is 4.4 The 95% CIE is: -.9 ←—→ +7.9 Since 0 is in the above interval, we conclude that there is no statistically significant difference between men and women on the science test. Two Sample Z Test

Homework Practice, practice, practice. Do lots and lots of problems. You can find these in the online lecture notes. Two Sample Z Test