Unit 3 – Linear regression

Slides:



Advertisements
Similar presentations
Chapter 3 Examining Relationships Lindsey Van Cleave AP Statistics September 24, 2006.
Advertisements

11-1 Empirical Models Many problems in engineering and science involve exploring the relationships between two or more variables. Regression analysis.
Chapter 12 Inference for Linear Regression
Chap 12-1 Statistics for Business and Economics, 6e © 2007 Pearson Education, Inc. Chapter 12 Simple Regression Statistics for Business and Economics 6.
Forecasting Using the Simple Linear Regression Model and Correlation
Inference for Regression
Simple Linear Regression. Start by exploring the data Construct a scatterplot  Does a linear relationship between variables exist?  Is the relationship.
Objectives (BPS chapter 24)
Class 16: Thursday, Nov. 4 Note: I will you some info on the final project this weekend and will discuss in class on Tuesday.
© 2010 Pearson Prentice Hall. All rights reserved Least Squares Regression Models.
Chapter 12 Simple Regression
The Simple Regression Model
Chapter Topics Types of Regression Models
Regression Chapter 10 Understandable Statistics Ninth Edition By Brase and Brase Prepared by Yixun Shi Bloomsburg University of Pennsylvania.
© 2000 Prentice-Hall, Inc. Chap Forecasting Using the Simple Linear Regression Model and Correlation.
Chapter 12 Section 1 Inference for Linear Regression.
Correlation & Regression
Regression and Correlation Methods Judy Zhong Ph.D.
Inference for regression - Simple linear regression
Chapter 11 Simple Regression
2.4: Cautions about Regression and Correlation. Cautions: Regression & Correlation Correlation measures only linear association. Extrapolation often produces.
Inference for Linear Regression Conditions for Regression Inference: Suppose we have n observations on an explanatory variable x and a response variable.
OPIM 303-Lecture #8 Jose M. Cruz Assistant Professor.
Statistics for Business and Economics 7 th Edition Chapter 11 Simple Regression Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch.
+ Chapter 12: Inference for Regression Inference for Linear Regression.
Introduction to Linear Regression
Lecture 8 Simple Linear Regression (cont.). Section Objectives: Statistical model for linear regression Data for simple linear regression Estimation.
Inference for Regression Simple Linear Regression IPS Chapter 10.1 © 2009 W.H. Freeman and Company.
Inference for Regression Chapter 14. Linear Regression We can use least squares regression to estimate the linear relationship between two quantitative.
+ Chapter 12: More About Regression Section 12.1 Inference for Linear Regression.
CHAPTER 5 Regression BPS - 5TH ED.CHAPTER 5 1. PREDICTION VIA REGRESSION LINE NUMBER OF NEW BIRDS AND PERCENT RETURNING BPS - 5TH ED.CHAPTER 5 2.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 21 The Simple Regression Model.
Lecture 10: Correlation and Regression Model.
Stat 112 Notes 5 Today: –Chapter 3.7 (Cautions in interpreting regression results) –Normal Quantile Plots –Chapter 3.6 (Fitting a linear time trend to.
Chapter 14: Inference for Regression. A brief review of chapter 4... (Regression Analysis: Exploring Association BetweenVariables )  Bi-variate data.
CHAPTER 12 More About Regression
The simple linear regression model and parameter estimation
Chapter 20 Linear and Multiple Regression
Section 11.2 Day 3.
Inference for Regression (Chapter 14) A.P. Stats Review Topic #3
CHAPTER 3 Describing Relationships
Correlation and Simple Linear Regression
Inferences for Regression
Inference for Regression
CHAPTER 12 More About Regression
Chapter 11 Simple Regression
Chapter 13 Simple Linear Regression
Suppose the maximum number of hours of study among students in your sample is 6. If you used the equation to predict the test score of a student who studied.
Correlation and Simple Linear Regression
Regression model Y represents a value of the response variable.
Inference for Regression Lines
CHAPTER 29: Multiple Regression*
CHAPTER 26: Inference for Regression
PENGOLAHAN DAN PENYAJIAN
Correlation and Simple Linear Regression
Chapter 14 Inference for Regression
Elementary Statistics: Looking at the Big Picture
CHAPTER 12 More About Regression
Simple Linear Regression and Correlation
Chapter 14 Inference for Regression
3.2 – Least Squares Regression
Relationships.
CHAPTER 12 More About Regression
Inferences for Regression
Lesson 2.2 Linear Regression.
9/27/ A Least-Squares Regression.
Review of Chapter 3 Examining Relationships
Correlation and Simple Linear Regression
Correlation and Simple Linear Regression
Presentation transcript:

Unit 3 – Linear regression

Linear relationships Variables Response Variable Explanatory Variable When dealing with linear relationships we need 2 variables! Variables

Strength + Direction + Form There is a … Strength + Direction + Form …relationship between x and y. Linear Curved Scattered Weak Moderate Strong Positive Negative Describing a Linear Relationship

Finding the line of best fit 𝑦 = 𝐵 𝑜 + 𝐵 1 x Slope = 𝑆 𝑦 𝑆 𝑥 * r Y-intercept X value Predicted Y Slope Equation

CAUTION: When using a line of best fit Extrapolation : using your equation to predict outside the range of the data you used to come up with your equation. Lurking variables : an underlying variable that is causing the relationship to look different than it is in reality Outliers : your equation is strongly influenced by outliers Claiming X causes Y. They just have a linear relationship Warning!

Sentences Interpreting Linear Relationship Output Slope As __X___ increases by 1, ___Y___ will be expected to increase/decrease by ___slope_____ Y-intercept When ___X__ is 0, ___Y___ will be expected to be ___Y-intercept___ R-squared ___ 𝑹 𝟐 (as percent) __ of the variability in ___Y___ can be explained by ___X__ Interpreting Linear Relationship Output

What is a residual? It’s the difference between the actual value and the predicted value. Residual = 𝑦− 𝑦 Residual

What do you want residuals to look like What do you want residuals to look like? (To be confident your line is a good fit) Scattered or have a pattern? All above 0, all below 0, or half and half? Equal variance around 0, or not equal variance around 0. Residuals

SO…. How do you know if you can do a linear regression relationship between X and Y is linear (can check by looking at a scatterplot of x and y or the residual plot) no obvious lurking variables (you can kind of assume this for this course) simple random sample (was the data taken from a SRS) constant variance of the residuals (plot of residuals) residuals vary according to a normal distribution (normal quantile plot of residuals) Warning

Confidence Intervals for the slope 𝑏 1 ± 𝑡 𝛼 2 ;𝑛−2 ∗𝑠𝑒 𝑏 1 standard error se(b1) can be obtained from the JMP output. 𝑏 1 is the predicted value of the slope Degrees of freedom = n-2 I am ___% confident that the true slope between __X__ and __Y__ is between _____ and ______

Hypothesis testing for the slope 𝐻 0 : 𝐵 1 =0 𝐻 𝐴 : 𝐵 1 ≠0 Obtain a t-stat Obtain a p-value. Decide to reject Ho. If you reject Ho, then there is sufficient evidence to suggest there is a linear relationship between ___explanatory___ and ___response___