MA Fall2022 W3 Slides
MA Fall2022 W3 Slides
Fall 2022
MKTG 414
Vahid Karimi Motahhar
[email protected]
Week 3
Linear Regression and Correlation
Learning Objectives
• Understand Correlation
Monday, October 17, 2022 Vahid Karimi Motahhar 2
Simple Linear Regression
• Interpreting coefficients
• Prediction
• Cautions
• Can you estimate the Lagged Sales, just by knowing how much Red
Bull spent on TV ads?
• Goal: Find a straight line that best fits the data in a scatterplot
• The actual response value, y, is the response value observed for a particular
data point
• The predicted response value, ŷ, is the response value that would be
predicted for a given x value, based on a model
• In linear regression, the predicted values fall on the regression line directly
above each x value
• The best fitting line is that which makes the predicted values closest to the
actual values
Monday, October 17, 2022 Vahid Karimi Motahhar 7
Predicted and Actual Values
• Least squares regression chooses the regression line that minimizes the
sum of the squared residuals
B. For every extra $1.23 spent on TV ads, the predicted sales increase by $1
C. Predicted sales increases by $1.23 for each extra dollar spend on TV ads
D. For every extra $1.23 spend on TV ads, the predicted sales increase by
$37.69
A. Closer to $3000
B. Closer to $4000
C. Closer to $5000
D. Closer to $6000
• Do not use the regression equation or line to predict outside the range
of x values available in your data (do not extrapolate!)
• The P-Value reveals whether the estimate is likely to be greater or less than 0.
• The correlation between two sets of data is simply the square root of
R2 with the same sign as the sign of the slope in the simple linear
regression