Module contents
Lesson 6 of 30Core 105 min

Arbitrage, state prices and the stochastic discount factor

Derive finite-state no-arbitrage pricing, stochastic discount factors, risk-neutral probabilities, the Hansen-Jagannathan bound and approximate factor pricing.

After this lesson you can

  • Define arbitrage and prove the finite one-period fundamental theorem using Farkas' lemma.
  • Calculate state prices, the SDF and risk-neutral probabilities in complete markets and characterize the incomplete-market set.
  • Express valuation as p = E[m·x] and recognize CAPM and factor models as linear SDFs.
  • Derive the Hansen-Jagannathan bound and use it to reject candidate SDFs.
  • Derive Ross's APT using approximate no-arbitrage and compare it with CAPM.

Before you start

One price, many states

A bond, stock and option pay different amounts depending on what happens. Is there a common rule for their prices? In a one-period market with finitely many states, the absence of opportunities to get something for nothing leads to one representation form: price equals expected payoff multiplied by a random discount. The rule can exist without its coefficients being unique.

Consider SS possible states, all with physical probability πs>0\pi_s>0, and NN assets. Matrix X∈RS×N\mat{X}\in\mathbb{R}^{S\times N} contains terminal payoffs in columns; p∈RN\vb{p}\in\mathbb{R}^N contains initial prices. A portfolio h\vb{h} costs p⊤h\vb{p}\T\vb{h} and pays Xh\mat{X}\vb{h}. We allow unlimited long and short positions, divisibility and no transaction costs.

An arbitrage is a portfolio with nonpositive cost and nonnegative payoff in every state, with at least one strict inequality. A strictly positive payoff in one state has positive probability by assumption. A low-risk trade does not meet this definition merely because it looks safe.

InteractiveThe no-arbitrage price cone
  • No-arbitrage cone (interior)
  • Chosen prices
1.00
1.00
State 1 price0.500
State 2 price0.500
Both state prices are strictly positive, which rules out arbitrage.
The bond pays (1, 1) and the stock (0.8, 1.2). The interior point has two positive state prices; at a boundary one is zero and the corresponding unit payoff is an arbitrage. Drag the point or use the controls. Payoffs are hypothetical and state prices are calculated by inverting the payoff matrix.

The fundamental theorem in finite dimensions

State prices qsq_s assign a value to contingent unit payoffs; those payoffs need not be traded separately. If p=X⊤q\vb{p}=\mat{X}\T\vb{q} with qs>0q_s>0, any portfolio with nonnegative payoffs and some positive payoff costs strictly more than zero. A zero payoff costs zero, so it cannot generate positive initial income either. There is no arbitrage.

The converse is the finite fundamental theorem of asset pricing: under the assumptions above, no arbitrage is equivalent to existence of q>0\vb{q}>0 with X⊤q=p\mat{X}\T\vb{q}=\vb{p}. Let us see the linear alternative that proves it, beyond cone intuition.

Define A=[X−p⊤]\mat{A}=\begin{bmatrix}\mat{X}\\-\vb{p}\T\end{bmatrix}. A portfolio is an arbitrage exactly when Ah≥0\mat{A}\vb{h}\ge0 and some component is positive. By homogeneity, such a portfolio exists if and only if Ah≥0\mat{A}\vb{h}\ge0 and 1⊤Ah≥1\vb{1}\T\mat{A}\vb{h}\ge1 are feasible. Farkas’ alternative for this system says its impossibility is equivalent to the existence of λ≥0\vb{\lambda}\ge0 and μ>0\mu>0 such that A⊤(λ+μ1)=0\mat{A}\T(\vb{\lambda}+\mu\vb{1})=0. The vector y=λ+μ1\vb{y}=\vb{\lambda}+\mu\vb{1} is strictly positive. Writing it as (q~,t)(\tilde{\vb{q}},t) gives X⊤q~=tp\mat{X}\T\tilde{\vb{q}}=t\vb{p} with t>0t>0; dividing by tt yields q>0\vb{q}>0. The alternative excludes both possibilities simultaneously.

