Skip to main content

A Python implementation of the Principal Portfolios methodology by Kelly, Malamud, and Pedersen (2023), enabling optimal asset allocation by exploiting cross-predictability among asset returns.

Project description

principal_portfolios

A Python package implementing the Principal Portfolios methodology introduced by Kelly, Malamud, and Pedersen (2023), The Journal of Finance.

Overview

This package provides tools for constructing and analyzing Principal Portfolios—linear trading strategies derived from the singular value decomposition (SVD) of the prediction matrix that captures both own-asset and cross-asset predictive signals.

Key components include:

  • Construction of the prediction matrix from asset returns and signals
  • Decomposition into:
    • Principal Portfolios (PPs): timeable portfolios ordered by predictability
    • Principal Exposure Portfolios (PEPs): factor-exposed strategies (beta)
    • Principal Alpha Portfolios (PAPs): factor-neutral strategies (alpha)

Reference

Kelly, B., Malamud, S., & Pedersen, L. H. (2023). Principal Portfolios. The Journal of Finance, 78(1), 347–392.

Installation

After uploading to PyPI, install via:

pip install principal_portfolios

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

principal_portfolios-1.0.5.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

principal_portfolios-1.0.5-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file principal_portfolios-1.0.5.tar.gz.

File metadata

  • Download URL: principal_portfolios-1.0.5.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.3

File hashes

Hashes for principal_portfolios-1.0.5.tar.gz
Algorithm Hash digest
SHA256 e2cd5c6441554cbe7efbf906c253a34863d469840cad5b1b66931ededaf1ec2d
MD5 6a9068c1e8b6c69f8c32f8369dd296f4
BLAKE2b-256 d4a391696c58e2d1a732f2c4a84d100df1b6af45877ef3c2a2b4b4e99401443f

See more details on using hashes here.

File details

Details for the file principal_portfolios-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for principal_portfolios-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b647339319f8c35330ebfc4c075a795afb6edbc92bdebc6a0185d0e9eb119c62
MD5 c6f47f214af90bca99cf8577fcc63879
BLAKE2b-256 82b28c527e2233716c0432e104a573734ae25a1b6e05a2a1f0d2687590066967

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