Lecture5 Linear Regression

Lecture5 Linear Regression - Linear Regression Lecture 5...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon
Linear Regression Lecture 5
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Linear Regression A technique that uses data from two variable to create a straight line, and then use this line to make predictions.
Background image of page 2
Correlation vs. Regression Correlation = non directional In correlation, we had two variables, arbitrarily defined as X and Y. Regression = directional In regression, X is the predictor (IV) and Y is the outcome (DV). We are inferring that X leads to Y (BUT, this doesn’t mean X causes Y!)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Linear Relations We assume that there is a linear relation between the two variables (X & Y). Think back to high school algebra: Y = m X + b slope intercept Intercept (m) Slope (b)
Background image of page 4
Linking Two Variables If we have a scatterplot of two variables that we assume are related in a linear fashion, what’s the best way to draw a line through the data? Variable 1 Variable 2
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Line of Best Fit Least squares method When we draw a line, there will be some error (we aren’t going directly through each point) Error = Y – Ŷ Our goal is to minimize error, so we fit a line such that the sum of the squared deviations from the straight line are minimized
Background image of page 6
Line of Best Fit Degree people think men should pay for dates 5.5 5.0 4.5 4.0 3.5 3.0 2.5 2.0 1.5 dating success (rating) 3.4 3.2 3.0 2.8 2.6 2.4 2.2 2.0 1.8 1.6 Y – Ŷ Y Ŷ
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The Regression Equation The regression equation predicts values of Y for specific values of X It creates the line that minimizes the error
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 28

Lecture5 Linear Regression - Linear Regression Lecture 5...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online