Question: Resolve in detail. Write a Jupyter notebook in code Python for the following simulation exercise. Consider the linear model yi = alpha +

Resolve in detail. Write a Jupyter notebook in code Python for the following simulation exercise. Consider the linear model
yi =\alpha +\beta xi + ei where xi fx(\theta x), ei fe(\theta e) and fx, fe are PDFs of some random
variable. xi and ei are independent. For this question, assume that fx and fe are both
standard normal distribution but we will consider different distributions below. Assume
that \alpha =\beta =1.
(a) What are the theoretical properties of the OLS estimators b\alpha and b\beta ? What is their
theoretical distribution given a sample size N?
(b) Draw M i.i.d. random samples of length N for xi and ei. Start with M =5000 and
N =50 but you should experiment with different values.
For each m =1,...,M, compute the OLS estimators b\alpha m and b\beta m and their standard
errors. Compute the means and standard deviations of the distribution of the M
estimators b\alpha m and b\beta m.
(c) Plot the histograms of the M b\alpha m and b\beta m.
(d) Compare the distribution of the simulated b\alpha m and b\beta m to their theoretical distributions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!