Building a Portfolio Optimizer Using Python's PyPortfolioOpt
A hands-on build course for quant aspirants, prop desk applicants and traders who want to systematise how they size a portfolio. You already know what an efficient frontier is. This course makes you build one that survives contact with real Indian data. You will pull a clean price panel for Nifty 50 stocks, estimate expected returns three ways, build covariance matrices that are not drowned in noise, and run max Sharpe, minimum volatility and target return optimisations in PyPortfolioOpt with the Indian risk-free rate. You then add the constraints a real portfolio needs (weight caps, NSE sector limits, regularisation, transaction cost penalties), move beyond mean-variance with Hierarchical Risk Parity, Black-Litterman and CVaR, and finally convert weights into whole shares for a real INR budget, backtest the result against the Nifty 50 TRI and account for rebalancing turnover and Indian capital gains tax. The course ends with an end-to-end monthly optimizer pipeline you can rerun yourself.