100% tevredenheidsgarantie Direct beschikbaar na je betaling Lees online óf als PDF Geen vaste maandelijkse kosten 4.2 TrustPilot
logo-home
Antwoorden

EconometricsAssignment_1_sol_2019

Beoordeling
-
Verkocht
-
Pagina's
5
Geüpload op
28-03-2019
Geschreven in
2018/2019

See the package deal for answers assignments! Answers to the first assignment (2019) of the course Econometrics of the program EOR of Tilburg University.










Oeps! We kunnen je document nu niet laden. Probeer het nog eens of neem contact op met support.

Documentinformatie

Geüpload op
28 maart 2019
Aantal pagina's
5
Geschreven in
2018/2019
Type
Antwoorden
Persoon
Onbekend

Onderwerpen

Voorbeeld van de inhoud

ASSIGNMENT 2: Solutions

Theoretical Exercises
Solution Theoretical Exercise 1 (each 10 points)
a) Since yi can take a value of either 0 or 1, εi = hyi − x0i β can take i a value of either 0 − x0i β
2 2
or 1 − x0i β. Then, V ar [εi | xi ] = E ε2i | xi = E (yi − x0i β) | xi = (1 − x0i β) P (yi = 1 | xi ) +
 

2 2 2
(−x0i β) P (yi = 0 | xi ) = (1 − x0i β) (x0i β) + (x0i β) (1 − x0i β) = x0i β (1 − x0i β), using the fact that
P [yi = 1 | xi ] = x0i β. This shows that in the LPM the unobserved error is heteroskedastic by construc-
tion.

b) The transformed model is P y = P Xβ + P ε, where P is a diagonal matrix with elements
1/ x0i β (1 − x0i β) on the diagonal.
p

c) The GLS estimator is the OLS estimator on the transformed model, and it is given by β̂GLS =
0 −1 0
(P X) P X (P X) P y. Since P depends on the unknown β, the GLS estimator cannot be used.

d) x0i β can be estimated by x0i β̂ which is just the prediction for observation i in the regression
P [yi = 1 | xi ] = x0i β. The
r transformed model is then P̂ y = P̂ Xβ + P̂ ε, where P̂ is a diagonal
 
matrix with elements 1/ x0i β̂ 1 − x0i β̂ on the diagonal. The FGLS estimator is then given by
 0 −1  0
bF GLS = P̂ X P̂ X P̂ X P̂ y.


Solution Theoretical Exercise 2 (3,3 and 4 points)
• The OLS estimator is still consistent under heteroskedasticity (see the proof for the consistency, where
we did not rely on any arguments related to heteroskedasticity)
• The usual F statistic no longer has a F distribution. This follows since for inference in small samples
(i.e. t or F test), we required the assumption that ε ∼ N (0, σ 2 I) to derive the distributions of the test
statistics.
• The OLS estimator is still unbiased, but no longer the best linear estimator. This follows because under
heteroskedasticity, the GLS estimator is more efficient.


Solution Empirical Exercise (each 10 points)
Solution a)

rm(list=ls())
# Load data, define dep. variable and system. comp.
load("data_Assignment2.RData")
y = lwage
X = cbind(const=rep(1,length(y)),age,age2,black,educ)




1

, # OLS estimates
source("FunctionLSS_robust.R")
OLSres = FunctionLSS_robust(y,X)
OLSres$B_hat

## [,1]
## const 3.315457284
## age 0.132650710
## age2 -0.001552282
## black -0.212722143
## educ 0.038511816

Interpretation: One additional year of education causes the wage rate to increase by approximately 3.85
percent on average, controlling for the other factors considered in the regression.

Solution b)

# Define instrument matrix
Z = cbind(const=rep(1,length(y)),age,age2,black,fatheduc)


# Load IV function (calculations are done in function file)
source("FunctionLSS_IV.R")


# Get IV estimates
IVres = FunctionLSS_IV(y,X,Z)
IVres$B_hat_st

## [,1]
## const 3.348734773
## age 0.112647699
## age2 -0.001212481
## black -0.187411397
## educ 0.057084292

Interpretation: One additional year of education causes the wage rate to increase by approximately 5.71
percent on average, controlling for the factors considered in the regression, when education is proxied by
father education. Compared to the OLS estimation in part a), the IV estimation leads to a coefficient estimate
that is substantially larger. This suggests that the OLS estimator produces a biased estimate of the effect of
education, assuming that father education is a valid instrument.

Solution c)

# Test relevance (OLS of educ on instruments)
y = educ
X = cbind(const=rep(1,length(y)),age,age2,black,fatheduc)



2

Maak kennis met de verkoper

Seller avatar
De reputatie van een verkoper is gebaseerd op het aantal documenten dat iemand tegen betaling verkocht heeft en de beoordelingen die voor die items ontvangen zijn. Er zijn drie niveau’s te onderscheiden: brons, zilver en goud. Hoe beter de reputatie, hoe meer de kwaliteit van zijn of haar werk te vertrouwen is.
cobbenhagen Tilburg University
Bekijk profiel
Volgen Je moet ingelogd zijn om studenten of vakken te kunnen volgen
Verkocht
33
Lid sinds
8 jaar
Aantal volgers
23
Documenten
19
Laatst verkocht
11 maanden geleden

3,4

7 beoordelingen

5
0
4
3
3
4
2
0
1
0

Recent door jou bekeken

Waarom studenten kiezen voor Stuvia

Gemaakt door medestudenten, geverifieerd door reviews

Kwaliteit die je kunt vertrouwen: geschreven door studenten die slaagden en beoordeeld door anderen die dit document gebruikten.

Niet tevreden? Kies een ander document

Geen zorgen! Je kunt voor hetzelfde geld direct een ander document kiezen dat beter past bij wat je zoekt.

Betaal zoals je wilt, start meteen met leren

Geen abonnement, geen verplichtingen. Betaal zoals je gewend bent via iDeal of creditcard en download je PDF-document meteen.

Student with book image

“Gekocht, gedownload en geslaagd. Zo makkelijk kan het dus zijn.”

Alisha Student

Veelgestelde vragen