awesome-repositories.com
Blog
MCP
awesome-repositories.com

Descoperă cele mai bune repository-uri open source cu căutare AI.

ExploreazăCăutări recomandateAlternative open-sourceSoftware self-hostedBlogHartă site
ProiectDespreCum realizăm clasamentulPresăServer MCP
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
robertmartin8 avatar

robertmartin8/PyPortfolioOpt

0
View on GitHub↗
5,792 stele·1,137 fork-uri·Jupyter Notebook·MIT·4 vizualizăripyportfolioopt.readthedocs.io↗

PyPortfolioOpt

PyPortfolioOpt is a comprehensive portfolio optimization library for Python that provides a full suite of methods for constructing and analyzing investment portfolios. At its core, the library implements mean-variance optimization, the Black-Litterman Bayesian model, and Hierarchical Risk Parity, giving users multiple approaches to asset allocation. It includes a complete covariance estimation toolkit with interchangeable estimators such as sample, exponential, shrinkage, and minimum-covariance-determinant methods, along with expected return estimation using historical mean, exponential weighting, or the Capital Asset Pricing Model.

The library distinguishes itself through several advanced capabilities. It features a Black-Litterman framework that blends market-cap-weighted prior returns with user-specified views using Bayesian updating, complete with view confidence specification and posterior covariance computation. The efficient frontier is computed using a dedicated Critical Line Algorithm solver that handles inequality constraints natively and converges in a fixed number of steps. For practical implementation, the library includes a discrete allocation rounder that converts continuous portfolio weights into integer share counts while respecting minimum trade sizes and cash balance. Hierarchical Risk Parity allocation builds diversified portfolios by recursively bisecting the correlation matrix with single-linkage clustering and allocating variance across clusters without inverting the covariance matrix.

The optimization engine supports a wide range of constraints including bounds on position size, long/short limits, and market neutrality, and can optimize for alternative risk measures such as semivariance and Conditional Value-at-Risk. Users can also integrate custom optimization algorithms by inheriting from base optimizer classes while reusing built-in weight-cleaning and performance-reporting utilities. The library provides tools for deriving market-implied prior returns from market-cap weights, computing posterior return weights, and maximizing the Sharpe ratio or minimizing volatility through the Critical Line Algorithm.

Features

  • Multi-Method Portfolio Optimizers - A comprehensive Python library for mean-variance optimization, Black-Litterman allocation, and Hierarchical Risk Parity.
  • Efficient Frontier Construction - Derives the full set of mean-variance optimal portfolios using the critical line algorithm.
  • Efficient Frontier Solvers - Computes the efficient frontier using a dedicated Critical Line Algorithm solver with native inequality constraint handling.
  • Mean-Variance Optimization Solvers - Minimizes quadratic risk subject to linear constraints using a convex solver for mean-variance optimization.
  • Portfolio Return Prior Models - Implements the Black-Litterman Bayesian model that blends market-cap-weighted priors with investor views.
  • Financial Covariance Estimators - Ships a complete covariance estimation toolkit with multiple interchangeable estimators for portfolio risk modeling.
  • Portfolio Constraint Enforcement - Applies bounds, long/short limits, and market-neutrality constraints during portfolio weight optimization.
  • Covariance Matrix Calculators - Calculates covariance matrices of asset returns from historical price data to quantify portfolio risk.
  • Hierarchical Risk Parity - Constructs diversified portfolios by clustering assets hierarchically without inverting the covariance matrix.
  • Integer Share Allocation Algorithms - Converts continuous portfolio weights into integer share counts respecting minimum trade sizes and cash balance.
  • Sharpe Ratio Maximization - Finds the tangency portfolio that delivers the highest risk-adjusted return using a dedicated solver.
  • Volatility Minimizers - Identifies the asset-weight combination that produces the lowest overall portfolio volatility using a specialized solver.
  • Asset Return Estimation - Forecasts future asset returns using historical mean, exponential weighting, or CAPM.
  • Alternative Risk Minimizers - Supports optimization using alternative risk measures such as semivariance and Conditional Value-at-Risk.
  • Portfolio Share Allocation Algorithms - Converts continuous portfolio weights into integer share counts for a given investment amount.
  • Financial Analytics - Tools for portfolio optimization and efficient frontier.
  • Financial Analytics Tools - Library for financial portfolio optimization and efficient frontiers.
  • Portfolio Management - Library for financial portfolio optimization and efficient frontier.
  • Portfolio Optimization - Classical and advanced financial portfolio optimization methods.

