Skip to main content

Binder

Portfolio Construction and Risk Management book's Python code

This repository contains the accompanying code to Portfolio Construction and Risk Management book © 2024-2026 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 post that contains the latest version of the book

Licenses

The Portfolio Construction and Risk Management book © 2024-2026 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 © 2024-2026 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

Metadata

Release files for pcrm-book 1.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pcrm-book 1.0.11
File Size Uploaded Provenance Actions
pcrm_book-1.0.11.tar.gz 15.6 kB Without provenance Details for pcrm_book-1.0.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pcrm-book 1.0.11
File Interpreter ABI Platform Actions
pcrm_book-1.0.11-py3-none-any.whl Python 3 none any Details for pcrm_book-1.0.11-py3-none-any.whl

Total release size: 31.4 kB

Release files / pcrm_book-1.0.11.tar.gz

Download URL pcrm_book-1.0.11.tar.gz
Size 15.6 kB
Tags Source
SHA-256 checksum
How to use checksums
bc7b076b2c9fbb61fa1f8530c8ebab12da9854282658345c36457f977b6ac169
BLAKE2b-256 checksum
How to use checksums
063bed14f95799c309836ed21c9720dedac8395930c09f744cc889d9b8d236a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.8.10 Linux/5.15.167.4-microsoft-standard-WSL2

Release files / pcrm_book-1.0.11-py3-none-any.whl

Download URL pcrm_book-1.0.11-py3-none-any.whl
Size 15.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc53b081d8406286d818bb1ed1511a8fabb1946ae9b8f70eb15f69c07f7836c9
BLAKE2b-256 checksum
How to use checksums
603710b66efcbc6bb188fd749836e1bedca6e24bb764011601e763113cc3c4c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.8.10 Linux/5.15.167.4-microsoft-standard-WSL2

Security for pcrm-book 1.0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page