From 6af56bc194f6492bc825d625e323dc5e47bed660 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 28 Oct 2026 14:50:27 +0900 Subject: [PATCH 1/2] v0.3.0: cold calibration seed in pih_household after numerical audit The pre-release numerical audit (docs/NUMERICAL_AUDIT_v0_3_0.md) found no negative inverse-iteration mass and no effect of the absolute value or the weight clip in FastHetBlock. It found that the PIH beta calibration reused the previous root-search trial's backward seed, so T2's displayed IRF error depended on the root bracket (1.05e-3 vs 1.03e-3). - models.pih_household: clear _va_cache before every calibration trial and before the final recomputation. - models.werning_model: correct the comment on trial savers and the grid. - Regenerate out/convergence_v0_2.json, out/diagnostics_v0_2.json and out/tables_v0_2/suite_results_long_v0_2.csv. T2 IRF error 1.05e-3 -> 1.04e-3; T1 asset-target residual 5.7e-8 -> 7.1e-11; T3-T6 unchanged. convergence_v0_2.json now also carries the v0_3 blocks (a rerun of 35ea89c produces the same blocks). Figures not redrawn. - Full pytest: 114 passed, 4 xfailed (out/pytest_output_v0_3_0.txt). - README: change row, section 1/5/12/15 values and audit paragraph. - Remove README_ko.md (only the English README is maintained). - .zenodo.json, CITATION.cff: one sentence on the audit. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012Sd9g7Lh16QtD2vCrkf6Rk --- .zenodo.json | 2 +- CITATION.cff | 3 + README.md | 25 +- README_ko.md | 494 --- docs/NUMERICAL_AUDIT_v0_3_0.md | 56 + hank_limits/models.py | 7 +- out/convergence_v0_2.json | 4311 +++++++++++++++++-- out/diagnostics_v0_2.json | 248 +- out/pytest_output_v0_3_0.txt | 8 +- out/tables_v0_2/suite_results_long_v0_2.csv | 184 +- 10 files changed, 4327 insertions(+), 1011 deletions(-) delete mode 100644 README_ko.md create mode 100644 docs/NUMERICAL_AUDIT_v0_3_0.md diff --git a/.zenodo.json b/.zenodo.json index ae110ea..85bcf46 100644 --- a/.zenodo.json +++ b/.zenodo.json @@ -10,7 +10,7 @@ "affiliation": "Risk & Return Co., Ltd." } ], - "description": "

