VaR-Rule for FX Interventions
================================
Link to the Python notebook: https://github.com/romainlafarguette/VaR-FX-Interventions/blob/master/notebooks/VaR-FX%20Interventions.ipynb
The Python notebook replicates the tables and the charts of the IMF WP on
"Foreign Exchange Interventions Rules for Central Banks: A Risk-Based Framework"
**IMPORTANT: BECAUSE OF AN UPDATE OF THE ARCH PACKAGE AFTER 4.19, and in particular the
random number generator, the way the random seed is managed has changed. Some
results are therefore slightly different (e.g. the pdf plot) by a few pips as
in the IMF WP, but are qualitatively similar. The journal version will reflect
the new version**
The paper uses a Python package that I have written, DistGARCH, also available in
this Github folder, with the public FX intervention data from the Banco
Mexico. DistGARCH is based on the ARCH package of Kevin Sheppard.
You can use the code for non-commercial applications, providing that you cite the IMF Working Paper
Lafarguette, R. and Veyrune, R. (2020) "Foreign Exchange Interventions Rules for Central Banks: A Risk-Based Framework", IMF Working Paper
The folder is organized as follows:
- mxn_estimation.py is the pure Python file with the core estimation and
robustness analysis
- VaR-FX Interventions.ipynb is a Jupyter notebook, which illustrates the approach
- modules/ contains the modules for this project, in particular distGARCH which infers a conditional distribution from a GARCH model
- data/ contains public data files, with FX rate and FX interventions from Banco Mexico website
- img/ contains some images to illustrate the Jupyter Notebook
**Reuse of this tool and IMF data does not imply any endorsement of the research and/or product. Any research presented should not be reported as
representing the views of the IMF, its Executive Board, or member
governments.**
Note that the Github repo contains only publicly available data.
Author: Romain Lafarguette, August 2020
If you have any question, please contact me via Github or rlafarguette "at" imf "dot" org
Raw data
{
"_id": null,
"home_page": "https://github.com/romainlafarguette/varfxi",
"name": "varfxi",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "",
"keywords": "var,garch",
"author": "romainlafarguette",
"author_email": "romain.lafarguette@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/f9/8c/2e09ddd064d11d646972c3b0fef3def78b24c50e14fcf587e290e757c1c5/varfxi-0.0.4.tar.gz",
"platform": null,
"description": "VaR-Rule for FX Interventions\n================================\n\nLink to the Python notebook: https://github.com/romainlafarguette/VaR-FX-Interventions/blob/master/notebooks/VaR-FX%20Interventions.ipynb\n\nThe Python notebook replicates the tables and the charts of the IMF WP on\n\"Foreign Exchange Interventions Rules for Central Banks: A Risk-Based Framework\"\n\n**IMPORTANT: BECAUSE OF AN UPDATE OF THE ARCH PACKAGE AFTER 4.19, and in particular the\nrandom number generator, the way the random seed is managed has changed. Some\nresults are therefore slightly different (e.g. the pdf plot) by a few pips as\nin the IMF WP, but are qualitatively similar. The journal version will reflect\nthe new version**\n\n\nThe paper uses a Python package that I have written, DistGARCH, also available in\nthis Github folder, with the public FX intervention data from the Banco\nMexico. DistGARCH is based on the ARCH package of Kevin Sheppard.\n\nYou can use the code for non-commercial applications, providing that you cite the IMF Working Paper\nLafarguette, R. and Veyrune, R. (2020) \"Foreign Exchange Interventions Rules for Central Banks: A Risk-Based Framework\", IMF Working Paper\n\nThe folder is organized as follows:\n- mxn_estimation.py is the pure Python file with the core estimation and\n robustness analysis\n- VaR-FX Interventions.ipynb is a Jupyter notebook, which illustrates the approach\n- modules/ contains the modules for this project, in particular distGARCH which infers a conditional distribution from a GARCH model\n- data/ contains public data files, with FX rate and FX interventions from Banco Mexico website\n- img/ contains some images to illustrate the Jupyter Notebook\n\n**Reuse of this tool and IMF data does not imply any endorsement of the research and/or product. Any research presented should not be reported as\nrepresenting the views of the IMF, its Executive Board, or member\ngovernments.**\n\nNote that the Github repo contains only publicly available data. \n\nAuthor: Romain Lafarguette, August 2020\n\nIf you have any question, please contact me via Github or rlafarguette \"at\" imf \"dot\" org\n\n",
"bugtrack_url": null,
"license": "",
"summary": "Volatility based estimation for FX interventions",
"version": "0.0.4",
"split_keywords": [
"var",
"garch"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6d5cdafc88cec28a4ca183ee5ac90f1fc11b5f97cd9062fa7ea705b6b7d3539c",
"md5": "672cc6be4b7fd138230c98d660212a6d",
"sha256": "7dc90efbf07a31032c180b613c572cf98386e6c6626df9df2f5108f982ada270"
},
"downloads": -1,
"filename": "varfxi-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "672cc6be4b7fd138230c98d660212a6d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 89382,
"upload_time": "2023-04-20T09:27:14",
"upload_time_iso_8601": "2023-04-20T09:27:14.996958Z",
"url": "https://files.pythonhosted.org/packages/6d/5c/dafc88cec28a4ca183ee5ac90f1fc11b5f97cd9062fa7ea705b6b7d3539c/varfxi-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f98c2e09ddd064d11d646972c3b0fef3def78b24c50e14fcf587e290e757c1c5",
"md5": "64577b0941d842dfd1013f2789790f4f",
"sha256": "d2716b001ac3a341cf55add2115f78c7e1e332f416c5b17e8d1d961a7b261af2"
},
"downloads": -1,
"filename": "varfxi-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "64577b0941d842dfd1013f2789790f4f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 86885,
"upload_time": "2023-04-20T09:27:17",
"upload_time_iso_8601": "2023-04-20T09:27:17.765914Z",
"url": "https://files.pythonhosted.org/packages/f9/8c/2e09ddd064d11d646972c3b0fef3def78b24c50e14fcf587e290e757c1c5/varfxi-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-20 09:27:17",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "romainlafarguette",
"github_project": "varfxi",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "varfxi"
}