Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Lessons 3 and 4: Statistics • 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. Working with Stata Probability Example: CLT in action Populations have parameters, Samples have estimators Estimators & Estimates Parameters have distributions: From Probability to Statistics Confidence Intervals for Parameters E.g. Pick a digit Hypothesis Testing: terms Hypothesis Testing: steps P-value Properties of Estimators Efficiency of Sample Mean Monte Carlo Demonstration of CLT 1. Probability Example: Confidence Interval for sample mean • Ai - the outcome of some event for individual i E.g. p(lefthanded)=.085 • How often should that happen in a class of this size? • frequency of “4”s = N x sample mean of “4”s • Standard error (std. deviation of mean) - V(Ai) = p(Ai=1)[1-p(Ai=1)] • Normal approximation • Confidence interval for sample mean • Application: Fair bet? Copyright © 2003 by Pearson Education, Inc. 3-2 Copyright © 2003 by Pearson Education, Inc. 3-3 Calculating Confidence interval for lefties Copyright © 2003 by Pearson Education, Inc. 3-4 2. Populations have parameters, Samples have estimators Population Sample e.g. U.S. Residents All coin flips Parameters (typically Greek) e.g. Pop. mean Pop. Variance C.P.S. N coin flips Estimators Copyright © 2003 by Pearson Education, Inc. Sample mean Sample variance 3-5 3. Estimators and Estimates Copyright © 2003 by Pearson Education, Inc. 3-6 4. Parameters have distributions: From Probability to Statistics • Probability: use information from populations to learn about samples (Lefthanded example) • Statistics: use information from samples to learn about populations • How to make the transition Copyright © 2003 by Pearson Education, Inc. 3-7 From Probability to Statistics… Copyright © 2003 by Pearson Education, Inc. 3-8 5. Confidence Intervals for parameters: Pick a number example • Find the distribution of estimator • Interpret as distribution of parameter Copyright © 2003 by Pearson Education, Inc. 3-9 Confidence Intervals Copyright © 2003 by Pearson Education, Inc. 3-10 6. Hypothesis testing: terms Copyright © 2003 by Pearson Education, Inc. 3-11 7. Hypothesis Testing: Steps Copyright © 2003 by Pearson Education, Inc. 3-12 8. P-value: How likely were we to miss by at least that much, if Ho is true? Copyright © 2003 by Pearson Education, Inc. 3-13 9. Properties of Estimators Copyright © 2003 by Pearson Education, Inc. 3-14 10 Efficiency of Sample Mean Copyright © 2003 by Pearson Education, Inc. 3-15 11. Monte Carlo Demonstration of CLT • Imagine estimating the mean hourly wage :, by drawing samples of size N from the distribution of hourly wages, say in 1984. • Stata will do this for us, maybe 10,000 times. Copyright © 2003 by Pearson Education, Inc. 3-16 N=40, 10,000 draws Fraction .0705 0 6 Copyright © 2003 by Pearson Education, Inc. 8 m 10 12 3-17 N=60, 10,000 draws Fraction .0786 0 6 Copyright © 2003 by Pearson Education, Inc. 8 m 10 12 3-18 Copyright © 2003 by Pearson Education, Inc. 3-19 The next two slides each present one half of Figure 3.3. Copyright © 2003 by Pearson Education, Inc. 3-20 Copyright © 2003 by Pearson Education, Inc. 3-21 Summary - Lessons 3 and 4: Statistics 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. Probability Example: CLT in action Populations have parameters, Samples have estimators Estimators & Estimates Parameters have distributions: From Probability to Statistics Confidence Intervals for Parameters E.g. Pick a digit Hypothesis Testing: terms Hypothesis Testing: steps P-value Properties of Estimators Efficiency of Sample Mean Monte Carlo Demonstration of CLT Appendix 3.1 Copyright © 2003 by Pearson Education, Inc. 3-23