Quant Sandbox
DerivativesPortfolio & RiskFixed IncomeCorporate FinanceProbability & MeasureStochastic ModelsMarket MicrostructureGuide
Guide
Derivatives pricing0 / 17
01Forwards, calls and puts02Combining positions03Arbitrage and the forward price04Put–call parity05The one-step binomial model06Risk-neutral probabilities07Multi-step trees and backward induction08American options and early exercise09Delta and hedging10Geometric Brownian motion11The Black–Scholes formula12The Greeks: gamma, vega, theta and rho13Options on dividend-paying stocks, indices, currencies and futures14Implied volatility and the volatility smile15Stochastic volatility and the Heston model16Static replication: Breeden–Litzenberger and Carr–Madan17Exotic options: barriers, Asians and digitals
Portfolio & risk0 / 12
01Returns and volatility02Diversification and correlation03The efficient frontier and the capital market line04Risk aversion and the optimal complete portfolio05CAPM, beta and the security market line06Performance measures: Sharpe, Treynor, Jensen and information ratio07Factor models and systematic risk08The Fama–French factor models09Value at Risk and expected shortfall10Systemic risk and contagion11Portfolio constraints and the no-short-sales frontier12Estimating expected returns and covariances
Fixed income0 / 10
01Bond prices and yields02Duration and convexity03Immunization and duration matching04Spot rates, forward rates and the yield curve05Non-parallel curve moves and key-rate durations06Bond futures and the cheapest-to-deliver07Interest rate swaps08Callable bonds and negative convexity09Credit risk: default probabilities and credit spreads10Real rates, inflation and inflation-linked bonds
Corporate finance0 / 10
01Interest, compounding and discounting02Annuities, perpetuities and loan amortization03Net present value and internal rate of return04Project risk: sensitivity, scenarios and Monte Carlo NPV05The weighted average cost of capital06Capital structure and the Modigliani–Miller theorems07Dividends, payout policy and the dividend discount model08Discounted cash flow valuation09Relative valuation with multiples10Real options: the value of flexibility
Probability and measure0 / 13
01Measuring the size of sets02σ-algebras and Borel sets03Lebesgue measure and null sets04Measurable functions05The Lebesgue integral06Convergence theorems07Probability spaces and Kolmogorov's axioms08Random variables and their distributions09Expectation, variance and inequalities10Independence and product measures11Modes of convergence and the law of large numbers12Conditional probability and conditional expectation13Measure theory in option pricing
Stochastic models0 / 17
01Random walks and Brownian motion02The law of large numbers and the central limit theorem03Probability spaces, σ-algebras and random variables04Filtrations, adapted processes and stopping times05Conditional expectation and martingales06Properties of Brownian motion07The reflection principle and first passage times08The Brownian bridge09The Itô integral10Itô's lemma11Kolmogorov equations and the Feynman–Kac formula12Change of measure and Girsanov's theorem13Monte Carlo option pricing14Simulating SDEs: the Euler–Maruyama scheme15Correlated Brownian motions and multi-asset models16Mean reversion: Ornstein–Uhlenbeck and Vasicek17Jumps and the Merton jump-diffusion model
Market microstructure0 / 11
01Market makers and liquidity02The limit order book03Queue position and fill probability04Adverse selection and informed trading05The Glosten–Milgrom model06Measuring and decomposing the bid–ask spread07Informed trading and Kyle's lambda08Price impact and optimal execution09Inventory risk and quote skewing10Optimal quoting: the Avellaneda–Stoikov model11Market making profit and loss attribution
Knowledge graph

© 2026 Quant Sandbox · A study aid for quantitative finance

Privacy & dataNo cookies

This site does not use cookies and asks for no personal data. It keeps a few small settings in your browser's local storage — your chosen theme and language, the sidebar layout, and your progress and answers in the Guides — so it remembers them on your next visit. This data never leaves your device; clearing your browser storage removes it. Inputs you change can also be captured in the page URL, so you can share or bookmark a specific setup. The site uses Vercel Web Analytics, a privacy-friendly, cookieless service that records only anonymous, aggregated usage (such as page views) without identifying you or tracking you across other sites.

Guides/Portfolio & risk/11

Portfolio constraints and the no-short-sales frontier

Lesson 11 of 12 · 1 min read

"The efficient frontier and the capital market line" finds the best portfolio when any weights are allowed, including negative ones. Almost no real investor may do that: many funds cannot sell short, others cap each position or sector. This lesson asks what such rules do to the frontier and what they cost, building on the two-asset picture of "Diversification and correlation".

What a constraint is

