Hello, if you have any need, please feel free to consult us, this is my wechat: wx91due
Advanced Empirical Research Methods
- Use the Julia language, and write the code in Jupyter notebook or VS Code.
- Provide a cleanly formatted PDF that contains all answers and results, as well as a separate set of files that contains all code to replicate your results. Export all figures and estimates to a separate folder called results.
- All results must be replicable using your code.
- Adding plots to the PDF that you are not able to replicate using your own solution (e.g., because you know the consumption policy is concave in wealth, but your algorithm gives you something convex) is considered cheating and leads to failure.
- Do this exam on your own. Do not copy other student’s code. If this happens, both students will fail the exam. So please do not ask a fellow student for this kind of favor.
- You can use code from your homework, build on ChatGPT, etc., and use built-in functions, but your code must demonstrate that you understand what is happening.
- If you find that the exam is missing assumptions to solve a problem (e.g., I forgot to specify the discount factor), make assumptions that will allow you to proceed, and state clearly what these assumptions are.
Time is discrete. Consider an economy with heterogeneous households subject to labor income shocks. Households can save in a risk-free bond b that pays gross return 1 + r, and there is an ad-hoc borrowing constraint b ≥ 0. The interest rate is set exogenously at 10%. The wage per efficiency unit of labor equals one, w = 1. This is the standard incomplete market model from class where there are no insurance markets, but households have access to a risk-free bond to insure themselves.
Households live forever and solve the following dynamic problem:
1where ht are the efficiency units a household is endowed with, which are stochastic (I already used the fact that the wage is one), and a standard transversality condition holds.
The non-standard part of the problem is the flow utility u(c, b) that depends not only on consumption but potentially on assets as well. We assume the following functional form:
Two observations are noteworthy: First, if ϕ = 0, we get our standard CRRA utility back. If ϕ > 0, there will be an additional incentive to hold assets – think of this as the joy of feeling wealthy. Second, for κ > 0, assets in the utility function are a “luxury” good.
We will explore what this means as well as solve the model. In short, there is an additional savings motive, which is relatively stronger for high-income households, on top of the standard consumption smoothing and precautionary savings motive.
Exercise 1: Standard Consumption-Saving Problem
Suppose ϕ = 0, so we have the standard CRRA flow utility:
3. Use the stationary distribution to compute the unconditional variance of the log of labor income. What is the variance?
4. Construct a linearly spaced asset grid with 1000 grid points where the highest value of assets is 20 times the highest labor income in levels. The lower bound is zero.
Exercise 2: Non-homothetic demand for savings
- Maintain the same setup as before (same income and asset grid) but adjust the flow payoff to include the non-homothetic asset holding motive.
- Solve the value function and plot the consumption policy function for low and high-income households. Is there any difference to the previous consumption policy function?
- Compute the average saving rate within each income group for this new solution and compare them to the old results from exercise 1.6. Create a bar plot with all six saving rates next to each other, cleanly labeled.
- Are you able to create saving rates that are higher than the ones from the previous exercise? For which types does the saving rate increase or decrease, and why do you think that is? (max 4 sentences)
Use R and produce your answers by generating a PDF from an R Markdown file which includes your code, its output, and your answers to questions in a single document.Each time you are asked to comment, it should be no more than two short paragraphs, unless specified otherwise. Rules 5 - 7 above apply.
Examining the returns to education (how much one more year of education increases your lifetime income) is a well-studied problem in applied econometrics. Returns to different degrees is less studied but seems quantitatively just as important. One usual distinction is between STEM (Science, Technology, Engineering and Mathematics) and other degrees.
The data contains the following variables:
- age: age at the time of the survey.
- fem: equals 1 if the respondent is a woman.
- stemdeg: equals 1 if the respondent has a STEM degree.
- grade_abitur: the grade at the secondary school exam (Abitur). It has been normalised to be between 0 and 100 percent.
- binfathered (resp. binmothered): equals 1 if the father (resp. the mother) has tertiary education.
- income_5yrs: the hourly wage after five years of graduation.
- no_regret: the respondent’s answer to the question: ‘if you could choose again, would you do the same degree?’ It equals 1 when the answer is ‘yes’.
- related_job: equals 1 if the respondent holds a job related to his/her degree.
- bin_prop_faculty_stem: equals 1 if proportion of female faculty in the year and region of Abitur is above the national average.
(1) Present a data summary of pertinent variables and compare the STEM degree holders to the non-degree holders. Tipp: Some data cleaning: Drop the extreme values of wages (below 5% and above 95% quantile). It is standard to use log-income rather than income level.
- the mother’s education binmothered, which equals 1 when the mother has obtained tertiary education.
- the proportion of female STEM faculty bin_prop_female_faculty_stem, which equals one, if in the year and in the province where one has completed secondary school, the proportion of faculty teaching STEM subjects is above the average proportion in the country. Could you argue in favour or against each instrument? Which one would you prefer? Please explain.
(8) Test for the hypothesis H0 : FY0 = FY1 among the compliers. Explain carefully your testing procedure. Tipp: ignore any regressor.
(9) Given all your findings above, write a short abstract (max. 150 words) of a paper that would present your research about the returns to STEM degrees in Germany