Cagetti2005tk
Cagetti2005tk
This is a REMARK-in-progress (documentation target: Tier 2) that partially reproduces the theoretical model of
Cagetti, M. and De Nardi, M. (2006), Entrepreneurship, Frictions, and Wealth, Journal of Political Economy, 114(5), 835–870. doi:10.1086/508032
It is not an officially accepted Econ-ARK catalog REMARK. Local
reproduction and documentation are under review; do not treat tier: 2
in the front matter as catalog certification.
What a reviewer should read first
- This file — scope and expected outputs (below).
README.md— one-command quick start and corrected baseline.ARCHITECTURE.md— file-by-file map of the repository.Cagetti2005tk_material/cagetti2005_theory_reproduction.ipynb— the reproduction notebook itself, cell-level commentary.NOTICES.md— vendored code provenance (SolvingMicroDSOPs).
How to reproduce
git clone https://github.com/rzheng2112/Cagetti2005tk.git
cd Cagetti2005tk
./reproduce.sh
Bare ./reproduce.sh runs the minimal reproduction
(./reproduce_min.sh) and writes an executed notebook and log under
.reproduction/. Build the report separately with
./reproduce.sh --docs main. The minimal reproduction alone takes
roughly 8–12 minutes on a recent laptop.
To run only the minimal reproduction:
./reproduce_min.sh
uv (https://docs.astral.sh/uv/) is required by reproduce_min.sh.
The runner synchronizes uv.lock with --locked --group jupyter and
invokes the project Python explicitly via an isolated Jupyter kernel.
What IS reproduced
The notebook
Cagetti2005tk_material/cagetti2005_theory_reproduction.ipynb solves
the household-side partial-equilibrium Bellman system of the paper:
- Occupational choice between worker and entrepreneur for the young population, with endogenous bankruptcy / collateral enforcement (eq. 5), and old entrepreneur / retiree continuations.
- Value functions (V_w), (V_e), (V=\max(V_w,V_e)), (W_e),
(W_r), (W=\max(W_e,W_r)), solved by damped value-function
iteration (retiree, worker, old entrepreneur, then young entrepreneur) using the SolvingMicroDSOPs Endogenous-Grid-Method stage
(
Code/Python/). An irregular-grid / first-order-endpoint formula builds the EGM consumed function (c_\delta) (see notebookcδ_from_v_grid). - Calibrated structural parameters (Table 5 of the paper): (\beta = 0.865), (\sigma = 1.5), (\delta = 0.06), (\nu = 0.88), (f = 0.75), (\pi_y = 0.978), (\pi_o = 0.911), (\eta = 1.0).
- Income process from paper Appendix A (5-state labour productivity) and entrepreneurial ability (\theta \in {0, 0.514}) (Table 5).
- Nine supported regenerated artifacts under
Figures/Cagetti2005tk/andTables/Cagetti2005tk/:values_policies_kstar.{pdf,png}— values and (k^\star) policyconvergence.{pdf,png}— VFI residual historymu_marginal_assets.{pdf,png}— young-only asset distributionsummary.csv— headline scalarscounterfactuals.csv— PE re-solves (see convergence flags)wealth_concentration.csv— young-only PE wealth diagnostics
- Historical
wealth_lorenz.{pdf,png}andwealth_moments.csvare preserved but have no verified generator in this workflow and are excluded from reproduction checks.
Corrected baseline (local reproduction after the EGM endpoint fix): VFI converges in 115 iterations with final sum-norm (\approx 4.75\times10^{-4}); young-only entrepreneur share (\approx 0.0833); mean assets (\approx 4.18); young-only Gini (\approx 0.671).
What IS NOT reproduced
This REMARK-in-progress does not claim to match the paper’s full general-equilibrium stationary distribution:
- Partial equilibrium. The net interest rate (0.065) comes from Table 7 and the wage is normalized to one; Appendix B capital-market clearing is not iterated.
- Young-only stationary kernel.
iterate_mu_young_kernelcarries mass over ((\theta, y, a)) with young staying young; it does not carry (s \in {YW, YE, OE, OR}) with demographic replacement or inheritance flows. Wealth concentration numbers inwealth_concentration.csvare young-only PE diagnostics. They are not paper Table 6 moments and not formal lower bounds on the paper’s GE / full-demographic concentration. - Capital-grid ceiling. Discrete (k) search uses
k_max = 18. Enforcement and this numerical ceiling can both bind; (k^\star) is not determined by borrowing constraints alone. - Estate taxation. The unused
estate_taxparameter is reserved for a possible extension. - Payroll balance. (\tau = 0.10) is illustrative; Appendix B social-security budget balance is not imposed.
- Some PE counterfactuals. Rows with
converged=Falseincounterfactuals.csvhit the iteration limit with large residuals. They are numerical diagnostics, not valid comparative statics. Then_k = 35 (uniform)row uses a uniform grid on ([10^{-5}, k_{\max}]), not a denser hybrid grid.
Numerical checks
After the notebook runs, reproduce_min.sh invokes
scripts/check_reproduction.py, which asserts bands around the
corrected baseline (and fails a regression to the pre-EGM-fix
wealth statistics):
| metric | expected band (approx.) |
|---|---|
ent_share_mu_young_only |
([0.05, 0.12]) |
mean_assets_mu |
([3.80, 4.60]) |
E_y_under_mu |
([0.90, 1.10]) |
final_sum_norm |
([0, 0.0005)) |
converged |
True |
wealth gini |
([0.64, 0.72]) |
wealth top1 |
[0.14, 0.15] |
wealth top5 |
[0.36, 0.38] |
All counterfactual residuals must be finite and nonnegative. Converged rows must fall below 0.0005; nonconvergence is allowed and is not required as a success condition.
Code provenance
The three files under Code/Python/ (solution.py, resources.py,
stages/cons_noshocks.py) are vendored from
https://github.com/llorracc/SolvingMicroDSOPs at a pinned revision.
See NOTICES.md and scripts/revendor_smd.sh for the refresh workflow.
Details
Authors
Abstract
No abstract.
Actions
Live Interactive Notebook
This material includes a Jupyter Notebook version. You can directly launch and interact with the Notebook within your browser using MyBinder via the "Launch" button(s) below.
Material Source Code
Econ-ARK materials are open source and available to view and clone from GitHub.
How to Execute this Notebook (with conda)
Install miniconda on your computer
- Open a Terminal (MacOS) or the Anaconda Prompt (Windows)
- At a command line, change the working directory to the one where you want to install
- On MacOS/unix, if you install in the
/tmpdirectory, the repo will disappear at reboot: cd /tmp
- On MacOS/unix, if you install in the
git clone https://github.com/rzheng2112/Cagetti2005tk --recursivecd Cagetti2005tkconda env create -f ./binder/environment.yml --prefix ./condaenv- This creates
./condaenvinside your clone of the repo, containing dependencies. conda run --prefix ./condaenv pip install jupyterlabconda run --prefix ./condaenv jupyter-lab
Metadata
| Key | Value |
|---|---|
| authors | {"affiliation"=>"Johns Hopkins University", "email"=>"rzheng21@jh.edu", "family-names"=>"Zheng", "given-names"=>"Rudan"} |
| cff-version | 1.2.0 |
| github_repo_url | https://github.com/rzheng2112/Cagetti2005tk |
| keywords | Entrepreneurship Wealth Occupational choice Heterogeneous agents |
| license | Apache-2.0 |
| message | If you use this repository, please cite it using the metadata below. When referring to the economic model, cite the preferred citation (journal article). |
| notebooks | Cagetti2005tk_material/cagetti2005_theory_reproduction.ipynb Cagetti2005tk_material/Cagetti2005-tk_intro.ipynb Cagetti2005tk_material/Cagetti2005-tk_prior-literature.ipynb Cagetti2005tk_material/Cagetti2005-tk_summary.ipynb Cagetti2005tk_material/Cagetti2005-tk_subsequent-literature.ipynb Cagetti2005tk_material/Cagetti2005-tk_bellman-stages.ipynb |
| preferred-citation | authors{"family-names"=>"Cagetti", "given-names"=>"Marco"}{"family-names"=>"De Nardi", "given-names"=>"Mariacristina"} doi10.1086/508032 end870 issue5 journalJournal of Political Economy start835 titleEntrepreneurship, Frictions, and Wealth typearticle volume114 year2006 |
| remark-name | Cagetti2005tk |
| repository-code | https://github.com/rzheng2112/Cagetti2005tk |
| tags | REMARK Notebook Reproduction |
| tier | |
| type | software |
| version | 0.2.0 |
| date |
