Repository navigation
feat(prototypes): test debt at estimated present value - #151
Merged
Merged
Conversation
The IMF-World Bank debt thresholds are set on present value, and FDL's 2023 note measures debt "at present value over GDP". IDS publishes face value only, so the data step now estimates present value as face value times (1 - concessional share x mean grant element), with the share from DT.DOD.ALLC.CD over DT.DOD.DPPG.CD and the grant element the mean of DT.GRE.DPPG from 2015 to the base year. The rebuild of 2024 now matches FDL's group for 54 of 58 countries (51 at face value), and 57 of 58 on the debt test alone. The 2025 counts become 7, 20 and 31.
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.
The debt test in the debt-thresholds prototype now uses an estimate of present value in place of face value. The IMF–World Bank thresholds are set on present value, and FDL's 2023 note measures debt "at present value over GDP". IDS publishes face value only, so the data step estimates present value as face value × (1 − concessional share × mean grant element). The rebuild of 2024 now matches FDL's group for 54 of 58 countries, up from 51, and 57 of 58 on the debt test alone.
Changes
_data/pipeline/sources/ids_bulk.pyreadsDT.DOD.ALLC.CD(concessional stock) andDT.GRE.DPPG(grant element of new commitments) from the bulk files for both views._data/pipeline/valuation.pyaddspresent_value: the concessional share of the PPG stock in the base year, capped at one, discounted by the mean grant element from 2015 to the base year.build.pywrites it asdebtPVbesidedebtFace, andcoverage.pychecks it._lib/thresholds.tsdebtRatiousesdebtPV. The scatter title, the country card heading and the CSV column say "at present value", and the envelope'smeasureispv.page.mdx: step 1 says FDL checks debt at present value, the Notes name Mozambique as the one debt-test difference, and the face-value bullet becomes a short account of the estimate.Notes for reviewers
_data/fixture.jsonsetsdebtFacea quarter abovedebtPV, so the TS tests fail ifdebtRatioslips back to face value (7 of 31 fail).Testing:
uvx --with pytest pytest tests(79 passed),pnpm test(31 passed),pnpm typecheck,pnpm check:dataand ESLint on the prototype all clean; page checked on the dev server.