Geometrically, p\vb{p} lies in the relative interior of the image of the positive orthant under X⊤\mat{X}\T, with strictly positive prices for every state. Boundaries matter: a zero state price can fund a positive payoff for free. If X\mat{X} has rank SS, every payoff is replicated and q\vb{q} is unique when it exists. If rank is lower, some payoffs cannot be replicated and many compatible positive vectors may exist.

For example, in the figure the price of payoff (1,0)(1,0) is q1=(1.2pb−pa)/0.4q_1=(1.2p_b-p_a)/0.4: replicate it with three bonds and a short position in 2.5 shares. If pa=1.2pbp_a=1.2p_b, that portfolio costs zero and pays one in the first state. If pap_a is higher, it also generates money initially. This explains why the boundary is not arbitrage-free, even if no state price is negative. A state price need not equal physical probability: it also includes time value and the state’s economic importance.

Risk-neutral probabilities and incomplete-market prices

Define the stochastic discount factor ms=qs/πsm_s=q_s/\pi_s. It is positive and for any traded payoff x\vb{x},

p=∑sqsxs=Eπ[mx].p=\sum_s q_s x_s=\E_\pi[mx].

If a bond paying one at price B>0B>0 is traded, ∑sqs=B\sum_s q_s=B and Qs=qs/BQ_s=q_s/B forms a probability equivalent to the physical one. The same equality is p=BEQ[x]p=B\E_Q[x]. QQ is a valuation tool: it changes state weights and need not express any investor’s beliefs. Without a bond this normalization requires choosing another appropriate numeraire.

InteractiveAn interval in an incomplete market
  • Price versus t
  • Excluded endpoints of t
0
0
20
Price infimum0.00
Price supremum9.50
Price setOpen interval
A bond paying (1, 1, 1) costs 0.95 and an asset paying (80, 100, 120) costs 95. State prices are (t, 0.95−2t, t), with 0 < t < 0.475. Change the derivative payoff; displayed endpoints are limits, not admissible prices when the interval has width. If endpoints coincide, the derivative is replicated and its unique price is admissible.

For a new payoff x\vb{x}, compatible prices are {q⊤x:X⊤q=p, q>0}\{\vb{q}\T\vb{x}:\mat{X}\T\vb{q}=\vb{p},\ \vb{q}>0\}. In the example, px=0.95x2+t(x1−2x2+x3)p_x=0.95x_2+t(x_1-2x_2+x_3). If the coefficient of tt is nonzero, its image is an open interval: imposing an endpoint makes a state price zero and introduces arbitrage. If it is zero, x\vb{x} is a combination of bond and asset and has a unique price. Optimization over q≥0q\ge0 calculates infimum and supremum, not necessarily admissible points.

For payoff (0,0,20)(0,0,20), the price is 20t20t and can take any value strictly between 0 and 9.5. At a price outside that interval, a portfolio of the new derivative and existing assets constitutes arbitrage. Inside it, choosing a value is equivalent to choosing one of several state-price vectors: additional assumptions or an observed price are needed. Incompleteness does not make every derivative price indeterminate; replicable payoffs retain a unique price.

With separable utility and positive consumption, an interior investor’s first-order condition offers another interpretation: m=δu′(c1)/u′(c0)m=\delta u'(c_1)/u'(c_0). One euro in a low-consumption state may be worth more because of marginal utility. The result requires equilibrium and interiority conditions; it does not turn every positive SDF into a particular consumption function.

CAPM and the volatility bound

For a gross return RR with initial price one, 1=E[mR]1=\E[mR]. If a risk-free asset with gross return RfR_f is traded, E[m]=1/Rf\E[m]=1/R_f. For excess return Re=R−RfR^e=R-R_f, 0=E[mRe]=E[m]E[Re]+Cov⁡(m,Re)0=\E[mR^e]=\E[m]\E[R^e]+\Cov(m,R^e). The premium is large when the payoff covaries negatively with the discount.