Tests that a HANK code must pass at limits with known answers, reported as errors and observed convergence orders. Version 0.3.0 adds checks V1-V6 computed from primitive quantities the code reports: the GE target residual of the vanishing-liquidity solve, steady-state market-clearing and budget residuals, income normalisation, the documented specification along equilibrium paths, and the solved exogenous paths against the requested ones, with a verdict that missing or non-finite values cannot hide. Mutation tests of the suite on hand-made and independently generated errors, with pre-registered predictions, are documented in docs/MUTATION_v0_1.md, docs/MUTATION_v0_2.md and docs/CHECKS_v0_3_0_AMENDMENT.md. Reference implementation on sequence-jacobian 1.0.0, with minimal reproductions of three observations about that library: F1, F2 and F3 (hetinputs and hetoutputs differentiated one-sided, reported as shade-econ/sequence-jacobian#41). Not peer reviewed.

AI use: Developed with extensive assistance from Claude Opus 5.5 (Anthropic) and reviewed with GPT 6.1 Sol (OpenAI); the author directed and reviewed the work and is responsible for the content.

", + "description": "

Tests that a HANK code must pass at limits with known answers, reported as errors and observed convergence orders. Version 0.3.0 adds checks V1-V6 computed from primitive quantities the code reports: the GE target residual of the vanishing-liquidity solve, steady-state market-clearing and budget residuals, income normalisation, the documented specification along equilibrium paths, and the solved exogenous paths against the requested ones, with a verdict that missing or non-finite values cannot hide. Mutation tests of the suite on hand-made and independently generated errors, with pre-registered predictions, are documented in docs/MUTATION_v0_1.md, docs/MUTATION_v0_2.md and docs/CHECKS_v0_3_0_AMENDMENT.md. A numerical audit before the release (docs/NUMERICAL_AUDIT_v0_3_0.md) found no negative mass in the stationary solver and no effect of its absolute value or weight clip on the results; it led to one change, a fixed backward-iteration seed in the permanent-income calibration. Reference implementation on sequence-jacobian 1.0.0, with minimal reproductions of three observations about that library: F1, F2 and F3 (hetinputs and hetoutputs differentiated one-sided, reported as shade-econ/sequence-jacobian#41). Not peer reviewed.

AI use: Developed with extensive assistance from Claude Opus 5.5 (Anthropic) and reviewed with GPT 6.1 Sol (OpenAI); the author directed and reviewed the work and is responsible for the content.

", "keywords": [ "HANK", "heterogeneous agents", diff --git a/CITATION.cff b/CITATION.cff index 7a84272..0b4da8e 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -25,6 +25,9 @@ abstract: >- solve, steady-state market-clearing and budget residuals, income normalisation, the documented specification along equilibrium paths, and the solved exogenous paths against the requested ones), with a verdict that missing or non-finite values cannot hide, and mutation tests of the suite on hand-made and independently generated errors. + A numerical audit before the release found no negative mass in the stationary solver and no effect of its + absolute value or weight clip on the results; it led to one change, a fixed backward-iteration seed in the + permanent-income calibration. Reference implementation on sequence-jacobian 1.0.0, with minimal reproductions of three observations about that library (F1, F2, F3). Developed with extensive assistance from Claude Opus 5.5 (Anthropic) and reviewed with GPT 6.1 Sol (OpenAI); the author directed and reviewed diff --git a/README.md b/README.md index 71f3125..0f975d2 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,6 @@ This repository collects tests that a heterogeneous-agent New Keynesian (HANK) c - Licence: MIT (`LICENSE`). Archived on Zenodo (concept DOI [10.5281/zenodo.23489176](https://doi.org/10.5281/zenodo.23489176)). **Not peer reviewed.** - Model-independent check functions (`hank_limits/checks.py`) are separated from the SSJ reference implementation (`hank_limits/models.py`), so the checks can be reused as a validation harness for other HANK codes. - **What this suite does and does not show.** A pass is numerical evidence that a specific, limited statement holds in this implementation. It is not a statistical significance test, and it does not certify the predictive performance of HANK models or the accuracy of every HANK code. -- Korean version of this README: `README_ko.md`. ### Changes v0.1 → v0.2 (review R4 by GPT 6.1 Sol; see section 17) @@ -38,12 +37,13 @@ Plan and pre-registration: `docs/CHECKS_PLAN_v0_3.md`. Changes after the pre-rel | V4 | Specification pins against the documented values in `hank_limits/spec.py` (not read from `models.py`): reported parameters, the Aiyagari Euler equation at the documented β and EIS, and the fiscal rule, government budget, real-rate rule and goods market along the T5 paths. v0.3.0: the solved exogenous paths are compared with the requested ones (`exog_G`, `exog_r`, `exog_rshock`), and the real-rate rule uses the requested rate shock. | | V5 | `test_rank_benchmark_is_ricardian` now holds only the closed-form RA assertion; the HA assertion is `test_ha_multiplier_exceeds_one`. | | V6 | F3 pins (strict xfail, SSJ code only), in the same form as the F1 and F2 pins. v0.3.0: two tests, V6a (hetinputs differentiated one-sided) and V6b (hetoutputs one-sided even with `twosided=True`), so that an upstream fix of one part shows as XPASS of that test only. | -| Providers | New **optional** fields `ss_detail`, `J_A`, `J_C`, `ge_target`, `policy` and `irfs[...]` `dC`, `dB`, `drshock`; `hank_limits/interface.py` lists, per provider, every field the checks read and whether it is required or optional. Each V quantity is computed from the fields of its own equation; a missing field leaves that quantity missing, with the reason recorded. No computation in `models.py` or `core.py` changed; the Werning provider gained an optional argument `ge_target` whose default is the previous behaviour. In the baseline runs of the mutation reports (four in v0.2, two in the v0.3.0 re-run), the 276 summary numbers of the existing checks were exactly equal to those of v0.1 run B0. | +| Providers | New **optional** fields `ss_detail`, `J_A`, `J_C`, `ge_target`, `policy` and `irfs[...]` `dC`, `dB`, `drshock`; `hank_limits/interface.py` lists, per provider, every field the checks read and whether it is required or optional. Each V quantity is computed from the fields of its own equation; a missing field leaves that quantity missing, with the reason recorded. For the V checks no computation in `models.py` or `core.py` changed; the Werning provider gained an optional argument `ge_target` whose default is the previous behaviour. In the baseline runs of the mutation reports (four in v0.2, two in the v0.3.0 re-run), the 276 summary numbers of the existing checks were exactly equal to those of v0.1 run B0. Those runs predate the calibration-seed change below. | | Verdict | v0.3.0. A V test fails if any value is non-finite, negative or not below its threshold, whatever else is missing. Without a failure, it is skipped as **incomplete** (never passed) if expected values are missing, and skipped with the reason if the provider reports none of its quantities. The check declares the expected values per setting, income type and requested shock (`res['v0_3']` → `status`; `checks.v03_verdict`). | | Review | Pre-release review of 2026-10-22 (no P0 or P1 findings): the verdict above (R1); one field convention in documentation and code, with fields per equation and T3 β read from `ss_detail` (R2); solved against requested exogenous paths (R3); V1 judged on the reported GE target (R4); V6 split. Regression tests of the checker with fake providers: `tests/test_v0_3_0_checker.py`. Design, predictions, thresholds and re-run: `docs/CHECKS_v0_3_0_AMENDMENT.md`. Pre-merge check of 2026-10-23: each check now keeps its own copy of what it requests and gives the provider another, so a provider that changes its arguments in place cannot change the comparison (amendment, section 11). | | T4, T6 | Two clarifications from mutation testing v0.1: T4's error-detection value lies in its diagnostics (sections 7 and 9); the T6 matrix identity is a linear-algebra check. | +| Calibration seed | Numerical audit of 2026-10-28 (`docs/NUMERICAL_AUDIT_v0_3_0.md`). The PIH calibration (T1, and the savers of T2) reused the backward-iteration seed of the previous root-search trial, so the calibrated steady state depended on the search path, and T2's displayed IRF error depended on the root bracket (1.05e-3 or 1.03e-3). Each trial and the final recomputation now start from the same cold seed (`models.pih_household`). This is the one computational change in v0.3.0. Displayed results: the T2 IRF error moves from 1.05e-3 to 1.04e-3 at eps = 0.0125 and from 3.46e-3 to 3.45e-3 at eps = 0.025, with its grid study (section 5); two T1 diagnostics in section 12 change in the last digit; the T1 asset-target residual falls from 5.7e-8 to 7.1e-11. The other displayed T1–T6 values are unchanged. The audit found no negative inverse-iteration mass and no effect of the absolute value or the weight clip on any displayed result (section 12). | -Full pytest run with v0.3.0: **114 passed, 4 xfailed** (F1, F2, V6a, V6b). The 114 passed are 77 tests of groups T1–T6, D and V and the 37 checker regression tests. Output: `out/pytest_output_v0_3_0.txt`. +Full pytest run with v0.3.0, after the calibration-seed change: **114 passed, 4 xfailed** (F1, F2, V6a, V6b). The 114 passed are 77 tests of groups T1–T6, D and V and the 37 checker regression tests. Output: `out/pytest_output_v0_3_0.txt`. Mutation testing v0.2 (`docs/MUTATION_v0_2.md`): on 20 mutants generated by a separate agent without knowledge of the new checks, the v0.2.1 suite caught 14 and the v0.3 suite 19; neither suite alarmed on the 3 controls. Both missed N20, an error in a diagnostic that no test asserts tightly. On the 25 v0.1 mutants the v0.3 suite catches all 25, but those checks were designed after the v0.1 results, so that is not an independent result. @@ -60,7 +60,7 @@ The error metric is the **relative max-entry error** `max|x − ref| / max|ref|` | Test | Statement (scope) | Limit parameter | Error at the tightest setting | Observed order (theory) | Status | |---|---|---|---|---|---| | T1 PIH household-block limit | HA household Jacobians dC/dY, dC/dr → permanent-income closed form (partial equilibrium) | income risk eps → 0 (β recalibrated along the path) | dC/dY 9.5e-4, dC/dr 4.0e-4 (eps = 0.0125); 1.7e-9 at eps = 0 | 1.95 / 2.03 (2) | pass | -| T2 TANK benchmark, imposed incidence | aggregate iMPC = λχ I + (1−λχ) M_RA; GE output = (1−λ)/(1−λχ) × RANK | eps → 0 (both types) | aggregate iMPC 8.0e-5, IRF (χ = 1.5) 1.05e-3 | savers 1.95, IRF 1.79 (2) | pass | +| T2 TANK benchmark, imposed incidence | aggregate iMPC = λχ I + (1−λχ) M_RA; GE output = (1−λ)/(1−λχ) × RANK | eps → 0 (both types) | aggregate iMPC 8.0e-5, IRF (χ = 1.5) 1.04e-3 | savers 1.95, IRF 1.79 (2) | pass | | T3 Werning vanishing liquidity | with proportional income, the output response to a real-rate path = RANK; generalised Euler relation when income elasticities vary | borrowing limit b → 0 | proportional 4.3e-4; countercyclical 6.0e-4 (deviation 0.319, closed form 0.320) | 0.99 / 0.99 (1) | pass | | T4 Aiyagari steady state | r → 1/β − 1 (idiosyncratic risk → 0); monotone in risk size and persistence in this calibration (regression check) | log-income sd eps → 0 | gap 6.2e-5 (eps = 0.025) | 1.93 (2) | pass | | T5 IKC consistency | SSJ general equilibrium dY = (I − M)^{-1} dC_partial (consistency test built from the same block Jacobians) | identity (T = 100, 200, 300) | refined solve 9.8e-12; SSJ default solve 5.9e-7 | n/a | pass + 2 expected failures (F1, F2) | @@ -70,7 +70,7 @@ The error metric is the **relative max-entry error** `max|x − ref| / max|ref|` **Status of the tolerances.** Test tolerances are **regression-check thresholds for this calibration**. They are not a conformance specification requiring other implementations to show the same slopes or the same 1e-10 threshold. -Full pytest run of v0.2.1, for which this summary was written: **41 passed, 2 xfailed, about 65–75 s** (section 11). The T1–T6 results above are unchanged in v0.3.0, whose full run gives 114 passed, 4 xfailed, about 75 s (`out/pytest_output_v0_3_0.txt`). Report script about 110 s, diagnostics script about 80 s. +Full pytest run of v0.2.1, for which this summary was written: **41 passed, 2 xfailed, about 65–75 s** (section 11). The T1–T6 results above are those of v0.3.0; the only displayed change from v0.2.1 is T2's IRF error, 1.05e-3 → 1.04e-3, from the calibration-seed change (section 12). The v0.3.0 full run gives 114 passed, 4 xfailed, about 90 s (`out/pytest_output_v0_3_0.txt`). Report script about 110–160 s, diagnostics script about 80–110 s. ### Key findings @@ -209,10 +209,10 @@ The same holds at eps = 0.1 (`out/diagnostics_v0_2.json` C). Terminal-horizon ef | type H: M_H vs I | 0.596 | 0.342 | 3.9e-13 | 1.7e-13 | 3.9e-13 | | type S: M_S vs M_RA | 0.275 | 7.29e-2 | 1.85e-2 | 4.76e-3 | **1.26e-3** | | aggregate iMPC (χ = 1) vs λ I + (1−λ) M_RA | 0.556 | 0.320 | 1.18e-3 | 3.03e-4 | **8.02e-5** | -| GE IRF vs (1−λ)/(1−λχ) × RANK (χ = 1.5) | 0.131 | 5.44e-2 | 1.24e-2 | 3.46e-3 | **1.05e-3** | +| GE IRF vs (1−λ)/(1−λχ) × RANK (χ = 1.5) | 0.131 | 5.44e-2 | 1.24e-2 | 3.45e-3 | **1.04e-3** | | HA amplification (χ = 1.5 / χ = 1) | 1.150 | 1.209 | 1.27273 | 1.27273 | 1.27273 | -At χ = 1.5 the difference between λχ M_H + (1−λχ) M_S and λχ I + (1−λχ) M_RA is 4.3e-5 at eps = 0.0125 (`err_Magg_lamchi_vs_TANK_chi1.5` in `out/tables_v0_2/`). Type H becomes exactly hand-to-mouth once eps falls below a finite threshold. Grid convergence (eps = 0.0125 IRF): 2400 points 1.50e-3, 4800 points 1.05e-3, 9600 points 8.70e-4. +At χ = 1.5 the difference between λχ M_H + (1−λχ) M_S and λχ I + (1−λχ) M_RA is 4.3e-5 at eps = 0.0125 (`err_Magg_lamchi_vs_TANK_chi1.5` in `out/tables_v0_2/`). Type H becomes exactly hand-to-mouth once eps falls below a finite threshold. Grid convergence (eps = 0.0125 IRF): 2400 points 1.49e-3, 4800 points 1.04e-3, 9600 points 8.65e-4. Before the v0.3.0 calibration-seed change these were 1.50e-3, 1.05e-3 and 8.70e-4, and the eps = 0.025 IRF error 3.46e-3 (section 12). **Known limitations.** χ is a reduced form. With zero net bond supply the wealth-effect term in dC/dr is not tested here (it is tested in T1). Fitting a slope to the aggregate iMPC alone is not meaningful, so only neighbour orders are reported. @@ -398,20 +398,23 @@ XFAIL tests/test_t5_ikc.py::test_ikc_identity_with_mismatched_options - Finding --- -## 12. FastHetBlock distribution audit (v0.2) +## 12. FastHetBlock distribution audit (v0.2; values as of v0.3.0) `scripts/diagnostics_v0_2.py` part A, `out/diagnostics_v0_2.json`. Baseline is the default setting (τ = 1e-10, at most 20 sweeps, 5 polishing steps). | Model (mixing speed) | inverse iterations | negative mass | L1 residual | change in mean assets for τ 1e-12 to 1e-6 | SSJ forward iteration, tol 1e-10: iterations / mean-asset difference | tol 1e-12 | |---|---|---|---|---|---|---| -| T1 PIH eps = 0.1 (slow) | 3 | 0 | 1.2e-16 | ≤ 1.1e-14 | 37,910 / **1.7e-3** | 54,590 / 1.7e-5 | -| T1 PIH eps = 0.0125 (very slow) | 4 | 0 | 1.0e-16 | ≤ 1.1e-12 | does not stop within 600,000 | — | +| T1 PIH eps = 0.1 (slow) | 3 | 0 | 1.2e-16 | ≤ 1.2e-14 | 37,910 / **1.7e-3** | 54,590 / 1.7e-5 | +| T1 PIH eps = 0.0125 (very slow) | 4 | 0 | 9.3e-17 | ≤ 5.8e-13 | does not stop within 600,000 | — | | T4 sd = 0.2 (fast) | 3 | 0 | 1.8e-16 | ≤ 1.1e-15 | 3,010 / 1.1e-6 | 3,730 / 1.1e-8 | | T5 fiscal HANK (fast) | 3 | 0 | 2.0e-16 | ≤ 2.2e-16 | 210 / 4.9e-9 | 250 / 7.5e-11 | - With a single inverse iteration and no polishing, mean assets at T1 eps = 0.0125 differ by 6.8e-4; with 2 iterations by 2.0e-8; with 3 by 5.4e-13. The default iterates until the stopping rule (1e-15) is met. - SSJ's forward iteration converges to the inverse-iteration solution as the tolerance is tightened. SSJ's stopping rule (difference between successive iterates) is not an accuracy bound under slow mixing, so care is needed when β is calibrated to an asset target in near-RA calibrations. This is an observation about usage, not a report of an SSJ defect. - A replica loop that follows SSJ's stopping rule and counts iterations was checked to agree with SSJ entry by entry. +- In v0.2.1 the two T1 rows read ≤ 1.1e-14, and 1.0e-16 and ≤ 1.1e-12; they changed with the calibration seed below. + +**Numerical audit of v0.3.0 (2026-10-28, `docs/NUMERICAL_AUDIT_v0_3_0.md`).** FastHetBlock's direct stationary solver clips policies to the asset grid when it builds the lottery transition and normalises the absolute value of the sparse inverse-iteration iterate. In the audit no inverse iterate had negative mass, and replacing the absolute value with zero truncation or signed normalisation, or removing the weight clip, left every displayed result and test outcome unchanged. The audit also found that the PIH calibration reused the previous trial's backward-iteration seed, so T2's displayed error and fitted order depended on the root-finding bracket in the third significant digit. Since v0.3.0 every calibration trial and the final recomputation start from the same cold seed, which removed this dependence in the audit's comparison of two brackets. Trial states visited during root finding can carry substantial off-grid mass, so trial and final diagnostics, and clipped-chain and SSJ forward residuals, are reported separately. None of these checks is a general error bound. --- @@ -466,7 +469,7 @@ Reports to the SSJ maintainers: F1 [shade-econ/sequence-jacobian#39](https://git ## 15. Figures and tables -- Figures: `out/t1_rank_limit.png` … `out/t6_decomposition.png` (log axes, limit to the right). +- Figures: `out/t1_rank_limit.png` … `out/t6_decomposition.png` (log axes, limit to the right). They were drawn before the v0.3.0 calibration-seed change and were not redrawn: the values they plot changed by less than 1% (T2) or 1e-7 (T1), below plot resolution. The JSON and CSV files below were regenerated with the v0.3.0 code. - Machine-readable tables: `out/tables_v0_2/suite_results_long_v0_2.csv` (columns: test, limit_param, limit_value, n_a, a_max, fd_h, fd_twosided, window, horizon_T, solver, metric, value), `out/convergence_v0_2.json`, `out/diagnostics_v0_2.json`, `out/aiyagari_table2_v0_2.json`, `out/repro_F1_v0_2.json`, `out/repro_F2_v0_2.json`. ## 16. References diff --git a/README_ko.md b/README_ko.md deleted file mode 100644 index f3c994e..0000000 --- a/README_ko.md +++ /dev/null @@ -1,494 +0,0 @@ -# HANK 해석적 극한·집계 항등식 검증 세트 v0.3.0 (analytic-limit and aggregate-identity test suite) - -[![DOI](https://zenodo.org/badge/1426447298.svg)](https://doi.org/10.5281/zenodo.23489176) - -모든 판을 인용할 때는 concept DOI [10.5281/zenodo.23489176](https://doi.org/10.5281/zenodo.23489176) 를 씁니다. 이 릴리스(v0.3.0)의 DOI 는 Zenodo 보관 뒤 여기와 `CITATION.cff` 에 추가합니다. 이전 릴리스 v0.2.1 은 [10.5281/zenodo.23489177](https://doi.org/10.5281/zenodo.23489177) 입니다. GitHub 의 "Cite this repository" 버튼은 `CITATION.cff` 를 씁니다. - -이 저장소는 이질적 경제주체 뉴케인지언 모형(heterogeneous-agent New Keynesian, HANK) 코드가 답이 알려진 극한(limit)과 집계 항등식(aggregate identity)에서 통과해야 하는 시험 모음입니다. 공개 패키지 `sequence-jacobian`(이하 SSJ) 1.0.0 위에서 구현했고, 각 시험은 한 지점의 통과/실패(pass/fail)만이 아니라 **극한 모수가 극한으로 갈 때의 오차와 관찰된 수렴 차수(observed order of convergence)** 를 함께 보고합니다. - -- Zenodo 보관(concept DOI [10.5281/zenodo.23489176](https://doi.org/10.5281/zenodo.23489176)), MIT 라이선스(`LICENSE`). 비심사. -- 모형과 무관한 검사 함수(`hank_limits/checks.py`)와 SSJ 참조 구현(`hank_limits/models.py`)을 분리해, 다른 HANK 코드의 검증 장치(validation harness)로 재사용할 수 있게 했습니다. -- **이 세트가 입증하는 것과 입증하지 않는 것.** 통과는 구현 오류의 부재를 한정된 명제에 대해 확인한 수치 증거입니다. 통계적 유의성 검정과는 종류가 다르고, HANK 모형의 예측 우위나 모든 HANK 코드의 정확도를 보장하지 않습니다. - -### v0.1 → v0.2 변경 요약 (GPT 6.1 Sol 의 R4 검토 반영; 17장 참조) - -| 항목 | v0.2 변경 | -|---|---| -| 명칭·범위 | T1 = PIH **가계 블록** 극한(전체 NK 일반균형 RANK 극한 아님). T2 = **부과된 Bilbiie식 소득 귀착의 TANK 기준**(χ 구조 유도 아님). T4 = **개별 위험 소멸 극한(no-idiosyncratic-risk limit)**(완전시장 극한 아님). | -| T1 시계 | T=50·100 오차는 같은 T=200 야코비안의 부분행렬(관측창, observation window)입니다. 계산 시계를 따로 바꾼 야코비안은 부분행렬과 **정확히 같음**을 확인했습니다(차이 0). "절단 시계" 표현을 고쳤습니다. | -| T3 | 경기역행 귀착의 총소득 보존은 정상상태에서 **1차까지만** 성립함을 명시하고 크기를 보고합니다. 전이확률 Π 고정이므로 고용확률의 경기 변동은 복제하지 않습니다. | -| T4 | `r < 1/β−1` 은 근 탐색 구간이 강제하므로 독립 증거에서 제외. 대신 자본시장 잔차, Euler/KKT 잔차, 상단 격자 질량, 자산 상한·해상도 민감도를 추가했습니다. Aiyagari (1994) Table II 두 셀 대조를 추가했습니다. | -| T6 | 집단별 일반균형 발산은 "귀속 불가능성 정리"가 아니라 현재가치 0 조건을 어긴 forcing 의 성질임을 명시. | -| FastHetBlock | 음의 질량, 역반복 종료, shift·반복 횟수 민감도, SSJ 원래 전진 반복과의 대조를 진단으로 추가(`hank_limits/diagnostics.py`). | -| F1·F2 | SSJ 코드만 쓰는 최소 재현 스크립트, F2 배열 변경 대조와 정규화 역오차(backward error), 버전·wheel 해시. | -| 표 | 주 시험과 격자 연구의 수치(239행)를 극한 모수·격자·차분 간격·관측창·풀이기 열로 나눈 CSV 로 내보냅니다(`out/tables_v0_2/`). 진단·차분 간격·Aiyagari·F1·F2 결과는 각 JSON 에 있습니다. | - -**v0.2 → v0.2.1 (R4 후속 검토 반영):** ① 구성상 항상 0 이던 진단 필드 `normalisation_err_last_sweep` 삭제, ② Aiyagari 둘째 셀을 "미재현·원인 미해결"로 고치고 원문 Table I 의 수준 CV·자기상관 대조와 격자 감사를 추가, ③ F2 의 실무 영향 서술을 이 예제로 한정, ④ T1 계산 시계 무관성을 고정 정상상태의 선형 가계 야코비안으로 한정, ⑤ SSJ 이슈 초안 문구 수정. 시험 결과는 같습니다. - -### v0.2.1 → v0.3.0 변경: 정상상태·소득 정규화·명세 검사 - -계획과 사전 등록은 `docs/CHECKS_PLAN_v0_3.md`, 릴리스 전 검토 뒤의 수정과 그 재실행은 `docs/CHECKS_v0_3_0_AMENDMENT.md`, 오류 주입 시험(mutation testing)은 `docs/MUTATION_v0_1.md`(v0.2.1 묶음)와 `docs/MUTATION_v0_2.md`(독립 생성 변형으로 v0.2.1 과 v0.3 비교)에 있습니다. - -| 항목 | v0.3.0 변경 | -|---|---| -| V1 | 공급자가 `ge_target` 으로 보고한 T3 일반균형 목표(`'asset_mkt'` 또는 `'goods_mkt'`; 없으면 `'asset_mkt'` 로 보고 "assumed" 로 기록)의 잔차를 b 로 나눠 기록하고 시험합니다. 풀이기가 보고한 값과, 보고된 야코비안과 검사가 넘긴 금리 경로로 직접 계산한 값을 모두 봅니다(자산시장은 `J_A` 로 J^{A,Y} dY + J^{A,r} dr, 재화시장은 `J_C` 로 dY − J^{C,Y} dY − J^{C,r} dr). 임계값: 자산시장은 자산시장 풀이 자신의 잔차에서 나온 2e-12(그대로), 재화시장은 참조 공급자를 재화시장 목표로 푼 실행에서 나온 9e-12(비례 소득)와 2e-11(경기역행 소득)입니다(v0.3.0). 다른 시장의 잔차는 임계값 없이 기록만 합니다. 적용 범위: 두 시장 가운데 하나로 푼 T3 에만 적용하고, 다른 목표가 보고되면 적용 조건 미충족으로 skip 합니다. v0.3.0 전에는 V1 이 자산시장 목표를 전제했으므로, 정확한 산술에서는 같은 해를 주는 재화시장 풀이(대조군 C03)에 경보를 냈습니다. 그 풀이의 자산시장 잔차는 비례 소득에서 F3 와 무관하게 최대 3.0e-6·b, 경기역행 소득에서 F3 의 O(h) 오차가 더해져 최대 2.4e-3·b 입니다(`docs/MUTATION_v0_2.md` 8절, `docs/CHECKS_v0_3_0_AMENDMENT.md`). | -| V2 | 공급자(provider)가 보고한 기본 수량으로 검사 쪽에서 직접 계산하는 정상상태 잔차: 정부 예산, 재화·자산시장(재정 HANK, TANK, Huggett), 자본시장·기업 1계 조건·재화시장(Aiyagari), 모든 모형의 집계 가계 예산. | -| V3 | 소득 정규화: Π 의 행 합이 1, 보고된 Π 의 정상분포에서 E[e] = 1, 총소득 Σ π y 가 모형별 기준과 같음. 기준은 Y(T1, T3), 유형별 소득 Y_H·Y_S 와 그 가중 합 λ Y_H + (1 − λ) Y_S = Y(T2), 문서화된 노동 L = 1 에서의 w L(T4), Y − Tax(T5)입니다. 경기역행 귀착(T3)에서는 Σ π e ζ = 0. | -| V4 | `hank_limits/spec.py` 의 문서화된 값으로 명세 고정(specification pins). `models.py` 에서 읽지 않습니다. 보고된 모수, 문서화된 β·EIS 에서의 Aiyagari 오일러 식, T5 경로에서의 재정 준칙·정부 예산·실질금리 준칙·재화시장을 확인합니다. v0.3.0: 공급자가 실제로 푼 외생 경로를 요청한 경로와 대조하고(`exog_G`, `exog_r`, `exog_rshock`), 실질금리 준칙 잔차에는 요청한 금리 충격을 씁니다. | -| V5 | `test_rank_benchmark_is_ricardian` 에는 RA 닫힌 해 assert 만 남기고, HA 조건은 `test_ha_multiplier_exceeds_one` 으로 나눴습니다. | -| V6 | F3 고정 시험(strict xfail, SSJ 코드만). F1·F2 고정과 같은 형식입니다. v0.3.0: V6a(hetinput 이 항상 한쪽 차분)와 V6b(`twosided=True` 를 요청해도 hetoutput 이 한쪽 차분)로 나눠, 상류에서 한쪽만 고쳐져도 그 시험만 XPASS 로 알립니다. | -| 공급자 | **선택** 필드 `ss_detail`, `J_A`, `J_C`, `ge_target`, `policy`, `irfs[...]` 의 `dC`·`dB`·`drshock` 추가. `hank_limits/interface.py` 에 공급자별로 검사가 읽는 모든 필드와 필수·선택 구분을 적었습니다. V 수량은 각자 자기 식에 필요한 필드로만 계산하고, 필드가 없으면 그 수량만 빠진 것으로 두고 이유를 남깁니다. `models.py`·`core.py` 의 계산은 바꾸지 않았고, Werning 공급자에 기본값이 기존 동작과 같은 선택 인자 `ge_target` 만 더했습니다. 오류 주입 보고서의 기준 실행(v0.2 의 4회, v0.3.0 재실행의 2회)에서 기존 검사의 요약값 276개가 v0.1 실행 B0 과 정확히 같았습니다. | -| 판정 | v0.3.0. V 시험은 값 하나라도 유한하지 않거나 음수이거나 임계값 이상이면, 다른 값이 빠져 있어도 실패합니다. 실패가 없는데 기대한 값이 빠져 있으면 **incomplete** 로 skip 하고(통과로 보지 않음), 공급자가 그 시험의 수량을 하나도 보고하지 않으면 이유와 함께 skip 합니다. 기대하는 값은 검사가 설정·소득 유형·요청한 충격별로 미리 정해 둡니다(`res['v0_3']` → `status`, `checks.v03_verdict`). | -| 검토 | 2026-10-22 릴리스 전 검토(P0·P1 결함 없음)를 반영했습니다. 위의 판정(R1), 문서와 코드의 필드 규약 일치(식 단위 필드, T3 β 는 `ss_detail` 에서 읽음; R2), 실제로 푼 외생 경로와 요청 경로의 대조(R3), 보고된 일반균형 목표로 V1 판정(R4), V6 나누기. 가짜 공급자(fake provider)로 검사기 자체를 시험하는 회귀 시험은 `tests/test_v0_3_0_checker.py` 에 있습니다. 설계·예측·임계값·재실행은 `docs/CHECKS_v0_3_0_AMENDMENT.md` 에 있습니다. 2026-10-23 병합 전 확인 뒤에는, 검사가 요청한 객체의 사본을 따로 보존하고 공급자에게는 다른 사본을 넘기도록 고쳤습니다. 그래서 공급자가 받은 인수를 직접 바꿔도 비교 기준은 바뀌지 않습니다(같은 문서 11절). | -| T4·T6 | 오류 주입 시험 v0.1 에서 나온 두 가지 설명: T4 의 오류 검출력은 진단에서 나오고(7·9절), T6 행렬 항등식은 선형대수 검사입니다. | - -v0.3.0 의 pytest 전체: **114 passed, 4 xfailed** (F1, F2, V6a, V6b). 통과한 114개는 T1–T6, D, V 묶음의 시험 77개와 검사기 회귀 시험 37개입니다. 출력은 `out/pytest_output_v0_3_0.txt` 에 있습니다. - -오류 주입 시험 v0.2(`docs/MUTATION_v0_2.md`): 새 검사를 모르는 별도 에이전트가 만든 변형 20개 가운데 v0.2.1 묶음은 14개, v0.3 묶음은 19개를 잡았습니다. 대조군 3개에서는 두 묶음 모두 경보를 내지 않았습니다. 두 묶음 모두 놓친 N20 은 어떤 시험도 엄격히 확인하지 않는 진단 값의 오류입니다. v0.1 변형 25개는 v0.3 묶음이 모두 잡지만, 그 검사들은 v0.1 결과를 본 뒤 설계했으므로 독립 결과가 아닙니다. - -릴리스 전 검토 뒤의 재실행(`docs/CHECKS_v0_3_0_AMENDMENT.md` 10절): v0.3.0 으로 수정한 묶음을 같은 변형으로 설계 (ii)·(iii)에서 다시 돌렸습니다. (ii)는 결과가 바뀌지 않았습니다(20개 가운데 19개를 잡고 N20 을 놓침, 대조군 경보 없음). (iii)에서는 대조군 C03 만 바뀌어 더는 경보를 내지 않습니다. V1 이 이제 공급자가 보고한 일반균형 목표로 판정하기 때문이며, 설계상 그렇게 되는 결과이므로 독립 증거가 아닙니다. 위의 v0.2 결과는 당시 검사에 대한 기록으로 그대로 둡니다. - -오류 주입 시험은 보고서(`docs/MUTATION_v0_1.md`, `docs/MUTATION_v0_2.md`, `docs/CHECKS_v0_3_0_AMENDMENT.md`)와, 설계 × 변형 × 시험 묶음마다 한 행인 CSV(`out/mutation_v0_1.csv`, `out/mutation_v0_2.csv`, `out/mutation_v0_3_0_rerun.csv`)부터 읽기를 권합니다. JSON 파일 `out/mutation_v0_*.json` 에는 모든 실행의 시험 결과와 검사 요약이 들어 있습니다. - ---- - -## 1. 결과 요약 (summary) - -오차 척도(error metric)는 **상대 최대 원소 오차(relative max-entry error)** `max|x − ref| / max|ref|` 입니다. 이것은 유도 행렬 노름(induced norm)이 아니며, 작은 꼬리 원소의 상대 정확도를 보장하지 않습니다. 기준값이 0 에 가까운 경우를 위해 절대·상대 허용치를 함께 쓰는 `metrics.check_close` 를 추가했습니다. 수렴 차수는 이웃한 두 설정 사이의 차수 `log(e_i/e_{i+1}) / log(h_i/h_{i+1})` 와 로그-로그 최소제곱 기울기(fitted slope)입니다. - -| 시험 | 명제 (범위) | 극한 모수 | 가장 엄격한 설정의 오차 | 관찰 수렴 차수 (이론) | 상태 | -|---|---|---|---|---|---| -| T1 PIH 가계 블록 극한 | HA 가계 야코비안 dC/dY, dC/dr → 영구소득(permanent-income) 닫힌 해 (부분균형) | 소득위험 eps → 0 (β 재보정 경로) | dC/dY 9.5e-4, dC/dr 4.0e-4 (eps=0.0125); eps=0 에서 1.7e-9 | 1.95 / 2.03 (2) | 통과 | -| T2 부과 귀착 TANK 기준 | 총 iMPC = λχ I + (1−λχ) M_RA, 일반균형 산출 = (1−λ)/(1−λχ) × RANK | eps → 0 (두 유형) | 총 iMPC 8.0e-5, IRF (χ=1.5) 1.05e-3 | 저축가 1.95, IRF 1.79 (2) | 통과 | -| T3 Werning 사라지는 유동성 | 비례 소득이면 실질금리 경로에 대한 산출 반응 = RANK; 소득 탄력성 변화 시 일반화된 Euler 관계 | 차입한도 b → 0 | 비례 4.3e-4; 경기역행 6.0e-4 (이탈 0.319, 닫힌 해 0.320) | 0.99 / 0.99 (1) | 통과 | -| T4 Aiyagari 정상상태 | r → 1/β − 1 (개별 위험 → 0); 이 보정에서 위험 크기·지속성에 단조 (회귀 검사) | 로그소득 sd eps → 0 | 격차 6.2e-5 (eps=0.025) | 1.93 (2) | 통과 | -| T5 IKC 일관성 | SSJ 일반균형 dY = (I − M)^{-1} dC_partial (같은 블록 야코비안으로 구성한 일관성 시험) | 항등식 (T=100, 200, 300) | 정제 풀이 9.8e-12; SSJ 기본 풀이 5.9e-7 | 해당 없음 | 통과 + 예상 실패 2건 (F1, F2) | -| T6 HANK − RANK 분해 | 유한 T 리졸벤트 항등식과 같은 경로에 대한 차분 분해 | 항등식 (T=150, 300) | 항등식 2.2e-14, 분해 1.9e-10 (G) / 2.2e-10 (금리) | 해당 없음 | 통과 | - -**차수 해석 주의.** T1·T2 의 O(eps²) 는 위험을 줄이면서 β 도 재보정하는 모형 경로의 차수이고, T4 의 O(eps²) 는 β = 0.96 을 고정한 채 위험을 줄일 때 격차 1/β − 1 − r 의 차수입니다. 어느 것도 공간 이산화가 2차 정확도라는 증거가 아닙니다. T3 의 O(b) 도 유동성 극한의 근사 차수입니다. 위험을 없애되 β 를 고정한 모든 모형이 T1 의 PIH 해로 간다고 읽으면 안 됩니다. - -**허용치의 지위.** 시험 허용치는 이 보정의 **회귀 검사(regression check) 기준**입니다. 다른 구현에 같은 수렴 기울기나 같은 1e-10 기준을 요구하는 규격(conformance specification)이 아닙니다. - -이 요약을 쓴 v0.2.1 의 pytest 전체: **41 passed, 2 xfailed, 약 65 ~ 75초** (11절). 위 T1–T6 결과는 v0.3.0 에서도 같고, v0.3.0 의 pytest 전체는 114 passed, 4 xfailed, 약 75초입니다(`out/pytest_output_v0_3_0.txt`). 보고서 스크립트 약 110초, 진단 스크립트 약 80초. - -### 주요 발견 (key findings) - -1. **T1: 관측창 의존(observation-window dependence).** HA 와 PIH 야코비안의 차이는 장기 원소(t=199, s=0)에 몰립니다. PIH 의 부(wealth)는 단위근을 갖지만 HA 의 부는 O(eps²) 속도로 평균회귀하기 때문입니다. eps=0.0125 에서 관측창 50, 100, 200 의 dC/dY 오차는 2.0e-4, 3.8e-4, 9.5e-4 입니다. 계산 시계를 T=50, 100 으로 따로 잡아 계산한 야코비안은 T=200 야코비안의 앞 블록과 **원소 단위로 정확히 같습니다**(최대 차이 0.0). SSJ 가계 야코비안의 원소는 계산 시계에 의존하지 않으므로, 이것은 절단(truncation) 효과가 아니라 긴 lag 를 관측창에 넣을수록 오차가 커지는 현상입니다. 고정된 관측창에서는 eps → 0 극한이 성립하지만, 고정된 eps 에서 관측창을 무한히 늘리면 성립하지 않습니다. 이 계산 시계 무관성은 **고정 정상상태의 선형 가계 야코비안**에 대한 결과이며, 일반균형 H_U 의 역행렬, 내생 가격 경로, 비선형 전이, 종단조건이 T 에 무관하다는 뜻은 아닙니다. -2. **이산화 오차의 원인.** 가장 작은 eps 에서 차수가 2 보다 약간 낮아지는 것은 Young 복권 방식(lottery method)의 수치 확산(numerical diffusion)이 eps 가 작을 때 실제 확산과 비슷해지기 때문입니다. 격자를 세밀하게 하면 차수가 2 를 향해 올라갑니다(T2 IRF: 2400, 4800, 9600 점에서 1.47, 1.72, 1.85; T1 dC/dr 9600 점에서 2.006). -3. **F1: 캐시된 야코비안과 출력 전파의 일관성 문제(SSJ 1.0.0, master eb4ac4c).** `HetBlock._impulse_linear` 는 전달된 `Js` 를 쓰지 않고 자신의 옵션으로 다시 미분합니다. SSJ 코드만 쓰는 최소 재현에서 `Js` 를 2배로 바꿔 넣어도 출력이 **변하지 않습니다**(차이 0). 일반균형 풀이(H_U)와 직접 충격·출력 전파가 서로 다른 선형 연산자를 쓰게 되어, 가계에 직접 들어가는 금리 충격의 IKC 항등식이 약 1e-4 로만 성립합니다. 옵션을 일치시키면 3e-13 입니다. SSJ 미분 이론의 문제가 아니라 재사용 규약의 문제이며, 옵션 일치는 우회책일 뿐 캐시 재사용과 같지 않습니다. SSJ 에 [#39](https://github.com/shade-econ/sequence-jacobian/issues/39) 로 보고했습니다. -4. **F2: 방정식 배열에 민감한 LU 안정성.** 금리 준칙을 더한 재정 HANK 에서, SSJ 가 변수별 블록으로 쌓은 H_U 에 대한 부분 피벗팅 LU 의 원소 성장률이 T=100, 200, 300 에서 19, 3.7e4, 1.1e7 입니다(조건수 3.6e2, 2.9e3, 2.1e4). 같은 시스템을 **날짜별로 재배열하면 성장률 1.02, 블록 순서를 뒤집으면 1.00** 이 되고 정규화 역오차가 3e-8 에서 1e-16 수준으로 내려갑니다. 조건수만으로 설명되는 문제가 아니라, 이 배열에서의 LU 원소 성장이 정확도 저하를 만듭니다. 따라서 "T 가 길면 SSJ 풀이가 부정확하다"가 아니라 **"이 블록 배열과 부분 피벗팅 LU 의 조합에서 원소 성장이 생긴다"** 입니다. 재배열·반복 정제·QR 중 어느 하나가 모든 모형을 해결한다고 일반화하지 않습니다. 이 예제에서 IKC 오차는 T=200·300 에서 2.2e-9 ~ 5.9e-7, pivoted QR 해와의 상대 차이는 약 1e-7 (이 환경 1.0e-7, 검토자 환경 1.2e-7) 입니다. 엄격한 항등식 검사(1e-10)에는 의미가 있습니다. 실무에서의 중요도는 모형·목표·허용치에 달리며 여기서는 비교하지 않았습니다. SSJ 에 [#40](https://github.com/shade-econ/sequence-jacobian/issues/40) 로 보고했습니다. -5. **T6: 집단별 일반균형 귀속의 범위.** 부 사분위별 첫 단계(first round) 격차는 잘 정의되고 T 와 무관합니다. 하지만 집단별 forcing 의 현재가치가 0 이 아니므로(소득이 (Y − Tax) × e 이고 집단마다 e 구성이 다름), 이를 무한 시계 소비 승수에 각각 통과시키면 예산제약과 맞지 않는 모드를 자극해 T 에 따라 발산합니다. 합계에서는 이 모드가 상쇄됩니다. 이것은 "집단별 귀속은 불가능하다"는 정리가 아닙니다. 집단별 일반균형 귀속에는 종단조건, 재정 귀착, 현재가치 보상 경로를 추가로 정해야 하고, 그 선택에 따라 귀속이 달라집니다. 현재가치 0 은 필요한 적합성 조건일 뿐 안정성·유일성을 보장하지 않습니다. -6. **분포 정확도는 정상성 잔차만으로 보장되지 않음(관찰, SSJ 결함 아님).** 느리게 혼합하는 사슬에서는 질량 0 부분공간에서의 역연산자가 커지므로, 작은 잔차가 작은 분포 오차를 뜻하지 않습니다. 중간 위험 PIH 가계(eps=0.1)에서 SSJ 원래 전진 반복의 기본 정지 규칙(10회마다 max|ΔDbeg| < 1e-10)은 37,910회에 멈추며, 그 분포의 평균 자산은 역반복 해와 **1.7e-3 (상대)** 다릅니다. 허용치를 1e-12 로 조이면 54,590회에 1.7e-5 로 줄어 같은 해로 수렴합니다. eps=0.0125 에서는 600,000회 안에 정지하지 않습니다. 빠르게 혼합하는 T4·T5 모형에서는 차이가 1e-6, 5e-9 입니다 (12절). -7. **F3 (v0.3): hetinput·hetoutput 의 단측 차분 (SSJ 1.0.0).** `HetBlock.jac_backward_prelim` 은 hetinput 에 양측 차분을 요청합니다("always use two-sided differentiation for hetinputs"). 그러나 `DifferentiableCombinedExtendedFunction.diff` 의 기본값이 `None` 이 아니라 `twosided=False` 라서, 호출할 때 인자를 생략하면 저장된 설정이 쓰이지 않습니다. 결과는 두 가지입니다. hetinput 은 항상 단측 차분으로, hetoutput 은 `jacobian(..., twosided=True)` 로 요청해도 단측 차분으로 계산됩니다. `stage_block.py` 도 같은 방식입니다. 오차는 O(h) 이고, 비선형 hetinput·hetoutput 에서만 의미가 있습니다. 이 세트에서는 T3 의 경기역행 소득이 해당하며, 오류 주입 시험 v0.1 에서 찾은 O(h) 예산 항등식 잔차의 원인입니다(그 보고서 8절). SSJ 코드만 쓰는 재현은 14절에 있습니다. SSJ 에 [#41](https://github.com/shade-econ/sequence-jacobian/issues/41) 로 보고했습니다. - ---- - -## 2. 실행 방법 (how to run) - -```bash -pip install --break-system-packages sequence-jacobian==1.0.0 pytest matplotlib # numpy, scipy, numba 필요 -cd hank-limits -python3 -m pytest # 약 75초; 요약 출력은 python3 -m pytest -s -python3 scripts/convergence_report.py # 약 110초: out/convergence_v0_2.json, PNG 6장, out/tables_v0_2/*.csv -python3 scripts/diagnostics_v0_2.py # 약 80초: out/diagnostics_v0_2.json (12절) -python3 scripts/aiyagari_table2_v0_2.py # 약 20초: out/aiyagari_table2_v0_2.json (7절) -python3 scripts/repro_F1_v0_2.py # SSJ 코드만 사용: out/repro_F1_v0_2.json -python3 scripts/repro_F2_v0_2.py # SSJ 코드만 사용: out/repro_F2_v0_2.json, out/F2_HU_T300_v0_2.npz -python3 scripts/repro_F3_v0_1.py # v0.3, SSJ 코드만 사용: hetinput 미분 (14절) -python3 scripts/repro_F3_hetblock_v0_1.py # v0.3, SSJ 코드만 사용: HetBlock.jacobian 의 hetinput·hetoutput -python3 scripts/mutation_v0_3_0.py --v03-ref <커밋> --design ii iii # 약 18분: 오류 주입 재실행 (v0.3.0) -``` - -- 모든 진입점에서 스레드를 1개로 제한합니다(`OMP_NUM_THREADS=1` 등). -- 사용 버전: **sequence-jacobian 1.0.0** (PyPI wheel SHA-256 `40715634f6fcf8f695d79687c471bedcecacdeff94522557f5186b630f46ef01`), Python 3.13.16, numpy 2.5.3, scipy 1.18.1, numba 0.68.0, OpenBLAS 0.3.34 (scipy-openblas), pytest 9.1.1. GitHub master (커밋 `eb4ac4c3157357a4cacbea4b5a7a281f5b48cab9`)도 F1 과 같은 코드입니다. -- 검토 모형(GPT 6.1 Sol, 17장)이 자기 환경(Python 3.12.14, numpy 2.5.4, scipy 1.17.0)에서 v0.1 을 재실행해 **32 passed, 2 xfailed** 를 재현했습니다. BLAS·환경에 따라 마지막 자릿수와 시간은 달라질 수 있습니다. - -### 디렉터리 구조 (layout) - -``` -hank_limits/ - core.py 가계 블록, FastHetBlock(정상분포 직접 풀이, 진단 포함), 격자 - diagnostics.py v0.2: Euler/KKT 잔차, 분포 감사(shift·반복 민감도, SSJ 전진 반복 대조) - ra.py RA, TANK, 영유동성 닫힌 해 - models.py SSJ 참조 구현 (provider) - checks.py 모형과 무관한 검사 함수 - interface.py provider 규약 - metrics.py 오차 척도, 수렴 차수, 절대·상대 혼합 허용치 - suite.py 표준 설정 (tests 와 스크립트가 공유) - spec.py v0.3: V 검사에 쓰는 문서화된 명세 값 -tests/ test_t1 ... test_t6, test_diagnostics_v0_2, test_v0_3_checks (v0.3), - test_v0_3_0_checker (v0.3.0: 가짜 공급자로 검사기 시험) -scripts/ convergence_report.py, diagnostics_v0_2.py, aiyagari_table2_v0_2.py, - repro_F1_v0_2.py, repro_F2_v0_2.py, repro_F3_*.py, a1_markov_checks_v0_2.py (설계 노트용, 13절), - mutation_v0_1.py, mutation_v0_2.py, mutation_v0_3_0.py (오류 주입 실행기), thresholds_v0_3_0.py, - rerun_v0_3_0_compare.py -out/ JSON, PNG, tables_v0_2/*.csv, pytest 출력 -``` - ---- - -## 3. 공통 규약과 수치 기법 (conventions and numerics) - -- **시점 규약.** SSJ 단일자산 가계: 예산식 c_t + a_t = (1 + r_t) a_{t−1} + y_t, 오일러 식 c_t^{−1/σ} = β (1 + r_{t+1}) E c_{t+1}^{−1/σ}. r_t 는 t−1 기에 보유한 자산에 t 기에 지급되는 사후 실질수익률입니다. -- **연간 보정.** 시험 세트는 연간(annual) 보정이며 정상상태 산출 Y = 1 입니다. 분기(quarterly) 보정인 UK 보정 노트와 섞지 않습니다. -- **야코비안.** SSJ 가짜 뉴스 알고리즘(fake-news algorithm)에 **양측 차분(two-sided differences)**, h = 1e-4. SSJ 기본값인 단측 차분은 dC/dr 에 약 5e-5 의 O(h) 오차를 남깁니다. 차분 간격 민감도는 4절에 있습니다. -- **`FastHetBlock`.** SSJ `HetBlock` 의 하위 클래스로, 정상분포를 찾는 방법만 바꿉니다. Young 복권 전이행렬의 고유값 1 문제를 희소 역반복(sparse inverse iteration, (1+τ)I − L 의 LU 한 번, τ = 1e-10, 자산 우선 순서로 띠 행렬 유지)으로 풀고, 역방향 반복을 이전 해로 시작합니다. 나머지(가짜 뉴스 알고리즘, 일반균형 풀이)는 SSJ 그대로입니다. 이것은 자체 수치 구성요소이므로 v0.2 에서 다음을 기록합니다(`FastHetBlock._ss_diag`, 12절). - - 절댓값을 취하기 전 음의 질량(절대 질량 합 대비), 역반복 횟수와 종료 여부, 마지막 갱신 크기, 다듬기 단계의 질량 표류. (v0.2 의 `normalisation_err_last_sweep` 은 구성상 항상 0 이어서 v0.2.1 에서 삭제했습니다. 음의 질량은 `neg_mass_rel_max` 가 보고합니다.) - - 결과 분포의 L1·최대 원소 잔차: 잘린(clipped) 사슬 기준과 SSJ 자신의 전진 연산자 기준. - - shift τ (1e-12 ~ 1e-6)와 반복 횟수를 바꿨을 때 분포·평균 자산·소비의 변화. - - 같은 정책에서 SSJ 원래 전진 반복(`HetBlock.forward_steady_state`)과의 대조. -- **격자 밖 정책.** 희소 전이 구성은 격자 상단 밖으로 나가는 정책을 끝점에 모으고(reflecting barrier), SSJ 전진 연산자는 그대로 평가합니다. 영향받는 질량(`mass_policy_off_grid`)과 SSJ 잔차를 `FastHetBlock._ss_diag` 에 계속 기록합니다. v0.2 진단 출력에 기록된 T4 점들에서는 기본 상한(200)에서 3.1e-30 이하, 상한 100 의 민감도 점검에서 최대 8.7e-13 입니다(`out/diagnostics_v0_2.json` B). - ---- - -## 4. T1: PIH 가계 블록 극한 (household-block permanent-income limit) - -**범위.** 무위험 PIH 가계 블록의 정확한 야코비안 대조와, 자산 목표에 맞춰 β 를 재보정하는 특정 eps 경로의 수렴 시험입니다. **부분균형(partial equilibrium) 가계 블록 시험이며, 전체 NK 일반균형의 RANK 극한 시험이 아닙니다.** - -**명제.** 소득위험이 없고 β(1+r) = 1 이며 차입제약이 묶이지 않는 가계는 영구소득 소비자이고, q = 1/(1+r) 일 때 -- dC_t/dY_s = (1−q) q^s -- dC_t/dr_s = (1−q) A q^s + σ C q (1{t ≥ s} − q^s) - -입니다(오일러 식과 시점 간 예산식에서 유도, `hank_limits/ra.py`). 출처: 표준 영구소득 가설의 선형화. SSJ 방법론은 Auclert, Bardóczy, Rognlie, Straub (2021). - -**정확한 조건.** r = 0.03, σ(EIS) = 0.5, y = Y e, Rouwenhorst 3상태, 지속성 0.9, 로그소득 무조건부 sd = eps. 차입한도 = 0.99 × 자연 차입한도 −y_min/r (제약 질량 3e-6 이하). 평균 자산 A = 5 가 되도록 β 를 보정하며, κ = 1 − β(1+r) 은 eps² 처럼 0 으로 갑니다(κ/eps² = 0.028). eps = 0 은 정확한 영구소득 경우입니다(β(1+r)=1, A=5 에 모든 질량; 이 경우 부의 정상분포가 유일하지 않으므로 점질량을 선택). T = 200, 자산 격자 4800 점(선형), 상한 250. - -**수치 결과.** - -| eps | 0 | 0.2 | 0.1 | 0.05 | 0.025 | 0.0125 | -|---|---|---|---|---|---|---| -| dC/dY 오차 | 1.7e-9 | 2.08e-1 | 5.52e-2 | 1.40e-2 | 3.60e-3 | **9.53e-4** | -| dC/dr 오차 | 2.9e-9 | 1.12e-1 | 2.63e-2 | 6.44e-3 | 1.60e-3 | **3.96e-4** | -| κ | 0 | 1.14e-3 | 2.74e-4 | 6.79e-5 | 1.71e-5 | 4.35e-6 | - -- 이웃 차수: dC/dY 1.92, 1.98, 1.96, 1.92 (최소제곱 1.95); dC/dr 2.09, 2.03, 2.01, 2.01 (2.03). -- eps = 0 의 1e-9 오차는 유한차분의 O(h²) 오차뿐이며, SSJ 시점 규약과 닫힌 해가 일치함을 보여 줍니다. - -**관측창과 계산 시계 (v0.2).** eps = 0.0125: - -| 관측창 (같은 T=200 야코비안의 앞 블록) | 50 | 100 | 200 | -|---|---|---|---| -| dC/dY 오차 | 1.96e-4 | 3.79e-4 | 9.53e-4 | -| dC/dr 오차 | 9.25e-5 | 9.60e-5 | 3.96e-4 | -| 계산 시계를 그 값으로 따로 잡은 야코비안과의 최대 원소 차이 | 0.0 | 0.0 | — | - -같은 결과가 eps = 0.1 에서도 성립합니다(`out/diagnostics_v0_2.json` C). 종단(terminal-horizon) 효과를 따로 감사할 필요가 있는 것은 일반균형 풀이(T5·T6)입니다(예: T6 RANK 승수의 1 + 6.4e-6 은 T=150 에서 잘린 부채 경로 꼬리 때문). - -**차분 간격 h 민감도 (양측 차분, T = 200, v0.2).** - -| eps | h = 1e-3 | 1e-4 (기본) | 1e-5 | 1e-6 | -|---|---|---|---|---| -| 0: dC/dY / dC/dr 오차 | 2.8e-9 / 정의 안 됨* | 1.7e-9 / 2.9e-9 | 1.2e-8 / 9.7e-10 | 2.3e-7 / 6.7e-9 | -| 0.0125: dC/dY / dC/dr 오차 | 9.527886e-4 / 정의 안 됨* | 9.527901e-4 / 3.9569e-4 | 9.527900e-4 / 3.9608e-4 | 9.527900e-4 / 3.9611e-4 | - -\* r 를 1e-3 올리면 자연 차입한도 −y_min/(r+h) 가 격자 하한(0.99 × −y_min/r)보다 위로 올라가 소비가 음수가 됩니다. 근사 자연한도 격자에서는 r 방향 차분 간격이 약 3e-4 미만이어야 합니다. eps = 0.0125 의 dC/dY 오차는 h ≤ 1e-4 에서 상대 1.1e-7 이내로 같아 차분 간격과 무관하고, eps = 0 에서는 h 가 작아질수록 반올림 오차가 커집니다. - -**격자 수렴.** eps = 0.0125 dC/dY 오차: 1200 점 1.41e-3, 2400 점 1.08e-3, 4800 점 9.53e-4, 9600 점 9.01e-4. 9600 점에서 eps 0.025 → 0.0125 차수는 dC/dY 1.96, dC/dr 2.006. - -**알려진 한계 (v0.1 결과).** 극한 분포의 표준편차가 eps 와 무관하게 약 14(연소득 단위)로 넓게 남으므로, 근사 자연한도와 넓은 격자가 필요합니다. 한도 0.95 × 자연한도(600 점)에서는 제약 질량 1.8e-4 가 오차 바닥(약 6e-3)을 만듭니다. eps 를 0.0125 보다 작게 하면 수치 확산이 실제 확산보다 커져 더 세밀한 격자가 필요합니다. - ---- - -## 5. T2: 부과된 Bilbiie식 소득 귀착의 TANK 기준 (TANK benchmark with imposed Bilbiie-style incidence) - -**범위.** 주어진 소득 귀착 χ 에서의 TANK 집계·실질금리 전달 시험입니다. χ 를 노동시장·이윤 배분에서 유도하지 않았으므로 "Bilbiie 모형의 구조적 복제"가 아닙니다. χ 를 외생적으로 부과해도 기준(benchmark)으로서의 가치는 유지됩니다. - -**명제.** 비율 λ 의 손에서 입으로 사는 가계(H)와 비율 1−λ 의 저축가(S). H 소득이 총소득에 대해 탄력성 χ 를 가지면 (i) 일반균형에 들어가는 집계 iMPC 행렬은 λχ I + (1 − λχ) M_RA 입니다(χ = 1 이면 λ I + (1−λ) M_RA). (ii) 영유동성(채권 순공급 0)에서 집계 오일러-IS 식은 c_t = c_{t+1} − σ (1−λ)/(1−λχ) r_{t+1} 이고, 고정 실질금리 경로에 대한 일반균형 산출 반응은 RANK 의 (1−λ)/(1−λχ) 배입니다. - -**성립 조건.** 두 유형의 정상상태 소비와 EIS 가 같고, H 형이 극한에서 정확히 손에서 입으로 살며, 고정 실질금리 경로이고, **1 − λχ > 0** 인 영역(여기서 λ = 0.3, χ ∈ {1, 1.5} 이므로 1 − λχ = 0.55)입니다. 증폭 배수 0.7/0.55 = 1.27273 은 λ = 0.3, χ = 1.5 에서의 값입니다. - -**출처.** Bilbiie (2020), "The New Keynesian cross", JME 114, 90-108 (집계 오일러-IS 식과 "χ > 1 일 때만 증폭"은 ECB 학회 2018 판본에서 확인; Bilbiie 의 r_t 는 SSJ 규약의 r_{t+1}). Bilbiie (2008), JET 140(1), 162-196. - -**정확한 조건.** λ = 0.3. H 형: 차입한도 0, β_H = 0.95, 소득위험 eps, 500 점. S 형: T1 과 같은 가계(4800 점), λ A_H + (1−λ) A_S = 0 이 되도록 β_S 보정. 귀착: Y_H = Y^χ, Y_S = (Y − λ Y_H)/(1−λ). 일반균형: dr_t = −0.01 × 0.8^t, Y = C, 미지수 Y, T = 200. 두 유형 모두 같은 eps → 0. - -**수치 결과.** - -| eps | 0.2 | 0.1 | 0.05 | 0.025 | 0.0125 | -|---|---|---|---|---|---| -| H 형 M_H vs I | 0.596 | 0.342 | 3.9e-13 | 1.7e-13 | 3.9e-13 | -| S 형 M_S vs M_RA | 0.275 | 7.29e-2 | 1.85e-2 | 4.76e-3 | **1.26e-3** | -| 총 iMPC (χ=1) vs λ I + (1−λ) M_RA | 0.556 | 0.320 | 1.18e-3 | 3.03e-4 | **8.02e-5** | -| 일반균형 IRF vs (1−λ)/(1−λχ) × RANK (χ=1.5) | 0.131 | 5.44e-2 | 1.24e-2 | 3.46e-3 | **1.05e-3** | -| HA 증폭 배수 (χ=1.5 / χ=1) | 1.150 | 1.209 | 1.27273 | 1.27273 | 1.27273 | - -χ = 1.5 에서 λχ M_H + (1−λχ) M_S 와 λχ I + (1−λχ) M_RA 의 차이는 eps = 0.0125 에서 4.3e-5 입니다(`out/tables_v0_2/` 의 `err_Magg_lamchi_vs_TANK_chi1.5`). H 형은 eps 가 유한한 문턱값보다 작아지면 정확히 손에서 입으로 사는 가계가 됩니다. 격자 수렴(eps=0.0125 IRF): 2400 점 1.50e-3, 4800 점 1.05e-3, 9600 점 8.70e-4. - -**알려진 한계.** χ 는 축약형입니다. 채권 순공급 0 이므로 dC/dr 의 부의 효과 항은 여기서 검증되지 않습니다(T1 에서 검증). 총 iMPC 하나에 대해 기울기를 적합하는 것은 의미가 없어 이웃 차수만 보고합니다. - ---- - -## 6. T3: Werning (2015) 사라지는 유동성 기준 (vanishing-liquidity benchmark) - -**범위.** 사라지는 유동성 정제(vanishing-liquidity refinement), Werning 의 비례 소득 중립성, 소득 탄력성 변화에 따른 일반화된 Euler 관계를 시험합니다. 경기역행적 사례는 Werning 3.3절에 맞는 **소득 탄력성 변화**이며, 3.4절의 고용확률 변화 모형 자체를 구현한 것은 아닙니다. 전이확률 Π 가 고정이므로 고용확률의 경기 변동은 복제하지 않습니다. - -**명제.** 차입 불가, 외부 자산 없음이면 균형에서 모두가 소득을 소비하고 실질금리는 저축 의향이 가장 큰 가계의 오일러 식이 정합니다(Werning 식 12). 정확히 유동성이 0 이면 금리가 구간으로 불확정할 수 있지만, 사라지는 유동성 정제가 한계 금리를 선택합니다. 거듭제곱 효용(식 14)과 가계 소득이 총소득에 비례(식 15)하면 집계 오일러 식의 금리 민감도가 RA 와 같습니다(Proposition 2). 출처: Werning (2015), NBER WP 21448, 3.1-3.4절. 구현은 Huggett (1993) 경제. - -**소득위험 경기성 가정.** y_it = Y_t e_it (Y_t/Y)^{ζ_i}, e 는 Y 와 독립인 Markov 사슬(Rouwenhorst 3상태, 지속성 0.9, 로그 sd 0.3). -- 비례 소득: ζ = 0. -- 경기역행적 위험: ζ = (1, −0.185, −0.185). Σ_i π_i e_i ζ_i = 0 은 정상상태에서 총소득 보존을 **1차까지만** 보장합니다. 선형 SSJ 시험에는 충분합니다. 비선형 경로로 확장하면 분모 Σ π_i e_i (Y/Y_ss)^{ζ_i} 로 정규화하거나 총소득 편차를 따로 보고해야 합니다. 실제 편차(v0.2): Y = 1 ± 0.001 에서 9.3e-8, ± 0.01 에서 9.2e-6 ~ 9.3e-6, ± 0.05 에서 2.2e-4 ~ 2.4e-4 (O(dY²)). - -영유동성 닫힌 해: 한계 가계 h = argmax_e E[(e'/e)^{−1/σ} | e] 의 오일러 식을 선형화하면 (1+ζ_h) ŷ_t = (1+ζ̄) ŷ_{t+1} − σ dr_{t+1}/(1+r), ζ̄ 는 한계효용 가중 평균입니다. 경기역행 경우 δ = 1.0174, 탄력성 σ/(1+ζ_h) = 0.614 입니다. 한계 저축 상태의 argmax 가 동률에 가까워지면 미분 가능성을 별도로 점검해야 합니다 (현재 보정에서는 상위 상태가 유일한 한계 저축가). - -**정확한 조건.** σ = 0.5, β 는 r* = 1% 가 되도록(β = 0.86997, v0.1 결과). 차입한도 −b, 채권 순공급 0, 격자 −b + 20 b u² (400 점), 차분 간격 h = 1e-3 b. dr_t = −0.01 × 0.8^t, T = 150. - -**수치 결과.** - -| b | 1e-1 | 3e-2 | 1e-2 | 3e-3 | 1e-3 | 3e-4 | 1e-4 | -|---|---|---|---|---|---|---|---| -| 비례 소득: 오차 vs RANK | 6.0e-2 | 6.6e-3 | 1.29e-2 | 1.23e-2 | 4.23e-3 | 1.29e-3 | **4.30e-4** | -| 경기역행: 오차 vs 영유동성 해 | 0.100 | 2.3e-2 | 9.7e-3 | 1.70e-2 | 5.89e-3 | 1.79e-3 | **5.99e-4** | -| 경기역행: RANK 와의 이탈 | 0.452 | 0.350 | 0.333 | 0.297 | 0.312 | 0.317 | **0.319** | -| (r(b) − r*)/b | 0.58 | 1.15 | 1.85 | 2.07 | 2.081 | 2.087 | 2.088 | - -점근 구간(b ≤ 1e-3) 차수 0.993 (두 경우). 격자 200, 400, 800 점에서 오차가 네 자리까지 같습니다. b = 0 에서 수치 야코비안을 직접 미분하지 않은 것은 꺾임점(kink) 때문이며, 정제와 같은 b → 0 극한으로만 검증합니다. - ---- - -## 7. T4: Aiyagari 정상상태 (no-idiosyncratic-risk limit) - -**범위.** (i) 개별 위험 소멸 극한: 소득위험 → 0 이면 r → 1/β − 1. 코드에 보험시장 완비화가 없으므로 "완전시장 극한"이 아닙니다. (ii) 이 보정에서 위험이 있으면 r < 1/β − 1 이고, 위험 크기와 지속성에 따라 r 이 낮아지는 **회귀 검사**. 일반 정리로 쓰지 않습니다. - -**기계적 검사와 비기계적 검사.** `ssj_aiyagari_r` 는 근을 (−δ + 1e-3, 1/β − 1 − 1e-10) 에서 찾으므로 r < 1/β − 1 은 구성상 성립하며 독립 정확도 증거로 세지 않습니다(sanity check 로만 유지). v0.2 의 비기계적 검사: - -| 점검 | 모든 T4 점에서의 최댓값 | -|---|---| -| 자본시장 잔차 \|A − K\|/K | 5.2e-10 | -| Euler 오차 (비제약 상태, 분포 가중 평균) | 1.1e-7 | -| Euler 오차 (비제약 상태, 질량 있는 점 최대) | 1.6e-5 | -| KKT 위반 (제약 상태: u'(c) < βR E u'(c') 인 경우만) | 0 | -| 상단 5개 격자점 질량 / 격자 밖 정책 질량 | 4.4e-29 / 3.1e-30 | - -Euler 오차는 단위 없는(unit-free) c_impl/c − 1 이고, c(e', ·) 는 자산 격자에서 선형 보간합니다. 제약 상태의 양의 Euler 격차는 수치 오차로 세지 않습니다(`hank_limits/diagnostics.euler_kkt_residuals`). - -**자산 상한·해상도 민감도 (sd = 0.4, 지속성 0.9, 가장 넓은 부 분포).** r (%): - -| a_max \ 점 수 | 500 | 1000 | 2000 | -|---|---|---|---| -| 100 | 2.8818 | 2.8822 | 2.8823 | -| 200 (기본) | 2.8813 | 2.8821 | 2.8823 | -| 400 | 2.8801 | 2.8818 | 2.8822 | - -**T4 가 오류를 잡는 곳 (v0.3 설명).** 오류 주입 시험 v0.1 에서 해석적 극한(r → 1/β − 1, O(eps²))과 단조성 회귀 검사는 T4 에 도달한 변형 7개를 하나도 잡지 못했습니다. T4 의 검출 4개는 모두 위의 진단(자본시장 잔차, Euler/KKT 잔차, 상단 격자 질량)에서 나왔습니다. 극한은 δ, 차입한도, 격자를 어떻게 고정해도 성립하므로, 그런 오류는 진단과 v0.3 의 V2·V4 검사(문서화된 α·δ 에서의 기업 1계 조건, 문서화된 차입한도, 문서화된 β·EIS 에서의 오일러 식)가 잡습니다. - -**출처.** Aiyagari (1994), QJE 109(3), 659-684. - -**정확한 조건.** β = 0.96, α = 0.36, δ = 0.08, σ(EIS) = 0.5 (위험회피 2), 차입한도 0, 노동 1, Rouwenhorst 7상태, [0, 200] 에 1000 점(u² 간격). - -**수치 결과.** - -| eps | 0.4 | 0.2 | 0.1 | 0.05 | 0.025 | -|---|---|---|---|---|---| -| r (%) | 2.8821 | 3.8119 | 4.0742 | 4.1429 | 4.1605 | -| 1/β − 1 − r | 1.28e-2 | 3.55e-3 | 9.24e-4 | 2.38e-4 | **6.17e-5** | -| 격차/eps² | 0.080 | 0.089 | 0.092 | 0.095 | 0.099 | - -표준편차별 r (지속성 0.9): 4.074, 3.812, 3.404, 2.882%. 지속성별 r (sd 0.4): 3.956, 3.792, 3.475, 2.882%. 격차/eps² 는 아직 약간 증가 중이며 일부는 격자 효과입니다(2000 점에서 0.096). - -**Aiyagari (1994) Table II 대조 (v0.2, `scripts/aiyagari_table2_v0_2.py`).** 원문 Table II 의 σ 는 earnings 의 변동계수(coefficient of variation)로 설명되고, 7상태 Markov 근사의 실제 모멘트가 입력값과 다릅니다(원문 Table I, 각주 38; 검토자 확인). 또 위험회피 μ = 1, 3, 5 열이 있고, 시험 세트의 EIS 0.5 (μ = 2) 와 같은 열은 없습니다. 그래서 두 셀을 μ 를 맞추고, 사슬(Tauchen 1986 의 폭 3 sd; Rouwenhorst)과 σ 해석(로그 sd; 변동계수 → 로그 sd = √log(1+σ²))을 바꿔 계산했습니다. β = 0.96, α = 0.36, δ = 0.08, 차입한도 0, 평균 노동 1 로 정규화 (차입한도 0 이면 가계 문제가 노동 수준에 대해 동차이므로 정규화가 r 을 바꾸지 않음), 2000 점, 상한 400. - -| 셀 (σ, ρ, μ) | 원문 값* r / 저축률 (%) | Tauchen, 로그 sd | Tauchen, 변동계수 | Rouwenhorst, 로그 sd | Rouwenhorst, 변동계수 | -|---|---|---|---|---|---| -| 0.2, 0.6, 3 | 3.8767 / 24.25 | **3.8782** / 24.25 | 3.8842 | 3.9127 | 3.9179 | -| 0.4, 0.9, 5 | −0.3456 / 37.63 | −0.0856 / 36.39 | 0.1041 | 0.7265 | 0.9007 | - -\* 원문 값은 검토 모형(GPT 6.1 Sol)이 원문 스캔(인쇄 p. 678)에서 읽어 옮긴 것입니다. 우리는 스캔본의 텍스트를 읽을 수 없어 직접 확인하지 못했습니다. 저축률은 s = δα/(r+δ) 로 r 의 함수이므로, 같은 r 에서 맞는 저축률은 독립된 두 번째 검증이 아닙니다. - -- **첫 셀**은 Tauchen 사슬로 0.0016%p 이내에서 맞습니다(3.8782 대 3.8767). -- **둘째 셀은 재현되지 않았고 원인은 미해결입니다**(−0.0856 대 −0.3456, 약 0.26%p). 원문 Table I(인쇄 p. 676)은 사슬의 **수준 소득 CV 와 자기상관**을 보고하는데, Tauchen 3 sd 사슬의 값이 이미 원문의 두 자리 반올림 값과 일치합니다. - - | 셀 (σ, ρ) | 원문 Table I: CV / corr (검토 모형이 읽은 값) | Tauchen 3 sd 사슬: 수준 CV / 수준 corr | - |---|---|---| - | 0.2, 0.6 | 0.21 / 0.59 | 0.2142 / 0.5935 | - | 0.4, 0.9 | 0.49 / 0.89 | 0.4885 / 0.8913 | - - 따라서 v0.2 에서 쓴 "사슬의 실제 위험 차이로 설명된다"는 해석은 철회합니다. 두 모멘트가 같아도 전이행렬 전체가 같다는 보장은 없으므로 사슬 차이를 배제한 것도 아닙니다. 자산 격자를 바꿔도 차이는 닫히지 않습니다(r: 1000 점·상한 400 에서 −0.0862, 2000·400 에서 −0.0856, 4000·400 에서 −0.0855, 2000·800 에서 −0.0858%; 상단·격자 밖 질량 0). 후보 원인(원문의 모의 시계열 기반 계산, 전이행렬, 기타 구현 차이)은 모두 **[미확인]** 입니다. -- 참고로 Tauchen 폭을 2, 2.5, 3 으로 바꾸면 사슬의 로그 sd 가 0.399, 0.440, 0.468, r 은 0.915, 0.334, −0.086% 로 둘째 셀이 사슬에 매우 민감합니다. 원문 값에 맞추려고 사슬을 조정하지 않았습니다. -- 공개된 Econ-ARK Aiyagari 복제 프로젝트(HARK, DolARK)도 있으며, 그 코드의 정확도를 이번에 감사하지는 않았습니다. - ---- - -## 8. T5: IKC 일관성 시험 (intertemporal Keynesian cross consistency) - -**범위.** 같은 블록 야코비안으로 구성한 GE-IKC **일관성 시험**입니다. 독립적인 경제 모형 정확도 인증과 구별합니다. F1·F2 를 잡아냈다는 점에서 실용적입니다. - -**명제.** HA 블록이 가계뿐인 모형에서 일반균형 산출은 dY = (I − M)^{-1} [dG + J^{C,Tax} dTax + J^{C,r} dr] 입니다 (M = J^{C,Y}; dTax, dr 은 일반균형 경로). 출처: Auclert, Rognlie, Straub (2024), JPE 132(12), 4068-4121 (NBER WP 25020). - -**정확한 조건.** 가계: 차입한도 0, 소득 (Y − Tax) e, Rouwenhorst 7상태(지속성 0.92, sd 0.6), 500 점, σ 0.5. r = 0.02, B = 1 = A (β = 0.9105, 제약 질량 19.8%), G = 0.2, Tax_t = Tax + 0.1 (B_{t−1} − B). 고정 실질금리 모형과 실질금리 준칙 r_t = r + 0.25 (Y_t − 1) + 충격 모형. 미지수 Y, B. 충격 4개, T = 100, 200, 300. 풀이 3종: (a) 옵션을 일치시킨 SSJ, (b) 반복 정제를 더한 같은 알고리즘, (c) 옵션 불일치(F1). - -**수치 결과 (상대 오차, T = 100 / 200 / 300).** - -| 충격 | (a) SSJ 기본 | (b) 정제 | (c) 옵션 불일치 | -|---|---|---|---| -| G, 고정 금리 | 1.6e-15 / 1.5e-14 / 9.5e-14 | 5.3e-16 / 9.7e-15 / 1.9e-15 | 1.6e-15 / 1.5e-14 / 9.5e-14 | -| 금리, 고정 금리 | 3.9e-15 / 4.8e-14 / 3.1e-13 | 8.5e-16 / 1.7e-14 / 1.4e-13 | **9.9e-5** / 9.9e-5 / 9.9e-5 | -| G, 금리 준칙 | 5.0e-13 / 2.2e-9 / **5.9e-7** | 2.0e-15 / 3.2e-15 / 3.0e-15 | 5.0e-13 / 2.2e-9 / 5.9e-7 | -| 금리 충격, 금리 준칙 | 4.8e-13 / 2.3e-9 / **3.3e-7** | 3.1e-13 / 1.3e-12 / 9.8e-12 | **9.0e-5** / 9.0e-5 / 9.0e-5 | - -- 허용치 1e-10. (a) 의 금리 준칙 T ≥ 200 과 (c) 의 금리 충격은 `xfail(strict=True)` 입니다. **이 엄격한 예상 실패는 SSJ 1.0.0 을 고정한 회귀 시험에만 해당합니다.** SSJ 가 고쳐지면 XPASS 가 되어 갱신을 알려 줍니다. 다른 풀이기를 위한 일반 규격에 "실패해야 한다"는 규칙을 옮기지 않습니다. -- F1·F2 의 원인과 최소 재현은 14절. -- 왈라스 법칙 잔차: 자산시장 9e-10 이하(정제 풀이, T=300). - ---- - -## 9. T6: HANK − RANK 차분 항등식과 분해 (differencing identity and decomposition) - -**명제.** A = I − M_HA, B = I − M_RA 이면 A^{-1} − B^{-1} = A^{-1}(B − A)B^{-1} (유한 T 리졸벤트 항등식). 같은 정상상태와 같은 정책 경로(dG, dTax, dr)에서 dY_HA − dY_RA = (I−M_HA)^{-1} [ (M_HA − M_RA)(dY_RA − dTax) + (J^r_HA − J^r_RA) dr ]. - -**범위.** 유한 T 의 리졸벤트 항등식과 같은 경로에 대한 차분 분해를 검증합니다. 무한 시계에서의 유일한 집단별 일반균형 귀속을 검증한 것이 아닙니다(1절 주요 발견 5). - -**T6 시험이 각각 확인하는 것 (v0.3 설명).** 행렬 항등식은 가역 행렬이면 언제나 성립하므로 모형이 아니라 선형대수를 확인하는 검사입니다. 오류 주입 시험 v0.1 에서도 아무것도 잡지 않았습니다. 분해 시험은 경로와 야코비안의 일관성을 확인합니다. RA 닫힌 해(Ricardian 승수 1)와 HA 승수 조건(> 1)은 v0.2.1 까지 한 시험이었고 v0.3 부터 별도 시험입니다. cohort 시뮬레이션과 첫 라운드의 T 무관성은 별도 계산 경로지만 같은 가계 코드·정책·분포를 쓰므로 외부 기준이 아닙니다. - -**정확한 조건.** T5 의 고정 실질금리 재정 HANK. RA 는 같은 r, σ, C, A(= B) 의 닫힌 해(β_RA = 1/(1+r)). 충격은 부채 조달 G(0.01 × 0.8^t)와 금리 −0.01 × 0.8^t. T = 150, 300. - -**수치 결과.** -- 항등식 오차: T=150 3.8e-15, T=300 2.2e-14. 조건수: cond(I − M_RA) 31 / 1131, cond(I − M_HA) 294 / 5933. -- 분해 오차: G 충격 9.8e-12 / 1.9e-10, 금리 충격 1.1e-11 / 2.2e-10. -- RANK 승수는 리카도 동등성 때문에 1 이며, T=150 의 1 + 6.4e-6 은 잘린 부채 경로 꼬리(0.92^T) 때문입니다(T=300 에서 1 + 2.5e-11). HANK 충격 시점 승수 1.979, 현재가치 누적 승수 3.383. - -| t | 0 | 1 | 2 | 3 | 4 | 5 | -|---|---|---|---|---|---|---| -| dY_HA − dY_RA | 0.00979 | 0.00932 | 0.00880 | 0.00825 | 0.00770 | 0.00716 | -| 첫 번째 단계 | 0.00316 | 0.00274 | 0.00231 | 0.00190 | 0.00151 | 0.00115 | -| 일반균형 증폭 | 0.00664 | 0.00658 | 0.00648 | 0.00635 | 0.00619 | 0.00601 | - -- 부 사분위별 첫 단계 격차(t=0): Q1 1.05e-3, Q2 8.7e-4, Q3 6.5e-4, Q4 5.9e-4. 합계는 야코비안 총계와 3.2e-6 이내, T=150 과 T=300 에서 1e-8 이내로 같습니다. -- 첫 단계 격차의 현재가치: Q1-Q4 에서 −2.09e-3, −8.5e-4, 3.5e-4, 2.58e-3 (합은 0). 집단별로 (I−M_HA)^{-1} 를 적용한 값은 T 에 따라 커집니다(최저 사분위 충격 시점 T=150: −2.0e-3, T=300: −5.8e-3, T=450: −8.7e-3). 그래서 집단별로는 첫 단계까지만 보고하고 일반균형 증폭은 합계로만 보고합니다. - ---- - -## 10. 자신의 HANK 코드를 연결하는 방법 (plugging in your own code) - -검사 함수(`hank_limits/checks.py`)는 SSJ 에 의존하지 않고 provider 함수만 받습니다. 규약은 `hank_limits/interface.py` 에 있습니다. 야코비안은 T × T 행렬(행 = 결과 시점 t, 열 = 충격 시점 s), 단위는 수준, dr 은 절대 단위(0.01 = 1%p)이고, **시점 규약은 SSJ 와 같아야 합니다.** - -| 검사 | provider 서명 | 반환 | -|---|---|---| -| `check_rank_limit` | `f(eps, T)` | `J={'C': {'Y', 'r'}}`, `ss={'C','A','r','eis'}` | -| `check_tank_limit` | `f(eps, T, dr, chis)` | `M_H, M_S`, `dY={chi: path}`, `lam`, `ss` | -| `check_werning` | `f(b, T, dr, cyclical)` | `dY, r_ss, eis, e_grid, Pi, zeta`, `diag` | -| `check_aiyagari` | `f(sd, rho)` | `r, rho_disc`, 선택 `diag` (잔차) | -| `check_ikc`, `check_differencing` | `f(T, shocks)` | `J`, `ss`, `irfs` | - -v0.3.0: 공급자는 선택 필드 `ss_detail`, `J_A`, `J_C`, `ge_target`, `policy`, `irfs[label]` 의 `dC`·`dB`·`drshock` 도 보고할 수 있습니다. `hank_limits/interface.py` 에 공급자별로 검사가 읽는 모든 필드와, 선택 필드마다 쓰이는 V 수량을 적었습니다. V 검사는 이 값들로 정상상태 잔차, 소득 정규화, 명세 고정을 계산해 `spec=` 로 받은 값과 비교하고(이 세트는 `hank_limits/spec.py` 를 넘깁니다. 다른 보정이면 그 보정의 값을 넘기십시오), 공급자가 실제로 푼 외생 경로를 요청한 경로와 대조합니다. V 수량은 자기 식에 필요한 필드로만 계산하므로, 필드가 없으면 그 수량만 빠지고 이유는 `v0_3` → `skipped` 에 남습니다. V 시험은 유한하지 않거나 음수이거나 임계값을 넘는 값이 하나라도 있으면 실패하고, 실패 없이 값이 빠져 있으면 incomplete 로 skip 하며, 공급자가 그 시험의 수량을 하나도 보고하지 않으면 이유와 함께 skip 합니다(`checks.v03_verdict`). T3 에서는 풀이가 청산을 부과한 시장을 `ge_target` 으로 보고하십시오(`'asset_mkt'` 또는 `'goods_mkt'`). 각 검사는 요청한 경로와 실험의 사본을 공급자에게 넘기고, 비교는 따로 보존한 자기 사본으로 합니다. - -권장 사항: T1·T4 는 단일 유형 가계 블록 단위 시험으로, T2 는 유형 수를 일반화한 형태로, T5·T6 은 자신의 일반균형 풀이기의 회귀 시험으로 쓰십시오. 숫자 허용치는 이 보정의 값이므로 자신의 보정에 맞춰 다시 정하십시오. 시점 규약이나 단위가 다르면 대부분 eps = 0 정확도 시험(T1, 1e-9 수준)에서 바로 드러납니다. - ---- - -## 11. pytest 출력 요약 (actual pytest output) - -아래는 기록한 그대로 둔 v0.2.1 의 출력(41 passed, 2 xfailed)이고, 전체 출력은 `out/pytest_output_v0_2_1.txt` 에 있습니다. T1–T6, D 시험과 그 결과는 그 뒤로 같습니다. 현재 판 v0.3.0 의 출력(114 passed, 4 xfailed: 이 시험들, V 검사, 검사기 회귀 시험)은 `out/pytest_output_v0_3_0.txt` 에 있습니다. - -``` -tests/test_t5_ikc.py::test_ikc_identity_ssj_solver_rule_long_horizon XFAIL -tests/test_t5_ikc.py::test_ikc_identity_with_mismatched_options XFAIL -tests/test_t5_ikc.py::test_walras_law PASSED -... -tests/test_diagnostics_v0_2.py::test_inverse_iteration_report[audit_t4] PASSED -tests/test_diagnostics_v0_2.py::test_inverse_iteration_report[audit_t1_mid] PASSED -tests/test_diagnostics_v0_2.py::test_ssj_forward_iteration_converges_to_it[audit_t4] PASSED -tests/test_diagnostics_v0_2.py::test_ssj_forward_iteration_converges_to_it[audit_t1_mid] PASSED -tests/test_diagnostics_v0_2.py::test_ssj_stopping_rule_is_not_an_accuracy_bound PASSED -... -=========================== short test summary info ============================ -XFAIL tests/test_t5_ikc.py::test_ikc_identity_ssj_solver_rule_long_horizon - Finding F2 (SSJ 1.0.0): partial-pivoting LU on H_U packed in variable-block order shows element growth ~1e7 at T=300 (cond ~2e4); date-interleaved ordering or iterative refinement removes it. -XFAIL tests/test_t5_ikc.py::test_ikc_identity_with_mismatched_options - Finding F1 (SSJ 1.0.0): HetBlock linear impulses recompute Jacobians despite supplied Js (own options, default one-sided h=1e-4); with two-sided Js the r-shock IKC holds only to ~1e-4. -=================== 41 passed, 2 xfailed in 65.36s (0:01:05) =================== -``` - ---- - -## 12. FastHetBlock 분포 감사 (distribution audit, v0.2) - -`scripts/diagnostics_v0_2.py` A, `out/diagnostics_v0_2.json`. 기준은 기본 설정(τ = 1e-10, 최대 20회, 다듬기 5회). - -| 모형 (혼합 속도) | 역반복 횟수 | 음의 질량 | L1 잔차 | τ 1e-12 ~ 1e-6 에서 평균 자산 변화 | SSJ 전진 반복 tol 1e-10: 횟수 / 평균 자산 차이 | tol 1e-12 | -|---|---|---|---|---|---|---| -| T1 PIH eps = 0.1 (느림) | 3 | 0 | 1.2e-16 | ≤ 1.1e-14 | 37,910 / **1.7e-3** | 54,590 / 1.7e-5 | -| T1 PIH eps = 0.0125 (매우 느림) | 4 | 0 | 1.0e-16 | ≤ 1.1e-12 | 600,000 회 안에 정지 안 함 | — | -| T4 sd = 0.2 (빠름) | 3 | 0 | 1.8e-16 | ≤ 1.1e-15 | 3,010 / 1.1e-6 | 3,730 / 1.1e-8 | -| T5 재정 HANK (빠름) | 3 | 0 | 2.0e-16 | ≤ 2.2e-16 | 210 / 4.9e-9 | 250 / 7.5e-11 | - -- 역반복 1회만 하고 다듬기를 생략하면 T1 eps = 0.0125 에서 평균 자산이 6.8e-4 다르고, 2회면 2.0e-8, 3회면 5.4e-13 입니다. 기본 설정은 종료 기준(1e-15)을 만족할 때까지 반복합니다. -- SSJ 전진 반복은 허용치를 조일수록 역반복 해로 수렴합니다. SSJ 의 정지 규칙(연속 반복의 차이)은 느린 혼합에서 정확도 한계가 아니므로, 근사 RA 보정에서 자산 목표로 β 를 맞출 때 주의가 필요합니다. 이것은 SSJ 결함 보고가 아니라 사용상 관찰입니다. -- SSJ 정지 규칙을 그대로 따라 반복 횟수를 세는 복제 루프가 SSJ 결과와 원소 단위로 같음을 확인했습니다. - ---- - -## 13. 범위 밖이지만 함께 둔 것 (related material, not part of the test suite) - -- `scripts/a1_markov_checks_v0_2.py`: 수반(adjoint) 오차 추정 설계 노트(A1)의 첫 점검. 작은 사슬의 전송항 포함 항등식, 실제 가계 사슬의 보존적 섭동에서 1차 예측 remainder 차수(2.00), 거친→세밀 정상 목표 오차의 항등식과 근사 수반 effectivity. **적응 격자 알고리즘을 구현하거나 검증한 것이 아닙니다.** 결과는 별도 설계 노트에 정리합니다. -- Dynare 의 이질적 가계 기능과 대조할 계획이면 **Dynare 7.1 이상**을 씁니다. 7.1 릴리스(2026-05-28)는 7.0 의 `model(heterogeneity=…)` 블록에서 complementarity 조건 부호가 반대로 해석되던 오류와, 이질적 블록에만 나오는 집계 변수를 인식하지 못하던 오류를 고쳤습니다. 7.0 을 기준으로 고정하면 차입제약 시험을 오염시킬 수 있습니다. - ---- - -## 14. F1·F2·F3 최소 재현 (minimal reproductions) - -**F1** (`scripts/repro_F1_v0_2.py`, SSJ 코드만): `sequence_jacobian.hetblocks.hh_sim.hh` 한 블록, T = 300. - -| 비교 | 최대 상대 차이 | -|---|---:| -| `impulse_linear(..., Js={'hh': J2})` vs `J2 @ dr` (J2 양측) | 9.3e-5 | -| 같은 호출 vs `J1 @ dr` (J1 기본 단측) | 0 | -| `Js={'hh': 2 × J2}` 를 넣은 호출 vs `Js={'hh': J2}` 호출 | **0** | -| `impulse_linear(..., Js={'hh': J2}, twosided=True)` vs `J2 @ dr` | 0 | - -**F2** (`scripts/repro_F2_v0_2.py`, SSJ 코드만, SSJ 자신의 전진 반복 정상분포 사용). `np.linalg.solve` 는 `Block.solve_impulse_linear` 와 같은 경로입니다. - -| T | cond₂(H_U) | LU 원소 성장률 | 정규화 역오차 η (SSJ 경로) | 정제 2회 뒤 η | -|---:|---:|---:|---:|---:| -| 100 | 3.6e2 | 1.9e1 | 3.7e-14 | 5.7e-17 | -| 200 | 2.9e3 | 3.7e4 | 1.6e-10 | 7.6e-17 | -| 300 | 2.1e4 | 1.1e7 | 3.1e-8 | 1.0e-16 | - -η = ‖H_U x − b‖_∞ / (‖H_U‖_∞ ‖x‖_∞ + ‖b‖_∞). T = 300 에서 날짜별 재배열 시 성장률 1.02, η 4.3e-16; 블록 순서 반전 시 성장률 1.00, η 9.3e-17. H_U 와 b 는 `out/F2_HU_T300_v0_2.npz` 에 있습니다. - -**F3** (v0.3, SSJ 코드만). `scripts/repro_F3_v0_1.py` 는 y = e Y^(1+ζ) 에 대해 hetinput 미분을 `HetBlock` 과 같은 방식(`CombinedExtendedFunction([income]).differentiable(ss, h, True).diff({'Y': 1})`)으로 부릅니다. 실제로 쓰이는 미분은 전방 차분과 정확히 같고, 해석 미분과의 오차는 O(h) 입니다. `twosided=None` 으로 부르면 저장된 설정이 쓰여 오차가 O(h²) 가 됩니다. - -``` -h=0.01: |used-forward| 0.0e+00 |used-central| 2.4e-03 |used-analytic| 2.4e-03 |twosided=None - analytic| 8.4e-06 -h=0.001: |used-forward| 0.0e+00 |used-central| 2.4e-04 |used-analytic| 2.4e-04 |twosided=None - analytic| 8.4e-08 -h=0.0001: |used-forward| 0.0e+00 |used-central| 2.4e-05 |used-analytic| 2.4e-05 |twosided=None - analytic| 8.4e-10 -``` - -`scripts/repro_F3_hetblock_v0_1.py` 는 SSJ 예제 블록 `hh_sim` 의 `HetBlock.jacobian(..., twosided=True)` 에서 효과를 끝까지 보여 줍니다. (H) 비선형 hetinput y = w^(1+ζ_e) e 에서 w 에 대한 A 의 야코비안, (O) 선형 hetinput 과 hetoutput c² 에서 r 에 대한 C2 의 야코비안입니다. "stored default" 는 `diff` 를 `twosided=None` 으로 부른 경우입니다. 두 경우 모두 차이가 O(h) 입니다. - -``` -H hetinput max|J_original - J_stored_default| / max|J_stored_default|: h=1e-03 5.06e-05 h=1e-04 5.05e-06 h=1e-05 5.05e-07 -O hetoutput max|J_original - J_stored_default| / max|J_stored_default|: h=1e-03 4.22e-04 h=1e-04 4.22e-05 h=1e-05 4.22e-06 -``` - -코드 경로(sequence-jacobian 1.0.0 wheel): `blocks/het_block.py` 400–401행(hetinput 을 `True` 로 미분 가능하게 만듦)과 405행(hetoutput 은 호출자의 `twosided`), `utilities/function.py` 233행(`diff(..., twosided=False)`), `het_block.py` 302행(hetinput: `.diff({input_shocked: 1})`)과 378행(hetoutput: `.diff(..., outputs=...)`)은 모두 `twosided` 없이 부릅니다. `stage_block.py` 422–423행과 287행도 같습니다. GitHub master `eb4ac4c` 도 같은 코드라는 것은 연구 세션의 확인이며, v0.3 환경에서 다시 확인하지는 않았습니다. SSJ 에 [shade-econ/sequence-jacobian#41](https://github.com/shade-econ/sequence-jacobian/issues/41) 로 보고했습니다. - -SSJ 관리자에게 보낸 보고: F1 [shade-econ/sequence-jacobian#39](https://github.com/shade-econ/sequence-jacobian/issues/39)·F2 [shade-econ/sequence-jacobian#40](https://github.com/shade-econ/sequence-jacobian/issues/40) (2026-10-20), F3 [shade-econ/sequence-jacobian#41](https://github.com/shade-econ/sequence-jacobian/issues/41) (2026-10-21 UTC). 제목은 관측된 동작으로 씁니다 ("HetBlock linear impulses recompute Jacobians despite supplied Js"). - ---- - -## 15. 그림과 표 (figures and tables) - -- 그림: `out/t1_rank_limit.png` … `out/t6_decomposition.png` (로그 축, 극한이 오른쪽). -- 기계 판독 표: `out/tables_v0_2/suite_results_long_v0_2.csv` (열: test, limit_param, limit_value, n_a, a_max, fd_h, fd_twosided, window, horizon_T, solver, metric, value), `out/convergence_v0_2.json`, `out/diagnostics_v0_2.json`, `out/aiyagari_table2_v0_2.json`, `out/repro_F1_v0_2.json`, `out/repro_F2_v0_2.json`. - -## 16. 인용 문헌 (references) - -- Aiyagari, S. R. (1994). Uninsured Idiosyncratic Risk and Aggregate Saving. QJE 109(3), 659-684. https://ideas.repec.org/a/oup/qjecon/v109y1994i3p659-684..html -- Auclert, A., Bardóczy, B., Rognlie, M., Straub, L. (2021). Using the Sequence-Space Jacobian to Solve and Estimate Heterogeneous-Agent Models. Econometrica 89(5), 2375-2408. https://doi.org/10.3982/ECTA17434 (Definition 1 과 식 (23)이 기대 벡터를 명시하고, 논문 자체도 직접 계산·자동미분과의 야코비안 정확도 대조를 보고합니다. 이 세트는 그 검증을 경제적 극한으로 보완합니다.) -- Auclert, A., Rognlie, M., Straub, L. (2024). The Intertemporal Keynesian Cross. JPE 132(12), 4068-4121. https://doi.org/10.1086/732531 (NBER WP 25020) -- Bayer, C., Luetticke, R., Weiss, M., Winkelmann, Y. (2026). An Endogenous Gridpoint Method for Distributional Dynamics. JME 158, 103895. https://doi.org/10.1016/j.jmoneco.2026.103895 (복권 방식과 다른 분포 갱신의 비교 대상; 본문 대조는 하지 않음) -- Bilbiie, F. O. (2008). JET 140(1), 162-196. https://ideas.repec.org/a/eee/jetheo/v140y2008i1p162-196.html -- Bilbiie, F. O. (2020). The New Keynesian cross. JME 114, 90-108. https://doi.org/10.1016/j.jmoneco.2019.03.003 -- Dynare Team (2026). Release of Dynare 7.1. https://forum.dynare.org/t/release-of-dynare-7-1/28376 -- Huggett, M. (1993). JEDC 17(5-6), 953-969. https://ideas.repec.org/a/eee/dyncon/v17y1993i5-6p953-969.html -- Santos, M. S. (2000). Accuracy of Numerical Solutions Using the Euler Equation Residuals. Econometrica 68(6), 1377-1402. https://doi.org/10.1111/1468-0262.00165 (T4 Euler 잔차의 배경; 제약 가계·분포·GE 목표 전체에 대한 보장으로 인용하지 않음) -- Tauchen, G. (1986). Finite State Markov-Chain Approximations to Univariate and Vector Autoregressions. Economics Letters 20(2), 177-181. -- Werning, I. (2015). Incomplete Markets and Aggregate Demand. NBER WP 21448. https://www.nber.org/papers/w21448 -- Young, E. R. (2010). Solving the Incomplete Markets Model with Aggregate Uncertainty Using the Krusell-Smith Algorithm and Non-Stochastic Simulations. JEDC 34(1), 36-41. https://doi.org/10.1016/j.jedc.2008.11.010 -- Econ-ARK, Aiyagari (1994) replication. https://econ-ark.org/materials/aiyagari1994qje/ -- sequence-jacobian: https://github.com/shade-econ/sequence-jacobian , https://pypi.org/project/sequence-jacobian/1.0.0/ - -## 17. AI 사용 공개 (AI usage disclosure) - -이 프로젝트에는 생성형 AI 를 폭넓게 사용했습니다. Claude (Anthropic; Claude Opus 5.5, 2026년 10월)가 저자의 지시에 따라 코드·시험·수치 실험·문서 대부분을 작성하고 닫힌 해 기준값을 유도·점검했습니다. GPT 6.1 Sol (OpenAI)이 코드와 문서를 두 차례 검토했고, 그에 따른 변경은 이 README 앞부분에 정리되어 있습니다(이 문서의 "검토자"는 이 모형입니다). 저자는 연구 질문과 포함할 시험을 정하고, 작업을 지휘·검토했으며, 어떤 결과를 어떤 표현으로 보고할지 결정했고, 제출물 전체의 정확성·독창성·라이선스에 책임을 집니다. - -## 18. 라이선스 (licence) - -MIT. `LICENSE` 파일을 참조하십시오. diff --git a/docs/NUMERICAL_AUDIT_v0_3_0.md b/docs/NUMERICAL_AUDIT_v0_3_0.md new file mode 100644 index 0000000..956cae2 --- /dev/null +++ b/docs/NUMERICAL_AUDIT_v0_3_0.md @@ -0,0 +1,56 @@ +# Numerical audit before v0.3.0 (2026-10-28) + +An independent audit (GPT, run on the author's computer) of the numerical safeguards in `FastHetBlock` (`hank_limits/core.py`) and of the calibration paths that use them, carried out before the v0.3.0 release. The judgement criteria were written and hashed before any numerical output was read (SHA-256 `a5699008e2a6637cd9307f57174fc5b4bdb9af5a7d685a6c6aa43cfb8f3bb2d5`, fixed 2026-10-28T03:37:32Z). The audit worked on an archive of commit `35ea89c`; the full audit record (criteria, 8,381 diagnostic rows, sensitivity copies and diffs, file hashes) is kept by the author and is not part of this repository. + +## What was audited + +| Lines of `core.py` (at `35ea89c`) | Treatment | +|---|---| +| 138–140 | Policies clipped to the ends of the asset grid; lottery weights clipped to [0, 1] | +| 178–183 | Negative mass of the inverse iterate recorded, then the absolute value normalised | +| 189–202 | Residual of the clipped chain recorded after 5 polishing steps | +| 80–101 | SSJ's own unclipped forward residual and off-grid policy mass recorded separately | + +Variants run on copies only: (a) zero truncation instead of the absolute value, (b) signed normalisation, (c) no weight clip, and (c2) neither policy nor weight clip (an extrapolating, non-stochastic transition, used as a probe and not as an alternative solver). + +## Findings + +1. **Absolute value and weight clip: no effect.** In 967 inverse-iteration solves the iterate never had negative mass before the absolute value. Variants (a), (b) and (c) gave 114 passed, 4 xfailed, like the baseline, and left 2,064 summary values unchanged (the only differences, in (b), were 8 T5 auxiliary residuals of at most 1.7e-16, which the uninstrumented original showed too). A further 66,860 values from extra settings (T1/T2 at 9,600 points, T3 at 800 points and on the goods-market target, T4 at 2,000 points and upper limit 100) were also unchanged. +2. **Final distributions: boundary mass is negligible.** Over 68 final distributions the mass above the grid was at most 6.1e-28, below it 0. +3. **Root-search trial states are different.** A T3 trial state had 0.58 of its mass at clipped policies and an SSJ forward residual of 19.6 while its clipped-chain residual was 5.6e-17. Trial-state and final-state diagnostics, and clipped-chain and SSJ residuals, must therefore be kept apart. +4. **Small upper-limit study (T4, upper limit 100, 1,000 points).** Clipped mass 7.6e-13: below the test's 1e-12 mass threshold, above the audit's noise screen. +5. **PIH calibration path dependence (the reason for the code change).** The calibration of β (T1, T2 savers) warm-started each root-search trial from the previous trial's backward-iteration solution. SSJ stops the backward iteration on the change between iterates, which is not an error bound, so the calibrated state depended on the search path. With the clipped transition unchanged, moving the root bracket changed T2's displayed IRF error from 1.05e-3 to 1.03e-3 and its fitted order from 1.79 to 1.80. All tests still passed, so the suite did not detect this. Tightening the backward tolerance to 1e-13 or 1e-14 did not converge within 100,000 iterations. + +The overall verdict was "minimal code change needed before release", for finding 5, not for the absolute value or the clips. + +## Change in v0.3.0 + +`models.pih_household` clears the cached backward seed (`_va_cache`) before every calibration trial and before the final recomputation, so each solve starts from the same cold seed. In the audit's copy the two brackets then gave the same T2 values (1.04e-3, order 1.79) and the full suite gave 114 passed, 4 xfailed. + +Effect on the outputs of this repository, regenerated with the same package versions as recorded in `out/convergence_v0_2.json` (Python 3.13.16, sequence-jacobian 1.0.0, numpy 2.5.3, scipy 1.18.1, numba 0.68.0): + +| Quantity | Before | v0.3.0 | +|---|---|---| +| T2 IRF error vs (1−λ)/(1−λχ) × RANK, eps = 0.0125 | 1.0500e-3 | 1.0415e-3 | +| T2 IRF error, eps = 0.025 | 3.456e-3 | 3.455e-3 | +| T2 grid study, eps = 0.0125: 2,400 / 4,800 / 9,600 points | 1.498e-3 / 1.050e-3 / 8.698e-4 | 1.494e-3 / 1.041e-3 / 8.647e-4 | +| T2 IRF fitted order (χ = 1.5) | 1.7908 | 1.7932 | +| T1 asset target, max relative residual (V4 `spec_A`) | 5.7e-8 | 7.1e-11 | +| T2 asset / goods market, max residual (V2) | 2.2e-7 / 6.6e-9 | 2.0e-8 / 6.1e-10 | +| T1 errors, κ, orders, windows, difference steps | — | changed by less than 1e-7 relative | +| T3–T6 | — | unchanged | + +The smaller calibration residuals indicate that the warm start had also left the calibrated state further from its target than the root-search tolerance implies. + +`out/convergence_v0_2.json` had last been generated on 2026-10-19 with the v0.2 code. Regenerated now, it also carries the `v0_3` block that the v0.3 checks attach to each result (T1–T5); the rerun of `35ea89c` described next produces the same blocks, so they are not an effect of the change. + +Before the change, a rerun of `35ea89c` in the environment above reproduced the committed T1–T4 and T6 numbers exactly and the T5 residuals to within 3e-9 (relative), so the differences in the table are due to the change. + +## Not changed, and limits + +- The Werning (T3), Aiyagari (T4) and fiscal HANK (T5) calibrations still warm-start their root searches. The audit re-solved T3 on a narrow bracket and its displayed values were unchanged; T4 and T5 were not bracket-tested. +- Figures in `out/*.png` were not redrawn (changes below plot resolution). +- The audit also recommended a regression test that compares two calibration brackets for T2; it is not part of v0.3.0. The comment in `models.werning_model` that said trial savers stay inside the grid was corrected. +- The mutation tests (`docs/MUTATION_v0_1.md`, `docs/MUTATION_v0_2.md`, `docs/CHECKS_v0_3_0_AMENDMENT.md`) were run before this change and were not re-run. +- Deferred to a later version: a general convergence guarantee for warm starts, state-wise stopping rules and error bounds, a common standard for provider diagnostics, wider grid and initial-value stability checks, and a separate solver for non-stochastic extrapolated transitions. +- None of these checks is a general error bound. diff --git a/hank_limits/models.py b/hank_limits/models.py index b823e48..93a89cf 100644 --- a/hank_limits/models.py +++ b/hank_limits/models.py @@ -119,6 +119,9 @@ def pih_household(eps, **kw): kappa = 0.0 else: def resid(lk): + # cold backward seed at every trial: the warm start made the calibrated state + # depend on the root-search path (v0.3.0 numerical audit) + blk.__dict__.pop('_va_cache', None) ss = blk.steady_state({**calib, 'beta': beta_ra * (1 - np.exp(lk))}, **SS_OPTS) return ss['A'] - A_t lo, hi = np.log(1e-3 * eps ** 2), np.log(10 * eps ** 2) @@ -129,6 +132,7 @@ def resid(lk): lk = brentq(resid, lo, hi, xtol=1e-13, rtol=1e-13) kappa = float(np.exp(lk)) calib['beta'] = beta_ra * (1 - kappa) + blk.__dict__.pop('_va_cache', None) # final state from the same cold seed ss = blk.steady_state(calib, **SS_OPTS) diag = dict(blk._ss_diag) diag['mass_constrained'] = mass_at_constraint(ss, a_grid, blk.name) @@ -292,7 +296,8 @@ def werning_model(b, cyclical=False, **kw): f = lambda r: blk.steady_state({**calib, 'r': r}, **opts)['A'] / b r_star = p['r_star'] # A(r) < 0 for r < r* (nobody wants to save); r(b) - r* is O(b) (about 2.1 b here), so - # [r* - b/2, r* + 5b] brackets the root while keeping trial savers inside the b-scaled grid + # [r* - b/2, r* + 5b] brackets the root; some trial states can have off-grid policies, + # so trial-state and final-state diagnostics must be distinguished (v0.3.0 numerical audit) lo, hi = r_star - 0.5 * b, min(r_star + 5 * b, 1 / prim['beta'] - 1 - 1e-6) r_ss = brentq(f, lo, hi, xtol=1e-15) model = sj.create_model([blk, huggett_clearing], name='Huggett-vanishing-liquidity') diff --git a/out/convergence_v0_2.json b/out/convergence_v0_2.json index b348796..3fea683 100644 --- a/out/convergence_v0_2.json +++ b/out/convergence_v0_2.json @@ -1,7 +1,7 @@ { "meta": { "version": "0.2.0", - "generated_utc": "2026-10-19T20:26:41+00:00", + "generated_utc": "2026-10-28T05:37:17+00:00", "python": "3.13.16", "sequence_jacobian": "1.0.0", "numpy": "2.5.3", @@ -99,7 +99,7 @@ } }, "error_metric": "relative max-abs: max|x - ref| / max|ref| over all entries", - "total_runtime_s": 111.68099451065063 + "total_runtime_s": 159.21694445610046 }, "T1": { "eps": [ @@ -112,51 +112,51 @@ ], "err_M": [ 1.6536251969017066e-09, - 0.20847432667883714, - 0.05516257549065518, - 0.013985259824235046, - 0.003601547232611845, - 0.0009527900910497443 + 0.2084743266887109, + 0.05516257549781499, + 0.01398525984373735, + 0.0036015472212443255, + 0.0009527900769080934 ], "err_Jr": [ 2.913377155580459e-09, - 0.11165466894401481, - 0.026302572684358504, - 0.006442906342273105, - 0.0015980239678753487, - 0.0003956887863158094 + 0.11165466895059169, + 0.02630257269183431, + 0.006442906347443165, + 0.0015980239605961008, + 0.00039568877844683835 ], "err_M_fro": [ 1.8291576409057081e-09, - 0.11677731041968101, - 0.02954024420547458, - 0.007387718297699027, - 0.001889263819875974, - 0.0004961195184662936 + 0.11677731043607745, + 0.02954024415008454, + 0.0073877183651803735, + 0.0018892638241682622, + 0.000496119487828637 ], "err_Jr_fro": [ 2.5277289502294723e-09, - 0.05707788245291026, - 0.012991526175636495, - 0.0031638472272976607, - 0.0007805365619418063, - 0.00019178377251128455 + 0.0570778824570077, + 0.012991526180197265, + 0.0031638472299900136, + 0.0007805365574166588, + 0.00019178376798818252 ], "kappa": [ 0.0, - 0.0011390104101932264, - 0.0002738673601242052, - 6.785797856327103e-05, - 1.708112261981114e-05, - 4.345225634277017e-06 + 0.0011390104102615608, + 0.00027386736016703743, + 6.785797855810553e-05, + 1.7081122252233332e-05, + 4.345225255330264e-06 ], "mass_constrained": [ 0.0, - 2.8758988889669682e-06, - 8.540114414786742e-07, - 2.7178543279120503e-07, - 1.2673328445401908e-07, - 9.829642339391762e-08 + 2.8758988892359325e-06, + 8.540114414491709e-07, + 2.71785433366305e-07, + 1.2673328352967254e-07, + 9.829642060968911e-08 ], "argmax_err_M": [ [ @@ -187,99 +187,321 @@ "err_M_by_T": { "50": [ 8.410562784416657e-10, - 0.05080844318199357, - 0.01187319217781944, - 0.0028837226818199564, - 0.0007354056883612714, - 0.00019625109548770725 + 0.05080844318880496, + 0.011873192180838238, + 0.002883722682126089, + 0.0007354056879154139, + 0.00019625108846798333 ], "100": [ 9.619359904976259e-10, - 0.09234060570548107, - 0.022716636925689808, - 0.005613476773124019, - 0.0014348227233163726, - 0.00037897553743878476 + 0.09234060571020695, + 0.022716636928623437, + 0.005613476780938496, + 0.0014348227187985965, + 0.0003789755317193494 ] }, "err_Jr_by_T": { "50": [ 3.5183681859543607e-09, - 0.0229919963660679, - 0.005767938566229665, - 0.0014347898204935157, - 0.00036225109978065754, - 9.249333374492274e-05 + 0.02299199636804947, + 0.005767938565382432, + 0.0014347898254708476, + 0.0003622511009346886, + 9.24933351370389e-05 ], "100": [ 3.0272917824079073e-09, - 0.03149492772315264, - 0.006863432720338505, - 0.001670183215284018, - 0.00040377834606544104, - 9.601835757912446e-05 + 0.03149492772551914, + 0.006863432724241965, + 0.001670183214707008, + 0.0004037783433272635, + 9.601835793135353e-05 ] }, "ssj_forward_resid": [ 4.56282715811501e-11, 3.2526065174565133e-19, - 2.710505431213761e-19, - 2.710505431213761e-19, + 2.168404344971009e-19, + 3.2526065174565133e-19, 2.168404344971009e-19, 2.168404344971009e-19 ], "rates_err_M": [ - 1.9181080070753282, - 1.9797827594697597, - 1.9572183272799175, - 1.9183865102207593 + 1.918108006956403, + 1.9797827576451899, + 1.957218333845302, + 1.9183865270801936 ], - "fitted_rate_err_M": 1.9483992294841195, + "fitted_rate_err_M": 1.9483992342544667, "rates_err_Jr": [ - 2.085767756894966, - 2.029420389857336, - 2.011422576470453, - 2.0138509610900353 + 2.085767756569899, + 2.0294203891097045, + 2.0114225841998334, + 2.0138509832088767 ], - "fitted_rate_err_Jr": 2.032176633495336, + "fitted_rate_err_Jr": 2.0321766399486156, "err_M_by_window": { "50": [ 8.410562784416657e-10, - 0.05080844318199357, - 0.01187319217781944, - 0.0028837226818199564, - 0.0007354056883612714, - 0.00019625109548770725 + 0.05080844318880496, + 0.011873192180838238, + 0.002883722682126089, + 0.0007354056879154139, + 0.00019625108846798333 ], "100": [ 9.619359904976259e-10, - 0.09234060570548107, - 0.022716636925689808, - 0.005613476773124019, - 0.0014348227233163726, - 0.00037897553743878476 + 0.09234060571020695, + 0.022716636928623437, + 0.005613476780938496, + 0.0014348227187985965, + 0.0003789755317193494 ] }, "err_Jr_by_window": { "50": [ 3.5183681859543607e-09, - 0.0229919963660679, - 0.005767938566229665, - 0.0014347898204935157, - 0.00036225109978065754, - 9.249333374492274e-05 + 0.02299199636804947, + 0.005767938565382432, + 0.0014347898254708476, + 0.0003622511009346886, + 9.24933351370389e-05 ], "100": [ 3.0272917824079073e-09, - 0.03149492772315264, - 0.006863432720338505, - 0.001670183215284018, - 0.00040377834606544104, - 9.601835757912446e-05 + 0.03149492772551914, + 0.006863432724241965, + 0.001670183214707008, + 0.0004037783433272635, + 9.601835793135353e-05 ] }, + "v0_3": { + "skipped": [], + "settings": [ + "eps=0", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "at": { + "hh_budget": [ + "eps=0", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "pi_row_sum_err": [ + "eps=0", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "pi_negative": [ + "eps=0", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "mean_e_err": [ + "eps=0", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "agg_income_err": [ + "eps=0", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "spec_r": [ + "eps=0", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "spec_eis": [ + "eps=0", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "spec_A": [ + "eps=0", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "spec_a_min": [ + "eps=0", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ] + }, + "hh_budget": [ + 3.095687957175933e-12, + 2.896233977277991e-16, + 0.0, + 1.9308226515226562e-16, + 4.827056628804062e-16, + 2.8962339772813733e-16 + ], + "pi_row_sum_err": [ + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16 + ], + "pi_negative": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "mean_e_err": [ + 0.0, + 1.6269208202857044e-12, + 4.169997680492088e-13, + 1.1080025785759062e-13, + 3.3861802251067274e-14, + 1.4765966227514582e-14 + ], + "agg_income_err": [ + 0.0, + 1.6269208202857044e-12, + 4.169997680492088e-13, + 1.1080025785759062e-13, + 3.3861802251067274e-14, + 1.4765966227514582e-14 + ], + "spec_r": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "spec_eis": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "spec_A": [ + 6.812328479099961e-13, + 2.4148150146174886e-11, + 7.136158330922626e-11, + 1.822542117224657e-12, + 1.7582379996383678e-12, + 4.4476422544903474e-12 + ], + "spec_a_min": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "status": { + "hh_budget": { + "state": "complete", + "n_expected": 6, + "n_reported": 6, + "missing": [], + "nonfinite": [] + }, + "pi_row_sum_err": { + "state": "complete", + "n_expected": 6, + "n_reported": 6, + "missing": [], + "nonfinite": [] + }, + "pi_negative": { + "state": "complete", + "n_expected": 6, + "n_reported": 6, + "missing": [], + "nonfinite": [] + }, + "mean_e_err": { + "state": "complete", + "n_expected": 6, + "n_reported": 6, + "missing": [], + "nonfinite": [] + }, + "agg_income_err": { + "state": "complete", + "n_expected": 6, + "n_reported": 6, + "missing": [], + "nonfinite": [] + }, + "spec_r": { + "state": "complete", + "n_expected": 6, + "n_reported": 6, + "missing": [], + "nonfinite": [] + }, + "spec_eis": { + "state": "complete", + "n_expected": 6, + "n_reported": 6, + "missing": [], + "nonfinite": [] + }, + "spec_A": { + "state": "complete", + "n_expected": 6, + "n_reported": 6, + "missing": [], + "nonfinite": [] + }, + "spec_a_min": { + "state": "complete", + "n_expected": 6, + "n_reported": 6, + "missing": [], + "nonfinite": [] + } + } + }, "T": 200, - "runtime_s": 13.562121152877808 + "runtime_s": 22.084510564804077 }, "T2": { "eps": [ @@ -297,49 +519,49 @@ 3.8757885789664215e-13 ], "err_MS_vs_MRA": [ - 0.2753785607572346, - 0.07290358791029576, - 0.018495803864692142, - 0.004764045569629273, - 0.0012605254872211525 + 0.27537856076939554, + 0.0729035879006383, + 0.01849580388480969, + 0.00476404554823014, + 0.0012605254615861942 ], "err_Magg_vs_TANK": [ - 0.5563307287313658, - 0.3202719405685403, - 0.0011770057004804107, - 0.00030316653624913766, - 8.021525827770642e-05 + 0.5563307287314349, + 0.320271940569938, + 0.0011770057017606226, + 0.0003031665348873735, + 8.021525664640064e-05 ], "err_Magg_chi_vs_TANK": { "1.0": [ - 0.5563307287313658, - 0.3202719405685403, - 0.0011770057004804107, - 0.00030316653624913766, - 8.021525827770642e-05 + 0.5563307287314349, + 0.320271940569938, + 0.0011770057017606226, + 0.0003031665348873735, + 8.021525664640064e-05 ], "1.5": [ - 0.5745983708724459, - 0.3304878893160343, - 0.0006357932578487907, - 0.00016376406645600845, - 4.333056362322375e-05 + 0.5745983708724343, + 0.3304878893167894, + 0.0006357932585403283, + 0.0001637640657204121, + 4.3330562742020944e-05 ] }, "err_IRF_vs_TANK": { "1.0": [ - 0.11857003441056169, - 0.04385650089950475, - 0.012437367750815456, - 0.003456459211569382, - 0.0010499787437950078 + 0.118570053551395, + 0.04385642531250914, + 0.012437789410473042, + 0.0034545483957188414, + 0.0010414754160448943 ], "1.5": [ - 0.13123016650498037, - 0.05440933581904722, - 0.012437367742744067, - 0.0034564592148616257, - 0.0010499787363232027 + 0.13123018494575056, + 0.0544092608937404, + 0.012437789402403221, + 0.0034545483990096044, + 0.0010414754085750163 ] }, "unconstrained_H": [ @@ -357,21 +579,21 @@ 5.494386450629286e-26 ], "kappa_S": [ - 0.001563630228816641, - 0.00036464563383434794, - 8.987562638397305e-05, - 2.2598587343750963e-05, - 5.747247138349965e-06 + 0.0015636302289265228, + 0.00036464563352950916, + 8.987562641163886e-05, + 2.2598587010102493e-05, + 5.7472467949766204e-06 ], "mass_constrained_S": [ - 5.357813730909007e-06, - 1.500393970874173e-06, - 4.7381547399339186e-07, - 2.1606336279609287e-07, - 1.6134152927867768e-07 + 5.3578137314142395e-06, + 1.5003939701458525e-06, + 4.73815474779901e-07, + 2.160633609538155e-07, + 1.6134152380552289e-07 ], "ge_target_resid": [ - 6.938893903907228e-18, + 1.0408340855860843e-17, 6.938893903907228e-18, 3.469446951953614e-18, 6.938893903907228e-18, @@ -386,47 +608,460 @@ 1.0 ], "1.5": [ - 1.1503206478832526, - 1.2088770297195435, - 1.272727272717126, - 1.272727272731448, - 1.2727272727177728 + 1.1503206490687399, + 1.2088770260729613, + 1.272727272717128, + 1.2727272727314463, + 1.2727272727177752 ] }, "rates_err_MS_vs_MRA": [ - 1.9173545218215133, - 1.978791813507144, - 1.9569388860183479, - 1.9181619240168784 + 1.917354522076336, + 1.9787918117468388, + 1.9569388940678365, + 1.9181619468762736 ], - "fitted_rate_err_MS_vs_MRA": 1.9478224990253252, + "fitted_rate_err_MS_vs_MRA": 1.9478225055349239, "rates_err_Magg_vs_TANK": [ - 0.7966453872391364, - 8.088032289417363, - 1.9569388860183399, - 1.9181619240169476 + 0.7966453872330193, + 8.088032287854462, + 1.9569388940678394, + 1.9181619468761615 ], "rates_err_IRF_chi1.0": [ - 1.434876835141071, - 1.818109525610741, - 1.8473143791202447, - 1.7189347793503205 + 1.4348795545336475, + 1.8180581287652624, + 1.8481610673838882, + 1.7298683380413038 ], - "fitted_rate_err_IRF_chi1.0": 1.7303894943175735, + "fitted_rate_err_IRF_chi1.0": 1.7328153373597341, "rates_err_IRF_chi1.5": [ - 1.2701732748019166, - 2.1291730330452947, - 1.8473143768098363, - 1.718934790990906 + 1.2701754642220446, + 2.1291221360077954, + 1.8481610650735516, + 1.7298683497631844 ], - "fitted_rate_err_IRF_chi1.5": 1.790767836115103, + "fitted_rate_err_IRF_chi1.5": 1.793193723121449, "amplification_factor": { "1.0": 1.0, "1.5": 1.2727272727272725 }, "lam": 0.3, + "v0_3": { + "skipped": [], + "settings": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "at": { + "ss_goods": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "ss_assets": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "incidence_err": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "pi_row_sum_err_H": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "pi_negative_H": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "mean_e_err_H": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "agg_income_err_H": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "hh_budget_H": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "pi_row_sum_err_S": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "pi_negative_S": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "mean_e_err_S": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "agg_income_err_S": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "hh_budget_S": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "spec_lam": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "spec_beta_H": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "spec_r": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "spec_eis": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "spec_a_min_H": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ], + "spec_a_min_S": [ + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025", + "eps=0.0125" + ] + }, + "ss_goods": [ + 9.117151478221786e-13, + 7.296052650929141e-12, + 3.41534578396363e-11, + 1.5081125237514925e-10, + 6.120369766549061e-10 + ], + "ss_assets": [ + 2.3823679140555498e-11, + 2.570970996859656e-10, + 1.1421418848563522e-09, + 5.028161188236107e-09, + 2.0401716145589934e-08 + ], + "incidence_err": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "pi_row_sum_err_H": [ + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16 + ], + "pi_negative_H": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "mean_e_err_H": [ + 1.6269208202857044e-12, + 4.169997680492088e-13, + 1.1080025785759062e-13, + 3.3861802251067274e-14, + 1.4765966227514582e-14 + ], + "agg_income_err_H": [ + 1.6269208202857044e-12, + 4.169997680492088e-13, + 1.1080025785759062e-13, + 3.3861802251067274e-14, + 1.4765966227514582e-14 + ], + "hh_budget_H": [ + 4.3909870612016026e-16, + 1.1095123761341708e-16, + 0.0, + 1.110223024625194e-16, + 2.2204460492503456e-16 + ], + "pi_row_sum_err_S": [ + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16 + ], + "pi_negative_S": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "mean_e_err_S": [ + 1.6269208202857044e-12, + 4.169997680492088e-13, + 1.1080025785759062e-13, + 3.3861802251067274e-14, + 1.4765966227514582e-14 + ], + "agg_income_err_S": [ + 1.6269208202857044e-12, + 4.169997680492088e-13, + 1.1080025785759062e-13, + 3.3861802251067274e-14, + 1.4765966227514582e-14 + ], + "hh_budget_S": [ + 4.462628928977737e-16, + 2.221055734014201e-16, + 1.1102230245709352e-16, + 4.440892097543795e-16, + 3.3306690709633166e-16 + ], + "spec_lam": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "spec_beta_H": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "spec_r": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "spec_eis": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "spec_a_min_H": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "spec_a_min_S": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "status": { + "ss_goods": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "ss_assets": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "incidence_err": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "pi_row_sum_err_H": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "pi_negative_H": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "mean_e_err_H": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "agg_income_err_H": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "hh_budget_H": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "pi_row_sum_err_S": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "pi_negative_S": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "mean_e_err_S": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "agg_income_err_S": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "hh_budget_S": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "spec_lam": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "spec_beta_H": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "spec_r": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "spec_eis": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "spec_a_min_H": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "spec_a_min_S": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + } + } + }, "T": 200, - "runtime_s": 19.498727083206177 + "runtime_s": 27.226192474365234 }, "T3": { "b": [ @@ -529,109 +1164,860 @@ ], "fitted_rate_err_cyc_vs_ZL_asymptotic": 0.992639222872564, "asymptotic_from": 0.001, - "zero_liquidity_cyc": { - "h": 2, - "delta": 1.0174472541512878, - "elasticity": 0.6138139116226902, - "zbar": -0.1712087043925538 - }, - "T": 150, - "runtime_s": 2.9473652839660645 - }, - "T4": { - "eps": [ - 0.4, - 0.2, - 0.1, - 0.05, - 0.025 - ], - "r": [ - 0.028820827876066397, - 0.038119459083392405, - 0.040742202266443935, - 0.04142899752617623, - 0.041605005951257365 - ], - "gap": [ - 0.012845838790600344, - 0.0035472075832743352, - 0.0009244644002228061, - 0.00023766914049051097, - 6.166071540937568e-05 - ], - "mass_constrained": [ - 0.04345951913453648, - 0.038067802683195845, - 0.024885880772987336, - 0.014378680677786011, - 0.007991775206102784 - ], - "capital_market_resid_rel": [ - 1.3433100829457795e-12, - 4.625909089074258e-12, - 7.38468966507848e-12, - 8.708253865527427e-11, - 5.177785391100039e-10 - ], - "euler_err_mean_weighted": [ - 4.331310700336127e-08, - 1.1358778036172749e-08, - 2.814736974970446e-09, - 5.694700996372851e-10, - 1.6447658823519304e-10 - ], - "euler_err_max_with_mass": [ - 2.499522011589761e-06, - 5.341546605031056e-07, - 2.2559304224678556e-07, - 1.1564929414120684e-07, - 2.8264381057852006e-08 - ], - "kkt_violation_max_with_mass": [ - 0.0, - 0.0, - 0.0, - 0.0, - 0.0 - ], - "mass_top_5pts": [ - 7.129672789241265e-33, - 6.143992096735971e-31, - 4.414446871213049e-29, - 3.4520490763648906e-35, - 1.4704400281400278e-32 - ], - "mass_policy_off_grid": [ - 0.0, - 3.8074446400389836e-32, - 3.0501642359434153e-30, - 2.9432617560915373e-36, - 1.0070150247389265e-33 - ], - "rho_disc": 0.04166666666666674, - "gap_over_eps2": [ - 0.08028649244125213, - 0.08868018958185836, - 0.0924464400222806, - 0.09506765619620437, - 0.09865714465500107 - ], - "rates_gap": [ - 1.8565454318589147, - 1.9399940898089396, - 1.9596631720267887, - 1.9465310592764802 - ], - "fitted_rate_gap": 1.9305124767777984, - "r_by_sd": { - "sd": [ - 0.1, - 0.2, - 0.3, - 0.4 + "v0_3": { + "skipped": [], + "settings": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" ], - "rho": 0.9, + "at": { + "ge_target_resid_reported_acyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "ge_target_resid_direct_acyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "ss_assets_acyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "ss_goods_acyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "hh_budget_acyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "pi_row_sum_err_acyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "pi_negative_acyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "mean_e_err_acyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "agg_income_err_acyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "spec_eis_acyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "spec_a_min_acyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "spec_rstar_acyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "spec_zeta_acyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "ge_target_resid_reported_cyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "ge_target_resid_direct_cyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "ss_assets_cyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "ss_goods_cyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "hh_budget_cyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "pi_row_sum_err_cyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "pi_negative_cyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "mean_e_err_cyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "agg_income_err_cyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "incidence_err_cyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "spec_eis_cyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "spec_a_min_cyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "spec_rstar_cyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "spec_zeta_low_cyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ] + }, + "ge_target_resid_reported_acyc": [ + 3.469446951953614e-17, + 2.891205793294679e-17, + 8.673617379884035e-17, + 7.228014483236697e-16, + 8.673617379884035e-16, + 2.8912057932946786e-15, + 1.0842021724855044e-14 + ], + "ge_target_resid_direct_acyc": [ + 3.469446951953614e-17, + 2.891205793294679e-17, + 8.673617379884035e-17, + 7.228014483236697e-16, + 8.673617379884035e-16, + 2.8912057932946786e-15, + 1.0842021724855044e-14 + ], + "ss_assets_acyc": [ + 1.8068796459047576e-10, + 3.6872703964204355e-11, + 1.4177244447854953e-11, + 2.3817030523713236e-12, + 3.209238430557093e-14, + 2.848470157662542e-12, + 4.727392522579921e-12 + ], + "ss_goods_acyc": [ + 2.353228722995482e-12, + 3.5409453147394743e-12, + 3.5857983249343306e-12, + 3.590017172427906e-12, + 3.5899061501254437e-12, + 3.5904612616377563e-12, + 3.5901281947303687e-12 + ], + "hh_budget_acyc": [ + 4.440892098511077e-16, + 3.3306690738872636e-16, + 7.771561172403963e-16, + 4.440892098516569e-16, + 6.661338147774853e-16, + 1.1102230246291428e-16, + 4.44089209851657e-16 + ], + "pi_row_sum_err_acyc": [ + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16 + ], + "pi_negative_acyc": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "mean_e_err_acyc": [ + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12 + ], + "agg_income_err_acyc": [ + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12 + ], + "spec_eis_acyc": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "spec_a_min_acyc": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "spec_rstar_acyc": [ + 2.1337098754514727e-16, + 2.1337098754514727e-16, + 2.1337098754514727e-16, + 2.1337098754514727e-16, + 2.1337098754514727e-16, + 2.1337098754514727e-16, + 2.1337098754514727e-16 + ], + "spec_zeta_acyc": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "ge_target": { + "acyc": [ + "asset_mkt", + "asset_mkt", + "asset_mkt", + "asset_mkt", + "asset_mkt", + "asset_mkt", + "asset_mkt" + ], + "cyc": [ + "asset_mkt", + "asset_mkt", + "asset_mkt", + "asset_mkt", + "asset_mkt", + "asset_mkt", + "asset_mkt" + ] + }, + "diagnostics": { + "goods_mkt_resid_direct_acyc": [ + 2.5311003293282397e-12, + 4.2506507573018366e-12, + 3.000637932570882e-12, + 2.156709417537132e-11, + 2.0505472320131446e-09, + 2.3545401739433206e-08, + 1.355765152921684e-07 + ], + "at": { + "goods_mkt_resid_direct_acyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ], + "goods_mkt_resid_direct_cyc": [ + "b=0.1", + "b=0.03", + "b=0.01", + "b=0.003", + "b=0.001", + "b=0.0003", + "b=0.0001" + ] + }, + "goods_mkt_resid_direct_cyc": [ + 2.5204327435551788e-06, + 2.3964118875628255e-06, + 2.4023464197976685e-06, + 2.3669228095141623e-06, + 2.4002772026909813e-06, + 2.384183730071617e-06, + 2.481622546346429e-06 + ] + }, + "ge_target_resid_reported_cyc": [ + 5.204170427930421e-17, + 1.1564823173178715e-16, + 1.951563910473908e-16, + 5.782411586589357e-16, + 2.168404344971009e-15, + 5.059610138265688e-15, + 1.5178830414797062e-14 + ], + "ge_target_resid_direct_cyc": [ + 5.204170427930421e-17, + 1.1564823173178715e-16, + 1.951563910473908e-16, + 5.782411586589357e-16, + 2.168404344971009e-15, + 5.059610138265688e-15, + 1.5178830414797062e-14 + ], + "ss_assets_cyc": [ + 1.8068796459047576e-10, + 3.6872703964204355e-11, + 1.4177244447854953e-11, + 2.3817030523713236e-12, + 3.209238430557093e-14, + 2.848470157662542e-12, + 4.727392522579921e-12 + ], + "ss_goods_cyc": [ + 2.353228722995482e-12, + 3.5409453147394743e-12, + 3.5857983249343306e-12, + 3.590017172427906e-12, + 3.5899061501254437e-12, + 3.5904612616377563e-12, + 3.5901281947303687e-12 + ], + "hh_budget_cyc": [ + 4.440892098511077e-16, + 3.3306690738872636e-16, + 7.771561172403963e-16, + 4.440892098516569e-16, + 6.661338147774853e-16, + 1.1102230246291428e-16, + 4.44089209851657e-16 + ], + "pi_row_sum_err_cyc": [ + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16 + ], + "pi_negative_cyc": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "mean_e_err_cyc": [ + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12 + ], + "agg_income_err_cyc": [ + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12, + 3.5905722839402188e-12 + ], + "incidence_err_cyc": [ + 1.4539843757324911e-11, + 1.4539843757324911e-11, + 1.4539843757324911e-11, + 1.4539843757324911e-11, + 1.4539843757324911e-11, + 1.4539843757324911e-11, + 1.4539843757324911e-11 + ], + "spec_eis_cyc": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "spec_a_min_cyc": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "spec_rstar_cyc": [ + 2.1337098754514727e-16, + 2.1337098754514727e-16, + 2.1337098754514727e-16, + 2.1337098754514727e-16, + 2.1337098754514727e-16, + 2.1337098754514727e-16, + 2.1337098754514727e-16 + ], + "spec_zeta_low_cyc": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "status": { + "ge_target_resid_reported_acyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "ge_target_resid_direct_acyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "ss_assets_acyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "ss_goods_acyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "hh_budget_acyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "pi_row_sum_err_acyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "pi_negative_acyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "mean_e_err_acyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "agg_income_err_acyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "spec_eis_acyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "spec_a_min_acyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "spec_rstar_acyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "spec_zeta_acyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "ge_target_resid_reported_cyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "ge_target_resid_direct_cyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "ss_assets_cyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "ss_goods_cyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "hh_budget_cyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "pi_row_sum_err_cyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "pi_negative_cyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "mean_e_err_cyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "agg_income_err_cyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "incidence_err_cyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "spec_eis_cyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "spec_a_min_cyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "spec_rstar_cyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + }, + "spec_zeta_low_cyc": { + "state": "complete", + "n_expected": 7, + "n_reported": 7, + "missing": [], + "nonfinite": [] + } + } + }, + "zero_liquidity_cyc": { + "h": 2, + "delta": 1.0174472541512878, + "elasticity": 0.6138139116226902, + "zbar": -0.1712087043925538 + }, + "T": 150, + "runtime_s": 2.6101112365722656 + }, + "T4": { + "eps": [ + 0.4, + 0.2, + 0.1, + 0.05, + 0.025 + ], + "r": [ + 0.028820827876066397, + 0.038119459083392405, + 0.040742202266443935, + 0.04142899752617623, + 0.041605005951257365 + ], + "gap": [ + 0.012845838790600344, + 0.0035472075832743352, + 0.0009244644002228061, + 0.00023766914049051097, + 6.166071540937568e-05 + ], + "mass_constrained": [ + 0.04345951913453648, + 0.038067802683195845, + 0.024885880772987336, + 0.014378680677786011, + 0.007991775206102784 + ], + "capital_market_resid_rel": [ + 1.3433100829457795e-12, + 4.625909089074258e-12, + 7.38468966507848e-12, + 8.708253865527427e-11, + 5.177785391100039e-10 + ], + "euler_err_mean_weighted": [ + 4.331310700336127e-08, + 1.1358778036172749e-08, + 2.814736974970446e-09, + 5.694700996372851e-10, + 1.6447658823519304e-10 + ], + "euler_err_max_with_mass": [ + 2.499522011589761e-06, + 5.341546605031056e-07, + 2.2559304224678556e-07, + 1.1564929414120684e-07, + 2.8264381057852006e-08 + ], + "kkt_violation_max_with_mass": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "mass_top_5pts": [ + 7.129672789241265e-33, + 6.143992096735971e-31, + 4.414446871213049e-29, + 3.4520490763648906e-35, + 1.4704400281400278e-32 + ], + "mass_policy_off_grid": [ + 0.0, + 3.8074446400389836e-32, + 3.0501642359434153e-30, + 2.9432617560915373e-36, + 1.0070150247389265e-33 + ], + "rho_disc": 0.04166666666666674, + "gap_over_eps2": [ + 0.08028649244125213, + 0.08868018958185836, + 0.0924464400222806, + 0.09506765619620437, + 0.09865714465500107 + ], + "rates_gap": [ + 1.8565454318589147, + 1.9399940898089396, + 1.9596631720267887, + 1.9465310592764802 + ], + "fitted_rate_gap": 1.9305124767777984, + "r_by_sd": { + "sd": [ + 0.1, + 0.2, + 0.3, + 0.4 + ], + "rho": 0.9, "r": [ 0.040742202266443935, 0.038119459083392405, @@ -658,7 +2044,336 @@ "all_below_rho_is_mechanical": true, "monotone_in_sd": true, "monotone_in_rho": true, - "runtime_s": 13.179458379745483 + "v0_3": { + "skipped": [], + "settings": [ + "eps=0.4", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025" + ], + "at": { + "ss_capital": [ + "eps=0.4", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025" + ], + "hh_budget": [ + "eps=0.4", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025" + ], + "pi_row_sum_err": [ + "eps=0.4", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025" + ], + "pi_negative": [ + "eps=0.4", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025" + ], + "mean_e_err": [ + "eps=0.4", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025" + ], + "agg_income_err": [ + "eps=0.4", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025" + ], + "foc_r": [ + "eps=0.4", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025" + ], + "foc_w": [ + "eps=0.4", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025" + ], + "ss_goods": [ + "eps=0.4", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025" + ], + "spec_beta": [ + "eps=0.4", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025" + ], + "spec_eis": [ + "eps=0.4", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025" + ], + "spec_a_min": [ + "eps=0.4", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025" + ], + "spec_euler_err_mean_weighted": [ + "eps=0.4", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025" + ], + "spec_euler_err_max_with_mass": [ + "eps=0.4", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025" + ], + "spec_kkt_violation_max_with_mass": [ + "eps=0.4", + "eps=0.2", + "eps=0.1", + "eps=0.05", + "eps=0.025" + ] + }, + "ss_capital": [ + 1.3433100829457795e-12, + 4.625909089074258e-12, + 7.38468966507848e-12, + 8.708253865527427e-11, + 5.177785391100039e-10 + ], + "hh_budget": [ + 1.8486760488906665e-15, + 1.2550650511674747e-15, + 3.154568737023155e-16, + 3.1590526610421565e-16, + 3.160205374348143e-16 + ], + "pi_row_sum_err": [ + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16 + ], + "pi_negative": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "mean_e_err": [ + 1.7146284392310918e-11, + 4.357736393956202e-12, + 1.106892355551281e-12, + 2.907674101493285e-13, + 8.64863736182997e-14 + ], + "agg_income_err": [ + 1.714614368896573e-11, + 4.357862661297958e-12, + 1.1070423386408008e-12, + 2.9087067181598193e-13, + 8.648443904474499e-14 + ], + "foc_r": [ + 1.1941558852868184e-12, + 3.2943092698189957e-13, + 8.554268404736831e-14, + 2.2620794126737565e-14, + 6.716849298982197e-15 + ], + "foc_w": [ + 6.1727674942478025e-12, + 1.5689047029019958e-12, + 3.98415135605089e-13, + 1.0467578869235336e-13, + 3.127759669156355e-14 + ], + "ss_goods": [ + 1.2954085289593338e-13, + 5.383508160142997e-13, + 8.971941028272063e-13, + 1.0696118497671538e-11, + 6.377376855023393e-11 + ], + "spec_beta": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "spec_eis": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "spec_a_min": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "spec_euler_err_mean_weighted": [ + 4.331310700110914e-08, + 1.1358778032647096e-08, + 2.8147369765397004e-09, + 5.694700990611969e-10, + 1.6447658902964468e-10 + ], + "spec_euler_err_max_with_mass": [ + 2.499522011589761e-06, + 5.341546605031056e-07, + 2.2559304246883016e-07, + 1.1564929414120684e-07, + 2.8264381057852006e-08 + ], + "spec_kkt_violation_max_with_mass": [ + 0.0, + 0.0, + 0.0, + 0.0, + 0.0 + ], + "status": { + "ss_capital": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "hh_budget": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "pi_row_sum_err": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "pi_negative": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "mean_e_err": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "agg_income_err": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "foc_r": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "foc_w": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "ss_goods": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "spec_beta": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "spec_eis": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "spec_a_min": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "spec_euler_err_mean_weighted": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "spec_euler_err_max_with_mass": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + }, + "spec_kkt_violation_max_with_mass": { + "state": "complete", + "n_expected": 5, + "n_reported": 5, + "missing": [], + "nonfinite": [] + } + } + }, + "runtime_s": 13.813642024993896 }, "T5": { "ssj_consistent": { @@ -711,8 +2426,684 @@ 7.084837985785539e-09 ] }, - "max_err": 5.947743341830928e-07, - "runtime_s": 4.669302225112915 + "max_err": 5.947743341830928e-07, + "v0_3": { + "skipped": [], + "settings": [ + "T=100", + "T=200", + "T=300" + ], + "at": { + "ss_government_budget": [ + "T=100", + "T=200", + "T=300" + ], + "ss_goods": [ + "T=100", + "T=200", + "T=300" + ], + "ss_assets": [ + "T=100", + "T=200", + "T=300" + ], + "hh_budget": [ + "T=100", + "T=200", + "T=300" + ], + "pi_row_sum_err": [ + "T=100", + "T=200", + "T=300" + ], + "pi_negative": [ + "T=100", + "T=200", + "T=300" + ], + "mean_e_err": [ + "T=100", + "T=200", + "T=300" + ], + "agg_income_err": [ + "T=100", + "T=200", + "T=300" + ], + "spec_r": [ + "T=100", + "T=200", + "T=300" + ], + "spec_eis": [ + "T=100", + "T=200", + "T=300" + ], + "spec_B": [ + "T=100", + "T=200", + "T=300" + ], + "spec_G": [ + "T=100", + "T=200", + "T=300" + ], + "spec_phi_B": [ + "T=100", + "T=200", + "T=300" + ], + "spec_a_min": [ + "T=100", + "T=200", + "T=300" + ] + }, + "ss_government_budget": [ + 1.0408340855860843e-17, + 1.0408340855860843e-17, + 1.0408340855860843e-17 + ], + "ss_goods": [ + 3.758676703213837e-11, + 3.758676703213837e-11, + 3.758676703213837e-11 + ], + "ss_assets": [ + 1.887379141862766e-14, + 1.887379141862766e-14, + 1.887379141862766e-14 + ], + "hh_budget": [ + 5.5511151233865935e-15, + 5.5511151233865935e-15, + 5.5511151233865935e-15 + ], + "pi_row_sum_err": [ + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16 + ], + "pi_negative": [ + 0.0, + 0.0, + 0.0 + ], + "mean_e_err": [ + 4.8193449231348495e-11, + 4.8193449231348495e-11, + 4.8193449231348495e-11 + ], + "agg_income_err": [ + 4.819335813612596e-11, + 4.819335813612596e-11, + 4.819335813612596e-11 + ], + "spec_r": [ + 0.0, + 0.0, + 0.0 + ], + "spec_eis": [ + 0.0, + 0.0, + 0.0 + ], + "spec_B": [ + 0.0, + 0.0, + 0.0 + ], + "spec_G": [ + 0.0, + 0.0, + 0.0 + ], + "spec_phi_B": [ + 0.0, + 0.0, + 0.0 + ], + "spec_a_min": [ + 0.0, + 0.0, + 0.0 + ], + "paths": { + "G_debt_fixed_r": { + "at": { + "fiscal_rule": [ + "T=100", + "T=200", + "T=300" + ], + "government_budget": [ + "T=100", + "T=200", + "T=300" + ], + "goods_market": [ + "T=100", + "T=200", + "T=300" + ], + "exog_G": [ + "T=100", + "T=200", + "T=300" + ], + "exog_rshock": [ + "T=100", + "T=200", + "T=300" + ], + "exog_r": [ + "T=100", + "T=200", + "T=300" + ] + }, + "fiscal_rule": [ + 0.0, + 0.0, + 0.0 + ], + "government_budget": [ + 2.6020852139652106e-16, + 2.6020852139652106e-16, + 2.6020852139652106e-16 + ], + "goods_market": [ + 1.9920903973859567e-15, + 2.734280647812625e-14, + 1.441097994431004e-13 + ], + "exog_G": [ + 0.0, + 0.0, + 0.0 + ], + "exog_rshock": [ + 0.0, + 0.0, + 0.0 + ], + "exog_r": [ + 0.0, + 0.0, + 0.0 + ] + }, + "r_fixed_r": { + "at": { + "fiscal_rule": [ + "T=100", + "T=200", + "T=300" + ], + "government_budget": [ + "T=100", + "T=200", + "T=300" + ], + "goods_market": [ + "T=100", + "T=200", + "T=300" + ], + "exog_G": [ + "T=100", + "T=200", + "T=300" + ], + "exog_rshock": [ + "T=100", + "T=200", + "T=300" + ], + "exog_r": [ + "T=100", + "T=200", + "T=300" + ] + }, + "fiscal_rule": [ + 0.0, + 0.0, + 0.0 + ], + "government_budget": [ + 2.6020852139652106e-16, + 2.6020852139652106e-16, + 2.6020852139652106e-16 + ], + "goods_market": [ + 1.2195580374567416e-15, + 2.28960495039501e-14, + 1.7122261750961627e-13 + ], + "exog_G": [ + 0.0, + 0.0, + 0.0 + ], + "exog_rshock": [ + 0.0, + 0.0, + 0.0 + ], + "exog_r": [ + 0.0, + 0.0, + 0.0 + ] + }, + "G_debt_r_rule": { + "at": { + "fiscal_rule": [ + "T=100", + "T=200", + "T=300" + ], + "government_budget": [ + "T=100", + "T=200", + "T=300" + ], + "goods_market": [ + "T=100", + "T=200", + "T=300" + ], + "exog_G": [ + "T=100", + "T=200", + "T=300" + ], + "exog_rshock": [ + "T=100", + "T=200", + "T=300" + ], + "rate_rule": [ + "T=100", + "T=200", + "T=300" + ] + }, + "fiscal_rule": [ + 0.0, + 0.0, + 0.0 + ], + "government_budget": [ + 1.697887707166612e-13, + 3.2790995035375035e-10, + 1.472351904390582e-07 + ], + "goods_market": [ + 4.317654876434469e-13, + 5.71814142974838e-10, + 5.027470301883207e-07 + ], + "exog_G": [ + 0.0, + 0.0, + 0.0 + ], + "exog_rshock": [ + 0.0, + 0.0, + 0.0 + ], + "rate_rule": [ + 0.0, + 0.0, + 0.0 + ] + }, + "rshock_r_rule": { + "at": { + "fiscal_rule": [ + "T=100", + "T=200", + "T=300" + ], + "government_budget": [ + "T=100", + "T=200", + "T=300" + ], + "goods_market": [ + "T=100", + "T=200", + "T=300" + ], + "exog_G": [ + "T=100", + "T=200", + "T=300" + ], + "exog_rshock": [ + "T=100", + "T=200", + "T=300" + ], + "rate_rule": [ + "T=100", + "T=200", + "T=300" + ] + }, + "fiscal_rule": [ + 0.0, + 0.0, + 0.0 + ], + "government_budget": [ + 1.3770384030102611e-13, + 1.5796162080885476e-10, + 6.101651319808522e-08 + ], + "goods_market": [ + 2.8171909249863347e-13, + 5.030429481764713e-10, + 1.5770075491267816e-07 + ], + "exog_G": [ + 0.0, + 0.0, + 0.0 + ], + "exog_rshock": [ + 0.0, + 0.0, + 0.0 + ], + "rate_rule": [ + 1.0842021724855044e-17, + 1.0842021724855044e-17, + 1.0842021724855044e-17 + ] + } + }, + "status": { + "ss_government_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "ss_goods": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "ss_assets": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "hh_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "pi_row_sum_err": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "pi_negative": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "mean_e_err": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "agg_income_err": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_r": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_eis": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_B": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_G": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_phi_B": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_a_min": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.fiscal_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.government_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.goods_market": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.exog_G": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.exog_rshock": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.exog_r": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.fiscal_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.government_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.goods_market": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.exog_G": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.exog_rshock": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.exog_r": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.fiscal_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.government_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.goods_market": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.exog_G": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.exog_rshock": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.rate_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.fiscal_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.government_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.goods_market": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.exog_G": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.exog_rshock": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.rate_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + } + } + }, + "runtime_s": 5.452834606170654 }, "ssj_consistent_refined": { "T": [ @@ -765,7 +3156,683 @@ ] }, "max_err": 9.754814429091636e-12, - "runtime_s": 4.424100637435913 + "v0_3": { + "skipped": [], + "settings": [ + "T=100", + "T=200", + "T=300" + ], + "at": { + "ss_government_budget": [ + "T=100", + "T=200", + "T=300" + ], + "ss_goods": [ + "T=100", + "T=200", + "T=300" + ], + "ss_assets": [ + "T=100", + "T=200", + "T=300" + ], + "hh_budget": [ + "T=100", + "T=200", + "T=300" + ], + "pi_row_sum_err": [ + "T=100", + "T=200", + "T=300" + ], + "pi_negative": [ + "T=100", + "T=200", + "T=300" + ], + "mean_e_err": [ + "T=100", + "T=200", + "T=300" + ], + "agg_income_err": [ + "T=100", + "T=200", + "T=300" + ], + "spec_r": [ + "T=100", + "T=200", + "T=300" + ], + "spec_eis": [ + "T=100", + "T=200", + "T=300" + ], + "spec_B": [ + "T=100", + "T=200", + "T=300" + ], + "spec_G": [ + "T=100", + "T=200", + "T=300" + ], + "spec_phi_B": [ + "T=100", + "T=200", + "T=300" + ], + "spec_a_min": [ + "T=100", + "T=200", + "T=300" + ] + }, + "ss_government_budget": [ + 1.0408340855860843e-17, + 1.0408340855860843e-17, + 1.0408340855860843e-17 + ], + "ss_goods": [ + 3.758676703213837e-11, + 3.758676703213837e-11, + 3.758676703213837e-11 + ], + "ss_assets": [ + 1.887379141862766e-14, + 1.887379141862766e-14, + 1.887379141862766e-14 + ], + "hh_budget": [ + 5.5511151233865935e-15, + 5.5511151233865935e-15, + 5.5511151233865935e-15 + ], + "pi_row_sum_err": [ + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16 + ], + "pi_negative": [ + 0.0, + 0.0, + 0.0 + ], + "mean_e_err": [ + 4.8193449231348495e-11, + 4.8193449231348495e-11, + 4.8193449231348495e-11 + ], + "agg_income_err": [ + 4.819335813612596e-11, + 4.819335813612596e-11, + 4.819335813612596e-11 + ], + "spec_r": [ + 0.0, + 0.0, + 0.0 + ], + "spec_eis": [ + 0.0, + 0.0, + 0.0 + ], + "spec_B": [ + 0.0, + 0.0, + 0.0 + ], + "spec_G": [ + 0.0, + 0.0, + 0.0 + ], + "spec_phi_B": [ + 0.0, + 0.0, + 0.0 + ], + "spec_a_min": [ + 0.0, + 0.0, + 0.0 + ], + "paths": { + "G_debt_fixed_r": { + "at": { + "fiscal_rule": [ + "T=100", + "T=200", + "T=300" + ], + "government_budget": [ + "T=100", + "T=200", + "T=300" + ], + "goods_market": [ + "T=100", + "T=200", + "T=300" + ], + "exog_G": [ + "T=100", + "T=200", + "T=300" + ], + "exog_rshock": [ + "T=100", + "T=200", + "T=300" + ], + "exog_r": [ + "T=100", + "T=200", + "T=300" + ] + }, + "fiscal_rule": [ + 0.0, + 0.0, + 0.0 + ], + "government_budget": [ + 5.637851296924623e-16, + 5.637851296924623e-16, + 5.637851296924623e-16 + ], + "goods_market": [ + 6.071532165918825e-16, + 5.204170427930421e-16, + 4.3368086899420177e-16 + ], + "exog_G": [ + 0.0, + 0.0, + 0.0 + ], + "exog_rshock": [ + 0.0, + 0.0, + 0.0 + ], + "exog_r": [ + 0.0, + 0.0, + 0.0 + ] + }, + "r_fixed_r": { + "at": { + "fiscal_rule": [ + "T=100", + "T=200", + "T=300" + ], + "government_budget": [ + "T=100", + "T=200", + "T=300" + ], + "goods_market": [ + "T=100", + "T=200", + "T=300" + ], + "exog_G": [ + "T=100", + "T=200", + "T=300" + ], + "exog_rshock": [ + "T=100", + "T=200", + "T=300" + ], + "exog_r": [ + "T=100", + "T=200", + "T=300" + ] + }, + "fiscal_rule": [ + 0.0, + 0.0, + 0.0 + ], + "government_budget": [ + 5.637851296924623e-16, + 5.637851296924623e-16, + 5.637851296924623e-16 + ], + "goods_market": [ + 1.734723475976807e-16, + 6.071532165918825e-16, + 3.469446951953614e-16 + ], + "exog_G": [ + 0.0, + 0.0, + 0.0 + ], + "exog_rshock": [ + 0.0, + 0.0, + 0.0 + ], + "exog_r": [ + 0.0, + 0.0, + 0.0 + ] + }, + "G_debt_r_rule": { + "at": { + "fiscal_rule": [ + "T=100", + "T=200", + "T=300" + ], + "government_budget": [ + "T=100", + "T=200", + "T=300" + ], + "goods_market": [ + "T=100", + "T=200", + "T=300" + ], + "exog_G": [ + "T=100", + "T=200", + "T=300" + ], + "exog_rshock": [ + "T=100", + "T=200", + "T=300" + ], + "rate_rule": [ + "T=100", + "T=200", + "T=300" + ] + }, + "fiscal_rule": [ + 0.0, + 0.0, + 0.0 + ], + "government_budget": [ + 6.071532165918825e-16, + 8.673617379884035e-16, + 6.938893903907228e-16 + ], + "goods_market": [ + 3.103420298522508e-13, + 3.112093915902392e-13, + 3.1155633628543455e-13 + ], + "exog_G": [ + 0.0, + 0.0, + 0.0 + ], + "exog_rshock": [ + 0.0, + 0.0, + 0.0 + ], + "rate_rule": [ + 0.0, + 0.0, + 0.0 + ] + }, + "rshock_r_rule": { + "at": { + "fiscal_rule": [ + "T=100", + "T=200", + "T=300" + ], + "government_budget": [ + "T=100", + "T=200", + "T=300" + ], + "goods_market": [ + "T=100", + "T=200", + "T=300" + ], + "exog_G": [ + "T=100", + "T=200", + "T=300" + ], + "exog_rshock": [ + "T=100", + "T=200", + "T=300" + ], + "rate_rule": [ + "T=100", + "T=200", + "T=300" + ] + }, + "fiscal_rule": [ + 0.0, + 0.0, + 0.0 + ], + "government_budget": [ + 3.903127820947816e-16, + 5.854691731421724e-16, + 5.204170427930421e-16 + ], + "goods_market": [ + 2.8119867545584043e-13, + 2.8085173076064507e-13, + 2.8085173076064507e-13 + ], + "exog_G": [ + 0.0, + 0.0, + 0.0 + ], + "exog_rshock": [ + 0.0, + 0.0, + 0.0 + ], + "rate_rule": [ + 1.0842021724855044e-17, + 4.336808689942018e-17, + 8.673617379884035e-17 + ] + } + }, + "status": { + "ss_government_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "ss_goods": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "ss_assets": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "hh_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "pi_row_sum_err": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "pi_negative": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "mean_e_err": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "agg_income_err": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_r": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_eis": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_B": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_G": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_phi_B": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_a_min": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.fiscal_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.government_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.goods_market": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.exog_G": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.exog_rshock": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.exog_r": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.fiscal_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.government_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.goods_market": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.exog_G": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.exog_rshock": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.exog_r": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.fiscal_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.government_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.goods_market": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.exog_G": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.exog_rshock": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.rate_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.fiscal_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.government_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.goods_market": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.exog_G": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.exog_rshock": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.rate_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + } + } + }, + "runtime_s": 7.298170566558838 }, "ssj_inconsistent_options": { "T": [ @@ -818,7 +3885,683 @@ ] }, "max_err": 9.879075791221359e-05, - "runtime_s": 3.930713415145874 + "v0_3": { + "skipped": [], + "settings": [ + "T=100", + "T=200", + "T=300" + ], + "at": { + "ss_government_budget": [ + "T=100", + "T=200", + "T=300" + ], + "ss_goods": [ + "T=100", + "T=200", + "T=300" + ], + "ss_assets": [ + "T=100", + "T=200", + "T=300" + ], + "hh_budget": [ + "T=100", + "T=200", + "T=300" + ], + "pi_row_sum_err": [ + "T=100", + "T=200", + "T=300" + ], + "pi_negative": [ + "T=100", + "T=200", + "T=300" + ], + "mean_e_err": [ + "T=100", + "T=200", + "T=300" + ], + "agg_income_err": [ + "T=100", + "T=200", + "T=300" + ], + "spec_r": [ + "T=100", + "T=200", + "T=300" + ], + "spec_eis": [ + "T=100", + "T=200", + "T=300" + ], + "spec_B": [ + "T=100", + "T=200", + "T=300" + ], + "spec_G": [ + "T=100", + "T=200", + "T=300" + ], + "spec_phi_B": [ + "T=100", + "T=200", + "T=300" + ], + "spec_a_min": [ + "T=100", + "T=200", + "T=300" + ] + }, + "ss_government_budget": [ + 1.0408340855860843e-17, + 1.0408340855860843e-17, + 1.0408340855860843e-17 + ], + "ss_goods": [ + 3.758676703213837e-11, + 3.758676703213837e-11, + 3.758676703213837e-11 + ], + "ss_assets": [ + 1.887379141862766e-14, + 1.887379141862766e-14, + 1.887379141862766e-14 + ], + "hh_budget": [ + 5.5511151233865935e-15, + 5.5511151233865935e-15, + 5.5511151233865935e-15 + ], + "pi_row_sum_err": [ + 2.220446049250313e-16, + 2.220446049250313e-16, + 2.220446049250313e-16 + ], + "pi_negative": [ + 0.0, + 0.0, + 0.0 + ], + "mean_e_err": [ + 4.8193449231348495e-11, + 4.8193449231348495e-11, + 4.8193449231348495e-11 + ], + "agg_income_err": [ + 4.819335813612596e-11, + 4.819335813612596e-11, + 4.819335813612596e-11 + ], + "spec_r": [ + 0.0, + 0.0, + 0.0 + ], + "spec_eis": [ + 0.0, + 0.0, + 0.0 + ], + "spec_B": [ + 0.0, + 0.0, + 0.0 + ], + "spec_G": [ + 0.0, + 0.0, + 0.0 + ], + "spec_phi_B": [ + 0.0, + 0.0, + 0.0 + ], + "spec_a_min": [ + 0.0, + 0.0, + 0.0 + ], + "paths": { + "G_debt_fixed_r": { + "at": { + "fiscal_rule": [ + "T=100", + "T=200", + "T=300" + ], + "government_budget": [ + "T=100", + "T=200", + "T=300" + ], + "goods_market": [ + "T=100", + "T=200", + "T=300" + ], + "exog_G": [ + "T=100", + "T=200", + "T=300" + ], + "exog_rshock": [ + "T=100", + "T=200", + "T=300" + ], + "exog_r": [ + "T=100", + "T=200", + "T=300" + ] + }, + "fiscal_rule": [ + 0.0, + 0.0, + 0.0 + ], + "government_budget": [ + 2.6020852139652106e-16, + 2.6020852139652106e-16, + 2.6020852139652106e-16 + ], + "goods_market": [ + 9.271254994627776e-06, + 9.271298455695853e-06, + 9.271298453093768e-06 + ], + "exog_G": [ + 0.0, + 0.0, + 0.0 + ], + "exog_rshock": [ + 0.0, + 0.0, + 0.0 + ], + "exog_r": [ + 0.0, + 0.0, + 0.0 + ] + }, + "r_fixed_r": { + "at": { + "fiscal_rule": [ + "T=100", + "T=200", + "T=300" + ], + "government_budget": [ + "T=100", + "T=200", + "T=300" + ], + "goods_market": [ + "T=100", + "T=200", + "T=300" + ], + "exog_G": [ + "T=100", + "T=200", + "T=300" + ], + "exog_rshock": [ + "T=100", + "T=200", + "T=300" + ], + "exog_r": [ + "T=100", + "T=200", + "T=300" + ] + }, + "fiscal_rule": [ + 0.0, + 0.0, + 0.0 + ], + "government_budget": [ + 2.6020852139652106e-16, + 2.6020852139652106e-16, + 2.6020852139652106e-16 + ], + "goods_market": [ + 3.025174372898315e-06, + 3.025194668295622e-06, + 3.0251946689895115e-06 + ], + "exog_G": [ + 0.0, + 0.0, + 0.0 + ], + "exog_rshock": [ + 0.0, + 0.0, + 0.0 + ], + "exog_r": [ + 0.0, + 0.0, + 0.0 + ] + }, + "G_debt_r_rule": { + "at": { + "fiscal_rule": [ + "T=100", + "T=200", + "T=300" + ], + "government_budget": [ + "T=100", + "T=200", + "T=300" + ], + "goods_market": [ + "T=100", + "T=200", + "T=300" + ], + "exog_G": [ + "T=100", + "T=200", + "T=300" + ], + "exog_rshock": [ + "T=100", + "T=200", + "T=300" + ], + "rate_rule": [ + "T=100", + "T=200", + "T=300" + ] + }, + "fiscal_rule": [ + 0.0, + 0.0, + 0.0 + ], + "government_budget": [ + 1.697887707166612e-13, + 3.2790995035375035e-10, + 1.472351904390582e-07 + ], + "goods_market": [ + 2.702460945667312e-05, + 2.7024603959507898e-05, + 2.702460395881401e-05 + ], + "exog_G": [ + 0.0, + 0.0, + 0.0 + ], + "exog_rshock": [ + 0.0, + 0.0, + 0.0 + ], + "rate_rule": [ + 0.0, + 0.0, + 0.0 + ] + }, + "rshock_r_rule": { + "at": { + "fiscal_rule": [ + "T=100", + "T=200", + "T=300" + ], + "government_budget": [ + "T=100", + "T=200", + "T=300" + ], + "goods_market": [ + "T=100", + "T=200", + "T=300" + ], + "exog_G": [ + "T=100", + "T=200", + "T=300" + ], + "exog_rshock": [ + "T=100", + "T=200", + "T=300" + ], + "rate_rule": [ + "T=100", + "T=200", + "T=300" + ] + }, + "fiscal_rule": [ + 0.0, + 0.0, + 0.0 + ], + "government_budget": [ + 7.129476317039446e-14, + 8.30097015110402e-11, + 1.4063192550545432e-07 + ], + "goods_market": [ + 3.646819197664075e-06, + 3.646822432923358e-06, + 3.6468224327498855e-06 + ], + "exog_G": [ + 0.0, + 0.0, + 0.0 + ], + "exog_rshock": [ + 0.0, + 0.0, + 0.0 + ], + "rate_rule": [ + 1.0842021724855044e-17, + 1.734723475976807e-16, + 8.673617379884035e-17 + ] + } + }, + "status": { + "ss_government_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "ss_goods": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "ss_assets": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "hh_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "pi_row_sum_err": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "pi_negative": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "mean_e_err": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "agg_income_err": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_r": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_eis": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_B": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_G": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_phi_B": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "spec_a_min": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.fiscal_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.government_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.goods_market": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.exog_G": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.exog_rshock": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_fixed_r.exog_r": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.fiscal_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.government_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.goods_market": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.exog_G": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.exog_rshock": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.r_fixed_r.exog_r": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.fiscal_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.government_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.goods_market": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.exog_G": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.exog_rshock": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.G_debt_r_rule.rate_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.fiscal_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.government_budget": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.goods_market": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.exog_G": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.exog_rshock": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + }, + "paths.rshock_r_rule.rate_rule": { + "state": "complete", + "n_expected": 3, + "n_reported": 3, + "missing": [], + "nonfinite": [] + } + } + }, + "runtime_s": 5.070314645767212 } }, "T6": { @@ -1396,7 +5139,7 @@ } } }, - "runtime_s": 3.9318110942840576 + "runtime_s": 3.866886615753174 }, "discretisation_studies": { "T1_grid": { @@ -1412,38 +5155,38 @@ ], "err_M": { "1200": [ - 0.004282315767551893, - 0.0014106579357445245 + 0.004282315783279357, + 0.0014106579120770329 ], "2400": [ - 0.003807376464388779, - 0.0010758381400021784 + 0.003807376452457238, + 0.001075838128180821 ], "4800": [ - 0.003601547232611845, - 0.0009527900910497443 + 0.0036015472212443255, + 0.0009527900769080934 ], "9600": [ - 0.003505985412519846, - 0.0009008731426101751 + 0.003505985401980433, + 0.0009008731313686825 ] }, "err_Jr": { "1200": [ - 0.0015529736758562642, - 0.0008515279022014415 + 0.001552973684832592, + 0.0008515278659718663 ], "2400": [ - 0.001586518064273599, - 0.000385957989192528 + 0.0015865180547778095, + 0.0003859579863830431 ], "4800": [ - 0.0015980239678753487, - 0.0003956887863158094 + 0.0015980239605961008, + 0.00039568877844683835 ], "9600": [ - 0.001602453574733465, - 0.00039890130577309826 + 0.0016024535698207457, + 0.0003989012976009445 ] } }, @@ -1459,22 +5202,22 @@ ], "err_IRF": { "2400": [ - 0.004154355847070863, - 0.0014981497982430694 + 0.0041533607960061005, + 0.0014944991815332884 ], "4800": [ - 0.0034564592148616257, - 0.0010499787363232027 + 0.0034545483990096044, + 0.0010414754085750163 ], "9600": [ - 0.003143188984624592, - 0.0008697828582072631 + 0.0031417736411566816, + 0.0008646653143461965 ] }, "rate": { - "2400": 1.4714429131099385, - "4800": 1.718934790990906, - "9600": 1.8535018355864967 + "2400": 1.4746170949652653, + "4800": 1.7298683497631844, + "9600": 1.8613655184077793 } }, "T3_grid": { diff --git a/out/diagnostics_v0_2.json b/out/diagnostics_v0_2.json index d2f57c2..b92fc6c 100644 --- a/out/diagnostics_v0_2.json +++ b/out/diagnostics_v0_2.json @@ -5,24 +5,24 @@ "tau": 1e-10, "sweeps": 3, "sweep_tol_met": true, - "last_step_max": 5.353790327733421e-16, + "last_step_max": 5.359211338595848e-16, "neg_mass_rel_max": 0.0, - "mass_drift_polish": 2.220446049250313e-16, - "resid_L1": 1.1699425106645546e-16, - "resid_max": 2.710505431213761e-19, + "mass_drift_polish": 6.661338147750939e-16, + "resid_L1": 1.1806578633281815e-16, + "resid_max": 2.168404344971009e-19, "min_mass": 0.0, - "seconds": 0.015054941177368164, - "A": 5.000000001936813, - "C": 1.1500000000576875, - "mass_below_threshold": 0.386562217494416 + "seconds": 0.017759084701538086, + "A": 5.000000000356808, + "C": 1.1500000000102872, + "mass_below_threshold": 0.38656221752338077 }, "shift": { "1e-12": { - "max_abs_diff": 2.8189256484623115e-18, - "L1_diff": 3.105366959407448e-15, - "dA_rel": 9.947598296788074e-15, - "dC_rel": 1.1584935908550932e-15, - "d_mass_below_threshold": 1.1102230246251565e-15, + "max_abs_diff": 4.0115480381963664e-18, + "L1_diff": 3.4413625033805825e-15, + "dA_rel": 7.99360577673069e-15, + "dC_rel": 1.1584935909028436e-15, + "d_mass_below_threshold": 1.3877787807814457e-15, "sweeps": 3, "sweep_tol_met": true, "neg_mass_rel_max": 0.0 @@ -38,21 +38,21 @@ "neg_mass_rel_max": 0.0 }, "1e-08": { - "max_abs_diff": 2.2768245622195593e-18, - "L1_diff": 2.21200785098119e-15, - "dA_rel": 8.52651282581835e-15, - "dC_rel": 1.1584935908550932e-15, - "d_mass_below_threshold": 8.881784197001252e-16, + "max_abs_diff": 1.3010426069826053e-18, + "L1_diff": 5.699919941002991e-16, + "dA_rel": 0.0, + "dC_rel": 0.0, + "d_mass_below_threshold": 0.0, "sweeps": 4, "sweep_tol_met": true, "neg_mass_rel_max": 0.0 }, "1e-06": { - "max_abs_diff": 3.469446951953614e-18, - "L1_diff": 3.588342063151011e-15, - "dA_rel": 1.1368683767757799e-14, - "dC_rel": 1.5446581211401244e-15, - "d_mass_below_threshold": 1.6653345369377348e-15, + "max_abs_diff": 4.662069341687669e-18, + "L1_diff": 3.97597547341978e-15, + "dA_rel": 1.2434497874914408e-14, + "dC_rel": 1.7377403863542654e-15, + "d_mass_below_threshold": 1.7208456881689926e-15, "sweeps": 7, "sweep_tol_met": true, "neg_mass_rel_max": 0.0 @@ -60,83 +60,83 @@ }, "sweeps": { "1": { - "max_abs_diff": 7.560308308215968e-10, - "L1_diff": 1.3653061946141324e-06, - "dA_rel": 1.1034304034385292e-05, - "dC_rel": 1.448728581470762e-06, - "d_mass_below_threshold": 3.833565743183165e-07, - "last_step_max": 0.0007673601045469644, - "resid_max": 7.673592664070306e-14 + "max_abs_diff": 7.560308170522292e-10, + "L1_diff": 1.3653061695791123e-06, + "dA_rel": 1.1034303833768744e-05, + "dC_rel": 1.4487285548851228e-06, + "d_mass_below_threshold": 3.8335656699084453e-07, + "last_step_max": 0.0007673601046202009, + "resid_max": 7.67360350609203e-14 }, "2": { - "max_abs_diff": 5.352706125560935e-16, - "L1_diff": 8.810959605159619e-13, - "dA_rel": 5.134737077981359e-12, - "dC_rel": 6.742432698776643e-13, - "d_mass_below_threshold": 2.922107000813412e-13, - "last_step_max": 7.56030304875123e-10, + "max_abs_diff": 5.357042934250877e-16, + "L1_diff": 8.812161823516836e-13, + "dA_rel": 5.134381808236087e-12, + "dC_rel": 6.744363521706054e-13, + "d_mass_below_threshold": 2.9204416662764743e-13, + "last_step_max": 7.560302913225958e-10, "resid_max": 3.2526065174565133e-19 }, "3": { - "max_abs_diff": 8.673617379884035e-19, - "L1_diff": 2.684648673590655e-16, - "dA_rel": 3.552713677424312e-16, - "dC_rel": 0.0, - "d_mass_below_threshold": 1.6653345369377348e-16, - "last_step_max": 5.353790327733421e-16, + "max_abs_diff": 7.589415207398531e-19, + "L1_diff": 2.46643119932753e-16, + "dA_rel": 0.0, + "dC_rel": 1.9308226515047395e-16, + "d_mass_below_threshold": 0.0, + "last_step_max": 5.359211338595848e-16, "resid_max": 3.2526065174565133e-19 } }, "ssj_forward": { "1e-10": { - "max_abs_diff": 3.6167479682187344e-07, - "L1_diff": 0.0004920533310596723, - "dA_rel": 0.0017187211037324448, - "dC_rel": 0.00022630575013083925, - "d_mass_below_threshold": 0.00021271281060220026, - "seconds": 1.0087072849273682, + "max_abs_diff": 3.6167479617297844e-07, + "L1_diff": 0.0004920533301324821, + "dA_rel": 0.0017187211008574967, + "dC_rel": 0.00022630574968140357, + "d_mass_below_threshold": 0.00021271281021645327, + "seconds": 1.1045384407043457, "iterations": 37910, "mirror_identical": true, "tol": 1e-10 }, "1e-12": { - "max_abs_diff": 3.6205454419019e-09, - "L1_diff": 4.925023778738033e-06, - "dA_rel": 1.7200541602500774e-05, - "dC_rel": 2.264819637418762e-06, - "d_mass_below_threshold": 2.129441219911321e-06, - "seconds": 1.3930556774139404, + "max_abs_diff": 3.6205454466723894e-09, + "L1_diff": 4.925023773038045e-06, + "dA_rel": 1.720054156121798e-05, + "dC_rel": 2.2648196191692973e-06, + "d_mass_below_threshold": 2.129441221743189e-06, + "seconds": 1.7125263214111328, "iterations": 54590, "mirror_identical": true, "tol": 1e-12 } }, "threshold": 0.0, - "kappa": 0.0002738673601242052 + "kappa": 0.00027386736016703743 }, "T1_eps0.0125": { "reference": { "tau": 1e-10, "sweeps": 4, "sweep_tol_met": true, - "last_step_max": 6.570265165262157e-17, + "last_step_max": 6.657001339060997e-17, "neg_mass_rel_max": 0.0, - "mass_drift_polish": 2.220446049250313e-16, - "resid_L1": 1.013982219220646e-16, + "mass_drift_polish": 4.440892098500626e-16, + "resid_L1": 9.344883477293993e-17, "resid_max": 2.168404344971009e-19, - "min_mass": 3.699531928743349e-30, - "seconds": 0.01600050926208496, - "A": 4.999999714183777, - "C": 1.1499999914254988, - "mass_below_threshold": 0.39636718067531007 + "min_mass": 3.6995321726196154e-30, + "seconds": 0.01892256736755371, + "A": 5.000000000022238, + "C": 1.1500000000006527, + "mass_below_threshold": 0.3963671740193062 }, "shift": { "1e-12": { - "max_abs_diff": 4.732542482899227e-17, - "L1_diff": 7.302485136863777e-14, - "dA_rel": 2.531308640843172e-13, - "dC_rel": 3.3017067587204555e-14, - "d_mass_below_threshold": 2.992051051364797e-14, + "max_abs_diff": 4.2392304944183223e-17, + "L1_diff": 4.292348632842616e-14, + "dA_rel": 4.4764192352687215e-14, + "dC_rel": 5.792467954562747e-15, + "d_mass_below_threshold": 1.304512053934559e-14, "sweeps": 3, "sweep_tol_met": true, "neg_mass_rel_max": 0.0 @@ -152,21 +152,21 @@ "neg_mass_rel_max": 0.0 }, "1e-08": { - "max_abs_diff": 6.402213828526904e-17, - "L1_diff": 8.15630344215703e-14, - "dA_rel": 2.4993342159062055e-13, - "dC_rel": 3.2630903054020877e-14, - "d_mass_below_threshold": 3.624878175401136e-14, + "max_abs_diff": 4.423544863740858e-17, + "L1_diff": 5.2351355659752876e-14, + "dA_rel": 1.27009514016553e-13, + "dC_rel": 1.6411992537927783e-14, + "d_mass_below_threshold": 9.603429163007604e-15, "sweeps": 6, "sweep_tol_met": true, "neg_mass_rel_max": 0.0 }, "1e-06": { - "max_abs_diff": 2.308266425221639e-16, - "L1_diff": 3.0884378930576884e-13, - "dA_rel": 1.1402435203910401e-12, - "dC_rel": 1.4886642754230827e-13, - "d_mass_below_threshold": 1.4482859356235167e-13, + "max_abs_diff": 9.877081791342945e-17, + "L1_diff": 1.5228382234214679e-13, + "dA_rel": 5.842437644761439e-13, + "dC_rel": 7.607441246992407e-14, + "d_mass_below_threshold": 6.861178292183467e-14, "sweeps": 19, "sweep_tol_met": true, "neg_mass_rel_max": 0.0 @@ -174,30 +174,30 @@ }, "sweeps": { "1": { - "max_abs_diff": 4.2884148585410446e-08, - "L1_diff": 8.188022331855397e-05, - "dA_rel": 0.0006833307857702594, - "dC_rel": 8.913939287769407e-05, - "d_mass_below_threshold": 2.3560824229051924e-05, - "last_step_max": 0.0007164454511484532, - "resid_max": 7.164462165892838e-14 + "max_abs_diff": 4.2884148095784745e-08, + "L1_diff": 8.188022291706845e-05, + "dA_rel": 0.0006833307449125831, + "dC_rel": 8.913939197861045e-05, + "d_mass_below_threshold": 2.356082376930857e-05, + "last_step_max": 0.000716445445461894, + "resid_max": 7.164451323871113e-14 }, "2": { - "max_abs_diff": 1.885503363684149e-12, - "L1_diff": 3.2838220745095925e-09, - "dA_rel": 2.0048427176461036e-08, - "dC_rel": 2.6153186092131252e-09, - "d_mass_below_threshold": 1.114024872350683e-09, - "last_step_max": 4.288229553655459e-08, + "max_abs_diff": 1.88550293000328e-12, + "L1_diff": 3.283821865328422e-09, + "dA_rel": 2.0048426030338724e-08, + "dC_rel": 2.6153178173825344e-09, + "d_mass_below_threshold": 1.1140250388841366e-09, + "last_step_max": 4.288229504671205e-08, "resid_max": 4.445228907190568e-18 }, "3": { - "max_abs_diff": 6.624475273886432e-17, - "L1_diff": 1.0724062785903328e-13, - "dA_rel": 5.393019672701664e-13, - "dC_rel": 6.989578050624591e-14, - "d_mass_below_threshold": 3.963496197911809e-14, - "last_step_max": 1.885438853654886e-12, + "max_abs_diff": 6.646159317336142e-17, + "L1_diff": 1.083571473427672e-13, + "dA_rel": 5.43565192854059e-13, + "dC_rel": 7.06681090456655e-14, + "d_mass_below_threshold": 4.0245584642661925e-14, + "last_step_max": 1.885436576830324e-12, "resid_max": 2.168404344971009e-19 } }, @@ -208,7 +208,7 @@ } }, "threshold": 0.0, - "kappa": 4.345225634277017e-06 + "kappa": 4.345225255330264e-06 }, "T4_sd0.2_rho0.9": { "reference": { @@ -221,7 +221,7 @@ "resid_L1": 1.816390297087272e-16, "resid_max": 3.469446951953614e-18, "min_mass": 0.0, - "seconds": 0.013420820236206055, + "seconds": 0.018990039825439453, "A": 5.7045368855515965, "C": 1.4153504137079307, "mass_below_threshold": 0.18654051998329743 @@ -304,7 +304,7 @@ "dA_rel": 1.083761471016787e-06, "dC_rel": 1.9568560451479268e-07, "d_mass_below_threshold": 1.5340707046340718e-07, - "seconds": 0.034842491149902344, + "seconds": 0.05087542533874512, "iterations": 3010, "mirror_identical": true, "tol": 1e-10 @@ -315,7 +315,7 @@ "dA_rel": 1.0701772956791447e-08, "dC_rel": 1.932860108154104e-09, "d_mass_below_threshold": 1.5146690846012945e-09, - "seconds": 0.048879146575927734, + "seconds": 0.06383895874023438, "iterations": 3730, "mirror_identical": true, "tol": 1e-12 @@ -334,7 +334,7 @@ "resid_L1": 2.0489739960824767e-16, "resid_max": 2.7755575615628914e-17, "min_mass": 0.0, - "seconds": 0.010046243667602539, + "seconds": 0.015553474426269531, "A": 0.9999999999999811, "C": 0.7999999999624132, "mass_below_threshold": 0.3696125777553463 @@ -417,7 +417,7 @@ "dA_rel": 4.913059514777366e-09, "dC_rel": 8.132952645061506e-10, "d_mass_below_threshold": 1.5991347690480495e-09, - "seconds": 0.002122640609741211, + "seconds": 0.0030717849731445312, "iterations": 210, "mirror_identical": true, "tol": 1e-10 @@ -428,7 +428,7 @@ "dA_rel": 7.506950616687078e-11, "dC_rel": 1.2487511025814311e-11, "d_mass_below_threshold": 2.4383384200632463e-11, - "seconds": 0.0021712779998779297, + "seconds": 0.003528594970703125, "iterations": 250, "mirror_identical": true, "tol": 1e-12 @@ -792,12 +792,12 @@ "max_abs_diff_T50_vs_T200_window_r": 0.0, "max_abs_diff_T100_vs_T200_window_Y": 0.0, "max_abs_diff_T100_vs_T200_window_r": 0.0, - "err_M_window50_computedT50": 0.00019625109548770725, - "err_Jr_window50_computedT50": 9.249333374492274e-05, - "err_M_window100_computedT100": 0.00037897553743878476, - "err_Jr_window100_computedT100": 9.601835757912446e-05, - "err_M_window200_computedT200": 0.0009527900910497443, - "err_Jr_window200_computedT200": 0.0003956887863158094 + "err_M_window50_computedT50": 0.00019625108846798333, + "err_Jr_window50_computedT50": 9.24933351370389e-05, + "err_M_window100_computedT100": 0.0003789755317193494, + "err_Jr_window100_computedT100": 9.601835793135353e-05, + "err_M_window200_computedT200": 0.0009527900769080934, + "err_Jr_window200_computedT200": 0.00039568877844683835 }, "0.1": { "eps": 0.1, @@ -805,12 +805,12 @@ "max_abs_diff_T50_vs_T200_window_r": 0.0, "max_abs_diff_T100_vs_T200_window_Y": 0.0, "max_abs_diff_T100_vs_T200_window_r": 0.0, - "err_M_window50_computedT50": 0.01187319217781944, - "err_Jr_window50_computedT50": 0.005767938566229665, - "err_M_window100_computedT100": 0.022716636925689808, - "err_Jr_window100_computedT100": 0.006863432720338505, - "err_M_window200_computedT200": 0.05516257549065518, - "err_Jr_window200_computedT200": 0.026302572684358504 + "err_M_window50_computedT50": 0.011873192180838238, + "err_Jr_window50_computedT50": 0.005767938565382432, + "err_M_window100_computedT100": 0.022716636928623437, + "err_Jr_window100_computedT100": 0.006863432724241965, + "err_M_window200_computedT200": 0.05516257549781499, + "err_Jr_window200_computedT200": 0.02630257269183431 } }, "D_T1_fd_step": [ @@ -851,7 +851,7 @@ "h": 0.001, "twosided": true, "T": 200, - "err_M": 0.0009527886306357948, + "err_M": 0.000952788616613738, "err_Jr": NaN }, { @@ -859,24 +859,24 @@ "h": 0.0001, "twosided": true, "T": 200, - "err_M": 0.0009527900910497443, - "err_Jr": 0.0003956887863158094 + "err_M": 0.0009527900769080934, + "err_Jr": 0.00039568877844683835 }, { "eps": 0.0125, "h": 1e-05, "twosided": true, "T": 200, - "err_M": 0.0009527900239920897, - "err_Jr": 0.0003960780742708926 + "err_M": 0.000952790010821367, + "err_Jr": 0.00039607807206349554 }, { "eps": 0.0125, "h": 1e-06, "twosided": true, "T": 200, - "err_M": 0.0009527899870702549, - "err_Jr": 0.0003961130060081393 + "err_M": 0.0009527899607744317, + "err_Jr": 0.00039611300447934655 } ], "E_T3_income_preservation": { @@ -986,5 +986,5 @@ "twosided": true } }, - "runtime_s": 61.72445011138916 + "runtime_s": 107.80264186859131 } \ No newline at end of file diff --git a/out/pytest_output_v0_3_0.txt b/out/pytest_output_v0_3_0.txt index c8362c3..7b5ea9a 100644 --- a/out/pytest_output_v0_3_0.txt +++ b/out/pytest_output_v0_3_0.txt @@ -1,9 +1,9 @@ ============================= test session starts ============================== -platform linux -- Python 3.13.16, pytest-9.1.1, pluggy-1.7.0 -- /usr/bin/python3 -rootdir: /home/user/hank-limits +platform linux -- Python 3.13.16, pytest-9.1.1, pluggy-1.7.0 -- /home/claude/hl-venv/bin/python +cachedir: .pytest_cache +rootdir: /home/claude/hank-limits configfile: pytest.ini testpaths: tests -plugins: anyio-4.15.1 collecting ... collected 118 items tests/test_diagnostics_v0_2.py::test_inverse_iteration_report[audit_t4] PASSED [ 0%] @@ -130,4 +130,4 @@ XFAIL tests/test_t5_ikc.py::test_ikc_identity_ssj_solver_rule_long_horizon - Fin XFAIL tests/test_t5_ikc.py::test_ikc_identity_with_mismatched_options - Finding F1 (SSJ 1.0.0): HetBlock linear impulses recompute Jacobians despite supplied Js (own options, default one-sided h=1e-4); with two-sided Js the r-shock IKC holds only to ~1e-4. XFAIL tests/test_v0_3_checks.py::test_v6a_f3_hetinput_two_sided - Finding F3 (SSJ 1.0.0): DifferentiableCombinedExtendedFunction.diff defaults to twosided=False instead of None, so the stored setting is ignored when the caller omits it. V6a: HetBlock differentiates hetinputs one-sided although it asks for two-sided differences. XFAIL tests/test_v0_3_checks.py::test_v6b_f3_hetoutput_two_sided - Finding F3 (SSJ 1.0.0): DifferentiableCombinedExtendedFunction.diff defaults to twosided=False instead of None, so the stored setting is ignored when the caller omits it. V6b: hetoutputs are differentiated one-sided even with jacobian(..., twosided=True). -================== 114 passed, 4 xfailed in 70.04s (0:01:10) =================== +================== 114 passed, 4 xfailed in 91.76s (0:01:31) =================== diff --git a/out/tables_v0_2/suite_results_long_v0_2.csv b/out/tables_v0_2/suite_results_long_v0_2.csv index 8497f51..d4872f9 100644 --- a/out/tables_v0_2/suite_results_long_v0_2.csv +++ b/out/tables_v0_2/suite_results_long_v0_2.csv @@ -7,103 +7,103 @@ T1,eps,0.0,4800,250.0,0.0001,True,50,200,none (PE),err_M,8.410562784416657e-10 T1,eps,0.0,4800,250.0,0.0001,True,50,200,none (PE),err_Jr,3.5183681859543607e-09 T1,eps,0.0,4800,250.0,0.0001,True,100,200,none (PE),err_M,9.619359904976259e-10 T1,eps,0.0,4800,250.0,0.0001,True,100,200,none (PE),err_Jr,3.0272917824079073e-09 -T1,eps,0.2,4800,250.0,0.0001,True,200,200,none (PE),err_M,0.20847432667883714 -T1,eps,0.2,4800,250.0,0.0001,True,200,200,none (PE),err_Jr,0.11165466894401481 -T1,eps,0.2,4800,250.0,0.0001,True,200,200,none (PE),kappa,0.0011390104101932264 -T1,eps,0.2,4800,250.0,0.0001,True,200,200,none (PE),mass_constrained,2.8758988889669682e-06 -T1,eps,0.2,4800,250.0,0.0001,True,50,200,none (PE),err_M,0.05080844318199357 -T1,eps,0.2,4800,250.0,0.0001,True,50,200,none (PE),err_Jr,0.0229919963660679 -T1,eps,0.2,4800,250.0,0.0001,True,100,200,none (PE),err_M,0.09234060570548107 -T1,eps,0.2,4800,250.0,0.0001,True,100,200,none (PE),err_Jr,0.03149492772315264 -T1,eps,0.1,4800,250.0,0.0001,True,200,200,none (PE),err_M,0.05516257549065518 -T1,eps,0.1,4800,250.0,0.0001,True,200,200,none (PE),err_Jr,0.026302572684358504 -T1,eps,0.1,4800,250.0,0.0001,True,200,200,none (PE),kappa,0.0002738673601242052 -T1,eps,0.1,4800,250.0,0.0001,True,200,200,none (PE),mass_constrained,8.540114414786742e-07 -T1,eps,0.1,4800,250.0,0.0001,True,50,200,none (PE),err_M,0.01187319217781944 -T1,eps,0.1,4800,250.0,0.0001,True,50,200,none (PE),err_Jr,0.005767938566229665 -T1,eps,0.1,4800,250.0,0.0001,True,100,200,none (PE),err_M,0.022716636925689808 -T1,eps,0.1,4800,250.0,0.0001,True,100,200,none (PE),err_Jr,0.006863432720338505 -T1,eps,0.05,4800,250.0,0.0001,True,200,200,none (PE),err_M,0.013985259824235046 -T1,eps,0.05,4800,250.0,0.0001,True,200,200,none (PE),err_Jr,0.006442906342273105 -T1,eps,0.05,4800,250.0,0.0001,True,200,200,none (PE),kappa,6.785797856327103e-05 -T1,eps,0.05,4800,250.0,0.0001,True,200,200,none (PE),mass_constrained,2.7178543279120503e-07 -T1,eps,0.05,4800,250.0,0.0001,True,50,200,none (PE),err_M,0.0028837226818199564 -T1,eps,0.05,4800,250.0,0.0001,True,50,200,none (PE),err_Jr,0.0014347898204935157 -T1,eps,0.05,4800,250.0,0.0001,True,100,200,none (PE),err_M,0.005613476773124019 -T1,eps,0.05,4800,250.0,0.0001,True,100,200,none (PE),err_Jr,0.001670183215284018 -T1,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),err_M,0.003601547232611845 -T1,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),err_Jr,0.0015980239678753487 -T1,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),kappa,1.708112261981114e-05 -T1,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),mass_constrained,1.2673328445401908e-07 -T1,eps,0.025,4800,250.0,0.0001,True,50,200,none (PE),err_M,0.0007354056883612714 -T1,eps,0.025,4800,250.0,0.0001,True,50,200,none (PE),err_Jr,0.00036225109978065754 -T1,eps,0.025,4800,250.0,0.0001,True,100,200,none (PE),err_M,0.0014348227233163726 -T1,eps,0.025,4800,250.0,0.0001,True,100,200,none (PE),err_Jr,0.00040377834606544104 -T1,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),err_M,0.0009527900910497443 -T1,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),err_Jr,0.0003956887863158094 -T1,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),kappa,4.345225634277017e-06 -T1,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),mass_constrained,9.829642339391762e-08 -T1,eps,0.0125,4800,250.0,0.0001,True,50,200,none (PE),err_M,0.00019625109548770725 -T1,eps,0.0125,4800,250.0,0.0001,True,50,200,none (PE),err_Jr,9.249333374492274e-05 -T1,eps,0.0125,4800,250.0,0.0001,True,100,200,none (PE),err_M,0.00037897553743878476 -T1,eps,0.0125,4800,250.0,0.0001,True,100,200,none (PE),err_Jr,9.601835757912446e-05 -T1_grid,eps,0.025,1200,250.0,0.0001,True,200,200,none (PE),err_M,0.004282315767551893 -T1_grid,eps,0.025,1200,250.0,0.0001,True,200,200,none (PE),err_Jr,0.0015529736758562642 -T1_grid,eps,0.0125,1200,250.0,0.0001,True,200,200,none (PE),err_M,0.0014106579357445245 -T1_grid,eps,0.0125,1200,250.0,0.0001,True,200,200,none (PE),err_Jr,0.0008515279022014415 -T1_grid,eps,0.025,2400,250.0,0.0001,True,200,200,none (PE),err_M,0.003807376464388779 -T1_grid,eps,0.025,2400,250.0,0.0001,True,200,200,none (PE),err_Jr,0.001586518064273599 -T1_grid,eps,0.0125,2400,250.0,0.0001,True,200,200,none (PE),err_M,0.0010758381400021784 -T1_grid,eps,0.0125,2400,250.0,0.0001,True,200,200,none (PE),err_Jr,0.000385957989192528 -T1_grid,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),err_M,0.003601547232611845 -T1_grid,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),err_Jr,0.0015980239678753487 -T1_grid,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),err_M,0.0009527900910497443 -T1_grid,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),err_Jr,0.0003956887863158094 -T1_grid,eps,0.025,9600,250.0,0.0001,True,200,200,none (PE),err_M,0.003505985412519846 -T1_grid,eps,0.025,9600,250.0,0.0001,True,200,200,none (PE),err_Jr,0.001602453574733465 -T1_grid,eps,0.0125,9600,250.0,0.0001,True,200,200,none (PE),err_M,0.0009008731426101751 -T1_grid,eps,0.0125,9600,250.0,0.0001,True,200,200,none (PE),err_Jr,0.00039890130577309826 +T1,eps,0.2,4800,250.0,0.0001,True,200,200,none (PE),err_M,0.2084743266887109 +T1,eps,0.2,4800,250.0,0.0001,True,200,200,none (PE),err_Jr,0.11165466895059169 +T1,eps,0.2,4800,250.0,0.0001,True,200,200,none (PE),kappa,0.0011390104102615608 +T1,eps,0.2,4800,250.0,0.0001,True,200,200,none (PE),mass_constrained,2.8758988892359325e-06 +T1,eps,0.2,4800,250.0,0.0001,True,50,200,none (PE),err_M,0.05080844318880496 +T1,eps,0.2,4800,250.0,0.0001,True,50,200,none (PE),err_Jr,0.02299199636804947 +T1,eps,0.2,4800,250.0,0.0001,True,100,200,none (PE),err_M,0.09234060571020695 +T1,eps,0.2,4800,250.0,0.0001,True,100,200,none (PE),err_Jr,0.03149492772551914 +T1,eps,0.1,4800,250.0,0.0001,True,200,200,none (PE),err_M,0.05516257549781499 +T1,eps,0.1,4800,250.0,0.0001,True,200,200,none (PE),err_Jr,0.02630257269183431 +T1,eps,0.1,4800,250.0,0.0001,True,200,200,none (PE),kappa,0.00027386736016703743 +T1,eps,0.1,4800,250.0,0.0001,True,200,200,none (PE),mass_constrained,8.540114414491709e-07 +T1,eps,0.1,4800,250.0,0.0001,True,50,200,none (PE),err_M,0.011873192180838238 +T1,eps,0.1,4800,250.0,0.0001,True,50,200,none (PE),err_Jr,0.005767938565382432 +T1,eps,0.1,4800,250.0,0.0001,True,100,200,none (PE),err_M,0.022716636928623437 +T1,eps,0.1,4800,250.0,0.0001,True,100,200,none (PE),err_Jr,0.006863432724241965 +T1,eps,0.05,4800,250.0,0.0001,True,200,200,none (PE),err_M,0.01398525984373735 +T1,eps,0.05,4800,250.0,0.0001,True,200,200,none (PE),err_Jr,0.006442906347443165 +T1,eps,0.05,4800,250.0,0.0001,True,200,200,none (PE),kappa,6.785797855810553e-05 +T1,eps,0.05,4800,250.0,0.0001,True,200,200,none (PE),mass_constrained,2.71785433366305e-07 +T1,eps,0.05,4800,250.0,0.0001,True,50,200,none (PE),err_M,0.002883722682126089 +T1,eps,0.05,4800,250.0,0.0001,True,50,200,none (PE),err_Jr,0.0014347898254708476 +T1,eps,0.05,4800,250.0,0.0001,True,100,200,none (PE),err_M,0.005613476780938496 +T1,eps,0.05,4800,250.0,0.0001,True,100,200,none (PE),err_Jr,0.001670183214707008 +T1,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),err_M,0.0036015472212443255 +T1,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),err_Jr,0.0015980239605961008 +T1,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),kappa,1.7081122252233332e-05 +T1,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),mass_constrained,1.2673328352967254e-07 +T1,eps,0.025,4800,250.0,0.0001,True,50,200,none (PE),err_M,0.0007354056879154139 +T1,eps,0.025,4800,250.0,0.0001,True,50,200,none (PE),err_Jr,0.0003622511009346886 +T1,eps,0.025,4800,250.0,0.0001,True,100,200,none (PE),err_M,0.0014348227187985965 +T1,eps,0.025,4800,250.0,0.0001,True,100,200,none (PE),err_Jr,0.0004037783433272635 +T1,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),err_M,0.0009527900769080934 +T1,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),err_Jr,0.00039568877844683835 +T1,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),kappa,4.345225255330264e-06 +T1,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),mass_constrained,9.829642060968911e-08 +T1,eps,0.0125,4800,250.0,0.0001,True,50,200,none (PE),err_M,0.00019625108846798333 +T1,eps,0.0125,4800,250.0,0.0001,True,50,200,none (PE),err_Jr,9.24933351370389e-05 +T1,eps,0.0125,4800,250.0,0.0001,True,100,200,none (PE),err_M,0.0003789755317193494 +T1,eps,0.0125,4800,250.0,0.0001,True,100,200,none (PE),err_Jr,9.601835793135353e-05 +T1_grid,eps,0.025,1200,250.0,0.0001,True,200,200,none (PE),err_M,0.004282315783279357 +T1_grid,eps,0.025,1200,250.0,0.0001,True,200,200,none (PE),err_Jr,0.001552973684832592 +T1_grid,eps,0.0125,1200,250.0,0.0001,True,200,200,none (PE),err_M,0.0014106579120770329 +T1_grid,eps,0.0125,1200,250.0,0.0001,True,200,200,none (PE),err_Jr,0.0008515278659718663 +T1_grid,eps,0.025,2400,250.0,0.0001,True,200,200,none (PE),err_M,0.003807376452457238 +T1_grid,eps,0.025,2400,250.0,0.0001,True,200,200,none (PE),err_Jr,0.0015865180547778095 +T1_grid,eps,0.0125,2400,250.0,0.0001,True,200,200,none (PE),err_M,0.001075838128180821 +T1_grid,eps,0.0125,2400,250.0,0.0001,True,200,200,none (PE),err_Jr,0.0003859579863830431 +T1_grid,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),err_M,0.0036015472212443255 +T1_grid,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),err_Jr,0.0015980239605961008 +T1_grid,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),err_M,0.0009527900769080934 +T1_grid,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),err_Jr,0.00039568877844683835 +T1_grid,eps,0.025,9600,250.0,0.0001,True,200,200,none (PE),err_M,0.003505985401980433 +T1_grid,eps,0.025,9600,250.0,0.0001,True,200,200,none (PE),err_Jr,0.0016024535698207457 +T1_grid,eps,0.0125,9600,250.0,0.0001,True,200,200,none (PE),err_M,0.0009008731313686825 +T1_grid,eps,0.0125,9600,250.0,0.0001,True,200,200,none (PE),err_Jr,0.0003989012976009445 T2,eps,0.2,4800,250.0,0.0001,True,200,200,none (PE),err_MH_vs_I,0.5960807626083381 -T2,eps,0.2,4800,250.0,0.0001,True,200,200,none (PE),err_MS_vs_MRA,0.2753785607572346 -T2,eps,0.2,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_vs_TANK,0.5563307287313658 -T2,eps,0.2,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.0,0.11857003441056169 -T2,eps,0.2,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.0,0.5563307287313658 -T2,eps,0.2,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.13123016650498037 -T2,eps,0.2,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.5,0.5745983708724459 +T2,eps,0.2,4800,250.0,0.0001,True,200,200,none (PE),err_MS_vs_MRA,0.27537856076939554 +T2,eps,0.2,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_vs_TANK,0.5563307287314349 +T2,eps,0.2,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.0,0.118570053551395 +T2,eps,0.2,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.0,0.5563307287314349 +T2,eps,0.2,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.13123018494575056 +T2,eps,0.2,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.5,0.5745983708724343 T2,eps,0.1,4800,250.0,0.0001,True,200,200,none (PE),err_MH_vs_I,0.342489174602134 -T2,eps,0.1,4800,250.0,0.0001,True,200,200,none (PE),err_MS_vs_MRA,0.07290358791029576 -T2,eps,0.1,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_vs_TANK,0.3202719405685403 -T2,eps,0.1,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.0,0.04385650089950475 -T2,eps,0.1,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.0,0.3202719405685403 -T2,eps,0.1,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.05440933581904722 -T2,eps,0.1,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.5,0.3304878893160343 +T2,eps,0.1,4800,250.0,0.0001,True,200,200,none (PE),err_MS_vs_MRA,0.0729035879006383 +T2,eps,0.1,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_vs_TANK,0.320271940569938 +T2,eps,0.1,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.0,0.04385642531250914 +T2,eps,0.1,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.0,0.320271940569938 +T2,eps,0.1,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.0544092608937404 +T2,eps,0.1,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.5,0.3304878893167894 T2,eps,0.05,4800,250.0,0.0001,True,200,200,none (PE),err_MH_vs_I,3.8757885789664215e-13 -T2,eps,0.05,4800,250.0,0.0001,True,200,200,none (PE),err_MS_vs_MRA,0.018495803864692142 -T2,eps,0.05,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_vs_TANK,0.0011770057004804107 -T2,eps,0.05,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.0,0.012437367750815456 -T2,eps,0.05,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.0,0.0011770057004804107 -T2,eps,0.05,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.012437367742744067 -T2,eps,0.05,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.5,0.0006357932578487907 +T2,eps,0.05,4800,250.0,0.0001,True,200,200,none (PE),err_MS_vs_MRA,0.01849580388480969 +T2,eps,0.05,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_vs_TANK,0.0011770057017606226 +T2,eps,0.05,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.0,0.012437789410473042 +T2,eps,0.05,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.0,0.0011770057017606226 +T2,eps,0.05,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.012437789402403221 +T2,eps,0.05,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.5,0.0006357932585403283 T2,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),err_MH_vs_I,1.674216321134736e-13 -T2,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),err_MS_vs_MRA,0.004764045569629273 -T2,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_vs_TANK,0.00030316653624913766 -T2,eps,0.025,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.0,0.003456459211569382 -T2,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.0,0.00030316653624913766 -T2,eps,0.025,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.0034564592148616257 -T2,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.5,0.00016376406645600845 +T2,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),err_MS_vs_MRA,0.00476404554823014 +T2,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_vs_TANK,0.0003031665348873735 +T2,eps,0.025,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.0,0.0034545483957188414 +T2,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.0,0.0003031665348873735 +T2,eps,0.025,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.0034545483990096044 +T2,eps,0.025,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.5,0.0001637640657204121 T2,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),err_MH_vs_I,3.8757885789664215e-13 -T2,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),err_MS_vs_MRA,0.0012605254872211525 -T2,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_vs_TANK,8.021525827770642e-05 -T2,eps,0.0125,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.0,0.0010499787437950078 -T2,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.0,8.021525827770642e-05 -T2,eps,0.0125,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.0010499787363232027 -T2,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.5,4.333056362322375e-05 -T2_grid,eps,0.025,2400,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.004154355847070863 -T2_grid,eps,0.0125,2400,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.0014981497982430694 -T2_grid,eps,0.025,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.0034564592148616257 -T2_grid,eps,0.0125,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.0010499787363232027 -T2_grid,eps,0.025,9600,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.003143188984624592 -T2_grid,eps,0.0125,9600,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.0008697828582072631 +T2,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),err_MS_vs_MRA,0.0012605254615861942 +T2,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_vs_TANK,8.021525664640064e-05 +T2,eps,0.0125,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.0,0.0010414754160448943 +T2,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.0,8.021525664640064e-05 +T2,eps,0.0125,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.0010414754085750163 +T2,eps,0.0125,4800,250.0,0.0001,True,200,200,none (PE),err_Magg_lamchi_vs_TANK_chi1.5,4.3330562742020944e-05 +T2_grid,eps,0.025,2400,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.0041533607960061005 +T2_grid,eps,0.0125,2400,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.0014944991815332884 +T2_grid,eps,0.025,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.0034545483990096044 +T2_grid,eps,0.0125,4800,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.0010414754085750163 +T2_grid,eps,0.025,9600,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.0031417736411566816 +T2_grid,eps,0.0125,9600,250.0,0.0001,True,200,200,SSJ solve_impulse_linear,err_IRF_vs_TANK_chi1.5,0.0008646653143461965 T3,b,0.1,400,-b + 20 b,1e-3 b,True,150,150,SSJ solve_impulse_linear,err_acyc_vs_RANK,0.060118908982377865 T3,b,0.1,400,-b + 20 b,1e-3 b,True,150,150,SSJ solve_impulse_linear,err_cyc_vs_ZL,0.10046774594908645 T3,b,0.1,400,-b + 20 b,1e-3 b,True,150,150,SSJ solve_impulse_linear,dev_cyc_vs_RANK,0.4523208687353463 From c0ac6d8874294c2d14e30f87b4fa5a3d3be057e6 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 28 Oct 2026 17:47:12 +0900 Subject: [PATCH 2/2] v0.3.0: release date and general wording of the AI review disclosure - CITATION.cff: date-released 2026-10-24 -> 2026-10-28 (planned release date of v0.3.0 after this PR is merged). - README section 17: describe the GPT 6.1 Sol reviews in general terms (several stages, including pre-release reviews and audits) instead of counting rounds, so the text stays accurate for later reviews by the same model. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012Sd9g7Lh16QtD2vCrkf6Rk --- CITATION.cff | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CITATION.cff b/CITATION.cff index 0b4da8e..79be65d 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -2,7 +2,7 @@ cff-version: 1.2.0 message: "If you use this software, please cite it as below." title: "hank-limits: analytic-limit and aggregate-identity tests for HANK codes" version: 0.3.0 -date-released: "2026-10-24" +date-released: "2026-10-28" license: MIT doi: 10.5281/zenodo.23489176 identifiers: diff --git a/README.md b/README.md index 0f975d2..26ead80 100644 --- a/README.md +++ b/README.md @@ -491,7 +491,7 @@ Reports to the SSJ maintainers: F1 [shade-econ/sequence-jacobian#39](https://git ## 17. AI usage disclosure -Generative AI tools were used extensively in this project. Claude (Anthropic; Claude Opus 5.5, October 2026) wrote most of the code, tests, numerical experiments and documentation, and derived and checked the closed-form benchmarks, working from the author's instructions. GPT 6.1 Sol (OpenAI) reviewed the code and documents in two rounds; the changes made in response are listed at the top of this README. The author chose the research questions and the tests to include, directed and reviewed the work, decided which findings to report and how to word them, and takes full responsibility for the accuracy, originality and licensing of all submitted material. +Generative AI tools were used extensively in this project. Claude (Anthropic; Claude Opus 5.5, October 2026) wrote most of the code, tests, numerical experiments and documentation, and derived and checked the closed-form benchmarks, working from the author's instructions. GPT 6.1 Sol (OpenAI) reviewed the code, documentation and numerical results at several stages, including pre-release reviews and audits; the changes made in response are recorded at the top of this README and in `docs/`. The author chose the research questions and the tests to include, directed and reviewed the work, decided which findings to report and how to word them, and takes full responsibility for the accuracy, originality and licensing of all submitted material. ## 18. Licence