For 95 out of 100 (large) samples, the interval will contain the true population mean. But we don’t know  ?!

Slides:



Advertisements
Similar presentations
Sampling Distributions (§ )
Advertisements

© 2013 Pearson Education, Inc. Active Learning Lecture Slides For use with Classroom Response Systems Introductory Statistics: Exploring the World through.
Confidence Interval and Hypothesis Testing for:
Inference for distributions: - Comparing two means IPS chapter 7.2 © 2006 W.H. Freeman and Company.
PSY 307 – Statistics for the Behavioral Sciences
Independent Samples and Paired Samples t-tests PSY440 June 24, 2008.
Chapter 7 and Chapter 8.
Chap 9-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 9 Estimation: Additional Topics Statistics for Business and Economics.
AP Statistics Section 10.2 A CI for Population Mean When is Unknown.
Chapter 19: Two-Sample Problems
AP Statistics: Chapter 23
Chapter 11: Inference for Distributions
Let sample from N(μ, σ), μ unknown, σ known.
Two-sample problems for population means BPS chapter 19 © 2006 W.H. Freeman and Company.
Statistics 270– Lecture 25. Cautions about Z-Tests Data must be a random sample Outliers can distort results Shape of the population distribution matters.
5-3 Inference on the Means of Two Populations, Variances Unknown
1/49 EF 507 QUANTITATIVE METHODS FOR ECONOMICS AND FINANCE FALL 2008 Chapter 9 Estimation: Additional Topics.
Chapter 19: Two-Sample Problems STAT Connecting Chapter 18 to our Current Knowledge of Statistics ▸ Remember that these formulas are only valid.
+ DO NOW What conditions do you need to check before constructing a confidence interval for the population proportion? (hint: there are three)
Econ 3790: Business and Economics Statistics Instructor: Yogesh Uppal
Estimating a Population Mean
Ch 11 – Inference for Distributions YMS Inference for the Mean of a Population.
T-distribution & comparison of means Z as test statistic Use a Z-statistic only if you know the population standard deviation (σ). Z-statistic converts.
INFERENCE ABOUT MEANS Chapter 23. CLT!! If our data come from a simple random sample (SRS) and the sample size is sufficiently large, then we know the.
Confidence Intervals and Significance Testing in the World of T Welcome to the Real World… The World of T T.
AP STATISTICS LESSON 11 – 2 (DAY 1) Comparing Two Means.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
Week 111 Power of the t-test - Example In a metropolitan area, the concentration of cadmium (Cd) in leaf lettuce was measured in 7 representative gardens.
Chapter 11 Inference for Distributions AP Statistics 11.1 – Inference for the Mean of a Population.
Inference for distributions: - Comparing two means IPS chapter 7.2 © 2006 W.H. Freeman and Company.
CHAPTER 18: Inference about a Population Mean
1 Happiness comes not from material wealth but less desire.
Business Statistics for Managerial Decision Comparing two Population Means.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 9 Inferences Based on Two Samples.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 10 Comparing Two Populations or Groups 10.2.
AP Exam Prep: Essential Notes. Chapter 11: Inference for Distributions 11.1Inference for Means of a Population 11.2Comparing Two Means.
CHAPTER 11 DAY 1. Assumptions for Inference About a Mean  Our data are a simple random sample (SRS) of size n from the population.  Observations from.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section Inference about Two Means: Independent Samples 11.3.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Chapter 8: Estimating with Confidence Section 8.3 Estimating a Population Mean.
Two sample problems:  compare the responses in two groups  each group is a sample from a distinct population  responses in each group are independent.
BPS - 3rd Ed. Chapter 161 Inference about a Population Mean.
AP Statistics Chapter 10 Notes. Confidence Interval Statistical Inference: Methods for drawing conclusions about a population based on sample data. Statistical.
Essential Statistics Chapter 161 Inference about a Population Mean.
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.
Chapter 12 Confidence Intervals and Hypothesis Tests for Means © 2010 Pearson Education 1.
Inferring the Mean and Standard Deviation of a Population.
+ The Practice of Statistics, 4 th edition – For AP* STARNES, YATES, MOORE Unit 5: Estimating with Confidence Section 11.1 Estimating a Population Mean.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
AP Statistics.  If our data comes from a simple random sample (SRS) and the sample size is sufficiently large, then we know that the sampling distribution.
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.
Inference for Distributions 7.2 Comparing Two Means © 2012 W.H. Freeman and Company.
Chapter 23 The t-distribution, Confidence Intervals, and Significance Testing for Quantitative Data.
Confidence Intervals and Significance Testing in the World of T Unless you live in my animated world, Z-Testing with population σ isn’t reality… So, let’s.
Essential Statistics Chapter 171 Two-Sample Problems.
Inference for distributions: - Comparing two means.
+ Unit 5: Estimating with Confidence Section 8.3 Estimating a Population Mean.
+ Z-Interval for µ So, the formula for a Confidence Interval for a population mean is To be honest, σ is never known. So, this formula isn’t used very.
Inference about the mean of a population of measurements (  ) is based on the standardized value of the sample mean (Xbar). The standardization involves.
AP STATISTICS LESSON 11 – 1 (DAY 2) The t Confidence Intervals and Tests.
In your groups, go through all four steps of a confidence interval: The “Country Taste” bread making company wants to estimate the actual weight of their.
Inference about the mean of a population of measurements (  ) is based on the standardized value of the sample mean (Xbar). The standardization involves.
Objectives (PSLS Chapter 18) Comparing two means (σ unknown)  Two-sample situations  t-distribution for two independent samples  Two-sample t test 
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.
Chapters 22, 24, 25 Inference for Two-Samples. Confidence Intervals for 2 Proportions.
CHAPTER 8 Estimating with Confidence
Inference for the Mean of a Population
Warmup To check the accuracy of a scale, a weight is weighed repeatedly. The scale readings are normally distributed with a standard deviation of
Inference for Distributions
Basic Practice of Statistics - 3rd Edition Two-Sample Problems
Essential Statistics Two-Sample Problems - Two-sample t procedures -
Presentation transcript:

