Week 10 Homework Feedback: Davide Magnini
Week 10 Homework Feedback: Davide Magnini
Overall Assessment
Grade: ✅ (Pass)
Correct submission. You correctly implemented the tasks, solved the model using EGM (hybrid approach), and provided clear results and figures.
Task-by-Task Check
Task 1: Quantifying Precautionary Savings
- Parameter & Grid Setup: ✅ Correct.
- Solution Method: ✅ EGM logic is correct.
- Deterministic Case: ✅ Solved.
- Stochastic Case: ✅ Solved.
- Simulation: ✅ Simulation logic is correct.
- Comparison: ✅ Premium calculated.
Task 2: The Role of Risk Aversion
- Sigma Variation: ✅ $\sigma=1$ and $\sigma=5$ implemented.
- Solving Sigma Cases: ✅ Solved correctly.
- Policy Plot: ✅ Plot generated and saved.
- Simulation Comparison: ✅ Means compared.
- Interpretation: ✅ Good intuition, though note that $\sigma=1$ is Log Utility (risk averse), not “no risk aversion”. Risk neutrality would be $\sigma=0$ (linear utility).
Technical Implementation
- Code Structure: Script is organized.
- Interpolation: The use of
uniquebeforeinterp1in the EGM step is good practice to handle potential non-monotonicities, though with this production function it shouldn’t be strictly necessary if the grid is fine enough. - Comparison: You correctly identified that higher risk aversion leads to higher savings.
Visual Output
- Figures are saved correctly and are legible.
Suggestions for Improvement
- Terminology: In your comments, you mentioned “sigma = 0 instead there is no risk adversion”. Your code uses
sigma=1(Log Utility), which is risk averse (Arrow-Pratt measure = 1). “No risk aversion” corresponds to $\sigma=0$ (Linear Utility). - Efficiency: Similar to other students, using
fzeroinside the EGM loop works but slows it down. You can often invert the resource constraint using interpolation for speed.
Summary
11/11 tasks correct. Correct work.