The only constraint in the earlier lessons is the budget: the weights add up to one, ∑iwi=1\sum_i w_i = 1∑i​wi​=1. Real mandates add more:

  • No short sales: wi≥0w_i \ge 0wi​≥0 for every asset. Common for pension funds and mutual funds.
  • Position caps: wi≤wˉw_i \le \bar wwi​≤wˉ, for example 10% in any single stock, to force diversification.
  • Group limits: at most 30% in one sector or one country.

Each is a condition on the weights, so the minimum-variance problem is solved over a smaller set of portfolios than before.

The constrained frontier

The efficient frontier is the lowest-volatility portfolio for each target return. If we minimise over a smaller set, the best volatility can only stay the same or get worse. Hence the constrained frontier never lies to the left of the unconstrained one: it touches it where the free optimum happens to respect the rules and lies inside it elsewhere.

With short sales banned, the weights live on a triangle (for three assets), and the frontier is traced out by portfolios that sit on the triangle's edges and corners. The cheapest way to see it is the figure: three assets with expected returns 5%, 6% and 10% and volatilities 10%, 18% and 24%. The second and third assets are strongly correlated (0.85), so the free optimum wants to sell the weaker one short and use the money to buy more of the stronger one.

Figure: Portfolio constraints and the no-short-sales frontierOpen in Portfolio Optimization
2.00%
00.05
Short sales allowedShort sales bannedAssets
Best Sharpe, short sales allowed
0.416
Best Sharpe, short sales banned
0.394
Sharpe cost of the ban
0.023
Most shorted weight (free)
-50%

At a risk-free rate of 2% the free tangency portfolio holds 80%, −-−50% and 70% in the three assets: it is short half of the second asset. The banned frontier cannot do that, so its tangency portfolio holds 67%, 0% and 33%. The two frontiers coincide where no short position is needed, and separate as the target return rises. Raise the risk-free rate in the figure and the gap widens, because the tangency portfolio moves further out where shorting matters more.

The cost of a constraint

Because the best Sharpe ratio is attained on the frontier, the cost of a rule can be measured as the Sharpe ratio it removes. In the figure at the defaults the free tangency portfolio has a Sharpe ratio of 0.416 and the banned one 0.394, a loss of 0.023 or about 5%. That is the price of the ban on this set of assets; with weakly correlated assets the free optimum needs no short positions and the price is zero.

A caution: the free optimum with big short positions is also the one most sensitive to errors in the inputs. The no-short-sales portfolio gives up some theoretical Sharpe ratio but is often less wrong out of sample, a point the next lesson develops.

Worked example

What the short-sales ban costs at the figure's defaults

  1. Free tangency portfolio: expected return 8.00%, volatility 14.41%, risk-free rate 2%.

    Sfree=μ−rfσ\displaystyle S_{\text{free}} = \frac{\mu - r_f}{\sigma}Sfree​=σμ−rf​​=0.4164
  2. Banned tangency portfolio: expected return 6.65%, volatility 11.81%.

    Sban=μ−rfσ\displaystyle S_{\text{ban}} = \frac{\mu - r_f}{\sigma}Sban​=σμ−rf​​=0.3938
  3. The cost of the ban in Sharpe ratio.

    Sfree−Sban\displaystyle S_{\text{free}} - S_{\text{ban}}Sfree​−Sban​=0.0226
  4. As a share of the free Sharpe ratio, in per cent.

    100 Sfree−SbanSfree\displaystyle 100\,\frac{S_{\text{free}} - S_{\text{ban}}}{S_{\text{free}}}100Sfree​Sfree​−Sban​​=5.4

Constraints as views

A short-sale ban is a crude statement that no asset is expected to do so badly that it deserves a negative weight. Seen that way it acts like a mild form of shrinkage on the weights. More refined methods, such as the Black–Litterman model, build the investor's views into the expected returns instead, but the idea is the same: stop the optimiser from acting on extreme inputs.

Summary

  • Constraints (no short sales, caps, group limits) restrict the weights to a smaller set of portfolios.
  • The constrained frontier is never better than the free one: it touches it where the free optimum is allowed, and lies inside it elsewhere.
  • The cost of a rule is the Sharpe ratio it removes: 0.023 at the figure's defaults, about 5%.
  • Constraints also tame extreme weights, which matters when the inputs are uncertain.

The next lesson, "Estimating expected returns and covariances", shows how uncertain those inputs are and why optimisers magnify the errors.

Try itPin a frontier in the Efficient Frontier lab and change the constraint set
2 questions on this lesson at the end of the series
Previous · 10Systemic risk and contagionNext · 12Estimating expected returns and covariances
Connections

Portfolio constraints and the no-short-sales frontier

Open the full graph
Builds on
02.10Systemic risk and contagion02.03The efficient frontier and the capital market line02.02Diversification and correlation
Leads to
02.12Estimating expected returns and covariances
See it in the knowledge graph
Labs for this lesson
Portfolio OptimizationPortfolio Lab