Linear Regression
Linear Regression
Linear Regression
1
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
The statistical Sommelier
2
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
The statistical Sommelier
3
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
The statistical Sommelier
• Independent variables:
• Age – older wines are more expensive
• Weather
4
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
The statistical Sommelier
• “rather like a movie critic who never goes to see the movie
but tells you how good it is based on the actors and the
director”
5
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
One-Variable Linear Regression
8.5
8
Logarithm of Price
7.5
6.5
6
14.5 15 15.5 16 16.5 17 17.5 18
6
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
One-Variable Linear Regression
8.5
8
Logarithm of Price
7.5
6.5
6
14.5 15 15.5 16 16.5 17 17.5 18
7
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
One-Variable Linear Regression
8.5
8
Logarithm of Price
7.5
6.5
6
14.5 15 15.5 16 16.5 17 17.5 18
8
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
The Regression Model
9
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Selecting the Best Model
10
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Selecting the Best Model
11
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Other Error Measures
13
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
R
14
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
15
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Available Independent Variables
16
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Available Independent Variables
17
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
The Regression Model
18
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Adding Variables
19
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Adding Variables
20
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Correlation
22
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Predictive Ability
23
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
24
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
The Result
• Parker:
• 1986 is “very good to sometimes exceptional”
• Ashenfelter:
• 1986 is mediocre
• 1989 will be “the wine of the century” and 1990 will be
even better!
• In wine auctions,
• 1989 sold for more than twice the price of 1986
• 1990 sold for even higher prices!
• Later, Ashenfelter predicted 2000 and 2003
would be great
• Parker has stated that “2000 is the greatest
vintage Bordeaux has ever
• produced” 25
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Effects of light on Meadowfoam Flowering
26
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Effects of light on Meadowfoam Flowering
27
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Effects of light on Meadowfoam Flowering
Statistical Conclusion
Statistical Conclusion
30
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Effects of light on Meadowfoam Flowering
Scope of Inference
• The researchers can infer that the effects above were caused
by the light intensity and timing manipulations, because this
was a randomized experiment.
31
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
The Multiple Linear Regression
32
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Interpretation of Regression Coefficients
33
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
An Indicator Variable to Distinguish Between Two
Groups
• An indicator variable (or dummy variable) takes on one of two
values: “1” (one) indicates that an attribute is present, and “0”
(zero) indicates that the attribute is absent.
• Because the slopes are the same the model is called the parallel
lines regression model 34
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
MONEYBALL
36
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
A Different Approach
37
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Billy Beane
38
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Taking a Quantitative View
39
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Taking a Quantitative View
40
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Making it to the Playoffs
41
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Scoring Runs
42
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Predicting Runs and Wins
43
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology
Predicting Runs Scored
45
Business Analytics– Dr. Shirin Aslani – GSME, Sharif University of Technology