Bugs/planned vs executed investment#64
Open
jose-moran wants to merge 2 commits intobugs/productivity-growthfrom
Open
Bugs/planned vs executed investment#64jose-moran wants to merge 2 commits intobugs/productivity-growthfrom
jose-moran wants to merge 2 commits intobugs/productivity-growthfrom
Conversation
compute_tfp_growth() was using executed_productivity_investment (computed as total_capital_bought - replacement_cost) instead of planned_tfp_investment (the forward-looking decision from set_targets). These are fundamentally different calculations: - Planned: Based on available cash, hurdle rate, and budget constraints - Executed: Residual after depreciation is accounted for This caused TFP growth to be disconnected from firms' investment intentions: - Firms with high depreciation got less TFP growth than planned - Firms that over-bought capital got more TFP growth than planned (windfall) The fix changes compute_tfp_growth() to use this priority order: 1. planned_tfp_investment (TFP-specific portion of planned investment) 2. planned_productivity_investment (total planned, if TFP portion unavailable) 3. executed_productivity_investment (legacy fallback) 4. compute_productivity_investment() (final fallback for initial period) Fixes #59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes the issue #59 that @sternluke raised.
Details below:
compute_tfp_growth() was using executed_productivity_investment (computed as
total_capital_bought - replacement_cost) instead of planned_tfp_investment
(the forward-looking decision from set_targets).
These are fundamentally different calculations:
This caused TFP growth to be disconnected from firms' investment intentions:
The fix changes compute_tfp_growth() to use this priority order: