Private improvement. Public learning, only by choice.
← Public work library

Curated public example

Analysis & finance · Workflow

From historical prices to portfolio weights

Published by Robert Andrew Martin / PyPortfolioOpt

This credits the original publisher. Better Loop membership or a shared assessment is not implied.

The public work

Robert Andrew Martin’s guide transforms historical share prices into return and covariance estimates, prints optimized portfolio weights, and demonstrates regularization and integer-share allocation. Its performance figures are model estimates.

What to notice

Separate estimated objectives from realized outcomes, and check constraints again after rounding continuous weights into discrete decisions.

Keep the context

Historical-price demonstration with model-dependent estimates. No independent out-of-sample performance was checked here. The example is computational practice, not a recommendation to buy its listed assets.

AI use: Not reported in the source.

The inspected source does not report AI-assistant use by its authors.

A useful public example is not an assessment of a reader, a publisher or a Better Loop member.

Authored practice suggestion

Try the idea.
Check your own work.

Use material you are allowed to work with. This suggestion is preparation; it does not record a completed task or an improvement.

A check to adapt

Weights and bounds satisfy the stated constraints; discrete cost stays within the practice budget; estimated and realized performance are clearly distinguished.

Open a related practice brief

Private practice needs no account. Your configured model provider may process the evidence you select.

See the full skill-to-sharing flow