You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 24, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: source/rst/wealth_dynamics.rst
+62-78Lines changed: 62 additions & 78 deletions
Original file line number
Diff line number
Diff line change
@@ -221,15 +221,7 @@ normal in :math:`\mathbb R^3`.
221
221
The value of :math:`c_r` should be close to zero, since rates of return
222
222
on assets do not exhibit large trends.
223
223
224
-
When we simulate a population of households, we will take
225
-
226
-
- :math:`\{z_t\}` to be an **aggregate shock** that is common to all
227
-
households
228
-
- :math:`\{\xi_t\}` and :math:`\{\zeta_t\}` to be **idiosyncratic
229
-
shocks**
230
-
231
-
Idiosyncratic shocks are specific to individual households and
232
-
independent across them.
224
+
When we simulate a population of households, we will assume all shocks are idiosyncratic (i.e., specific to individual households and independent across them).
233
225
234
226
Regarding the savings function :math:`s`, our default model will be
235
227
@@ -247,6 +239,7 @@ their wealth.
247
239
We are using something akin to a fixed savings rate model, while
248
240
acknowledging that low wealth households tend to save very little.
249
241
242
+
250
243
Implementation
251
244
==============
252
245
@@ -267,6 +260,7 @@ Here's some type information to help Numba.
267
260
('b', float64), # aggregate shock parameter
268
261
('σ_z', float64), # aggregate shock parameter
269
262
('z_mean', float64), # mean of z process
263
+
('z_var', float64), # variance of z process
270
264
('y_mean', float64), # mean of y process
271
265
('R_mean', float64) # mean of R process
272
266
]
@@ -280,15 +274,15 @@ the aggregate state and household wealth.
280
274
class WealthDynamics:
281
275
282
276
def __init__(self,
283
-
w_hat=10.0,
277
+
w_hat=1.0,
284
278
s_0=0.75,
285
279
c_y=1.0,
286
-
μ_y=1.5,
280
+
μ_y=1.0,
287
281
σ_y=0.2,
288
282
c_r=0.05,
289
-
μ_r=0.0,
290
-
σ_r=0.6,
291
-
a=0.85,
283
+
μ_r=0.1,
284
+
σ_r=0.5,
285
+
a=0.5,
292
286
b=0.0,
293
287
σ_z=0.1):
294
288
@@ -299,8 +293,8 @@ the aggregate state and household wealth.
ax.plot(f_vals, l_vals, label=f'$\psi^*$ at $\mu_r = {σ_r:0.2}$')
526
+
gini_vals.append(gv)
527
+
528
+
ax.plot(f_vals, f_vals, label='equality')
529
+
ax.legend(loc="upper left")
530
+
plt.show()
531
+
532
+
533
+
We see that greater volatility has the effect of increasing inequality in this model.
534
+
550
535
551
536
Exercises
552
537
=========
553
538
554
539
Exercise 1
555
540
----------
556
541
557
-
For a wealth or income distribution with Pareto tail, a higher tail index suggests lower
558
-
In fact, it is possible to prove that the Gini coefficient of the Pareto
542
+
For a wealth or income distribution with Pareto tail, a higher tail index suggests lower inequality.
543
+
544
+
Indeed, it is possible to prove that the Gini coefficient of the Pareto
559
545
distribution with tail index :math:`a` is :math:`1/(2a - 1)`.
560
546
561
547
To the extent that you can, confirm this by simulation.
562
548
563
549
In particular, generate a plot of the Gini coefficient against the tail index
564
-
using both the theoretical value and the value computed from a sample via
565
-
``qe.gini_coefficient``.
550
+
using both the theoretical value just given and the value computed from a sample via ``qe.gini_coefficient``.
566
551
567
552
For the values of the tail index, use ``a_vals = np.linspace(1, 10, 25)``.
568
553
569
-
Use sample of size 1,000 for each :math:`a` and the sampling method for generating
570
-
Pareto draws employed in the discussion of Lorenz curves for the Pareto distribution.
554
+
Use sample of size 1,000 for each :math:`a` and the sampling method for generating Pareto draws employed in the discussion of Lorenz curves for the Pareto distribution.
571
555
572
556
To the extend that you can, interpret the monotone relationship between the
0 commit comments