0% found this document useful (0 votes)
241 views81 pages

Lesson8 PDF

This document is an introduction to multiple regression analysis. It discusses linear and nonlinear regression, how regression equations can be used to model relationships between variables, and how SPSS can be used to perform different types of regression and analyze their properties. It notes that multiple regression is a specific case of simple linear regression between two variables. The document aims to explain how to use SPSS to work with various forms of regression, and the associated statistics and measures.

Uploaded by

marwasg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
241 views81 pages

Lesson8 PDF

This document is an introduction to multiple regression analysis. It discusses linear and nonlinear regression, how regression equations can be used to model relationships between variables, and how SPSS can be used to perform different types of regression and analyze their properties. It notes that multiple regression is a specific case of simple linear regression between two variables. The document aims to explain how to use SPSS to work with various forms of regression, and the associated statistics and measures.

Uploaded by

marwasg
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 81

Lesson 008, By Dr.

Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 1 of 81


Multiple Regression
MultipleRegression
Multiple


-
[email protected]

Page 2 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

1-8 Introduction

.



.
) (

)( .
Regression Equation

[email protected]

Page 3 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

Exact Approximate

)( .

.

Linear

Non
Non-Linear
Linear
.










.

[email protected]

Page 4 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

SPSS

2-8

Assumptions & Regression

Models

( .

[email protected]

Page 5 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa





.Categorical







.


Discriminant analysis
y

Regression Models

[email protected]

Page 6 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

)(
.1

.2


:
)( Standard or Simultaneous Regression





[email protected]

Page 7 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa


.
Hierachical Regression
g


)(






.
St
Stepwise
i Regression
R
i

)(
) (
.
Criteria
.
[email protected]

Page 8 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

forward backward
.

:
F-Test
.

F-test
F test



FIN
PIN .

[email protected]

Page 9 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

:

F F
F-Test
Test
FOUT POUT .

:
.

.









:
[email protected]

Page 10 of 81

.1

Math. Department, Faculty of Science, Mansoura University, Egypt

to

Lesson 008, By Dr. Abdelfatah Mustafa

cases

or

Ratio

independent variables
.







.








.
.






.2

Outliers

[email protected]

Page 11 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa



Mahalanobis
.






SPSS




.
.3

Multicollinearity Singularity

.
.

[email protected]

Page 12 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa





Correlation Matrix
Tolerances
.4

Normality

Linearity

Homoscedasticity Independence of
Residuals

[email protected]

Page 13 of 81

)(i

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa




)) ((ii
.
.




) (iii


.SPSS

[email protected]

Page 14 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

Years

Temper
ature

Sales

21

15

18

15

22

21

24

28

25

30

15

25

35

26

40

34

35

25

30

38

45

40

50

41

60

39

45

37

60

40

50

[email protected]

Page 15 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa


.
Regression.sav
sales, temp, years
.SPSS
SPSS
:

.1

Multiple Linear Regression

.2
2

Stepwise Regression

.3

Hierachical Regression

.4

Curve Linear Regression

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 16 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt


3-8
MultipleLinearRegression

[email protected]

Page 17 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa





m X1,
.m =1
X2, , Xm 1

n







Y j = 0 + 1 X 1 j + 2 X 2 j + L + m 1 X mj + j , j = 1, 2, ..., n



Yj m
i= 1,
1 2 , m,
m j=1,
j=1 2,
Xij 2 , n
[email protected]

Page 18 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

Parameters j =j
1, 2, , m
j
:


.1

.2

.3

.4
4

[email protected]

Page 19 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa


Least
Square
.
.






Yj = 0 + 1 X 1 j + 2 X 2 j + L + m 1 X mj , j = 1, 2, ..., n

j , j = 1, 2, ..., m 1

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 20 of 81


.(

[email protected]

Page 21 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa


SPSS
regression.sav
:


.1

Analyze Regression

.2


Linear

.3

Linear Regression

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 22 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Dependent Sales

.4

Independent temp,
temp years

.5
5

Method

.6

Enter




[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 23 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Linear Statistics
Regression: Statistics

.7

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 24 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

diagnostics Casewise Model fit, Estimates,

.8


Continue

Linear

.9

Plot .10
Regression: Plots

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 25 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

* ZPRED Y: * ZRESID .11


X:
Histogram, Standardized Residual Plots .12
Normal probability plot

Continue
.13

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 26 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Linear Save

.14
Regression: Save

Distances

.15

Mahalanobis
Continue

.16

.
Ok .17
.

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 27 of 81

:
Descriptive Statistics
.

[email protected]

Page 28 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

:
Correlations

.

Variables Entered/Removed

year, temp

.
[email protected]

Page 29 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

Model Summary
.1
1


R=0.912
R=0 912


.2


) (
%80 .

.3

Adjusted R Square
.

.4

Std. Error of the Estimate 6.42616


.

[email protected]

Page 30 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

:

ANOVA
: ) (
(
: )

ANOVA Sig. = 000

0.05

.
[email protected]

Page 31 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

:
Coefficients
.1
1


Unstandarized Coefficients

S l = 6.993 + 1.275 temp + 1.907 years


Sales
[email protected]

Page 32 of 81

.2

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa


Sig.
constant years
constant,

sig 0.05


0.05
sig. 0 05
i =0.016
0 016

.3


.
.

[email protected]

Page 33 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

:
Coefficient Correlations

.

:
Residuals Statistics

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 34 of 81

[email protected]

Page 35 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

:

(
)


.
[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 36 of 81

:

.
[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 37 of 81

mah_1
Chi-Square Mahalanobis
n-1 = 2
[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 38 of 81

chi-Square = 13.8 0.001


.

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 39 of 81

4-8
Stepwise Regression
StepwiseRegression

[email protected]

Page 40 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa





.

.










.

)
(.....
[email protected]

Page 41 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa



) (
.

.
:

.1

.2

.3

[email protected]

Page 42 of 81

.4

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

.5

) Coefficient of Determination (
F
.6

F
) (.


:
.1

.2

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 43 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

SPSS

: regression.sav
[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 44 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Analyze

.1

Regression
Linear
Linear

.2
.3

regression

Sales

.4

Dependent
temp, year
Independent
Method

.5

Stepwise
[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 45 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Linear Statistics

.6

Regression: Statistics
Model fit,
fit Estimates,
Estimates

.7
7

diagnostics Casewise

Continue

.8

Plot
Pl t

.9
9
Linear
Regression: Plots
[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 46 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

* ZPRED

Y:

* ZRESID
.11
X:
Histogram Standardized Residual Plots .12
Histogram,
12
Normal probability plot
Continue

C ti

.13
13

Linear


Save


.14
14
Regression: Save
[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 47 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Distances

.15

Mahalanobis
Continue

.16
16

Ok .17
.

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 48 of 81

Variables Entered/removed

temp
.


[email protected]

Page 49 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

:
Model Summary
) (
80% .

:
ANOVA
0.05


Sig.
g = 0.00

[email protected]

Page 50 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

:
Coefficients

S l = 11.271
Sales
2 1 + 1.600 temp

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 51 of 81



Excluded Variables

:
.

Residuals Statistics

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 52 of 81

:

.
[email protected]

Page 53 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

:

)(
.
[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 54 of 81

:


[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 55 of 81

5-8
Hierachical Regression

[email protected]

Page 56 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

regression.sav

:
.1

Analyze

Regression
.2
.3

Linear

Regression

[email protected]

Linear

Lesson 008, By Dr. Abdelfatah Mustafa

Page 57 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Sales

.4

D
Dependent
d t

temp

Independent(s)
Block 2 of 2 previous
Next

.5
5

years

.6

Independent

.7


Previous
Next
Method

.8
8

Enter
[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 58 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Linear Statistics

.9

Regression: Statistics
Model fit, Estimates,
diagnostics, R

.10

Casewise

Squared Change

Continue

.11

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Linear

Page 59 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Plot .12
R
Regression:
i
Pl t
Plots

* ZPRED Y: * ZRESID .13


X:
Histogram, Standardized Residual Plots .14
Normal probability plot

Continue .15
[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 60 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Linear Save

.16
Regression: Save

Distances

.17
17

Mahalanobis
Continue

.18

.
Ok

.19

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 61 of 81

:
Variables Entered/Removed

[email protected]

Page 62 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

:
R


M d l Summary
Model
S

square Change, F, Sig. temp


years


:
ANOVA
.


[email protected]

Page 63 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

:
)(

Coefficients

. :
.1
1

temp .

.2

Sales = 11.271 + 1.600 temp


[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 64 of 81


Excluded Variables

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 65 of 81

:
. Residual Statistics

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 66 of 81

:

.

[email protected]

Page 67 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

:
)(
.


[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 68 of 81

6-8
Curve
CurveLinearRegression
Linear Regression

[email protected]

Page 69 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa








....
....



SPSS

:
.1
1

C bi
Cubic
Quadratic
Q d i

Linear
Li

.2

Exponential

.3

Logarithmic

.4

Inverse Compound

.5

Logistic Power

[email protected]

Page 70 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

Regression.sav
SPSS
:
.1
.2

Analyze Regression

Curve

Estimation

.3

Curve Estimation
Sales Dependent years

Independent Variable

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 71 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Time

.4

Exponential

.5

I l d constant
Include
t t in
i Equation,
E
ti
Pl t Models
Plot
M d l

.6

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 72 of 81

Display ANOVA

.7

Save

.8

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 73 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Curve Estimation: Save

.9

Predicted Values, Residuals, Predicted Interval


95%


Continue
C ti

.10
10

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 74 of 81

: Ok .10

CurveFit

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 75 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

:
Model Description
.

Case Processing Summary

.()

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 76 of 81

:
Variable Processing Summary
)
.(

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 77 of 81

Sales: Exponential
Sales:Exponential


Model Summary
.





[email protected]

Page 78 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

Lesson 008, By Dr. Abdelfatah Mustafa

ANOVA

( .

:
Coefficients
.
0.23419 years

[email protected]

sales =17.25 e

Lesson 008, By Dr. Abdelfatah Mustafa

Math. Department, Faculty of Science, Mansoura University, Egypt

Page 79 of 81

:
.
regression.sav

[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 80 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

:
Fit_1
Fit_
1: Fit for SALES with YEARS from CURVEFIT, Mod_1 EXPONENTIAL
ERR_1
ERR_
1: Error for SALES with YEARS from CURVEFIT,

Mod_1

EXPONENTIAL
[email protected]

Lesson 008, By Dr. Abdelfatah Mustafa

Page 81 of 81

Math. Department, Faculty of Science, Mansoura University, Egypt

LCL_1: 95% LCL for SALES with YEARS from CURVEFIT,,

Mod_1

EXPONENTIAL
UCL
UCL_1
UCL_
1: 95% UCL for SALES with YEARS from CURVEFIT,
CURVEFIT

Mod 1
Mod_1

EXPONENTIAL
.





[email protected]

You might also like