{"categories":[{"label":"Mathematics","url":"https://skillfed.io/packages/category/scientific-engineering-mathematics/3"},{"label":"Financial","url":"https://skillfed.io/packages/category/office-business-financial"},{"label":"Investment","url":"https://skillfed.io/packages/category/office-business-financial-investment"}],"enrichment":{"capability":"Riskfolio-Lib builds optimized investment portfolios using mathematical models\u2014mean-variance, risk parity, hierarchical clustering, and Black-Litterman approaches\u2014with support for 26+ risk measures and constraints on leverage, turnover, and cardinality.","skillfed_tags":["portfolio-optimization","quantitative-finance","convex-optimization"],"use_cases":["Build mean-variance efficient frontiers and find optimal allocations for a given risk tolerance or return target.","Construct risk parity or equal-weight portfolios with constraints on maximum position size, leverage, or sector concentration.","Incorporate expert views or market factors into portfolio construction using Black-Litterman or risk factor models.","Optimize hierarchical or nested clustered portfolios to reduce estimation error and improve out-of-sample stability.","Backtest portfolio rebalancing strategies with turnover and cardinality constraints to manage transaction costs.","Calculate and visualize risk contributions per asset or risk factor to understand portfolio exposure."],"what_it_does":"Riskfolio-Lib is a portfolio optimization library built on CVXPY that lets you construct investment portfolios using mathematically rigorous models without deep solver expertise. It integrates directly with Pandas DataFrames and supports a large range of optimization objectives (minimum risk, maximum return, maximum Sharpe ratio, risk parity) combined with 26+ risk measures spanning dispersion, downside, and drawdown categories. You can apply constraints on leverage, turnover, cardinality, tracking error, and graph-based relationships between assets, and use advanced techniques like hierarchical risk parity, Black-Litterman views, risk factor models, and entropy pooling.\n\nThe library is designed for students, academics, and practitioners who need to move from theory to working portfolios quickly. It handles the convex optimization setup internally, letting you focus on portfolio design rather than solver configuration. It includes tools for building efficient frontiers, calculating risk contributions, estimating uncertainty sets, clustering assets by codependence, and generating reports in Jupyter or Excel. You can also plug in commercial solvers (MOSEK, GUROBI) for large-scale problems.","worth_installing":"Yes, if you need to solve real portfolio optimization problems beyond simple equal-weight or market-cap allocation. The library is actively maintained, has no known vulnerabilities, runs on modern Python versions, and offers a mature API covering academic and practitioner use cases. Install friction is moderate due to numerical dependencies, but prebuilt wheels are available. The permissive BSD license poses no compliance risk. Start with the tutorial if you are new to portfolio optimization."},"id":"riskfolio-lib","links":{"html":"https://skillfed.io/packages/riskfolio-lib","md":"https://skillfed.io/packages/riskfolio-lib.md","pypi":"https://pypi.org/project/riskfolio-lib/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-31","license_spdx":null,"license_treatment":"permissive","name":"riskfolio-lib","python_support":"supports_current","summary":"Portfolio Optimization in Python"},"popularity":{"monthly_downloads":104228,"position":12760,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"7.3.0"}
