Skip to main content

Accompanying Python code to the Portfolio Construction and Risk Management book by Anton Vorobets.

Project description

Binder

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.

For a quick video introduction to what you can expect from this book and some fundamental perspectives, watch this video.

Subscribe to the Quantamental Investing Substack publication to stay updated on all news related to the book.

You can still support the project through buy me a coffee or Substack.

Applied Quantitative Investment Management course

You can access a course that carefully goes through the book and its accompanying code from this repository.

Read more about the course and how you get access here.

Running the code

It is recommended to install the book's code dependencies in a conda environment.

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 instance using the following commands:

conda activate pcrm-book
jupyter lab

If you are completely new to conda environments and Jupyter notebooks, you can find a lot of information online.

You can also run the code without any local installations using Binder. 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 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, 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, 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pcrm_book-1.0.8.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pcrm_book-1.0.8-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file pcrm_book-1.0.8.tar.gz.

File metadata

  • Download URL: pcrm_book-1.0.8.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.8.10 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for pcrm_book-1.0.8.tar.gz
Algorithm Hash digest
SHA256 335f253f8a5ad94031db92ad0c4ba4dc0ec4f154e777d4f585df19e57a912901
MD5 329912eaf630c18a2f87e3b630e9f947
BLAKE2b-256 234a8591b6d664dc6a9a533d911ac4735945f2878f2d0bf2525b8a00afb5eb55

See more details on using hashes here.

File details

Details for the file pcrm_book-1.0.8-py3-none-any.whl.

File metadata

  • Download URL: pcrm_book-1.0.8-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.8.10 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for pcrm_book-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9b033e38c17659f2390b18ed62d22acc8c975210b5254e63ad27f5acbb3ff8cf
MD5 7b9657d3dc6bdc5b07e400ccdb255fe8
BLAKE2b-256 97f0f3779ebc09695cb29346c7cb4d2376aec6ffc31be7d5c2639287e0d02f7b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page