3 Linear Regression 1
3 Linear Regression 1
Linear Regression
Introduction
1
9/22/2021
Dataset
The Advertising dataset. The figure displays sales (in thousands of
units) for a particular product as a function of advertising budgets
(in thousands of dollars) for TV, radio, and newspaper media in
200 different markets.
Important Questions
2
9/22/2021
• Use the training data to produce estimates 𝛽መ0 and 𝛽መ1 for the
model coefficients; then predict future sales based on a
particular value of TV advertising
2
1 n
MSE = å Yi - Yˆi
n i=1
( )
1 n
(
= å Yi - b̂0 - b̂1 X1 - )
2
- b̂ p X p
n i=1
3
9/22/2021
4
9/22/2021
Hypothesis Testing
• Is Xj an important variable?
• We use a hypothesis test to answer this question
bˆ1 SE ( bˆ1 )
ˆ
b 1 is 17.67 SE’s from 0
P-value
10
10