Week 10 Homework Feedback: Lorenzo Ilari
Week 10 Homework Feedback: Lorenzo Ilari
Overall Assessment
Grade: ✅ (Pass)
Correct submission. You implemented EGM correctly and performed the required simulations.
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.
Technical Implementation
- EGM Logic: The implementation in your script is correct.
- Hybrid Approach: You used
fzeroto invert the resource constraint (Step 4). - Code Organization: Separation into Task 1 and Task 2 sections is clear.
Visual Output
- No figures were explicitly saved in the script provided, but the logic to generate results is there.
Suggestions for Improvement
- Efficiency: Replacing the
fzeroloop with interpolation would speed up the EGM step. - Figures: Ensure you save the plots (e.g., using
saveasorexportgraphics) to document your results visually.
Summary
11/11 tasks correct. Correct work.