6.1 - One Sample 6.1 - One Sample  Mean μ, Variance σ 2, Proportion π 6.2 - Two Samples 6.2 - Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.

Slides:



Advertisements
Similar presentations
Section 9.3 Inferences About Two Means (Independent)
Advertisements

STATISTICAL INFERENCE PART V
Confidence Interval and Hypothesis Testing for:
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 10 Hypothesis Testing:
Business 205. Review Sampling Continuous Random Variables Central Limit Theorem Z-test.
PSY 307 – Statistics for the Behavioral Sciences
Chap 11-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 11 Hypothesis Testing II Statistics for Business and Economics.
Chapter Goals After completing this chapter, you should be able to:
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 9-1 Introduction to Statistics Chapter 10 Estimation and Hypothesis.
1/45 Chapter 11 Hypothesis Testing II EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008.
A Decision-Making Approach
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 10-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
T-Tests Lecture: Nov. 6, 2002.
1 Inference About a Population Variance Sometimes we are interested in making inference about the variability of processes. Examples: –Investors use variance.
Chapter 9 Hypothesis Testing.
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.
Hypothesis Testing and T-Tests. Hypothesis Tests Related to Differences Copyright © 2009 Pearson Education, Inc. Chapter Tests of Differences One.
Power and Sample Size IF IF the null hypothesis H 0 : μ = μ 0 is true, then we should expect a random sample mean to lie in its “acceptance region” with.
One Sample  M ean μ, Variance σ 2, Proportion π Two Samples  M eans, Variances, Proportions μ1 vs. μ2 σ12 vs. σ22 π1 vs. π Multiple.
1 Chapter 9 Inferences from Two Samples In this chapter we will deal with two samples from two populations. The general goal is to compare the parameters.
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Chapter 9.3 (323) A Test of the Mean of a Normal Distribution: Population Variance Unknown Given a random sample of n observations from a normal population.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 2 – Slide 1 of 25 Chapter 11 Section 2 Inference about Two Means: Independent.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
STATISTICAL INFERENCE PART VII
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
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.
1 Objective Compare of two matched-paired means using two samples from each population. Hypothesis Tests and Confidence Intervals of two dependent means.
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
Pengujian Hipotesis Dua Populasi By. Nurvita Arumsari, Ssi, MSi.
Maximum Likelihood Estimator of Proportion Let {s 1,s 2,…,s n } be a set of independent outcomes from a Bernoulli experiment with unknown probability.
A Course In Business Statistics 4th © 2006 Prentice-Hall, Inc. Chap 9-1 A Course In Business Statistics 4 th Edition Chapter 9 Estimation and Hypothesis.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 12 Inference About A Population.
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 Chapter 9 Inferences from Two Samples 9.2 Inferences About Two Proportions 9.3 Inferences About Two Means (Independent) 9.4 Inferences About Two Means.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 8 th Edition Chapter 10 Hypothesis Testing:
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 9-1 Chapter 9 Two-Sample Tests Statistics for Managers Using Microsoft.
6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2.
1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use.
Math 4030 – 9b Comparing Two Means 1 Dependent and independent samples Comparing two means.
- 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.
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.
Inference for Proportions Section Starter Do dogs who are house pets have higher cholesterol than dogs who live in a research clinic? A.
1 Section 8.5 Testing a claim about a mean (σ unknown) Objective For a population with mean µ (with σ unknown), use a sample to test a claim about the.
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.
1 Section 8.4 Testing a claim about a mean (σ known) Objective For a population with mean µ (with σ known), use a sample (with a sample mean) to test a.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved.Copyright © 2010 Pearson Education Section 9-3 Inferences About Two Means:
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.
Statistical Inferences for Population Variances
Chapter 4. Inference about Process Quality
8-1 of 23.
STAT 312 Chapter 7 - Statistical Intervals Based on a Single Sample
Estimation & Hypothesis Testing for Two Population Parameters
Math 4030 – 10a Tests for Population Mean(s)
Chapter 8 Hypothesis Testing with Two Samples.
STAT 312 Chapter 7 - Statistical Intervals Based on a Single Sample
STAT 312 Introduction Z-Tests and Confidence Intervals for a
Section 12.2: Tests about a Population Proportion
Reasoning in Psychology Using Statistics
STAT Z-Tests and Confidence Intervals for a
STAT 312 Introduction Z-Tests and Confidence Intervals for a
CHAPTER 6 Statistical Inference & Hypothesis Testing
CHAPTER 6 Statistical Inference & Hypothesis Testing
Inference for Distributions
Presentation transcript:

