Lecture 30. DATA 8 Summer Regression Inference

Similar documents
Big Data Analysis with Apache Spark UC#BERKELEY

Lecture 27. DATA 8 Spring Sample Averages. Slides created by John DeNero and Ani Adhikari

You have 3 hours to complete the exam. Some questions are harder than others, so don t spend too long on any one question.

Chapter 12 - Lecture 2 Inferences about regression coefficient

AMS 7 Correlation and Regression Lecture 8

LECTURE 5. Introduction to Econometrics. Hypothesis testing

Ch Inference for Linear Regression

Lecture 15. DATA 8 Spring Sampling. Slides created by John DeNero and Ani Adhikari

Lecture 17. Ingo Ruczinski. October 26, Department of Biostatistics Johns Hopkins Bloomberg School of Public Health Johns Hopkins University

Chapter 12 - Part I: Correlation Analysis

Week 11 Sample Means, CLT, Correlation

Lectures 5 & 6: Hypothesis Testing

Design of Engineering Experiments Part 2 Basic Statistical Concepts Simple comparative experiments

Business Statistics. Lecture 10: Course Review

Review. Midterm Exam. Midterm Review. May 6th, 2015 AMS-UCSC. Spring Session 1 (Midterm Review) AMS-5 May 6th, / 24

Nonparametric tests, Bootstrapping

Introduction to Statistical Inference Lecture 8: Linear regression, Tests and confidence intervals

Hypothesis Testing with the Bootstrap. Noa Haas Statistics M.Sc. Seminar, Spring 2017 Bootstrap and Resampling Methods

Bootstrapping, Randomization, 2B-PLS

Do students sleep the recommended 8 hours a night on average?

Psychology 282 Lecture #4 Outline Inferences in SLR

How do we compare the relative performance among competing models?

Stats Review Chapter 14. Mary Stangler Center for Academic Success Revised 8/16

Hypothesis Testing and Confidence Intervals (Part 2): Cohen s d, Logic of Testing, and Confidence Intervals

Lecture 06. DSUR CH 05 Exploring Assumptions of parametric statistics Hypothesis Testing Power

Keller: Stats for Mgmt & Econ, 7th Ed July 17, 2006

LAB 2. HYPOTHESIS TESTING IN THE BIOLOGICAL SCIENCES- Part 2

Statistics Primer. ORC Staff: Jayme Palka Peter Boedeker Marcus Fagan Trey Dejong

Objectives Simple linear regression. Statistical model for linear regression. Estimating the regression parameters

Area1 Scaled Score (NAPLEX) .535 ** **.000 N. Sig. (2-tailed)

Review of the Normal Distribution

LECTURE 6. Introduction to Econometrics. Hypothesis testing & Goodness of fit

AIM HIGH SCHOOL. Curriculum Map W. 12 Mile Road Farmington Hills, MI (248)

Sociology 6Z03 Review II

Test 3 Practice Test A. NOTE: Ignore Q10 (not covered)

POLI 443 Applied Political Research

Comparing Means from Two-Sample

Permutation Tests. Noa Haas Statistics M.Sc. Seminar, Spring 2017 Bootstrap and Resampling Methods

University of California, Berkeley, Statistics 131A: Statistical Inference for the Social and Life Sciences. Michael Lugo, Spring 2012

Solutions to Practice Test 2 Math 4753 Summer 2005

Business Statistics. Lecture 9: Simple Regression

T.I.H.E. IT 233 Statistics and Probability: Sem. 1: 2013 ESTIMATION AND HYPOTHESIS TESTING OF TWO POPULATIONS

Review for Final. Chapter 1 Type of studies: anecdotal, observational, experimental Random sampling

Introduction to Linear Regression

Econometrics. 4) Statistical inference

Data Science for Engineers Department of Computer Science and Engineering Indian Institute of Technology, Madras

Correlation and regression

CIVL /8904 T R A F F I C F L O W T H E O R Y L E C T U R E - 8

MA 575 Linear Models: Cedric E. Ginestet, Boston University Non-parametric Inference, Polynomial Regression Week 9, Lecture 2

The t-distribution. Patrick Breheny. October 13. z tests The χ 2 -distribution The t-distribution Summary

Chapter 16. Simple Linear Regression and Correlation

The assumptions are needed to give us... valid standard errors valid confidence intervals valid hypothesis tests and p-values

Simple Linear Regression

Lecture 18: Simple Linear Regression

Section 9.4. Notation. Requirements. Definition. Inferences About Two Means (Matched Pairs) Examples

y = a + bx 12.1: Inference for Linear Regression Review: General Form of Linear Regression Equation Review: Interpreting Computer Regression Output

Unit 6 - Simple linear regression

Lecture Slides for INTRODUCTION TO. Machine Learning. ETHEM ALPAYDIN The MIT Press,

Mathematical Notation Math Introduction to Applied Statistics

2.830J / 6.780J / ESD.63J Control of Manufacturing Processes (SMA 6303) Spring 2008

11 Correlation and Regression

Statistical Inference for Means

Unit 6 - Introduction to linear regression

Chapter 23. Inferences About Means. Monday, May 6, 13. Copyright 2009 Pearson Education, Inc.

This is a multiple choice and short answer practice exam. It does not count towards your grade. You may use the tables in your book.

STAT 350 Final (new Material) Review Problems Key Spring 2016

Inference for Regression

Assumptions, Diagnostics, and Inferences for the Simple Linear Regression Model with Normal Residuals

