● Model Explainer

Model explainer — theory, significance, and formulas.

Each model's background and principle in plain language, so newcomers to finance can follow along, followed in each section by how DIVA Quantizer implements it and how to use it.

CORE1952

Markowitz Mean–Variance Optimization

Harry Markowitz · Portfolio Selection (1952)

When you hold several assets, how much of each should you mix to manage the portfolio’s risk and return together?

Markowitz’s answer: look not only at returns but at how the assets relate to each other. DIVA applies the theory to real market data so you can see the structure of your own portfolio.

01 · Core idea

Look at the whole portfolio, not one holding.

THEORY

Diversification is not about the number of holdings. Mixing assets that move differently lowers the risk of the whole portfolio.

Portfolio risk is not the sum of individual risks; it also reflects how the holdings relate — their covariance.

σ2p = Σi Σj wi wj σij
DIVA

In DIVA, you see your portfolio’s diversification as a number.

DIVA turns the risk removed by the relationships in this formula into a single number, the diversification benefit: how many percent the actual portfolio volatility sits below the weight-averaged volatility of the holdings.

It is one of the inputs to the portfolio personality (archetype) at the top of the result page.

Right below, the key metrics show where the combined portfolio’s annual volatility stands against the market.

DIVA screen · example portfolio
Top of the result page — portfolio personality · key metrics
●Markowitz · Portfolio personality

The Easygoing Stroller평화주의 산책꾼

Spreading assets wide brings you peace of mind as you head, slowly, toward your destination.

Key metrics · annualized
Annual σ
15.43%
Prices swing an average of 15.4% up and down per year.
Expected μ
+11.45%
Past average implies +11.4% return per year.
Efficiency (Sharpe)
0.48
Earns 0.48 per unit of risk — moderate.
95% VaR
-13.92%
A 95% chance annual loss stays within 13.9%.

In the example portfolio (AAPL 25% · MSFT 20% · SPY 25% · TLT 30%), the holdings’ weight-averaged volatility is 19.25%, but held together the actual volatility drops to 15.43%. That gap is a diversification benefit of 19.9%, one of the grounds for the archetype “The Easygoing Stroller”.

The archetype is one of eight, set by three criteria: risk (vs. the market), efficiency and diversification. A diversification benefit of 15% or more counts as “diversified”.

02 · How does the theory find the “best mix”?

The efficient frontier

THEORY

Every possible weight mix has its own expected return (μ) and risk (σ). Plot all of them and a curve emerges.

The line joining the mixes that give more return at the same risk, or less risk at the same return is the efficient frontier.

Its leftmost point is the minimum variance portfolio (MVP) — the least volatile mix possible.

DIVA

DIVA compares your portfolio against that curve.

DIVA draws this curve from mixes of your own holdings only, and marks your portfolio and each holding on the same chart.

So you can see right away how far your portfolio sits from the curve.

In other words, you can see “how efficient are my current weights?” at a glance.

DIVA screen · example portfolio
Result screen — Efficient Frontier tab
0.9%5.5%10.1%14.6%19.2%23.8%σ 12.2%σ 16.4%σ 20.7%σ 24.9%μ ↑ ANNUAL RETURNσ → ANNUAL VOLATILITYOff chart: MSFT · TLTAAPLSPYExample portfolio

The farther below the curve, the more another weight mix could earn at the same risk.

The example sits about 5.83%p below the curve at the same risk. Within 0.05%p of the curve, the dot turns green.

03 · What should you read the result against?

Lowest risk and highest efficiency are not the same thing.

THEORY

The MVP is simply the least volatile portfolio. Low risk does not mean high expected return.

Measured from the risk-free rate Rf, the portfolio where a line touches the frontier is the tangency portfolio — the maximum-Sharpe portfolio.

Sharpe = μp − Rfσp

The Sharpe ratio shows how much excess return you earned for the risk you took.

DIVA

In DIVA, your portfolio’s position matters more than “the right weights”.

DIVA does not present the max-Sharpe portfolio as recommended weights; it uses it as a yardstick for how close your portfolio is to the frontier.

