STAT 312 Introduction Z-Tests and Confidence Intervals for a

Slides:



Advertisements
Similar presentations
Statistics Review – Part II Topics: – Hypothesis Testing – Paired Tests – Tests of variability 1.
Advertisements

Stat381 Cheat sheet: Confidence Intervals
Section 9.3 Inferences About Two Means (Independent)
1 Matched Samples The paired t test. 2 Sometimes in a statistical setting we will have information about the same person at different points in time.
Chapter Seventeen HYPOTHESIS TESTING
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 9-1 Introduction to Statistics Chapter 10 Estimation and Hypothesis.
A Decision-Making Approach
Chapter 3 Hypothesis Testing. Curriculum Object Specified the problem based the form of hypothesis Student can arrange for hypothesis step Analyze a problem.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
5-3 Inference on the Means of Two Populations, Variances Unknown
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Two-Sample Tests Basic Business Statistics 10 th Edition.
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
One Sample  M ean μ, Variance σ 2, Proportion π Two Samples  M eans, Variances, Proportions μ1 vs. μ2 σ12 vs. σ22 π1 vs. π Multiple.
Lab 5 Hypothesis testing and Confidence Interval.
Two Sample Tests Ho Ho Ha Ha TEST FOR EQUAL VARIANCES
The paired sample experiment The paired t test. Frequently one is interested in comparing the effects of two treatments (drugs, etc…) on a response variable.
- Interfering factors in the comparison of two sample means using unpaired samples may inflate the pooled estimate of variance of test results. - It is.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
1 Objective Compare of two matched-paired means using two samples from each population. Hypothesis Tests and Confidence Intervals of two dependent means.
Chapter 13 – Difference Between Two Parameters Math 22 Introductory Statistics.
Chapter 10 Inferences from Two Samples
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 10-1 Chapter 2c Two-Sample Tests.
Pengujian Hipotesis Dua Populasi By. Nurvita Arumsari, Ssi, MSi.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
The Practice of Statistics Third Edition Chapter 13: Comparing Two Population Parameters Copyright © 2008 by W. H. Freeman & Company Daniel S. Yates.
Chap 9-1 Two-Sample Tests. Chap 9-2 Two Sample Tests Population Means, Independent Samples Means, Related Samples Population Variances Group 1 vs. independent.
1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use.
Confidence Intervals for Variance and Standard Deviation.
2 sample interval proportions sample Shown with two examples.
- We have samples for each of two conditions. We provide an answer for “Are the two sample means significantly different from each other, or could both.
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
Chapter 10 Statistical Inference for Two Samples More than one but less than three! Chapter 10B < X
1 Objective Compare of two matched-paired means using two samples from each population. Hypothesis Tests and Confidence Intervals of two dependent means.
Business Statistics, 4e, by Ken Black. © 2003 John Wiley & Sons Business Statistics, 4e by Ken Black Chapter 10 Statistical Inferences about Two.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 1 – Slide 1 of 26 Chapter 11 Section 1 Inference about Two Means: Dependent Samples.
AP Statistics. Chap 13-1 Chapter 13 Estimation and Hypothesis Testing for Two Population Parameters.
Sampling Distribution of Differences Between Means.
Introduction to Basic Statistical Methods Part 1: Statistics in a Nutshell UWHC Scholarly Forum May 21, 2014 Ismor Fischer, Ph.D. UW Dept of Statistics.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
STAT 312 Chapter 7 - Statistical Intervals Based on a Single Sample
Statistical Inferences for Population Variances
Inference concerning two population variances
Introduction For inference on the difference between the means of two populations, we need samples from both populations. The basic assumptions.
Stat 251 (2009, Summer) Final Lab TA: Yu, Chi Wai.
One-Sample Inference for Proportions
Chapter 4. Inference about Process Quality
STAT 312 Chapter 7 - Statistical Intervals Based on a Single Sample
Lecture Slides Elementary Statistics Twelfth Edition
Inference for Distributions
STAT 312 Chapter 7 - Statistical Intervals Based on a Single Sample
Inferences on Two Samples Summary
Elementary Statistics
SMOKERS NONSMOKERS Sample 1, size n1 Sample 2, size n2
Inference about Two Means: Independent Samples
Statistical Inference
Hypothesis Tests for Proportions
Comparing Populations
STAT Z-Tests and Confidence Intervals for a
CHAPTER 6 Statistical Inference & Hypothesis Testing
CHAPTER 6 Statistical Inference & Hypothesis Testing
Summary of Tests Confidence Limits
Chapter 24 Comparing Two Means.
Confidence Interval.
Lecture Slides Elementary Statistics Twelfth Edition
SMOKERS NONSMOKERS Sample 1, size n1 Sample 2, size n2
Statistical Inference for the Mean: t-test
7.4 Hypothesis Testing for Proportions
Presentation transcript:

STAT 312 Introduction 9.1 - Z-Tests and Confidence Intervals for a Chapter 9 - Inferences Based on Two Samples Introduction 9.1 - Z-Tests and Confidence Intervals for a Difference Between Two Population Means 9.2 - The Two-Sample T-Test and Confidence Interval 9.3 - Analysis of Paired Data 9.4 - Inferences Concerning a Difference Between Population Proportions 9.5 - Inferences Concerning Two Population Variances

SMOKERS NONSMOKERS Sample 1, size n1 Sample 2, size n2 Imagine the following “observational” study… X = Survival Time (“Time to Death”) in two independent normally-distributed populations SMOKERS NONSMOKERS X1 ~ N(μ1, σ1) 1 σ1 X2 ~ N(μ2, σ2) Null Hypothesis H0: μ1 = μ2, i.e., μ1 – μ2 = 0 (“No mean difference") Test at signif level α 2 σ2 “The reason for the significance was that the smokers started out older than the nonsmokers.” Sample 1, size n1 Sample 2, size n2 Suppose a statistically significant difference exists, with evidence that μ1 < μ2. How do we prevent this criticism???

        POPULATION 1 POPULATION 2 X ~ N(μ1, σ1) 1 σ1 Now consider two dependent (“matched,” “paired”) populations… X and Y normally distributed. POPULATION 1 POPULATION 2 X ~ N(μ1, σ1) 1 σ1 Y ~ N(μ2, σ2) Null Hypothesis H0: μ1 = μ2, i.e., μ1 – μ2 = 0 (“No mean difference") Test at signif level α 2 σ2 Classic Examples: Twin studies, Left vs. Right, Pre-Tx (Baseline) vs. Post-Tx, etc. Common in human trials to match on Age, Sex, Race,…         By design, every individual in Sample 1 is “paired” or “matched” with an individual in Sample 2, on potential confounding variables. … etc…. … etc….

    POPULATION 1 POPULATION 2 X ~ N(μ1, σ1) 1 σ1 Y ~ N(μ2, σ2) Now consider two dependent (“matched,” “paired”) populations… X, and Y normally distributed. POPULATION 1 POPULATION 2 X ~ N(μ1, σ1) 1 σ1 Y ~ N(μ2, σ2) Null Hypothesis H0: μ1 = μ2, i.e., μ1 – μ2 = 0 (“No mean difference") Test at signif level α 2 σ2 D = Classic Examples: Twin studies, Left vs. Right, Pre-Tx (Baseline) vs. Post Tx, etc. Common in human trials to match on Age, Sex, Race,…     … etc…. Sample 1, size n Sample 2, size n NOTE: Sample sizes are equal! Since they are paired, subtract! Treat as one sample of the normally distributed variable D = X – Y.

Example: > x = rnorm(100, 10, 2) > qqnorm(x, pch=19) > qqline(x) > y = rnorm(100, 10, 2) > qqnorm(y, pch=19) > qqline(y) > d = x – y > qqnorm(d, pch=19) > qqline(d)

Example: > x = rnorm(100, 10, 2) > qqnorm(x, pch=19) > qqline(x) > t.test(x, y, paired = T) Paired t-test data: x and y t = 0.9581, df = 99, p-value = 0.3403 alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval: -0.2865205 0.8215809 sample estimates: mean of the differences 0.2675302 Cannot reject null > y = rnorm(100, 10, 2) > qqnorm(y, pch=19) > qqline(y) > d = x – y > qqnorm(d, pch=19) > qqline(d) There is no statistically significant difference shown between the population means of X and Y.

Example: > x = rnorm(100, 10, 2) > qqnorm(x, pch=19) > qqline(x) > x = rnorm(100, 11, 2) > qqnorm(x, pch=19) > qqline(x) > t.test(x, y, paired = T) Paired t-test data: x and y t = 2.3462, df = 99, p-value = 0.02096 alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval: 0.1166321 1.3953268 sample estimates: mean of the differences 0.7559794 > t.test(x, y, paired = T) Paired t-test data: x and y t = 0.9581, df = 99, p-value = 0.3403 alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval: -0.2865205 0.8215809 sample estimates: mean of the differences 0.2675302 Can reject null at  = .05 > y = rnorm(100, 10, 2) > qqnorm(y, pch=19) > qqline(y) > d = x – y > qqnorm(d, pch=19) > qqline(d) There is a statistically significant difference shown between the population means of X and Y.

http://pages. stat. wisc http://pages.stat.wisc.edu/~ifischer/Intro_Stat/Lecture_Notes/6_-_Statistical_Inference/HYPOTHESIS_TESTING_SUMMARY.pdf

http://pages. stat. wisc http://pages.stat.wisc.edu/~ifischer/Intro_Stat/Lecture_Notes/6_-_Statistical_Inference/HYPOTHESIS_TESTING_SUMMARY.pdf