Professional Documents
Culture Documents
data :=
0 0 1 2 3 1 2 3 4 1 7 7 7 7
0 A := data 4 E := data corr ( A , B) = corr ( A , E) = 0 n := rows ( data) n=5 SD ( x) := stdev ( x) SD ( A) = 1.581 SD ( D) = 1.673
PROBLEM 11-2
2 C := data
3 D := data
corr ( A , D) = 0
n n1 SD ( B) = 0 SD ( E) = 1.871 SUMY := 385 SD ( C) = 1.095 SD ( F) = 1.581 SUMXminusbarXsquared := 440 SUMXminusbarXYminusbarY := 568 SUMY n
SUMX := 220
SAMPLEMEANY :=
SAMPLESTDEVX :=
SUMXminusbarXYminusbarY n1
SAMPLEMEANY := 1.037 n := 60
SUMXminusbarXYminusbarY := 720.535 SUMYminusbarYsquared := 1243.309 SUMZminusbarZsquared := 183.073 SUMXminusbarXZminusbarZ := 231.007 SUMYminusbarYZminusbarZ := 171.816 SAMPLEVARX := SUMXminusbarXsquared n1 SUMYminusbarYsquared n1
SAMPLEVARY :=
SAMPLEVARZ :=
SUMZminusbarZsquared n1
SAMPLEVARX = 13.035 SAMPLEVARY = 21.073 SAMPLEVARZ = 3.103 SAMPLESTDEVX := SAMPLESTDEVY := SAMPLESTDEVZ := SAMPLEVARX SAMPLEVARY SAMPLEVARZ SAMPLESTDEVY = 4.591
SAMPLECOVXY SAMPLECORRXY := SAMPLESTDEVX SAMPLESTDEVY SAMPLECOVXZ SAMPLECORRXZ := SAMPLESTDEVX SAMPLESTDEVZ SAMPLECOVYZ SAMPLECORRYZ := SAMPLESTDEVY SAMPLESTDEVZ
SAMPLECORRXZ = 0.616
data :=
0 0 1 2 3 50 70 80 60 1 8 7 6 7
0 A := data
1 B := data
corr ( A , B) = 0.9487
PROBLEM 11-5
n := 36
2
this is less than critical t of 2.032, therefore H0 is not rejected.
ttest :=
2
this is more than the critical t-value of 2.032, therefore H0 is rejected.
data :=
0 0 1 2 3 4 5 0.4 0.36 0.42 0.31 0.33 0.34 1 20 25 16 30 35 30
0 A := data Number of data points: n := rows ( data) Standard deviation: SD ( x) := stdev ( x) mean ( A) = 0.36 SD ( A) = 0.042426
n 1
1 B := data
n=6
n n1 mean ( B) = 26 SD ( B) = 7.0711
i =0
COVAB :=
i =0
( Ai mean ( A) ) ( Bi mean ( B) )
n1
corr ( A , B) = 0.927
regression equation is Y = 81.6 - 154.44*(X)
Corr :=
Coeff determination
total variation is the sum of the squared distances of each dependent variable value minus the mean dependent value
n := 5 df RSS := k RSS = 88 k
= 2.4
RSS
F :=
k SSE nk1
F = 36.667
p := .00904
alpha := .05
) = "reject"
X := 8
n := 12
b0 := .287
b1 := .802 Y := b0 + b1 X
varpredicterror = 20.884 alpha := .05 tcritical := 2.228 Y tcritical varpredicterror = 4.053 Y + tcritical varpredicterror = 16.311
Problem 11-10
n := 120
b0 := 6.071
b1 := .09251
X := 90
part A.
Y := b0 + b1 X
variancemeanreturn := 137.3068
varpredicterror = 0.667 alpha := .05 tcritical := 1.980 Y tcritical varpredicterror = 12.78 Y + tcritical varpredicterror = 16.014
part B.
X := 100 Y := b0 + b1 X Y = 15.322
2 ( X meanreturnmarket) 1 varpredicterror := standerrorest 1 + + n ( n 1) variance meanreturn 2
n := 9
SumXi := 81
SumXisquared := 789
SumYi := 144
SumXminusXbarsquared := 60
SumYminusYbarsquared := 144
SumXminusXbarYminusYbar := 84 Sumunexplainedvariationsquared := 26.4 meansampleX := SumXi n Sample varianceX := Sample stdevX := SumXminusXbarsquared n1
meansampleX = 9
Sample varianceX
Sample varianceY :=
SumYminusYbarsquared n1
meansampleY = 16 Sample varianceY = 18 Sample stdevY = 4.2426 CovXY = 10.5 CorrXY = 0.9037 b1 = 1.4 b0 = 3.4
Sample stdevY := Sample varianceY SumXminusXbarYminusYbar CovXY := n1 CovXY CorrXY := Sample stdevX Sample stdevY b1 := CovXY Sample varianceX
b0 := meansampleY b1 meansampleX Y := b0 + b1 X
this is the regression equation
ExplainedvariationY := CorrXY TotalvariationY UnexplainedvariationY := TotalvariationY ExplainedvariationY TotalvariationY = 144 ExplainedvariationY = 117.6 UnexplainedvariationY = 26.4 CorrXY = 0.8167 Coeff determination := ExplainedvariationY TotalvariationY
2
Standerrest :=
UnexplainedvariationY n2
Standerrest = 1.942
Problem 11-12
X1
n := 1819
RSS := 14.246
TSS := 60.139
Standerrslopecoeff := .001842
Standerror = 0.159 X4 Totaldf := n 1 Totaldf = 1818 X5 Regressiondf := k Regressiondf = 1 X6 Residualdf := n k 1 Residualdf = 1817 X7 MSSregress := RSS Regressiondf
Mean regression sum of squares
MSSregress = 14.246
F = 564.03 X10 Slopecoeff := .04375 Slopestanderr := .001842 Slopecoeff tstatslope := Slopestanderr tstatslope = 23.75 X11 tcritical := 1.96
for alpha = .05 because df is so large, t approximates z For one independent variable, tstat = Squareroot of F
F = 23.749
lowerbound95percent := b1 tcritical Standerrslopecoeff lowerbound95percent = 0.04736 X12 upperbound95percent := b1 + tcritical Standerrslopecoeff upperbound95percent = 0.04014
Problem 11-13
Corrportretindexret := .824
Lower multiple R leads to a lower R^2, lower F and lower t significances; less exageration is seen on the regression sum of squares and the total sum of squares, affecting also the accuracy of the mean squared error. The slope coefficient is lower.
Problem 11-14
answer in percent
tcritical := 2.0
F := 63.81
The calculated F-value = the square of the t-statistic for the slope coefficient
b0 := .077 Y := b0 + b1 X Y = 4.207
Problem 11-21
b1 := .826
X := 5
r := .1452 r n 2 1r
2
n := 248
tcritical := 1.96
ttest :=
ttest = 2.302
b1 := .6486