6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2 σ 1 2 vs. σ 2 2 π 1 vs. π 2 μ 1 vs. μ 2 σ 1 2 vs. σ 2 2 π 1 vs. π Multiple Samples Multiple Samples  Means, Variances, Proportions μ 1, …, μ k σ 1 2, …, σ k 2 π 1, …, π k μ 1, …, μ k σ 1 2, …, σ k 2 π 1, …, π k CHAPTER 6 Statistical Inference & Hypothesis Testing CHAPTER 6 Statistical Inference & Hypothesis Testing

6.1 - One Sample One Sample  Mean μ, Variance σ 2, Proportion π Two Samples Two Samples  Means, Variances, Proportions μ 1 vs. μ 2 σ 1 2 vs. σ 2 2 π 1 vs. π 2 μ 1 vs. μ 2 σ 1 2 vs. σ 2 2 π 1 vs. π Multiple Samples Multiple Samples  Means, Variances, Proportions μ 1, …, μ k σ 1 2, …, σ k 2 π 1, …, π k μ 1, …, μ k σ 1 2, …, σ k 2 π 1, …, π k CHAPTER 6 Statistical Inference & Hypothesis Testing CHAPTER 6 Statistical Inference & Hypothesis Testing

Consider two independent populations… Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No mean difference") Test at signif level α POPULATION 1 and a random variable X, normally distributed in each. POPULATION 2 Classic Example: “Randomized Clinical Trial”… Pop 1 = Treatment, Pop 2 = Control X 2 ~ N( μ 2, σ 2 ) 11 σ1σ1 22 σ2σ2 X 1 ~ N( μ 1, σ 1 ) Random Sample, size n 1 Random Sample, size n 2 Sampling Distribution =?  μ0 μ0

Consider two independent populations… Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No mean difference") Test at signif level α POPULATION 1 and a random variable X, normally distributed in each. POPULATION 2 Classic Example: “Randomized Clinical Trial”… Pop 1 = Treatment, Pop 2 = Control X 2 ~ N( μ 2, σ 2 ) 11 σ1σ1 22 σ2σ2 X 1 ~ N( μ 1, σ 1 ) Random Sample, size n 1 Random Sample, size n 2 Sampling Distribution =?  μ0 μ0

Mean(X – Y) = Mean(X) – Mean(Y) Consider two independent populations… Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No mean difference") Test at signif level α POPULATION 1 and a random variable X, normally distributed in each. POPULATION 2 Classic Example: “Randomized Clinical Trial”… Pop 1 = Treatment, Pop 2 = Control X 2 ~ N( μ 2, σ 2 ) 11 σ1σ1 22 σ2σ2 X 1 ~ N( μ 1, σ 1 ) Random Sample, size n 1 Random Sample, size n 2 Sampling Distribution =? Recall from section 4.1 (Discrete Models): and if X and Y are independent… Var(X – Y) = Var(X) + Var(Y)  μ0 μ0

Consider two independent populations… Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No mean difference") Test at signif level α POPULATION 1 and a random variable X, normally distributed in each. POPULATION 2 Classic Example: “Randomized Clinical Trial”… Pop 1 = Treatment, Pop 2 = Control X 2 ~ N( μ 2, σ 2 ) 11 σ1σ1 22 σ2σ2 X 1 ~ N( μ 1, σ 1 ) Random Sample, size n 1 Random Sample, size n 2 Sampling Distribution =? Recall from section 4.1 (Discrete Models): Mean(X – Y) = Mean(X) – Mean(Y) and if X and Y are independent… Var(X – Y) = Var(X) + Var(Y)  μ0 μ0

Consider two independent populations… Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No mean difference") Test at signif level α POPULATION 1 and a random variable X, normally distributed in each. POPULATION 2 Classic Example: “Randomized Clinical Trial”… Pop 1 = Treatment, Pop 2 = Control X 2 ~ N( μ 2, σ 2 ) 11 σ1σ1 22 σ2σ2 X 1 ~ N( μ 1, σ 1 ) Random Sample, size n 1 Random Sample, size n 2 Sampling Distribution =? Recall from section 4.1 (Discrete Models): Mean(X – Y) = Mean(X) – Mean(Y) and if X and Y are independent… Var(X – Y) = Var(X) + Var(Y)  μ0 μ0