Istoric stele

Graficul istoricului de stele pentru robertmartin8/pyportfoliooptGraficul istoricului de stele pentru robertmartin8/pyportfolioopt

Căutare AI

Explorează mai multe repository-uri excelente

Descrie ce ai nevoie în limbaj simplu — AI-ul sortează mii de proiecte open source selectate în funcție de relevanță.

Start searching with AI

Alternative open-source pentru PyPortfolioOpt

Proiecte open-source similare, clasificate după numărul de funcționalități comune cu PyPortfolioOpt.
  • pyportfolio/pyportfoliooptAvatar PyPortfolio

    PyPortfolio/PyPortfolioOpt

    5,790Vezi pe GitHub↗

    PyPortfolioOpt is a Python library for financial portfolio optimization that implements mean-variance optimization, Black-Litterman models, and Hierarchical Risk Parity methods. It provides a complete toolkit for constructing risk-adjusted asset portfolios by combining expected return estimation, covariance modeling, constraint handling, and discrete allocation into a single optimization framework. The library distinguishes itself through its integration of multiple optimization approaches within a unified interface. It includes a Black-Litterman Bayesian framework that blends market equilibr

    Jupyter Notebookalgorithmic-tradingcovarianceefficient-frontier
    Vezi pe GitHub↗5,790
  • dcajasn/riskfolio-libAvatar dcajasn

    dcajasn/Riskfolio-Lib

    3,784Vezi pe GitHub↗

    Riskfolio-Lib is a Python portfolio optimization library and convex risk management tool. It provides a framework for calculating optimal asset allocations using convex risk measures and mathematical programming solvers, supporting linear, quadratic, and semidefinite programming. The library features a hierarchical risk parity framework and financial asset clustering tools to group similar instruments and improve diversification. It includes a portfolio backtesting engine for simulating investment strategies using historical data and cross-validation. The system covers a broad range of quant

    C++asset-allocationconvex-optimizationcvar-optimization
    Vezi pe GitHub↗3,784
  • jankrepl/deepdowAvatar jankrepl

    jankrepl/deepdow

    1,112Vezi pe GitHub↗
    Pythonallocationconvex-optimizationdeep-learning
    Vezi pe GitHub↗1,112
  • quantopian/pyfolioAvatar quantopian

    quantopian/pyfolio

    6,333Vezi pe GitHub↗

    Portfolio and risk analytics in Python

    Jupyter Notebook
    Vezi pe GitHub↗6,333
Vezi toate cele 30 alternative pentru PyPortfolioOpt→

Întrebări frecvente

Ce face robertmartin8/pyportfolioopt?

PyPortfolioOpt is a comprehensive portfolio optimization library for Python that provides a full suite of methods for constructing and analyzing investment portfolios. At its core, the library implements mean-variance optimization, the Black-Litterman Bayesian model, and Hierarchical Risk Parity, giving users multiple approaches to asset allocation. It includes a complete covariance estimation toolkit with interchangeable estimators such as sample, exponential, shrinkage,…

Care sunt principalele funcționalități ale robertmartin8/pyportfolioopt?

Principalele funcționalități ale robertmartin8/pyportfolioopt sunt: Multi-Method Portfolio Optimizers, Efficient Frontier Construction, Efficient Frontier Solvers, Mean-Variance Optimization Solvers, Portfolio Return Prior Models, Financial Covariance Estimators, Portfolio Constraint Enforcement, Covariance Matrix Calculators.

Care sunt câteva alternative open-source pentru robertmartin8/pyportfolioopt?

Alternativele open-source pentru robertmartin8/pyportfolioopt includ: pyportfolio/pyportfolioopt — PyPortfolioOpt is a Python library for financial portfolio optimization that implements mean-variance optimization,… dcajasn/riskfolio-lib — Riskfolio-Lib is a Python portfolio optimization library and convex risk management tool. It provides a framework for… quantopian/pyfolio — Portfolio and risk analytics in Python. jankrepl/deepdow. letianzj/quantresearch — QuantResearch is a quantitative research framework and specialized toolkit for algorithmic simulation, financial… ssantoshp/empyrial — An Open Source Portfolio Backtesting Engine for Everyone | 面向所有人的开源投资组合回测引擎.