A linear SDF m=a−bRMm=a-bR_M satisfies this equation for CAPM assets when their premiums are proportional to their betas and b=E[m]E[RMe]/Var⁡(RM)b=\E[m]\E[R_M^e]/\Var(R_M). Adjust aa for the required mean. The equation is algebraically valid if Var⁡(RM)>0\Var(R_M)>0; the linear SDF may be negative in some states and then is not itself a positive no-arbitrage certificate. In incomplete markets another positive SDF may price the same payoffs.

By Cauchy-Schwarz, ∣Cov⁡(m,Re)∣≤σ(m)σ(Re)|\Cov(m,R^e)|\le\sigma(m)\sigma(R^e). If E[m]>0\E[m]>0 and σ(Re)>0\sigma(R^e)>0, we obtain the Hansen-Jagannathan bound:

σ(m)E[m]≥∣E[Re]∣σ(Re).\frac{\sigma(m)}{\E[m]}\ge\frac{|\E[R^e]|}{\sigma(R^e)}.

It applies to each traded excess-return portfolio. The largest available Sharpe ratio gives the tightest bound. Violating it rules out a candidate purporting to price those returns; satisfying it is necessary but not sufficient. For an excess-return vector with mean μ\vb{\mu} and invertible covariance Σ\mat{\Sigma}, the joint bound is σ(m)≥E[m]μ⊤Σ−1μ\sigma(m)\ge\E[m]\sqrt{\vb{\mu}\T\mat{\Sigma}\inv\vb{\mu}}. The minimum-variance linear SDF at fixed mean attains this bound, though it may not be positive.

For the joint version, apply the bound to any combination w⊤Re\vb{w}\T\vb{R}^e. Its absolute Sharpe is ∣w⊤μ∣/w⊤Σw|\vb{w}\T\vb{\mu}|/\sqrt{\vb{w}\T\mat{\Sigma}\vb{w}}. Cauchy-Schwarz in the Σ\mat{\Sigma} metric shows the maximum is μ⊤Σ−1μ\sqrt{\vb{\mu}\T\mat{\Sigma}\inv\vb{\mu}}, attained by weights proportional to Σ−1μ\mat{\Sigma}\inv\vb{\mu}. The argument uses excess-return covariance, not its uncentered second-moment matrix. If the matrix is singular, work in its range or address redundant payoffs instead of blindly inverting it.

InteractiveThe HJ bound and a consumption model
  • Region above the bound
  • Consumption model
5.0
Mean of m0.966
Standard deviation of m0.096
Necessary bound0.322
Fails the bound.
Hypothetical example with two equally likely states: the excess pays −0.1 or 0.2, so its Sharpe is 1/3. The consumption model uses m = 0.96 g^(−γ), with g = 0.98 or 1.02. Change γ: being above the line is necessary but does not verify that E[mRᵉ] is zero.

Tension between high historical premiums and low-volatility consumption growth motivated the equity premium puzzle: under certain simple preferences, a sufficiently volatile discount can require hard-to-justify parameters. The bound alone does not identify which assumption fails. Hansen and Jagannathan (1991) construct moment restrictions on discount factors from asset prices.

Factors and approximate arbitrage

In arbitrage pricing theory (APT), imagine many assets with Ri=μi+βi⊤f+εiR_i=\mu_i+\vb{\beta}_i\T\vb{f}+\varepsilon_i, centered factors and zero-mean residuals. If a well-diversified portfolio approximately eliminates residuals, is factor-neutral and costs zero, a persistently positive mean would produce an almost-sure profit opportunity in the limit. Absence of that approximate arbitrage restricts means near the space spanned by exposures:

μi≈Rf+βi⊤λ.\mu_i\approx R_f+\vb{\beta}_i\T\vb{\lambda}.

This conclusion requires a sufficiently rich sequence of economies and diversification conditions, such as aggregate residual risk tending to zero with controlled positions. Small finite-size variance is not exact arbitrage. APT alone does not identify which factors to use or guarantee exact equality for every asset. CAPM adds a specific equilibrium identifying the market as a factor. The construction and assumptions appear in Ross (1976).

