After-work guide to pyportfolioopt beginner: mean-variance and friends as readable starter recipes. Educational only. Not investment advice.
You searched for pyportfolioopt beginner. After a full day of work, you do not need a 400-page manual—you need a why-first path that fits one evening: understand the angle (mean-variance and friends as readable starter recipes), run a tiny example, and know what not to claim.
This hub article is educational only. Not investment advice. It will not pick stocks, size positions, or promise edge.
Tool focus: pyportfolioopt.
import numpy as np
mu = np.array([0.08, 0.10, 0.07])
cov = np.array([[0.10,0.02,0.01],[0.02,0.12,0.03],[0.01,0.03,0.09]])
iv = 1/np.sqrt(np.diag(cov)); w = iv/iv.sum()
print('inv_vol_w', w.round(3))
print('PyPortfolioOpt: EfficientFrontier(...).max_sharpe() when installed')
print('Educational only. Not investment advice.')
Run it in a throwaway venv. If an import is missing, install only what you need for tonight—do not boil the ocean.
You can explain mean-variance and friends as readable starter recipes in two sentences, show one chart or printout, and list one risk. That is enough progress for an after-work session.
Tomorrow, connect this tool to the adjacent skill (data hygiene, validation, or a simple dashboard)—still educational, still not investment advice.
Educational only. Not investment advice.
pip show) so you can reproduce tomorrow.scratch/ folder; do not mix experiments with production paths.