Polynomial Regression: Y X X X X XX
Polynomial Regression: Y X X X X XX
Polynomial regression model may contain one, two or more than two predictor variables.
Further, each predictor variable may be present in various powers. Fitting of polynomial
regression models presents no new problems since they are special cases of the general linear
regression model.
Yi 0 1 X i1 2 X i 2 11 X i21 22 X i22 12 X i1 X i 2 i
Fitted Second-Order Polynomial Model
Case Summaries
1
2
3
4
5
6
7
8
9
10
11
x1
Number
of Cycles
Yi
Charge
Rate X1
Temperature
X2
xi2
x22
x1 x2
150.00
86.00
49.00
288.00
157.00
131.00
184.00
109.00
279.00
235.00
224.00
.60
1.00
1.40
.60
1.00
1.00
1.00
1.40
.60
1.00
1.40
10.00
10.00
10.00
20.00
20.00
20.00
20.00
20.00
30.00
30.00
30.00
1
0
1
1
0
0
0
1
1
0
1
1
1
1
0
0
0
0
0
1
1
1
1
0
-1
0
0
0
0
0
-1
0
1
X1 1.0
0.4
x2
X 2 20
10
x1 and x12: 0
x2 and x22: 0
Residuals Plots
correlation coefficient=0.974
SSPE 1,404.67
ANOVA Table
Number
of Cycles
* X1X2
Between
Groups
Within Groups
(Combined)
Total
Sum of
Squares
59201.3
Mean
Square
7400.17
1404.67
702.333
60606.0
10
df
F
10.537
Sig.
.090
182
.
c p nc
3
2
.05
F .95;3,2 19.2
F * 182
. 19.2
second - order polynomial is a good fit
Partial F-Test
H 0 : 11 22 12 0
H a : not all betas 0
F
*
SSR X 12 , X 22 , X 1 X 2 | X 1 , X 2
MSE
3
SSR X 12 , X 22 , X 1 X 2 | X 1 , X 2 SSR X 12 | X 1 , X 2
SSR X 22 | X 1 , X 2 , X 12 SSR X 1 X 2 | X 1 , X 2 , X 12 , X 22
1,646.0 284.9 529.0 2,459.9
2,459.9
*
F
1,0481
. .78
3
F .95;3,5 5.41
F * .78 5.41 H 0 : 11 22 12 0
No curvature and interaction effects are needed.
Yi 0 1 X i1 i 2 X i 2 i
Y 160.58 139.58 X 7.55 X
1
Coefficientsa
Model
1
(Constant)
Charge Rate
Temperature
Unstandardized
Coefficients
Std.
B
Error
160.583
41.615
-139.583
31.665
7.550
1.267
Standar
dized
Coeffici
ents
Beta
-.556
.751
t
3.859
-4.408
5.961
Sig.
.005
.002
.000
212.6 1 66.5
4.6 2 10.5
Additive Model
E Y 10 2 X 1 5 X 2
700
600
500
400
300
200
100
0
12 10
8 6
4 2
X1
70
50 60
30 40
20
0 10
X2
E Y 10 2 X 1 5 X 2 .5 X 1 X 2
1000
800
600
400
200
0
12 10
8 6
4 2
X1
E Y 10 2 X 1 5 X 2 .5 X 1 X 2
40
20 30
0 10
X2
70
50 60
700
600
500
400
300
200
100
0
12 10
8 6
4 2
X1
40
20 30
0 10
X2
70
50 60
200
190
y
180
12 10
8 6
4 2
X1
60 70
50
30 40
20
10
X2
DF
Sum of
Squares
Model
407.6995001
67.9499167
87.6899999
6.7453846
Error
13
Corrected Total
19
R-Square
Source
x1c
x2c
x3c
x1c*x2c
x1c*x3c
x2c*x3c
Parameter
Intercept
x1c
x2c
x3c
x1c*x2c
x1c*x3c
x2c*x3c
1
1
1
2.597188
Type I SS
352.2697968
33.1689128
11.5459022
1
1.4957180
1
2.7043343
1
6.5148360
10.07
Pr > F
0.0003
y Mean
20.19500
Mean Square
F Value
352.2697968
33.1689128
11.5459022
1.4957180
2.7043343
6.5148360
Standard
Estimate
Error
t Value
52.22
4.92
1.71
0.22
0.40
0.97
Pr > F
<.0001
0.0450
0.2134
0.6455
0.5376
0.3437
Pr > |t|
20.52689353
1.07362646
19.12
<.0001
3.43780807
3.57866572
0.96
0.3543
-2.09471734
3.03676957
-0.69
0.5025
-1.61633724
1.90721068
-0.85
0.4121
0.00887556
0.03085046
0.29
0.7781
-0.08479084
0.07341774
-1.15
0.2689
0.09041539
H 0 : 4 5 6 0
H a : not all betas = 0
F*
Root MSE
12.86055
DF
F Value
495.3895000
Coeff Var
0.822988
Mean Square
0.09200130
10.715
6.745 .53
3
0.3437
SSR X1 X 2 , X1 X 3 , X 2 X 3 | X1 , X 2 , X 3
1496
.
2.704 6.515
10.715
SSR X 1 X 2 , X 1 X 3 , X 2 X 3 | X 1 , X 2 , X 3
3
0.98
MSE
.05
F .95;313
, 3.41
F * .53 3.41 H 0
Qualitative Predictors
1
0
if stock company
otherwise
1
0
if mutual company
X2
X3
otherwise
Yi 0 1 X i1 2 X i 2 3 X i 3 i
1
1
X
1
X11
X12
X13
X14
0
0
1
1
1
0
0
i 1
4
X i1
2
2
2
i1
i1
i 1
X X
i 1
2
i1
i 1
i1
X X X X
i1
i 3
i 1
4
i 3
X i1
10
Yi 0 1 X i1 2 X i 2 i
X i1 size of firm
1
0
X i2
Response
Functio
n
if stock company
otherwise
E Y 0 1 X 1 2 X 2
E Y 0 1 X 1 2 0 0 1 X 1
E Y 0 1 X 1 2 1 0 2 1 X 1
how much higher (lower) the response function for stock firms is than
the one for mutual firms, for any given size of firm.
11
Example
Case Summariesa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Total
Numbr of
Months
Elapsed
17
26
21
30
22
0
12
19
4
16
28
15
11
38
31
21
20
13
30
14
20
Size of
Firm
151
92
175
31
104
277
210
120
290
238
164
272
295
68
85
224
166
305
124
246
20
Indicator
Code
0
0
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
20
X1X2
0
0
0
0
0
0
0
0
0
0
164
272
295
68
85
224
166
305
124
246
20
ANOVAa
Model
1
Regression
Residual
Total
Sum of
Squares
1504.413
176.387
1680.800
df
2
17
19
Mean
Square
752.207
10.376
F
72.497
Sig.
.000b
12
Coefficientsa
Model
1
(Constant)
Size of
Firm
Indicator
Code
Unstandardized
Coefficients
B
Std. Error
33.874
1.814
Standar
dized
Coefficie
nts
Beta
t
18.675
Sig.
.000
-.102
.009
-.911
-11.443
.000
8.055
1.459
.439
5.521
.000
N um br of M onths E laps ed
30
20
10
Indicator Code
1
-10
0
0
100
200
300
400
Size of Firm
13
Yi 0 1 X i1 2 X i 2 3 X i1 X i 2 i
X i1 size of firm
1
0
X i2
Response
Fun
ctio
n
if stock company
otherwise
E Y 0 1 X 1 2 X 2 3 X 1 X 2
E Y 0 1 X 1 2 0 3 0 0 1 X 1
Mutual firms
E Y 0 1 X 1 2 1 3 X 1 0 2 1 3 X 1 Stock Firms
Regression
Residual
Total
Sum of
Squares
1504.419
176.381
1680.800
df
3
16
19
Mean
Square
501.473
11.024
F
45.490
Sig.
.000b
Coefficientsa
Model
1
(Constant)
Size of
Firm
Indicator
Code
X1X2
Unstandardized
Coefficients
B
Std. Error
33.838
2.441
Standar
dized
Coefficie
nts
Beta
t
13.864
Sig.
.000
-.102
.013
-.909
-7.779
.000
8.131
3.654
.443
2.225
.041
-4.2E-04
.018
-.005
-.023
.982
14
1
0
if tool model M1
otherwise
1
0
if tool model M2
otherwise
1
0
if tool model M3
otherwise
X2
X3
X4
Yi 0 1 X i1 2 X i 2 3 X i 3 4 X i 4 i
First Order
Qualitative Variable Coding
Tool Model
X1
X2
X3
X4
M1
Xi1
M2
Xi1
M3
Xi1
M4
Xi1
Response
Functi
on
E Y 0 1 X 1 2 X 2 3 X 3 4 X 4
E Y 0 1 X 1
M4
E Y 0 2 1 X 1 M1
E Y 0 3 1 X 1 M2
E Y 0 4 1 X 1 M3
15