Professional Documents
Culture Documents
Exercise 1
Exercise 1
Exercise 1
AAUSC, Department of Economics
November, 2019
1. Show that
n
X
(Xi − X) = 0.
i=1
2. Show that
n
X n
X n
X n
X
(Xi −X)(Yi −Y ) = (Xi −X)Yi = Xi (Yi −Y ) = Xi Yi −nX Y .
i=1 i=1 i=1 i=1
(a) What are the slope and intercept of this function? How do you
interpret the intercept in this equation?
(b) What is the average number of classes missed for someone who
lives five miles away?
(c) What is the difference in the average number of classes missed
for someone who lives 10 miles away and someone who lives 20
miles away?
(a) Yi = α + βXi + ui
(b) Yi = eα Xiβ eui
(c) Yi = α + βγXi + ui
(d) Yi = α + β ln Xi + ui
1
(e) Yi = α + βXi Zi + ui
5. Let kids denote the number of children ever born to a woman, and
let educ denote years of education for the woman. A simple model
relating fertility to years of education is
kids = β0 + β1 educ + u,
GP
[ A = β̂0 + β̂1 ACT
2
Student GPA ACT
1 2.8 21
2 3.4 24
3 3.0 26
4 3.5 27
5 3.6 29
6 3.0 25
7 2.7 25
8 3.7 30
8. The data set BWGHT contains data on births to women in the United
States. Two variables of interest are the dependent variable, infant
birth weight in ounces (bwght), and an explanatory variable, average
number of cigarettes the mother smoked per day during pregnancy
(cigs). The following simple regression was estimated using data on
n = 1, 388 births:
\ = 119.77 − 0.514 cigs
bwght
(a) What is the predicted birth weight when cigs = 0? What about
when cigs = 20 (one pack per day)? Comment on the difference.
(b) Does this simple regression necessarily capture a causal relation-
ship between the child’s birth weight and the mother’s smoking
habits? Explain.
(c) To predict a birth weight of 125 ounces, what would cigs have to
be? Comment.
(d) The proportion of women in the sample who do not smoke while
pregnant is about .85. Does this help reconcile your finding from
part (c)?
9. The following equation relates housing price (price) to the distance
from a recently built garbage incinerator (dist):
\ = 9.40 + 0.312 log(dist)
log(price)
n = 135, R2 = 0.162.
3
(a) Interpret the coefficient on log(dist). Is the sign of this estimate
what you expect it to be?
(b) Do you think simple regression provides an unbiased estimator of
the ceteris paribus elasticity of price with respect to dist? (Think
about the city’s decision on where to put the incinerator.)
(c) What other factors about a house affect its price? Might these
be correlated with distance from the incinerator?
10. Assume that the following data have been calculated from a regression
of Y on a single variable X and a constant over 22 observations
X
Xi Yi = 830102, X = 416.5, Y = 86.65,
X
Xi2 = 3919654, SSR = 130.6
11. (a) Regression through the origin: Suppose you are given the
model without an intercept, Yi = β1 Xi + ui . Show that
P
Xi Yi
β̃1 = P 2
Xi
12. (a) Let β̂0 and β̂1 , be the intercept and slope from the regression of
Yi on Xi , using n observations. Let c1 and c2 , with c2 6= 0, be
constants. Let β̃0 and β̃1 be the intercept and slope from the
regression of c1 Yi on c2 Xi . Show that
c1
β̃1 = β̂1 and β̃0 = c1 β̂0 ,
c2
4
(b) Now, let β̃0 and β̃1 be from the regression of (c1 + Yi ) on (c2 + Xi )
(with no restriction on c1 or c2 ). Show that
13. Let β̂0 and β̂1 be the OLS intercept and slope estimators, respectively,
and let u be the sample average of the errors (not the residuals!).
σ2 σ2 2
Var(β̂0 ) = + X .
n SSTx