[SPSS Program]
Title 'Agresti9.4.SIMPLE.SPS -- analysis of Agresti data Table 9.4'.
COMMENT SIMPLE LINEAR REGRESSION.
DATA LIST FILE=INLINE RECORDS=1
/1 P 1-5 S 8-12 Be 16 Ba 20 New 24.
BEGIN DATA
48.5 1.10 3 1 0
55.0 1.01 3 2 0
68.0 1.45 3 2 0
137.0 2.40 3 3 0
309.4 3.30 4 3 1
17.5 .40 1 1 0
19.6 1.28 3 1 0
24.5 .74 3 1 0
34.8 .78 2 1 0
32.0 .97 3 1 0
28.0 .84 3 1 0
49.9 1.08 2 2 0
59.9 .99 2 1 0
61.5 1.01 3 2 0
60.0 1.34 3 2 0
65.9 1.22 3 1 0
67.9 1.28 3 2 0
68.9 1.29 3 2 0
69.9 1.52 3 2 0
70.5 1.25 3 2 0
72.9 1.28 3 2 0
72.5 1.28 3 1 0
72.0 1.36 3 2 0
71.0 1.20 3 2 0
76.0 1.46 3 2 0
72.9 1.56 4 2 0
73.0 1.22 3 2 0
70.0 1.40 2 2 0
76.0 1.15 2 2 0
69.0 1.74 3 2 0
75.5 1.62 3 2 0
76.0 1.66 3 2 0
81.8 1.33 3 2 0
84.5 1.34 3 2 0
83.5 1.40 3 2 0
86.0 1.15 2 2 1
86.9 1.58 3 2 1
86.9 1.58 3 2 1
86.9 1.58 3 2 1
87.9 1.71 3 2 0
88.1 2.10 3 2 0
85.9 1.27 3 2 0
89.5 1.34 3 2 0
87.4 1.25 3 2 0
87.9 1.68 3 2 0
88.0 1.55 3 2 0
90.0 1.55 3 2 0
96.0 1.36 3 2 1
99.9 1.51 3 2 1
95.5 1.54 3 2 1
98.5 1.51 3 2 0
100.1 1.85 3 2 0
99.9 1.62 4 2 1
101.9 1.40 3 2 1
101.9 1.92 4 2 0
102.3 1.42 3 2 1
110.8 1.56 3 2 1
105.0 1.43 3 2 1
97.9 2.00 3 2 0
106.3 1.45 3 2 1
106.5 1.65 3 2 0
116.0 1.72 4 2 1
108.0 1.79 4 2 1
107.5 1.85 3 2 0
109.9 2.06 4 2 1
110.0 1.76 4 2 0
120.0 1.62 3 2 1
115.0 1.80 4 2 1
113.4 1.98 3 2 0
114.9 1.57 3 2 0
115.0 2.19 3 2 0
115.0 2.07 4 2 0
117.9 1.99 4 2 0
110.0 1.55 3 2 0
115.0 1.67 3 2 0
124.0 2.40 4 2 0
129.9 1.79 4 2 1
124.0 1.89 3 2 0
128.0 1.88 3 2 1
132.4 2.00 4 2 1
139.3 2.05 4 2 1
139.3 2.00 4 2 1
139.7 2.03 3 2 1
142.0 2.12 3 3 0
141.3 2.08 4 2 1
147.5 2.19 4 2 0
142.5 2.40 4 2 0
148.0 2.40 5 2 0
149.0 3.05 4 2 0
150.0 2.04 3 3 0
172.9 2.25 4 2 1
190.0 2.57 4 3 1
280.0 3.85 4 3 0
END DATA.
VARIABLE LABELS P 'selling price in thousands' S 'size in thousands'
Be 'number bedrooms' Ba 'number bathrooms' New 'new-1 or old-0'.
SET WIDTH=80.
REGRESSION WIDTH=80/
DESCRIPTIVES=DEFAULTS/
VARS=P,S/
STATISTICS=R,ANOVA,COEFF,OUTS,CI,SES,F/
DEPENDENT=P/
ENTER/
RESIDUALS=HISTOGRAM,NORMPROB,OUTLIERS/
CASEWISE=DEFAULTS/
SCATTERPLOT (P,S) (*RESID,*PRE) (*RESID,S).
PLOT PLOT=P WITH S.
[SPSS Output]
* * * * M U L T I P L E R E G R E S S I O N * * * *
Listwise Deletion of Missing Data
Mean Std Dev Label
P 99.533 44.184 selling price in thousands
S 1.650 .525 size in thousands
N of Cases = 93
Correlation:
P S
P 1.000 .899
S .899 1.000
* * * * M U L T I P L E R E G R E S S I O N * * * *
Equation Number 1 Dependent Variable.. P selling price in thousands
Descriptive Statistics are printed on Page 4
Block Number 1. Method: Enter
Variable(s) Entered on Step Number
1.. S size in thousands
Multiple R .89881
R Square .80787
Adjusted R Square .80575
Standard Error 19.47340
Analysis of Variance
DF Sum of Squares Mean Square
Regression 1 145097.46423 145097.46423
Residual 91 34508.40244 379.21321
F = 382.62766 Signif F = .0000
---------------------- Variables in the Equation -----------------------
Variable B SE B 95% Confdnce Intrvl B Beta
S 75.606840 3.865208 67.929078 83.284601 .898814
(Constant) -25.193563 6.688450 -38.479347 -11.907779
----- Variables in the Equation ------
Variable SE Beta F Sig F
S .045950 382.628 .0000
(Constant) 14.188 .0003
End Block Number 1 All requested variables entered.
* * * * M U L T I P L E R E G R E S S I O N * * * *
Equation Number 1 Dependent Variable.. P selling price in thousands
Casewise Plot of Standardized Residual
Outliers = 3. *: Selected M: Missing
-6. -3. 3. 6.
Case # O:.......: :.......:O P *PRED *RESID
5 . .. * . 309 224.3090 85.0910
1 Outliers found.
* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Residuals Statistics:
Min Max Mean Std Dev N
*PRED 5.0492 265.8928 99.5333 39.7133 93
*RESID -56.4073 85.0910 .0000 19.3673 93
*ZPRED -2.3792 4.1890 .0000 1.0000 93
*ZRESID -2.8966 4.3696 .0000 .9946 93
Total Cases = 93
Outliers - Standardized Residual
Case # *ZRESID
5 4.36960
89 -2.89663
7 -2.66945
41 -2.33553
30 -1.91863
76 -1.65677
59 -1.44403
91 1.43674
71 -1.30359
32 -1.24856
* * * * * * * * * * * * * * * * * * * * * * * * * * * * *
Histogram - Standardized Residual
N Exp N (* = 1 Cases, . : = Normal Curve)
1 .07 Out *
0 .14 3.00
0 .36 2.67
0 .83 2.33 .
0 1.70 2.00 .
0 3.11 1.67 .
2 5.10 1.33 ** .
13 7.50 1.00 *******:*****
13 9.88 .67 *********:***
15 11.65 .33 ***********:***
10 12.31 .00 ********** .
14 11.65 -.33 ***********:**
9 9.88 -.67 *********.
8 7.50 -1.00 *******:
3 5.10 -1.33 *** .
1 3.11 -1.67 * .
1 1.70 -2.00 *.
1 .83 -2.33 :
1 .36 -2.67 *
1 .14 -3.00 *
0 .07 Out
Normal Probability (P-P) Plot
Standardized Residual
1.0 +---------+---------+---------+---------*
| . |
| . **|
| .**** |
| .** |
.75 + *** +
| ***** |
E | **** |
x | ***. |
p | **. |
e .5 + **. +
c | *. |
t | ** |
e | **** |
d | **. |
.25 + **. +
| *** |
| **. |
| *. |
| * |
**--------+---------+---------+---------+ Observed
.25 .5 .75 1.0
Standardized Scatterplot
Across - S Down - P
Out ++-----+-----+-----+-----+-----+----- :
3 + Symbols:
| |
| | Max N
2 + . +
| . | . 1.0
| | : 2.0
1 + **. * . + * 5.0
| .:. . |
| *::* ::. |
0 + **.: ... +
| ..*. *.. . |
| .**::::. |
-1 + .*. . +
| . |
| ... . |
-2 + . +
| |
| |
-3 + +
Out ++-----+-----+-----+-----+-----+-----++
-3 -2 -1 0 1 2 3 Out
Standardized Scatterplot
Across - *PRED Down - *RESID
Out ++-----+-----+-----+-----+-----+----- .
3 + Symbols:
| |
| | Max N
2 + +
| | . 1.0
| . . | : 2.0
1 + . *.*. . . . * 4.0
| . ... : . .. .: .
| . :: ... ...*.
0 + . ::. .... +
| . .. :..* . . . |
| .. .. ... . . |
-1 + .:. . : . +
| . . . |
| . |
-2 + . +
| . |
| . |
-3 + . +
Out ++-----+-----+-----+-----+-----+-----++
-3 -2 -1 0 1 2 3 Out
Standardized Scatterplot
Across - S Down - *RESID
Out ++-----+-----+-----+-----+-----+----- .
3 + Symbols:
| |
| | Max N
2 + +
| | . 1.0
| . . | : 2.0
1 + . *.*. . . . * 4.0
| . ... : . .. .: .
| . :: ... ...*.
0 + . ::. .... +
| . .. :..* . . . |
| .. .. ... . . |
-1 + .:. . : . +
| . . . |
| . |
-2 + . +
| . |
| . |
-3 + . +
Out ++-----+-----+-----+-----+-----+-----++
-3 -2 -1 0 1 2 3 Out
Preceding task required .14 seconds CPU time; .85 seconds elapsed.
-> PLOT PLOT=P WITH S.
PLOT requires 15024 bytes of workspace for execution.
* * * * * * * * * * * * * * * * * P L O T * * * * * * * * * * * * * * * * *
Data Information
93 unweighted cases accepted.
Size of the plots
Horizontal size is 65
Vertical size is 40
Frequencies and symbols used (not applicable for control or overlay plots)
1 - 1 11 - B 21 - L 31 - V
2 - 2 12 - C 22 - M 32 - W
3 - 3 13 - D 23 - N 33 - X
4 - 4 14 - E 24 - O 34 - Y
5 - 5 15 - F 25 - P 35 - Z
6 - 6 16 - G 26 - Q 36 - *
7 - 7 17 - H 27 - R
8 - 8 18 - I 28 - S
9 - 9 19 - J 29 - T
10 - A 20 - K 30 - U
Plot of P with S
++----+----+----+----+----+----+----+----+----+----+----+----+----++
350+ +
| |
| |
| |
| 1 |
300+ +
| |
s | 1 |
e | |
l | |
l 250+ +
i | |
n | |
g | |
| |
p 200+ +
r | 1 |
i | |
c | 1 |
e | |
150+ 1 1 1 1 +
i | 32 2 |
n | 111 |
| 1211111 1 |
t | 123 3 11 |
h 100+ 331 111 +
o | 112 232 1 |
u | 1 21111 |
s | 442211 |
a | 3 1 |
n 50+ 2 +
d | |
s | 2 1 |
| 1 1 1 |
| |
0+ +
| |
| |
| |
| |
-50+ +
++----+----+----+----+----+----+----+----+----+----+----+----+----++
-1.5 -.5 .5 1.5 2.5 3.5 4.5
size in thousands
93 cases plotted.
Preceding task required .03 seconds CPU time; .08 seconds elapsed.