liveBook · Manning

Efficient frontier

The efficient frontier is the set of portfolios offering the highest expected return at each level of risk, or the lowest risk at each level of expected return.

How 2 Manning books explain it

Build a Robo-Advisor with Python (From Scratch)

The efficient frontier is the set of portfolios offering the highest expected return for each level of risk or the lowest risk for each expected return.

How it is used
Guides robo-advisor portfolio selection across varying risk levels and supports automated risk–return allocation.
How deep it goes
Derives the frontier equation and implements its plot, then extends it to constrained target-volatility optimization while deferring infeasible targets.
Examples
Uses three-stock random portfolios, risk–reward plots, frontier overlays, and constrained portfolios spanning target volatility levels.
What you can do after
Build it from scratch in Python by simulating weights, calculating portfolio statistics, plotting the frontier, and optimizing constrained target-risk portfolios.

Read how Build a Robo-Advisor with Python (From Scratch) explains efficient frontier →

Investing for Programmers

The efficient frontier is the set of portfolios that provide the highest expected return at each level of risk or the lowest risk at each expected return.

How it is used
Guides portfolio construction by comparing expected return, volatility, diversification, and risk-adjusted performance.
How deep it goes
Defines frontier efficiency and demonstrates randomized portfolio calculations, stopping short of guaranteeing future performance.
Examples
Uses three years of prices for seven named stocks, randomized portfolios, a frontier plot, and an optimal-weight table.
What you can do after
Build it from scratch with Python, NumPy, pandas, Matplotlib, and yfinance, then inspect candidate allocations and risk metrics.

Read how Investing for Programmers explains efficient frontier →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.