The mechanism appears in a portfolio with weights w\vb{w} and exposures ∑iwiβi=0\sum_iw_i\vb{\beta}_i=0. If its net investment is also zero, its return is ∑iwi(μi−Rf)+∑iwiεi\sum_iw_i(\mu_i-R_f)+\sum_iw_i\varepsilon_i. If the first term remains positive while the second term’s variance tends to zero, the risk of an unfavorable result vanishes in the limit. For this to restrict prices, that sequence must be excluded and portfolios satisfying the constraints must be constructible. In a small universe or with nondiversifiable common residuals, the argument can fail; calling a regression difference “alpha” does not prove arbitrage.

Lab: the alternative and state prices

The first program applies linear programming to payoffs and prices. The detector normalizes the sum of nonnegative components of (Xh,−p⊤h)(\mat{X}\vb{h},-\vb{p}\T\vb{h}) to at most one, avoiding an unbounded objective. If its maximum is positive it returns a portfolio; if zero, it finds the largest positivity margin for state prices. Numerical thresholds are approximations: poorly scaled data or values near the boundary require care.

[ ]Linear-programming arbitrage detectorBrowser
import numpy as np
from scipy.optimize import linprog

def find_arbitrage(X,p,tol=1e-8):
    X=np.asarray(X,float); p=np.asarray(p,float)
    if X.ndim!=2 or p.shape!=(X.shape[1],) or not np.isfinite(X).all() or not np.isfinite(p).all():
        raise ValueError('Dimensiones o datos inválidos')
    s,n=X.shape; A=np.vstack((X,-p)); total=A.sum(axis=0)
    r=linprog(-total,A_ub=np.vstack((-A,total)),b_ub=np.r_[np.zeros(s+1),1.],bounds=[(None,None)]*n,method='highs')
    if not r.success: raise RuntimeError(r.message)
    if -r.fun>tol:
        return {'arbitraje':r.x,'pago':[email protected],'coste':[email protected]}
    # Maximiza eps sujeto a X.T q=p y q>=eps>0.
    c=np.r_[np.zeros(s),-1.]
    dual=linprog(c,A_ub=np.column_stack((-np.eye(s),np.ones(s))),b_ub=np.zeros(s),
                 A_eq=np.column_stack((X.T,np.zeros(n))),b_eq=p,
                 bounds=[(0,None)]*s+[(0,1)],method='highs')
    if not dual.success or dual.x[-1]<=tol: raise ValueError('Caso numéricamente ambiguo')
    return {'precios_estado':dual.x[:-1],'margen':dual.x[-1]}

X=np.array([[1,.8],[1,1.2]])
for p in ([1,1],[1,1.3],[1,1.2]):
    print('precios',p,find_arbitrage(X,p))

The boundary in the last case also gives arbitrage: a state has price zero. In the incomplete market, the next program optimizes over the closure q≥0q\ge0 and shows the limits for a derivative paying (0,0,20)(0,0,20).

[ ]Derivative boundsBrowser
X3=np.array([[1,80],[1,100],[1,120]],float); p3=np.array([.95,95.]); x=np.array([0,0,20.])
def limites(X,p,x):
    resultados=[]
    for signo in (1,-1):
        r=linprog(signo*x,A_eq=X.T,b_eq=p,bounds=[(0,None)]*len(x),method='highs')
        if not r.success: raise RuntimeError(r.message)
        resultados.append(float([email protected]))
    return resultados
print('límites:',limites(X3,p3,x), '| precios de estado interiores:',find_arbitrage(X3,p3)['precios_estado'])

Lab: minimum-variance SDF

We construct a synthetic factor and two excess returns with residuals orthogonal to it in this sample. With fixed mean mˉ=1/Rf\bar m=1/R_f, the SDF m=mˉ−mˉ(Re−μ)⊤Σ−1μm=\bar m-\bar m(\vb{R}^e-\vb{\mu})\T\mat{\Sigma}^{-1}\vb{\mu} prices the excess returns and attains the joint bound. Sample moments use divisor TT; this sample is not claimed to be a market distribution or the SDF positive.

