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
- 28Capital Asset Pricing ModelMarket betaArrow-Pratt risk aversion, CARA and CRRAMean-variance optimizationTangency portfolio
- 06Theorems of alternativesLinear programmingStrong duality and Slater's condition
- 04Conditional expectationRadon-Nikodym theoremChange of measure
- 02Column spaceRankSystem of linear equations
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 possible states, all with physical probability , and assets. Matrix contains terminal payoffs in columns; contains initial prices. A portfolio costs and pays . 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.
The fundamental theorem in finite dimensions
State prices assign a value to contingent unit payoffs; those payoffs need not be traded separately. If with , 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 with . Let us see the linear alternative that proves it, beyond cone intuition.
Define . A portfolio is an arbitrage exactly when and some component is positive. By homogeneity, such a portfolio exists if and only if and are feasible. Farkas’ alternative for this system says its impossibility is equivalent to the existence of and such that . The vector is strictly positive. Writing it as gives with ; dividing by yields . The alternative excludes both possibilities simultaneously.
Geometrically, lies in the relative interior of the image of the positive orthant under , with strictly positive prices for every state. Boundaries matter: a zero state price can fund a positive payoff for free. If has rank , every payoff is replicated and 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 is : replicate it with three bonds and a short position in 2.5 shares. If , that portfolio costs zero and pays one in the first state. If 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 . It is positive and for any traded payoff ,
If a bond paying one at price is traded, and forms a probability equivalent to the physical one. The same equality is . 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.
For a new payoff , compatible prices are . In the example, . If the coefficient of is nonzero, its image is an open interval: imposing an endpoint makes a state price zero and introduces arbitrage. If it is zero, is a combination of bond and asset and has a unique price. Optimization over calculates infimum and supremum, not necessarily admissible points.
For payoff , the price is 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: . 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 with initial price one, . If a risk-free asset with gross return is traded, . For excess return , . The premium is large when the payoff covaries negatively with the discount.
A linear SDF satisfies this equation for CAPM assets when their premiums are proportional to their betas and . Adjust for the required mean. The equation is algebraically valid if ; 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, . If and , we obtain the Hansen-Jagannathan bound:
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 and invertible covariance , the joint bound is . 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 . Its absolute Sharpe is . Cauchy-Schwarz in the metric shows the maximum is , attained by weights proportional to . 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.
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 , 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:
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 and exposures . If its net investment is also zero, its return is . 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 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.
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 and shows the limits for a derivative paying .
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 , the SDF prices the excess returns and attains the joint bound. Sample moments use divisor ; this sample is not claimed to be a market distribution or the SDF positive.
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.
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
Step 1 of 3. Why can we require a sum of at least one?
Step 1 of 3. How do you express covariance?
def find_arbitrage(X,p):
raise NotImplementedError()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.