Documente Academic
Documente Profesional
Documente Cultură
Is b3 significant? Positive,
negative? Magnitude? Echo-locating bats expend
more energy while flying per
unit body mass
EEi = b0 + b1*massi
+b2*birdi+b3*e-bati+ residi Data: energy expenditures
and mass for 4 ne-bats,
4 e-bats, and 12 ne-birds.
Example: Bat Echolocation Data
Q: Do echolocating bats expend more energy than non-
echolocating bats and birds, after accounting for mass?
Note: Different Model Parameterizations
New dummies!
Dummy variables as shift parameters
(y | x, TYPE) = 0 + 1 mass + (2 Itype2+ 3 Itype3)
Echolocating bats
Energy (W)
[Log scale] 2- 3
Birds
2
Non- Echolocating bats
0 + 2
3 Reference
Category
0 + 3
0
Multiple regression:
Oil = 0 + 1 Temp + 2 Insulation + i
Least Squares Estimation
Unknown Variance
Regression coefficients
parameters: about regression
Fitted values
(predicted) (y | x1 , x 2 ) = y = 0 + 1 x i1 + 2 x i2 i = 1,2,..n
Residuals resi = y i y i
Back-transform:
e.0787 =1.08, e-.35=.70 and e.51=1.67
SSR
r 2
Y 1 2 =
SST
Adjusted R2
reflects the number
of explanatory
variables and sample
size
is smaller than R2
Interpretation of Adjusted R2
SSR
r2
Y 12 = = .9656
.5953
SST
59.53% of the total variation in energy can be
explained by types 1 and 2
r = .9599
2
.5477
adj
Oil Rr =
2
Temp
SSR
=
SSR + SSE
Example: R2=0 and R2=1
Temp Oil R =0
2
R =1
Oil & 2
Temp
Uncorrelated Independent Variables
Here, two
independent
Oil variables that are
uncorrelated
with each other.
But both affect
Insul. oil prices.
Temp
Then R2 is just
the sum of the
variance explain
by each variable.
Uncorrelated Independent Variables
Oil +
Rr =
2
Insul.
Temp
SSR
=
SSR + SSE
Correlated Independent Variables
Temp
Insulation
Venn Diagrams and
Explanatory Power of Regression
Oil r2
Y 12 =
Temp
Insulation SSR
=
SSR + SSE
F-tests: Overall Model Significance
To calculate the significance of the entire model,
use an F-test
This compares the added variance explained by
including the models regressors, as opposed to
using only the mean of the dependent variable:
Full model: 0 + 1 x1 + 2 x2 + 3 x3
Reduced model: 0
4 Numerator degrees of
freedom: # of s in the
full model - # of s in the Numerator d.f. = 19 16 = 3
reduced model
29.42
5 Calculate the F-statistic
F statistic = 3 = 283.56
.03458
6 Find Pr(F3,16>283.56)
from table or computer P-value = 0.0000
F-tests: Example
4 Numerator degrees of
freedom: # of s in the
full model - # of s in the Numerator d.f. = 18 16 = 2
reduced model
.0296
5 Calculate the F-statistic
F statistic = 2 = 0.43
.03458