Consider two independent populations… Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No mean difference") Test at signif level α POPULATION 1 and a random variable X, normally distributed in each. POPULATION 2 Classic Example: “Randomized Clinical Trial”… Pop 1 = Treatment, Pop 2 = Control X 2 ~ N( μ 2, σ 2 ) 11 σ1σ1 22 σ2σ2 X 1 ~ N( μ 1, σ 1 ) Random Sample, size n 1 Random Sample, size n 2 Sampling Distribution =? Recall from section 4.1 (Discrete Models): Mean(X – Y) = Mean(X) – Mean(Y) and if X and Y are independent… Var(X – Y) = Var(X) + Var(Y)  μ0 μ0

Consider two independent populations… Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No mean difference") Test at signif level α POPULATION 1 and a random variable X, normally distributed in each. POPULATION 2 Classic Example: “Randomized Clinical Trial”… Pop 1 = Treatment, Pop 2 = Control X 2 ~ N( μ 2, σ 2 ) 11 σ1σ1 22 σ2σ2 X 1 ~ N( μ 1, σ 1 ) Random Sample, size n 1 Random Sample, size n 2 Sampling Distribution =? Recall from section 4.1 (Discrete Models): Mean(X – Y) = Mean(X) – Mean(Y) and if X and Y are independent… Var(X – Y) = Var(X) + Var(Y)  μ0 μ0

Consider two independent populations… Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No mean difference") Test at signif level α POPULATION 1 and a random variable X, normally distributed in each. POPULATION 2 Classic Example: “Randomized Clinical Trial”… Pop 1 = Treatment, Pop 2 = Control X 2 ~ N( μ 2, σ 2 ) 11 σ1σ1 22 σ2σ2 X 1 ~ N( μ 1, σ 1 ) Random Sample, size n 1 Random Sample, size n 2 Sampling Distribution =? Recall from section 4.1 (Discrete Models): Mean(X – Y) = Mean(X) – Mean(Y) and if X and Y are independent… Var(X – Y) = Var(X) + Var(Y)  μ0 μ0

Consider two independent populations… Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No mean difference") Test at signif level α POPULATION 1 and a random variable X, normally distributed in each. POPULATION 2 Classic Example: “Randomized Clinical Trial”… Pop 1 = Treatment, Pop 2 = Control X 2 ~ N( μ 2, σ 2 ) 11 σ1σ1 22 σ2σ2 X 1 ~ N( μ 1, σ 1 ) Random Sample, size n 1 Random Sample, size n 2 Sampling Distribution =? Recall from section 4.1 (Discrete Models): Mean(X – Y) = Mean(X) – Mean(Y) and if X and Y are independent… Var(X – Y) = Var(X) + Var(Y)  μ0 μ0 = 0 under H 0

Consider two independent populations… Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No mean difference") Test at signif level α POPULATION 1 and a random variable X, normally distributed in each. POPULATION 2 X 2 ~ N( μ 2, σ 2 ) 11 σ1σ1 22 σ2σ2 X 1 ~ N( μ 1, σ 1 ) Null Distribution 0 s.e. But what if σ 1 2 and σ 2 2 are unknown? Then use sample estimates s 1 2 and s 2 2 with Z- or t-test, if n 1 and n 2 are large.

Consider two independent populations… Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No mean difference") Test at signif level α POPULATION 1 and a random variable X, normally distributed in each. POPULATION 2 X 2 ~ N( μ 2, σ 2 ) 11 σ1σ1 22 σ2σ2 X 1 ~ N( μ 1, σ 1 ) Null Distribution 0 s.e. But what if σ 1 2 and σ 2 2 are unknown? Then use sample estimates s 1 2 and s 2 2 with Z- or t-test, if n 1 and n 2 are large. (But what if n 1 and n 2 are small?) Later… L a t e r …

Example: X = “$ Cost of a certain medical service” Data Sample 1: n 1 = 137 NOTE: > 0 Assume X is known to be normally distributed at each of k = 2 health care facilities (“groups”). Clinic: X 2 ~ N( μ 2, σ 2 )Hospital: X 1 ~ N( μ 1, σ 1 ) Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No difference exists.") 2-sided test at significance level α =.05 Sample 2: n 2 = 140 Null Distribution % Confidence Interval for μ 1 – μ 2 : 95% Margin of Error = (1.96)(4.2) = (84 – 8.232, ) =(75.768, ) does not contain 0 Z-score = = 20 >> 1.96  p <<.05 Reject H 0 ; extremely strong significant difference

Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No mean difference") Test at signif level α POPULATION 1POPULATION 2 X 2 ~ N( μ 2, σ 2 ) 11 22 X 1 ~ N( μ 1, σ 1 ) Null Distribution Sample size n 1 Sample size n 2 Consider two independent populations…and a random variable X, normally distributed in each.  large n 1 and n 2

Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No mean difference") Test at signif level α POPULATION 1POPULATION 2 X 2 ~ N( μ 2, σ 2 ) 11 22 X 1 ~ N( μ 1, σ 1 ) Null Distribution Sample size n 1 Sample size n 2 Consider two independent populations…and a random variable X, normally distributed in each.  large n 1 and n 2  small n 1 and n 2 “pooled” then conduct a t-test on the “pooled” samples. equivariant IF the two populations are equivariant, i.e.,

