Week 10 Homework Feedback: Sofia Bruga
Week 10 Homework Feedback: Sofia Bruga
Overall Assessment
Grade: ✅ (Pass)
Correct submission. You implemented EGM correctly and simulated the economies to find the long-run means.
Task-by-Task Check
Task 1: Quantifying Precautionary Savings
- Parameter & Grid Setup: ✅ Correct.
- Solution Method: ✅ EGM implemented correctly.
- Deterministic Case: ✅ Solved.
- Stochastic Case: ✅ Solved.
- Simulation: ✅ Simulation logic is correct.
- Comparison: ✅ Premium calculated.
Task 2: The Role of Risk Aversion
- Sigma Variation: ✅ Implemented.
- Solving Sigma Cases: ✅ Solved.
- Policy Plot: ✅ Plotted.
- Simulation Comparison: ✅ Calculated.
- Interpretation: ✅ Correct interpretation.
Technical Implementation
- EGM Logic: Your
egm_prof_sigmafunction correctly implements the method. - Hybrid Approach: You used a
resource_funwithfzero(line 214) to invert the resource constraint. This is robust. - Monotonicity: The explicit checks for monotonicity and
fzerobounds (lines 217-230) are good practice.
Visual Output
- Figures are clear and correct.
Suggestions for Improvement
- Efficiency: Using interpolation for the resource constraint inversion is generally faster than
fzeroinside a loop, especially for finer grids.
Summary
11/11 tasks correct. Correct work.