[ ]Minimum-variance linear SDFBrowser
import numpy as np
import matplotlib.pyplot as plt
rng=np.random.default_rng(280606); T=400; rf=1.02; mean_m=1/rf
f=rng.normal(.08,.20,T); Z=np.column_stack((np.ones(T),f))
noise=rng.normal(0,.08,(T,2)); [email protected](Z,noise,rcond=None)[0]
R=f[:,None]*np.array([.7,1.3])+noise
mu=R.mean(axis=0); centered=R-mu; cov=centered.T@centered/T
m=mean_m-mean_m*[email protected](cov,mu)
bound=mean_m*np.sqrt([email protected](cov,mu))
print('E[mRᵉ]:',np.round((m[:,None]*R).mean(axis=0),10))
print('media m, volatilidad, cota:',np.round([m.mean(),m.std(),bound],6), '| mínimo m:',round(m.min(),6))
grid=np.linspace(0,1.5,100); ratio=bound/mean_m
plt.plot(grid,grid*ratio,label='cota conjunta'); plt.scatter([m.mean()],[m.std()],label='SDF mínimo')
plt.xlabel('media de m'); plt.ylabel('desviación de m'); plt.legend(); plt.show()

In this seeded run, mean, volatility and bound were approximately 0.980392, 0.364704 and 0.364704; the minimum was −0.10429. Equality of volatility illustrates minimum-variance projection, while the negative value shows why it is insufficient to certify no arbitrage. These are results from this synthetic example, not estimates of a real economy.

For a single factor, the linear version uses its premium and variance and exactly reproduces the beta relationship in this generator because residuals were made orthogonal in sample. Check it without assuming it will happen with arbitrary historical data.

[ ]Generator CAPMBrowser
mf=mean_m-mean_m*f.mean()/f.var()*(f-f.mean())
beta=((f-f.mean())[:,None]*(R-R.mean(axis=0))).mean(axis=0)/f.var()
print('medias:',np.round(R.mean(axis=0),6),'| beta × prima:',np.round(beta*f.mean(),6))
print('E[mf Rᵉ]:',np.round((mf[:,None]*R).mean(axis=0),10))

Check your understanding

ProofStrictly positive state prices
Prove: Prove that no arbitrage implies X⊤q=p\mat{X}\T\vb{q}=\vb{p} for some q>0\vb{q}>0.
0
Define A=[X;−p⊤]\mat{A}=[\mat{X};-\vb{p}\T] and use Farkas' alternative for Ah≥0\mat{A}\vb{h}\ge0, 1⊤Ah≥1\vb{1}\T\mat{A}\vb{h}\ge1.

Step 1 of 3. Why can we require a sum of at least one?

NumericPrice and probability
A bond pays 1 in two states and costs 0.95. A stock pays 120 in the high state and 80 in the low state and costs 100. What is the risk-neutral probability of the high state?
ProofA Sharpe bound
Prove: Derive the bound σ(m)/E[m]≥∣E[Re]∣/σ(Re)\sigma(m)/\E[m]\ge |\E[R^e]|/\sigma(R^e) from E[mRe]=0\E[mR^e]=0.
0
Assume E[m]>0\E[m]>0 and σ(Re)>0\sigma(R^e)>0.

Step 1 of 3. How do you express covariance?

QuizPricing probabilities
Why can the risk-neutral measure price payoffs even if it does not represent an investor's beliefs?
CodeAn arbitrage portfolio
Implement find_arbitrage(X,p). Return a portfolio h if arbitrage exists or None otherwise. X has states as rows and assets as columns. Use scipy.optimize.linprog and tolerance 1e-8.
def find_arbitrage(X,p):
  raise NotImplementedError()
Shift+Enter to run

Ideas to remember

In the finite market, strictly positive state prices certify no arbitrage. The SDF and risk-neutral measure are reformulations using physical probabilities and a numeraire respectively. In incomplete markets they are not unique. The HJ bound provides a necessary volatility test; APT requires sufficient diversification to move from no approximate arbitrage to factor restrictions.