Portfolio Optimization with PyPortfolioOpt
CommunityOptimize portfolios with PyPortfolioOpt.
Authorgahoccode
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a Python-based workflow for portfolio optimization using PyPortfolioOpt, covering expected returns calculation, risk models, and multiple optimization strategies (Efficient Frontier, Black-Litterman, HRP).
Core Features & Use Cases
- Expected Returns: compute annualized returns from price data
- Risk Models: estimate covariance with several approaches (sample_cov, Ledoit-Wolf, denoised_covariance, etc.)
- Optimization Techniques: max Sharpe, min volatility, max utility, HRP, Black-Litterman
- Use Case: allocate across assets to balance return and risk under real-world constraints
Quick Start
Prepare a prices DataFrame, compute mu and S, choose an optimization, run it, and retrieve weights and performance metrics.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: Portfolio Optimization with PyPortfolioOpt Download link: https://github.com/gahoccode/PRDs/archive/main.zip#portfolio-optimization-with-pyportfolioopt Please download this .zip file, extract it, and install it in the .claude/skills/ directory.