Professional Documents
Culture Documents
Learning Objectives
2
Chapter Outline
»Dr. Waqas Ahmed
3
4.1 Introduction
4.2 Scatter Diagrams
4.3 Simple Linear Regression
4.4 Using Computer Software for Regression
4.5 Multiple Regression Analysis
4.6 Nonlinear Regression
Introduction
4
Introduction
5
Scatter Diagram
A
statistical model that utilizes two or more
quantitative variables (x1,..., xp) to predict a
quantitative dependent variable Y.
Capital Construction
● Capital Construction renovates old homes.
● Managers have found that the dollar volume of
renovation work is dependent on the area payroll.
CAPITAL’S SALES LOCAL PAYROLL
($100,000s) ($100,000,000s)
6 3
8 4
9 6
5 4
4.5 2
9.5 5
Capital Construction
Scatter Diagram of Capital Construction Company Data
where
Y = dependent variable (response)
X = independent variable (predictor or explanatory)
0 = intercept (value of Y when X = 0)
1 = slope of the regression line
True values for the slope and intercept are not known so they
are estimated using sample data.
Yˆ b0 b1 X
where
Y^ = predicted value of Y
b0 = estimate of β0, based on sample results
b1 = estimate of β1, based on sample results
Capital Construction
For the simple linear regression model, the values of the intercept and
slope can be calculated using the formulas below.
Yˆ b0 b1 X
X
X
average (mean) of X values
n
Y
Y
average (mean) of Y values
n
b1
( X X )(Y Y )
(X X ) 2
b0 Y b1 X
Capital Construction
Capital Construction
Regression calculations
X
X 24
4
6 6
Y
Y 42
7
6 6
b1
( X X )(Y Y ) 12.5
1.25
(X X ) 2
10
b0 Y b1 X 7 (1.25 )( 4 ) 2
Therefore Yˆ 2 1.25 X
Capital Construction
1
7
Regression calculations
X
X 24
4 sales = 2 + 1.25(payroll)
6 6
If the payroll next year is
Y
Y 42
7 $600 million
6 6
Yˆ 2 1.25(6) 9.5 or $ 950,000
b1
( X X )(Y Y ) 12.5
1.25
(X X ) 2
10
b0 Y b1 X 7 (1.25 )( 4 ) 2
Therefore Yˆ 2 1.25 X
Coefficient of Determination r2
the % change in y predicted by the change in x
Values range from 0 to 1
for Regression
Accessing the Regression Option in Excel 2010
Regression
Data Input for Regression in Excel
Regression
Excel Output for the Capital Construction Example
Yˆ b0 b1 X 1 b2 X 2 ... bi X i
where
Ŷ =predicted value of Y
b0 =sample intercept (and is an estimate of
0 )
bi =sample coefficient of the ith variable (and
is an estimate of i)
[mini-case]
D
ependent variable: Gallons Consumed
-------------------------------------------------------------------------------------
Standard T
--------------------------------------------------------------------------------------
[mini-case]
Y =
562.15 - 5.44(x1) - 20.01(x2)
where:
x1 = temperature [degrees F]
hat preliminary conclusions can home owners draw from the data?
hat could a home owner expect heating oil consumption (in gallons) to be if the
outside temperature is 15 oF when the attic insulation is 10 inches thick?
[mini-case]
Heating
oil consumption = 280.45
Nonlinear Regression