Test Statistic Sampling Distribution =? Working Rule of Thumb Acceptance Region for H 0 ¼ < F < 4 Working Rule of Thumb Acceptance Region for H 0 ¼ < F < 4

Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No mean difference") Test at signif level α POPULATION 1POPULATION 2 X 2 ~ N( μ 2, σ 2 ) 11 22 X 1 ~ N( μ 1, σ 1 ) Null Distribution Consider two independent populations…and a random variable X, normally distributed in each.  small n 1 and n 2 “pooled” is accepted, then estimate their common value with a “pooled” sample variance. equal variances IF equal variances The pooled variance is a weighted average of s 1 2 and s 2 2, using the degrees of freedom as the weights.

Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No mean difference") Test at signif level α POPULATION 1POPULATION 2 X 2 ~ N( μ 2, σ 2 ) 11 22 X 1 ~ N( μ 1, σ 1 ) Null Distribution Consider two independent populations…and a random variable X, normally distributed in each.  small n 1 and n 2 “pooled” is accepted, then estimate their common value with a “pooled” sample variance. equal variances IF equal variances The pooled variance is a weighted average of s 1 2 and s 2 2, using the degrees of freedom as the weights. is rejected, equal variances IF equal variances SEE LECTURE NOTES AND TEXTBOOK. then use Satterwaithe Test, Welch Test, etc. SEE LECTURE NOTES AND TEXTBOOK.

s 2 = SS/df Example: Y = “$ Cost of a certain medical service” Assume Y is known to be normally distributed at each of k = 2 health care facilities (“groups”). Clinic: Y 2 ~ N( μ 2, σ 2 )Hospital: Y 1 ~ N( μ 1, σ 1 ) Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No difference exists.") 2-sided test at significance level α =.05 Data: Sample 1 = {667, 653, 614, 612, 604}; n 1 = 5 Sample 2 = { 593, 525, 520}; n 2 = 3 Analysis via T-test (if equivariance holds): Point estimates NOTE: > 0 “Group Means” The pooled variance is a weighted average of the group variances, using the degrees of freedom as the weights. “Group Variances” Pooled Variance SS 1 SS 2 df 1 df 2

df = 6 s 2 = SS/df p-value = Example: Y = “$ Cost of a certain medical service” Assume Y is known to be normally distributed at each of k = 2 health care facilities (“groups”). Clinic: Y 2 ~ N( μ 2, σ 2 )Hospital: Y 1 ~ N( μ 1, σ 1 ) Null Hypothesis H 0 : μ 1 = μ 2, i.e., μ 1 – μ 2 = 0 (“No difference exists.") 2-sided test at significance level α =.05 Standard Error > 2 * (1 - pt(3.5, 6)) [1] Reject H 0 at α =.05 stat signif, Hosp > Clinic Data: Sample 1 = {667, 653, 614, 612, 604}; n 1 = 5 Sample 2 = { 593, 525, 520}; n 2 = 3 Analysis via T-test (if equivariance holds): Point estimates NOTE: > 0 “Group Means” The pooled variance is a weighted average of the group variances, using the degrees of freedom as the weights. “Group Variances” Pooled Variance SS = 6480

R code: > y1 = c(667, 653, 614, 612, 604) > y2 = c(593, 525, 520) > > t.test(y1, y2, var.equal = T) Two Sample t-test data: y1 and y2 t = 3.5, df = 6, p-value = alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval: sample estimates: mean of x mean of y p-value < α =.05 Reject H 0 at this level. p-value < α =.05 Reject H 0 at this level. The samples provide evidence that the difference between mean costs is (moderately) statistically significant, at the 5% level, with the hospital being higher than the clinic (by an average of $84). Formal Conclusion Interpretation

NEXT UP… PAIRED MEANS page 6.2-7, etc.