[](https://mybinder.org/v2/gh/fortitudo-tech/pcrm-book/HEAD?urlpath=%2Fdoc%2Ftree%2F%2Fcode)
# Portfolio Construction and Risk Management book's Python code
This repository contains the accompanying code to Portfolio Construction and Risk
Management book © 2025 by Anton Vorobets.
[You can find the latest PDF version of the book in this Substack post](https://antonvorobets.substack.com/p/pcrm-book).
For a quick video introduction to what you can expect from this book and some
fundamental perspectives, [watch this video](https://antonvorobets.substack.com/p/anton-vorobets-next-generation-investment-framework).
Subscribe to the [Quantamental Investing Substack publication](https://antonvorobets.substack.com)
to stay updated on all news related to the book.
You can still support the project through [buy me a coffee](https://buymeacoffee.com/antonvorobets)
or [Substack](https://antonvorobets.substack.com).
# Applied Quantitative Investment Management course
You can access [a course that carefully goes through the book and its accompanying
code](https://antonvorobets.substack.com/t/course) from this repository.
[Read more about the course and how you get access here](https://antonvorobets.substack.com/p/course-q-and-a).
# Running the code
It is recommended to install the book's code dependencies in a
[conda environment](https://conda.io/projects/conda/en/latest/user-guide/concepts/environments.html).
After cloning the repository to your local machine, you can install the dependencies
using the following command in your terminal:
conda env create -f environment.yml
You can then activate the conda environment and start a [JupyterLab](https://jupyter.org/)
instance using the following commands:
conda activate pcrm-book
jupyter lab
If you are completely new to [conda environments](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html)
and Jupyter notebooks, you can find a lot of information online.
You can also run the code without any local installations using [Binder](https://mybinder.org/v2/gh/fortitudo-tech/pcrm-book/HEAD?urlpath=%2Fdoc%2Ftree%2F%2Fcode).
Note however that Binder servers are not always available and might have
insufficient resources to run all the examples.
# Feedback
Please post your feedback in the community Discussions forum. I will try to
incorporate the feedback in the book. See the book's preface for some general
perspectives on what it tries to achieve, and which kind feedback will
be considered appropriate.
# Thank you for your support
Your support made it possible for this book to be written.
Besides your personal monetary support, you can help improve the quality of the
book by simply publicly sharing your positive experience with the book and its code,
thereby encouraging more people to support the project. You
are also encouraged to give this and the supporting
[fortitudo.tech](https://github.com/fortitudo-tech/fortitudo.tech)
repository a star.
No matter how much economic support this project realistically gets, it will only
be a small fraction of the opportunity costs from writing the book and making it
freely available online. Hence, you are encouraged to support it by the amount that
you think it is worth to you.
[If you claim one of the significiant contributor perks](https://igg.me/at/pcrm-book),
you can choose to be recognized in the book's preface. You will additionally get a one-year
paid complimentary Substack subscription to the [Quantamental Investing publication](https://antonvorobets.substack.com),
which contains exclusive case studies and allow you to continue asking questions.
# Licenses
The Portfolio Construction and Risk Management book © 2025 by Anton Vorobets is licensed
under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International. To view
a copy of this license, visit https://creativecommons.org/licenses/by-nc-nd/4.0/
The accompanying code to the Portfolio Construction and Risk Management book © 2025 by
Anton Vorobets is licensed under version 3 of the GNU General Public License. To view
a copy of this license, visit https://www.gnu.org/licenses/gpl-3.0.en.html
Raw data
{
"_id": null,
"home_page": "https://pcrmbook.com",
"name": "pcrm-book",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.14,>=3.9",
"maintainer_email": null,
"keywords": "CVaR, Entropy Pooling, Quantitative Finance, Portfolio Optimization, Risk Management",
"author": "Anton Vorobets",
"author_email": "admin@fortitudo.tech",
"download_url": "https://files.pythonhosted.org/packages/26/c3/2a83e68a0e6f7245e10675d7039837839a48d5276016a86f0fe609906232/pcrm_book-1.0.3.tar.gz",
"platform": null,
"description": "[](https://mybinder.org/v2/gh/fortitudo-tech/pcrm-book/HEAD?urlpath=%2Fdoc%2Ftree%2F%2Fcode)\n\n# Portfolio Construction and Risk Management book's Python code\nThis repository contains the accompanying code to Portfolio Construction and Risk\nManagement book \u00a9 2025 by Anton Vorobets.\n\n[You can find the latest PDF version of the book in this Substack post](https://antonvorobets.substack.com/p/pcrm-book).\n\nFor a quick video introduction to what you can expect from this book and some\nfundamental perspectives, [watch this video](https://antonvorobets.substack.com/p/anton-vorobets-next-generation-investment-framework).\n\nSubscribe to the [Quantamental Investing Substack publication](https://antonvorobets.substack.com)\nto stay updated on all news related to the book.\n\nYou can still support the project through [buy me a coffee](https://buymeacoffee.com/antonvorobets)\nor [Substack](https://antonvorobets.substack.com).\n\n# Applied Quantitative Investment Management course\nYou can access [a course that carefully goes through the book and its accompanying\ncode](https://antonvorobets.substack.com/t/course) from this repository.\n\n[Read more about the course and how you get access here](https://antonvorobets.substack.com/p/course-q-and-a).\n\n# Running the code\nIt is recommended to install the book's code dependencies in a \n[conda environment](https://conda.io/projects/conda/en/latest/user-guide/concepts/environments.html).\n\nAfter cloning the repository to your local machine, you can install the dependencies\nusing the following command in your terminal:\n\n conda env create -f environment.yml\n\nYou can then activate the conda environment and start a [JupyterLab](https://jupyter.org/)\ninstance using the following commands:\n\n conda activate pcrm-book\n jupyter lab\n\nIf you are completely new to [conda environments](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html)\nand Jupyter notebooks, you can find a lot of information online.\n\nYou can also run the code without any local installations using [Binder](https://mybinder.org/v2/gh/fortitudo-tech/pcrm-book/HEAD?urlpath=%2Fdoc%2Ftree%2F%2Fcode).\nNote however that Binder servers are not always available and might have\ninsufficient resources to run all the examples.\n\n# Feedback\nPlease post your feedback in the community Discussions forum. I will try to\nincorporate the feedback in the book. See the book's preface for some general\nperspectives on what it tries to achieve, and which kind feedback will\nbe considered appropriate.\n\n# Thank you for your support\nYour support made it possible for this book to be written.\n\nBesides your personal monetary support, you can help improve the quality of the\nbook by simply publicly sharing your positive experience with the book and its code,\nthereby encouraging more people to support the project. You\nare also encouraged to give this and the supporting\n[fortitudo.tech](https://github.com/fortitudo-tech/fortitudo.tech)\nrepository a star.\n\nNo matter how much economic support this project realistically gets, it will only\nbe a small fraction of the opportunity costs from writing the book and making it\nfreely available online. Hence, you are encouraged to support it by the amount that\nyou think it is worth to you.\n\n[If you claim one of the significiant contributor perks](https://igg.me/at/pcrm-book),\nyou can choose to be recognized in the book's preface. You will additionally get a one-year\npaid complimentary Substack subscription to the [Quantamental Investing publication](https://antonvorobets.substack.com),\nwhich contains exclusive case studies and allow you to continue asking questions.\n\n# Licenses\nThe Portfolio Construction and Risk Management book \u00a9 2025 by Anton Vorobets is licensed\nunder Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International. To view\na copy of this license, visit https://creativecommons.org/licenses/by-nc-nd/4.0/\n\nThe accompanying code to the Portfolio Construction and Risk Management book \u00a9 2025 by\nAnton Vorobets is licensed under version 3 of the GNU General Public License. To view\na copy of this license, visit https://www.gnu.org/licenses/gpl-3.0.en.html\n",
"bugtrack_url": null,
"license": "GPL-3.0-or-later",
"summary": "Accompanying Python code to the Portfolio Construction and Risk Management book by Anton Vorobets.",
"version": "1.0.3",
"project_urls": {
"Documentation": "https://antonvorobets.substack.com/p/pcrm-book",
"Homepage": "https://pcrmbook.com",
"Issues": "https://github.com/fortitudo-tech/pcrm-book/issues",
"Repository": "https://github.com/fortitudo-tech/pcrm-book"
},
"split_keywords": [
"cvar",
" entropy pooling",
" quantitative finance",
" portfolio optimization",
" risk management"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "772102d49082f40d2b62d2f9092c597727dd4c583a2cd6d0bc38337ecdc174dc",
"md5": "d4f5840550cbb1453dc7d091e0ab3edd",
"sha256": "326a6223d0691055f4aeda36eed8c8e82fd1081eed8bed097c0e76a375690e3d"
},
"downloads": -1,
"filename": "pcrm_book-1.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d4f5840550cbb1453dc7d091e0ab3edd",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.14,>=3.9",
"size": 15814,
"upload_time": "2025-07-08T15:21:48",
"upload_time_iso_8601": "2025-07-08T15:21:48.218462Z",
"url": "https://files.pythonhosted.org/packages/77/21/02d49082f40d2b62d2f9092c597727dd4c583a2cd6d0bc38337ecdc174dc/pcrm_book-1.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "26c32a83e68a0e6f7245e10675d7039837839a48d5276016a86f0fe609906232",
"md5": "1e0c1b246ea3789ec91ec90a56d3168f",
"sha256": "3c27245f3b6bc88156419291110ce668e6c2a6615e93f85d2e9c3ecd16ebc200"
},
"downloads": -1,
"filename": "pcrm_book-1.0.3.tar.gz",
"has_sig": false,
"md5_digest": "1e0c1b246ea3789ec91ec90a56d3168f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.14,>=3.9",
"size": 15793,
"upload_time": "2025-07-08T15:21:49",
"upload_time_iso_8601": "2025-07-08T15:21:49.579690Z",
"url": "https://files.pythonhosted.org/packages/26/c3/2a83e68a0e6f7245e10675d7039837839a48d5276016a86f0fe609906232/pcrm_book-1.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-08 15:21:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "fortitudo-tech",
"github_project": "pcrm-book",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "pcrm-book"
}