Skip to content

Conversation

@jstac
Copy link
Contributor

@jstac jstac commented Nov 28, 2025

Summary

This PR adds a new exercise to the IFP advanced lecture that analyzes the relationship between labor income volatility and wealth inequality. This complements the existing exercise on return volatility, allowing students to compare the relative importance of these two sources of risk.

Changes

  • New Exercise 2: Added analysis of how the Gini coefficient varies with labor income volatility (a_y)

    • Tests values from 0.125 to 0.20 (similar percentage range as the return volatility exercise)
    • Sets a_r=0.10 to isolate the effect of labor income risk
    • Includes solution with code and interpretation
  • Code improvements:

    • Cleaned up wealth distribution histogram (now plots log wealth)
    • Removed diagnostic output from the simulation section
    • Minor formatting improvements to Exercise 1

Key Findings

The new exercise demonstrates a striking difference in how these two types of risk affect inequality:

  • Return volatility (a_r: 0.10 → 0.16): Gini coefficient rises from 0.19 to 0.79 (316% increase)
  • Labor income volatility (a_y: 0.125 → 0.20): Gini coefficient rises from 0.18 to 0.19 (7% increase)

This shows that capital income risk is a far more powerful driver of wealth inequality than labor income risk, because favorable returns compound over time as wealth is reinvested, while labor income shocks don't have the same multiplicative effect.

Testing

  • Converted to Python using jupytext
  • Ran all code cells successfully
  • Verified both exercises produce expected results and plots

🤖 Generated with Claude Code

Added a new exercise (Exercise 2) that analyzes how wealth inequality varies
with labor income volatility (a_y), complementing the existing analysis of
return volatility (a_r).

Key findings:
- Varying return volatility (a_r: 0.10 to 0.16) increases Gini from 0.19 to 0.79
- Varying labor income volatility (a_y: 0.125 to 0.20) only increases Gini from 0.18 to 0.19
- Demonstrates that capital income risk is a much more powerful driver of wealth inequality than labor income risk

Also cleaned up the wealth distribution plotting code and removed diagnostic output.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@jstac
Copy link
Contributor Author

jstac commented Nov 28, 2025

Additional Context

This exercise was developed to help students understand the relative importance of different sources of risk in generating wealth inequality. The comparison between capital income risk and labor income risk provides valuable economic intuition:

Why Capital Income Risk Dominates

  1. Compounding effect: Returns on assets compound over time. A household that gets lucky with high returns can reinvest those returns, leading to exponential wealth growth.

  2. Multiplicative vs additive shocks: Return shocks multiply existing wealth, while labor income shocks add to current income. This makes return shocks increasingly impactful for wealthier households.

  3. Path dependence: A sequence of favorable returns creates a persistent advantage that grows over time, whereas labor income shocks have more transient effects.

Pedagogical Value

By explicitly comparing these two channels, students can see why models with only labor income risk (like the basic Aiyagari model) struggle to match empirical wealth inequality, while models with stochastic returns (like Benhabib-Bisin-Zhu 2015) can generate realistic Gini coefficients.

The exercise uses comparable percentage variations in both volatility parameters, making the comparison fair and the results even more striking.

@github-actions
Copy link

📖 Netlify Preview Ready!

Preview URL: https://pr-749--sunny-cactus-210e3e.netlify.app (8aa17d5)

📚 Changed Lecture Pages: ifp_advanced

@jstac jstac merged commit 1e2d0d3 into main Nov 28, 2025
1 check passed
@jstac jstac deleted the adv_tidy branch November 28, 2025 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants