Week 10 Homework Feedback: Ignazio Nunzi
Week 10 Homework Feedback: Ignazio Nunzi
Overall Assessment
Grade: ✅ (Pass)
Correct submission. You implemented the EGM method and even included a comparison with the Coleman method, which is a nice addition. Your results are accurate.
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 included in the code structure (implied by results).
- 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.
Technical Implementation
- EGM Logic: Your
Ignazio_egm.mcorrectly implements the Endogenous Grid Method. - Comparison: Comparing EGM speed and accuracy against Coleman is very good practice.
- Hybrid Approach: You also used
fzerofor the resource constraint inversion (Step 3).
Visual Output
- Figures are generated and saved correctly.
Suggestions for Improvement
- Efficiency: As with other submissions using this hybrid approach, you could replace the
fzeroloop with a direct interpolation of the resource constraint for greater speed.
Summary
11/11 tasks correct. Correct work.