It also shows expected return, volatility, Sharpe and diversification together, so no single number drives the judgment.

In the equalizer you can move the weights yourself and watch these metrics change.

DIVA screen · example portfolio
The frontier from 02, with the Capital Market Line (CML) drawn on it
0.9%5.5%10.1%14.6%19.2%23.8%σ 12.2%σ 16.4%σ 20.7%σ 24.9%μ ↑ ANNUAL RETURNσ → ANNUAL VOLATILITYOff chart: MSFT · TLTCML · Rf 3.99%MVP · lowest riskMax Sharpe (tangency)AAPLSPYExample portfolio

The MVP sits at the curve’s left tip, but the tangency point, where the line from Rf touches the curve, earns the most excess return per unit of risk. The example portfolio sits below the curve, away from both.

The tangency here uses the raw historical curve (Sharpe 0.88). DIVA’s efficiency verdict uses an error-corrected curve (max Sharpe 0.69).

DIVA screen · example portfolio · equalizer
Portfolio Equalizer

Adjust weights yourself

Move the example portfolio’s amount sliders.

AAPL
AAPL
25.0% · $ 2,500
MSFT
MSFT
20.0% · $ 2,000
SPY
SPY
25.0% · $ 2,500
TLT
TLT
30.0% · $ 3,000
Total $ 10,000$ 0 (+0.0%)
Live metrics
Vol (annual)
15.43%
Sharpe
0.48
Expected return
+11.45%
Diversification
19.9%

Lower the slider of a holding with a large risk share and watch volatility, Sharpe and diversification move together.

The example’s Sharpe of 0.48 is 70% of the corrected max Sharpe (85%+ counts as efficient), archetype “The Easygoing Stroller”. This demo computes in your browser only; on your own result screen you can re-run the analysis with the adjusted weights.

04 · How does DIVA run the calculation?

From the formula to real data

THEORY

The Markowitz problem can be written as:

minw ½ wTΣw
s.t. μTw = R*, Σ wi = 1, wi ≥ 0

That is, fix a target return and find the lowest-risk weights that achieve it.

DIVA

How DIVA fills in each term of the formula

μ · Σ
Estimated from monthly returns over the last 6 years, in the window all holdings share (min. 12 months).
wi ≥ 0
No short selling — each holding 0–100%, summing to 100%.
R*
40 targets from the minimum-variance return up to the best holding’s return; solving the formula for each and joining the points draws the efficient frontier.
Rf
Current 13-week US T-bill rate (^IRX), used site-wide (3.99% in the example).
Display
Monthly values are annualized — return ×12, volatility ×√12.
05 · So when is this model useful?

Moments when Markowitz helps

  1. 01
    Check whether your current weights are efficient

    The distance to the efficient frontier shows where your portfolio stands.

  2. 02
    Check diversification before adding a holding

    Compare the diversification benefit and total portfolio risk before and after.

  3. 03
    See where your portfolio risk is concentrated

    Risk Contribution shows what share of total risk each holding accounts for.

  4. 04
    See how the results change when you shift weights

    Move weights in the equalizer and see return, volatility, Sharpe and diversification change instantly.

To set your return against the market and split it into market beta and alpha, continue with CAPM. If you hold many names, or care more about the risk structure than about return estimates, compare with HRP. To see where return comes from factor by factor, a Fama–French model may fit better.

06 · Limitations

Reading the result with care

THEORY

Markowitz relies on the assumption that mean returns and covariances estimated from the past will roughly hold in the future. With more holdings, the covariance estimate can become unstable. So optimization results should not be read as the right weights for the future.

DIVA

DIVA does not present the max-Sharpe portfolio as recommended weights.

Instead, it shows how your portfolio relates to the frontier, alongside the result’s reliability and how concentrated the risk is.

If the result looks unstable, run the same portfolio through HRP and compare the two approaches.

References
NEXT

Now apply the theory to your own portfolio.

Enter your holdings and amounts to see the Markowitz analysis as real numbers.