For 95 out of 100 (large) samples, the interval will contain the true population mean. But we don’t know  ?!

Inference for the Mean of a Population To estimate , we use a confidence interval around x. The confidence interval is built with , which we replace with s (the sample std. dev.) if  is not known.

t-distributions The “standard error” of x. For an SRS sample, the one-sample t-statistic has the t-distribution with n-1 degrees of freedom. (see Table D)

t-distributions t-distributions with k (=n-1) degrees of freedom – are labeled t(k), – are symmetric around 0, – and are bell-shaped – … but have more variability than Normal distributions, due to the substitution of s in the place of .

Example: Estimating the level of vitamin C Data: Find a 95% confidence interval for . A: (, ) Write it as “estimate plus margin of error” STATA Exercise 1

STATA Exercise 2

STATA Exercises 3 and 4

Paired, unpaired tests “Paired” tests compare each individual between two variables and ask whether the mean difference (“gain” in this example) is zero. Ho: mean(pretest - posttest) = mean(diff) = 0 STATA Exercise 5

STATA Exercise 6

Robustness of t procedures t-tests are only appropriate for testing a hypothesis on a single mean in these cases: – If n<15: only if the data is Normally distributed (with no outliers or strong skewness) – If n≥15: only if there are no outliers or strong skewness – If n≥40: even if clearly skewed (because of the Central Limit Theorem)

Comparing Two Means

Suppose we make a change to the registration procedure. Does this reduce the number of mistakes? Basically, we’re looking at two populations: – the before-change population (population 1) – the after-change population (population 2) Is the mean number of mistakes (per student) different? Is  1 –  2 = 0 or  0?

Comparing Two Means Notice that we are not matching pairs. We compare two groups.

Comparing Two Means PopulationVariableMean Standard Deviation 1x1x1 11 11 2x2x2 22 22

Comparing Two Means Population Sample Size Sample Mean Sample Standard Deviation 1n1n1 x1x1 s1s1 2n2n2 x2x2 s2s2

Comparing Two Means The population, really, is every single student using each registration procedure, an infinite number of times. – Suppose we get a “good” result today: how do we know it will be repeated tomorrow? We can’t repeat the procedure an infinite number of times, we only have a “sample”: numbers from one year. We estimate (  1 –  2 ) with (x 1 – x 2 ).

Comparing Two Means Remember is a Random Variable. To estimate  we need both and the margin of error around, which is So we need to know, or rather, the appropriate standard error for this estimation. Because we are estimating a difference, we need the standard error of a difference.

 =0 Comparing Two Means If the standard error for is Then the standard error for (x 1 – x 2 ) is

STATA uses the Satterthwaite approximation as a default. This t* does not have a t-distribution because we are replacing two standard deviations by their sample equivalents. Two-sample significance test

STATA uses the Satterthwaite approximation as a default. This t* does not have a t-distribution because we are replacing two standard deviations by their sample equivalents.

STATA Exercise 7

Paired, unpaired tests “Paired” tests compare each individual between two variables and ask whether the mean difference (“gain” in this example) is zero. Ho: mean(pretest - posttest) = mean(diff) = 0 “Unpaired” tests take the mean of each variable and test whether the difference of the means is zero. Ho: mean(pretest) - mean(posttest) = diff = 0 STATA Exercise 5

STATA Exercise 8 ttest ego, by(group) unequal

Robustness and Small Samples Two-sample methods are more robust than one-sample methods. – More so if the two samples have similar shapes and sample sizes. STATA assumes that the variances are the same (what the book calls “pooled t procedures”), unless you tell it the opposite, using the unequal option. Small samples, as always, make the test less robust.

Pooled two-sample t procedures

Suppose the two Normal population distributions have the same standard deviation. Then the t-statistic that compares the means of samples from those two populations has exactly a t-distribution.

Pooled two-sample t procedures The common, but unknown standard deviation of both populations is . The sample standard deviations s 1 and s 2 estimate . The best way to combine these estimates is to take a “weighted average” of the two, using the dfs as the weights:

(assuming  is the same for both populations) Here, t* is the value for the t(n 1 + n 2 – 2) density curve with area C between – t* and t*. To test the hypothesis H o :  1 =  2, compute the pooled two-sample t statistic And use P-values from the t(n 1 + n 2 – 2) distribution. THE POOLED TWO-SAMPLE T PROCEDURES ttest ego, by(group)