Week 10 Homework Feedback: Klea Lushaj
Week 10 Homework Feedback: Klea Lushaj
Overall Assessment
Grade: ✅ (Pass)
Correct submission. You implemented the EGM method correctly and saved all required results and figures.
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: Your
solve_egmfunction is correct. - Error Handling: You included
try-catchblocks in thefzerocall, which is good for robustness, though ideally, the bounds should be set such thatfzeroalways finds a root. - File Management: Good organization with saving
.matfiles.
Visual Output
- Figures are saved correctly.
Suggestions for Improvement
- Efficiency: Consider using interpolation for the resource constraint inversion instead of
fzeroto speed up the code.
Summary
11/11 tasks correct. Correct work.