YieldGreeksLab
Portfolio & margin

Normalize weights entered as relative parts

Use current weight parts of 4, 3 and 1 and target parts of 3, 3 and 2.

Educational quantitative reference. Outputs are deterministic mathematical calculations. They do not constitute personalized financial, tax, or investment advice.

Portfolio net return
6.5%
Portfolio volatility
10.0663%
Sharpe ratio
0.298

Allocation drift

Current and target weights after normalization.

  • Current weight
  • Target weight
Allocation driftCurrent and target weights after normalization.Portfolio weight (%)0204060Asset AAsset BAsset C
Asset ACurrent weight 50%Target weight 37.5%

Tap, hover or use the arrow keys on the chart to read values.

Calculation details

Sortino ratio
1.2471
Portfolio gross return
6.625%
Weighted expense drag
0.125%
Annual downside deviation
4.4102%
Target net return
6.2175%
Target volatility
9.2165%
Smallest correlation eigenvalue
0.488439

A positive trade is a buy. A negative trade is a sale. Amounts exclude costs.

Rebalancing trade ticket
AssetCurrent weightTarget weightCurrent amountTarget amountTrade
Asset A50%37.5%$50,000.00$37,500.00-$12,500.00
Asset B37.5%37.5%$37,500.00$37,500.00$0.00
Asset C12.5%25%$12,500.00$25,000.00$12,500.00

Worked calculation

  1. Set up the scenario

    Use current weight parts of 4, 3 and 1 and target parts of 3, 3 and 2.

  2. Apply the formula

    Divide each set of parts by its own sum. The current weights are 50%, 37.5% and 12.5%.

  3. Read the starting result

    The normalized target increases asset C to 25%. Amounts refer to the normalized weights.

Portfolio net return
6.5%
Portfolio volatility
10.0663%
Sharpe ratio
0.298

Formulas and conventions

Normalize weights and subtract expenses

wᵢ = aᵢ / Σ aⱼ · μgross = Σ wᵢ μᵢ · μnet = μgross − Σ wᵢ eᵢ

Normalize current and target weights independently. Enter nonnegative weights and at least one positive value in each set. Asset return, volatility and expense ratios are annual inputs. Expenses reduce expected return in the model.

Covariance and portfolio volatility

Σᵢⱼ = σᵢσⱼρᵢⱼ · σp = √(wᵀΣw)

Build the symmetric correlation matrix with ones on the diagonal. Jacobi rotations estimate its eigenvalues. The matrix must be positive semidefinite, with a numerical tolerance of 10⁻¹⁰ around zero. Singular matrices can be valid.

Risk-adjusted metrics

Sharpe = (μnet − rf) / σp · Sortino = (μnet − MAR) / DD

Sharpe compares fee-adjusted return with the risk-free input and uses total volatility. Sortino compares with your minimum acceptable return (MAR) and uses downside deviation. A zero denominator leaves the corresponding ratio undefined.

Normal-approximation downside deviation

δ = MAR − μnet · z = δ / σp · DD² = (δ² + σp²)Φ(z) + δσp φ(z)

Model annual returns as normal and take the square root of the expected squared shortfall below MAR, including zero shortfall in other outcomes. With zero volatility, downside deviation is max(δ, 0).

Rebalancing trade ticket

Currentᵢ = V × wᵢ · Targetᵢ = V × w*ᵢ · Tradeᵢ = Targetᵢ − Currentᵢ

An allocation mix on the risk chart blends current and target weights. Use the allocation view to inspect position-level drift. The trade ticket uses a single total market value V and excludes trading costs and rounding to whole lots.

Model assumptions

This is a long-only mean-variance model. Annual returns, volatilities and correlations are user assumptions. The Sortino approximation uses a normal distribution and can understate shortfall when returns have heavy left tails.

More worked examples

Frequently asked questions

What does the example “Normalize weights entered as relative parts” show?

The normalized target increases asset C to 25%. Amounts refer to the normalized weights.