Chapter 10. Regression. Understandable Statistics Ninth Edition By Brase and Brase Prepared by Yixun Shi Bloomsburg University of Pennsylvania

Inferences for Regression

Chapter 12: Estimation

Review of Statistics 101

Political Science 236 Hypothesis Testing: Review and Bootstrapping

Regression and correlation. Correlation & Regression, I. Regression & correlation. Regression vs. correlation. Involve bivariate, paired data, X & Y

Bootstrap tests. Patrick Breheny. October 11. Bootstrap vs. permutation tests Testing for equality of location

Linear Correlation and Regression Analysis

Inference for Regression Simple Linear Regression

Harvard University. Rigorous Research in Engineering Education

Distribution-Free Procedures (Devore Chapter Fifteen)

Statistics and Quantitative Analysis U4320

Class 15. Daniel B. Rowe, Ph.D. Department of Mathematics, Statistics, and Computer Science. Marquette University MATH 1700

CSE 312 Final Review: Section AA

Single Sample Means. SOCY601 Alan Neustadtl

This document contains 3 sets of practice problems.

Unit5: Inferenceforcategoricaldata. 4. MT2 Review. Sta Fall Duke University, Department of Statistical Science

Performance Evaluation and Comparison

Unless provided with information to the contrary, assume for each question below that the Classical Linear Model assumptions hold.

23. Inference for regression

LECTURE 15: SIMPLE LINEAR REGRESSION I

Elementary Statistics and Inference

Probability and Statistics Notes

Confidence Intervals and Hypothesis Tests

Chapter 16. Simple Linear Regression and dcorrelation

LECTURE 13: TIME SERIES I

SIMPLE REGRESSION ANALYSIS. Business Statistics

Chapter 8 Handout: Interval Estimates and Hypothesis Testing

Basic Statistics. 1. Gross error analyst makes a gross mistake (misread balance or entered wrong value into calculation).

Stat 135, Fall 2006 A. Adhikari HOMEWORK 10 SOLUTIONS

Lecture 10: F -Tests, ANOVA and R 2

Keppel, G. & Wickens, T.D. Design and Analysis Chapter 2: Sources of Variability and Sums of Squares

Transcription:

DATA 8 Summer 2018 Lecture 30 Regression Inference Slides created by John DeNero (denero@berkeley.edu) and Ani Adhikari (adhikari@berkeley.edu) Contributions by Fahad Kamran (fhdkmrn@berkeley.edu) and Vinitra Swamy (vinitra@berkeley.edu)

Announcements

Review

Residual Plot A scatter diagram of residuals Should look like an unassociated blob for linear relations But will show patterns for non-linear relations Used to check whether linear regression is appropriate

Fitted Values and Residuals SD of fitted values ---------------------------- = r SD of y The average of residuals is always 0 SD of fitted values = r * (SD of y) SD of residuals = (1 - r²) SD of y

A Variance Decomposition Variance of fitted values --------------------------------- = r² Variance of y Variance of residuals --------------------------------- = 1 - r² Variance of y

Discussion Question Midterm: Average 70, SD 10 Final: Average 60, SD 15 r = 0.6 Fill in the blank: For at least 75% of the students, the regression estimate of final score based on midterm score will be correct to within points.

Discussion Question On average, residuals are 0 so the regression is correct (on average) How far are we off? Distribution of residuals At-least 75% of data is within 2 SDs of the mean each direction -- Chebyshev s SD of residuals = 15 * (1 -.6²) = 12 On average correct, at least 75% of data is within 24 points

Regression Model

A Model : Signal + Noise Distance drawn at random from normal distribution with mean 0 Another distance drawn independently from the same normal distribution

What We Get to See (Demo)

Prediction Variability

Regression Prediction If the data come from the regression model, and if the sample is large, then: The regression line is close to the true line Given a new value of x, predict y by finding the point on the regression line at that x (Demo)

Confidence Interval for Prediction Bootstrap the scatter plot Get a prediction for y using the regression line that goes through the resampled plot Repeat the two steps above many times Draw the empirical histogram of all the predictions. Get the middle 95% interval. That s an approximate 95% confidence interval for the height of the true line at y.

Predictions at Different Values of x Since y is correlated with x, the predicted values of y depend on the value of x. The width of the prediction interval also depends on x. Typically, intervals are wider for values of x that are further away from the mean of x.

Discussion Question True or False Our goal of this method is to estimate what our regression line predicts, on average, what our y-value should be given a specific x-value.

Discussion Question False Our goal of this method is to estimate what the true line predicts, on average, what our y-value should be given a specific x-value. We have the value for our regression line -- our regression line was based off of our sample.

The True Slope

Confidence Interval for True Slope Bootstrap the scatter plot. Find the slope of the regression line through the bootstrapped plot. Repeat. Draw the empirical histogram of all the generated slopes. Get the middle 95% interval. That s an approximate 95% confidence interval for the slope of the true line. (Demo)

Discussion Question True or False Our goal of this method is to estimate what the slope of the regression line is.

Discussion Question False Our goal of this method is to estimate what the slope of the true line is. We have the slope of our regression line -- it is calculated based on our sample.

Rain on the Regression Parade We observed a slope based on our sample of points. But what if the sample scatter plot got its slope just by chance? What if the true line is actually FLAT?

Test Whether There Really is a Slope Null hypothesis: The slope of the true line is 0. Alternative hypothesis: No, it s not. Method: Construct a bootstrap confidence interval for the true slope. If the interval doesn t contain 0, reject the null hypothesis. If the interval does contain 0, there isn t enough evidence to reject the null hypothesis. (Demo)