financial econometrics: portfolio analysis · 2014. 11. 11. · financial econometrics: portfolio...

59
Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener 1 1 Institut für Statistik Ludwig-Maximilians-Universität München Akademiestr. 1/I 80799 München [email protected] Nov 11 & 18, 2014 Portfolio Selection: The Practice 1 / 59

Upload: others

Post on 18-Mar-2021

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Financial Econometrics: Portfolio AnalysisPortfolio Selection: The Practice

Serkan Yener1

1Institut für StatistikLudwig-Maximilians-Universität München

Akademiestr. 1/I80799 München

[email protected]

Nov 11 & 18, 2014

Portfolio Selection: The Practice 1 / 59

Page 2: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Outline

1 Motivation

2 An Example: The SP500 Portfolio

3 Statistical Inference via Resampling Techniques

4 Further Estimation Methods

Portfolio Selection: The Practice 2 / 59

Page 3: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Motivation

Page 4: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Roadmap

implementing the theory of portfolio selection isn’t straightforward,because there are delicate issues when doing it the obvious way

the first set of issues is somewhat inherent to the transition from theidealized framework, originally put forward by Markowitz (1952), towardits implementation by a real-world investor, i.e., there are some implicit“degrees of freedom” and caveats

if this set of issues is settled by making the appropriate assumptions,another problem arises when trying to estimate optimal portfolios

however, it turns out that the severity of this problem can only beillustrated after introducing simulation techniques

these techniques help to understand (and alleviate) the so-calledestimation risk of portfolio selection

lastly, knowing the source of the problem allows us to look into the vastarsenal of statistical methods for practical alternatives

Portfolio Selection: The Practice Motivation 4 / 59

Page 5: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

The Obvious Thing to Do

flashback: all quantities of interest depend on two parameters only: µ andΣ

⇒ use unbiased estimators for their components:

µi =1

T

T∑

t=1

rt,i (1)

σij =1

T − 1

T∑

t=1

(rt,i − µi)(rt,j − µj) (2)

σ2i := σii

for a sample of returns rt,i : 1 6 t 6 T, 1 6 i 6 n

Portfolio Selection: The Practice Motivation 5 / 59

Page 6: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

The Obvious Thing to Do

from a theoretical perspective, a more convenient assumption is thatthese estimators should be consistent (which they are)

plimT→∞

θT = θ

in order to show via the delta method (van der Vaart, 1998, Chap. 3)that properties, like consistency and asymptotic distributions, of manyother quantities Φ(θ) can be straightforwardly derived from those of the

plug-in estimator θ

Portfolio Selection: The Practice Motivation 6 / 59

Page 7: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Caveats

the mean-variance approach is static, i.e., it’s a one-shot game

but in economic systems, most things change in the course of time

question: do expectations about the future change as well?

answer: if yes, then quantities like E[ rt+1 ] or σ2 = E[(rt+1 − E[ rt+1 ])

2]

should account for new information arriving during the holding period[t, t+ 1], i.e., Et[ rt+1 ] or σ2

t+1 := Et

[(rt+1 − Et[ rt+1 ])

2]

seem moreappropriate

⇒ replace unconditional expectations E[ . ] by conditional expectations Et[ . ]

question: but does this matter for real-world applications?

answer: no and yes...

⇒ not (so much) for the first moment of rtone of the stylized facts of financial markets states that expected (excess)returns are unpredictableput differently, the EMH postulates that the random walk with drift is thebest model for (log-)stock prices

lnPt = α+ lnPt−1 + ǫt with E[ ǫt ] = 0 for all t

Portfolio Selection: The Practice Motivation 7 / 59

Page 8: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Caveats

any expectation (be it conditional or unconditional) of returns is just aconstant, i.e., no exploitable dynamics

⇒ this is completely different for the second moments of rtanother stylized facts of financial markets is known as volatility clusteringof returnsput differently, variances (and covariances) are time-varying in a waywhich exhibits a memorythere are gains to be made if we can predict the “volatility regime”prevailing during the holding period

question: something else to worry about?

answer: yes, some statistical issues...

⇒ yet another stylized facts of financial markets states that returns are notnormally distributed

empirical distributions of stock returns are not symmetric, i.e., they areleft-skewedlooking at the history of returns, losses during stock market crashes aremuch larger (in magnitude) than the biggest gains realized in good timesempirical distributions of returns are leptokurtic, i.e., more peaked aroundthe mean and with fat tails

Portfolio Selection: The Practice Motivation 8 / 59

Page 9: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Caveats

parametric distributions allowing for fat tails feature the potential pitfallthat the variance may not exist (σ2 = ∞) which is obviously a hugeproblem for the mean-variance approachfat tails are an artifact of extreme realizations (outliers) which the normaldistributions cannot generate (in a reasonable amount of time)important: assuming normally distributed returns underestimates the riskof large losses which an investor faces in real marketsit’s well known from the statistical literature that the standard samplemoments µ and σ2 in (1) are quite unreliable ⇒ fitted N

(µ, σ2

)can be

substantially distorted, see Ruppert (2011, Chap. 4)as a remedy, robust alternatives to µ and σ2 have been proposed

µrobust = med(rt)

σrobust = 1.4826 · med∣∣rt − med(rt)

∣∣

see Huber (1981) or Hampel et al. (1986)robust sample moments are either downweighting or completelyeliminating the impact of outliers, but that might not be a good thing todo when caring about risk beyond variances

Portfolio Selection: The Practice Motivation 9 / 59

Page 10: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Caveats

an statistically ideal approach would use robust mean and variances formodeling the distributional properties of returns around the central regionand tools from extreme value theory for modeling the tails... which doesn’tfit in the mean-variance framework

Portfolio Selection: The Practice Motivation 10 / 59

Page 11: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

The SP500 Index

SP500 is a value-weighted index comprising the stocks of the 500 biggestU.S. companies; see p. 12

it’s considered to be one of the most important overall stock marketindices for the U.S. economy

this index can be interpreted as a portfolio of constituent stocks

weights are computed as

wi =niPi∑500

j=1 njPj

where ni is stock i’s number of common shares outstanding and Pi is theshare price of stock i

value of the SP500 index is computed as

SP500 =

500∑

j=1

wjPj

the aforementioned stylized facts of financial markets are still present inthis weighted average of individual stocks; see pp. 13–14

Portfolio Selection: The Practice Motivation 11 / 59

Page 12: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

The SP500 Index

12/2004 05/2007 10/2009 02/20120

200

400

600

800

1000

1200

1400

1600SP500

Portfolio Selection: The Practice Motivation 12 / 59

Page 13: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Random-Walk Property and Volatility Clustering in SP500 Returns

1971 1985 1998 2012

−25

−20

−15

−10

−5

0

5

10

r t(in%)

t1971 1985 1998 2012

0

5

10

15

20

25

|rt|t

1971 1985 1998 20120

100

200

300

400

500

600

r2 t

t

0 10 20−1

−0.5

0

0.5

1

ˆ h

h

0 10 20−1

−0.5

0

0.5

1

ˆ h

h

0 10 20−1

−0.5

0

0.5

1

ˆ h

h

Portfolio Selection: The Practice Motivation 13 / 59

Page 14: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Non-Normality and Fat Tails in SP500 Returns

−20 −10 0 10

0

0.1

0.2

0.3

0.4

0.5

0.6

r (in %)

f(r)

NormalKernel

2.5 3 3.5 4 4.5 5

0

0.02

0.04

0.06

[µ+ 2σ, µ+ 5σ]

NormalKernel

−4.5 −4 −3.5 −3 −2.5 −2

0

0.02

0.04

0.06

[µ− 5σ, µ− 2σ]

f(r)

NormalKernel

−4 −2 0 2 4

−15

−10

−5

0

5

10

data

normal

Portfolio Selection: The Practice Motivation 14 / 59

Page 15: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

An Example: The SP500 Portfolio

Page 16: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Flashback: Relevant Quantities

for all stocks i = 1, . . . , n, use log-returns:

rt,i = ln

(Pt,i

Pt−1,i

)· 100%

returns matrix:

R︸︷︷︸T×n

=[r1 r2 · · · rn

]=

r1,1 r1,2 · · · r1,n

r2,1 r2,2 · · · r2,n...

......

...

rT,1 rT,2 · · · rT,n

Portfolio Selection: The Practice An Example: The SP500 Portfolio 16 / 59

Page 17: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Flashback: Relevant Quantities

sample means vector of returns:

µ︸︷︷︸n×1

=

µ1

...

µn

=

T−1∑T

t=1 rt,1...

T−1∑T

t=1 rt,n

=

1

T

r1,1 · · · rT,1

......

...

r1,n · · · rT,n

︸ ︷︷ ︸n×T

1...

1

︸ ︷︷ ︸T×1

=1

T

rT1

...

rTn

1...

1

=

RT1T

T(3)

Portfolio Selection: The Practice An Example: The SP500 Portfolio 17 / 59

Page 18: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Flashback: Relevant Quantities

sample covariance matrix of returns:

Σ︸︷︷︸n×n

=

σ21 σ12 · · · σ1n

σ12 σ22 · · · σ2n

.

.

.

.

.

....

.

.

.

σ1n σ2n · · · σ1n

=1

T − 1

∑Tt=1(rt,1 − µ1)2 · · ·

∑Tt=1(rt,1 − µ1)(rt,n − µn)

.

.

....

.

.

.

∑Tt=1(rt,1 − µ1)(rt,n − µn) · · ·

∑Tt=1(rt,n − µn)2

=1

T − 1

(r1,1 − µ1) · · · (rT,1 − µ1)

.

.

.

.

.

.

.

.

.

(r1,n − µn) · · · (rT,n − µn)

︸ ︷︷ ︸n×T

(r1,1 − µ1) · · · (r1,n − µn)

.

.

.

.

.

.

.

.

.

(rT,1 − µ1) · · · (rT,n − µn)

︸ ︷︷ ︸T×n

Portfolio Selection: The Practice An Example: The SP500 Portfolio 18 / 59

Page 19: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Flashback: Relevant Quantities

Σ︸︷︷︸n×n

=1

T − 1

(r1 − µ11T )T

...

(rn − µn1T )T

[r1 − µ11T · · · rn − µn1T

]

=:1

T − 1

rT

1

...

rT

n

[r1 · · · rn

]=:

RT

R

T − 1(4)

with mean-adjusted returns ri = ri − µi1T = ri − (eTi µ)1T where

eTi︸︷︷︸1×n

:= ( 0 · · · 0 1︸︷︷︸ith

position

0 · · · 0 )

is the ith unit vector

Portfolio Selection: The Practice An Example: The SP500 Portfolio 19 / 59

Page 20: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Flashback: Relevant Quantities

estimator of the fundamental matrix:

Ω =

1

T

nΣ−1

1n 1T

nΣ−1

µ

µTΣ

−11n µT

Σ−1

µ

=:

a b

b c

with determinantd := det(Ω) = ac− b2

estimator of the global minimum variance portfolio:

xGMV P =Σ

−11n

a

µGMV P =b

a

σ2GMV P =

1

a

Portfolio Selection: The Practice An Example: The SP500 Portfolio 20 / 59

Page 21: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Flashback: Relevant Quantities

estimator of the minimum variance set:

σ2MV S =

aµ2 − 2bµ+ c

d

with short-selling: define a grid of points µ ∈ µmin, . . . , µmax where µmin

and µmax can be chosen arbitrarilywithout short-selling: define a grid of points µ ∈ µmin, . . . , µmax whereµmin := min16i6n µi and µmax := max16i6n µi

estimator of the minimum variance portfolio:

xMV S = Σ−1

R(R

T

Σ−1

R)−1

µ (5)

where

R =[1n µ

]and µ =

1

µ

Portfolio Selection: The Practice An Example: The SP500 Portfolio 21 / 59

Page 22: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Flashback: Relevant Quantities

estimator of the tangential (market) portfolio:

xm =Σ

−1˜µ

b− arf

µm =c− brf

b− arf

σ2m =

ar2f − 2brf + c

(b − arf )2

with the estimator for expected excess returns

˜µ :=

µ1 − rf

µ2 − rf...

µn − rf

= µ− rf1n

Portfolio Selection: The Practice An Example: The SP500 Portfolio 22 / 59

Page 23: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Flashback: Relevant Quantities

alternatively, once we have computed the (σ, µ)-combinations on theupper branch of the MVS, i.e., the efficient frontier, the position of themarket portfolio in the (σ, µ)-plane is simply that point on the efficientfrontier which is associated to the maximal value of

µMV S − rfσMV S

for µMV S > µGMV P

which is useful when picking the tangential portfolio without short-selling

Portfolio Selection: The Practice An Example: The SP500 Portfolio 23 / 59

Page 24: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

The Stock Data

downloading each and every stock contained in the SP500 index fromYahoo! Finance manually is cumbersome

fortunately, there is a nice Excel macro which does the job (you have tochange the security settings such that the spreadsheet is “trusted”)

⇒ all stock prices should be adjusted to dividend payments and stock splits

time series on the SP500 index itself can be download directly fromYahoo! Finance

the sampling frequency of all time series is daily

⇒ holding period is one day

the sampling period for all time series is from 01/02/2003 to 12/31/2012

⇒ these 10 years of data correspond to T = 2516 observations

deleting all stocks with missing observations (restitution, trading halts,etc.), there are n = 436 stocks available

Portfolio Selection: The Practice An Example: The SP500 Portfolio 24 / 59

Page 25: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

The Risk-Free Rate

with respect to the risk-free rate rf , the overnight London InterbankOffered Rate (LIBOR) was downloaded from the database of the FederalReserve Bank of St. Louis; see p. 27

⇒ “The overnight US Dollar (USD) LIBOR interest rate is the averageinterest rate at which a selection of banks in London are prepared to lendto one another in American dollars with a maturity of 1 day.”

⇒ “Libor is the most widely used "benchmark" or reference rate for shortterm interest rates.”

however, a Libor time series with thousands of observations is not usefulbecause it cannot be plotted as the unique point (0, rf ) in the(σ, µ)-diagram ⇒ we need one single value for rf

instead, use sample overnight Libors to estimate an average overnightLibor over the sampling period

flashback: since simple interest rates are stated as annualized rates, wehave to adjust to the daily holding period by assuming that interest isearned linearly

Portfolio Selection: The Practice An Example: The SP500 Portfolio 25 / 59

Page 26: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

The Risk-Free Rate

⇒ use the following proxy as risk-free interest rate:

rf :=1

T

T∑

t=1

Libort365 days

= 0.00524%

however, the choice of rf is no essential issue

in his original paper (with a monthly sampling frequency), Sharpe (1966)used an annual risk-free rate of 3% derived from secondary-market yieldson 10-year US government bonds; see also Ruppert (2011, p. 306)in the financial industry, Sharpe ratios are usually published by settingrf = 0Sharpe ratios should only reflect the pure risk-return trade-off µp/σp ofcorresponding portfoliosinvestors should decide by themselves which risk-free rate suits theirpurposes best

Portfolio Selection: The Practice An Example: The SP500 Portfolio 26 / 59

Page 27: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

The Overnight Libor

01/2005 06/2007 11/2009 05/20120

1

2

3

4

5

6

7Libor

(in%)

Portfolio Selection: The Practice An Example: The SP500 Portfolio 27 / 59

Page 28: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Mean-Variance Analysis (with Short-Selling)

0 1 2 3 4 5 6−0.4

−0.2

0

0.2

0.4

0.6

0.8

1

σ

µ

SP500 stocksGMVPSP500 indexrfMarket

Portfolio Selection: The Practice An Example: The SP500 Portfolio 28 / 59

Page 29: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

MVS for Most Liquid n Stocks (with Short-Selling)

0 2 4 6 8 10 12 14 16 18−0.4

−0.2

0

0.2

0.4

0.6

0.8

1

σ

µ

n=10n=50n=100n=436

Portfolio Selection: The Practice An Example: The SP500 Portfolio 29 / 59

Page 30: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

No Short-Selling

in the theory part to the mean-variance analysis, we didn’t cover thegeneral n-asset case

minx

xTΣx

s.t. 1T

nx = 1

µTx = µ

x > 0n

when short-selling is not allowed because it is tough to tackle analytically

allowing for corner solutions in optimal portfolio weights requires a moregeneral approach, known as Karush-Kuhn-Tucker conditions, which neststhe Lagrange multiplier approach; see Sundaram (1999, Chap. 6) or Boydand Vandenberghe (2004, Section 5.5.3)

unfortunately, the Karush-Kuhn-Tucker conditions (though analytical)are not particularly helpful in delivering solutions but rather tell uswhether a given point is a solution or not

Portfolio Selection: The Practice An Example: The SP500 Portfolio 30 / 59

Page 31: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

No Short-Selling

for obtaining numerical solutions, one has to resort to numerical methodsknown as quadratic programming

most statistical software package include a function or routine to performquadratic programming

Portfolio Selection: The Practice An Example: The SP500 Portfolio 31 / 59

Page 32: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

MVS Comparison for Most Liquid 10 Stocks

0 2 4 6 8 10 12 14 16 18 20−0.4

−0.2

0

0.2

0.4

0.6

0.8

1

σ

µ

Short-sellingNo short-sellingSP500 index

Portfolio Selection: The Practice An Example: The SP500 Portfolio 32 / 59

Page 33: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

MVS Comparison for Most Liquid 50 Stocks

0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5−0.4

−0.2

0

0.2

0.4

0.6

0.8

1

σ

µ

Short-sellingNo short-sellingSP500 index

Portfolio Selection: The Practice An Example: The SP500 Portfolio 33 / 59

Page 34: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

MVS Comparison for Most Liquid 100 Stocks

0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5−0.4

−0.2

0

0.2

0.4

0.6

0.8

1

σ

µ

Short-sellingNo short-sellingSP500 index

Portfolio Selection: The Practice An Example: The SP500 Portfolio 34 / 59

Page 35: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

MVS Comparison for Most Liquid 436 Stocks

0 1 2 3 4 5 6−0.4

−0.2

0

0.2

0.4

0.6

0.8

1

σ

µ

Short-sellingNo short-sellingSP500 index

Portfolio Selection: The Practice An Example: The SP500 Portfolio 35 / 59

Page 36: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Statistical Inference via Resampling Techniques

Page 37: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Monte Carlo (MC) Simulations

consider the classical linear regression model

y︸︷︷︸T×1

= X︸︷︷︸T×k

β︸︷︷︸k×1

+ u︸︷︷︸T×1

(6)

where we make a host of assumptions, i.e.,

rk(X) = k < T

ud= N

(0T×1, σ

2IT

),

in order to guarantee that the ordinary least-squares (OLS) estimator

β = (XTX)−1XTy (7)

exists and follows the probability law

βd= N

(β, σ2(XTX)−1

)

which allows us to derive confidence intervals, t- and F -tests, etc.

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 37 / 59

Page 38: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Monte Carlo (MC) Simulations

unfortunately, these assumptions turn out to be unrealistically stringentcasting doubts on the unbiasedness and efficiency of β and on the validityof its confidence intervals and tests

for relaxing some of these assumptions, one often resorts to asymptoticstatistics and its limit laws, i.e., the Law of Large Numbers (LLN) andthe Central Limit Theorem (CLT), to establish consistency andasymptotic normality

one particularly important result is that the normality of β(asymptotically) carries over even when u is non-normally distributed(given its variance exists)

but there is a price to be paid for this generality: limit laws hold exactlyfor T → ∞ and approximately when the convergence has proceeded farenough

in some instances, we only have a small sample size T , and even when Tis large, we usually don’t know if convergence has proceeded far enough toprovide a good approximation

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 38 / 59

Page 39: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Monte Carlo (MC) Simulations

put differently, we have to distinguish between the exact, finite-sampledistribution of β (holds for any fixed T < ∞) and the asymptoticdistribution of β (holds for T → ∞ only)

⇒ in cases where we suspect the asymptotic approximation of the(unknown) finite-sample distribution to be inaccurate, we need alternativeways of approximation:

1 proposal is purely theoretical and refers to so-called Edgeworth andsaddlepoint approximations which are refinements to the second-orderapproximation of asymptotic statistics allowing for more flexibility toaccommodate features of the finite-sample distribution; see Hall (1992),Rothenberg (1984), and Ullah (2004)

2 proposal is to use MC simulations to approximate the finite-sampledistribution

while the first approach is more general (explicitly laying out all requiredassumptions), it is much more complicated and harder to accomplish thanMC simulations

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 39 / 59

Page 40: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Monte Carlo (MC) Simulations

the popularity of MC simulations stems from its simplicity and wideapplicability which only requires that we are able to simulate a model (ordata-generating process) a larger number of times

of course, the drawback of MC simulations (compared to the firstapproach) is that their conclusions hold for the simulated models onlyand cannot be generalized

⇒ MC simulations are case-by-case studies

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 40 / 59

Page 41: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

How and Why MC Works: An Example

suppose that we have no clue about the finite-sample and asymptoticproperties of β

in what follows, we will motivate and illustrate the usage of MCsimulations to shed some light on these properties

a first try would be to apply β to some real-world data

however, this is not helping because we neither know if the underlyingmodel (6) is appropriate nor, if it were true, what the true parameter β

looks like

a better way of analyzing the properties of β is to simulate an artificialdata set from model (6) which is completely known

but before we can start any simulation the free parameters in model (6)have to be fixed:

the number of exogenous regressor, say, k = 3the sample size, say, T = 25

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 41 / 59

Page 42: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

How and Why MC Works: An Example

set

β =

1.5

−0.5

1.75

and σ2 = 1.25

lastly, in order to isolate the source of randomness, we assume that theregressor matrix X in (6) is fixed, i.e., deterministic ⇒ this allows us tosimplify the notation by using E[ . ] instead of E[ .|X ]

in subsequent simulations, we use the same regressor matrix X (for sameT ) generated by the following scheme:

the first column of X corresponds to a (T × 1) ones-vector 1T×1

the second column of X corresponds to a (T × 1) vector of iid realizationsdrawn from the uniform distribution Unif(0, 1)the third column of X corresponds to a (T × 1) vector of iid realizationsdrawn from the standard normal distribution N( 0, 1 )

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 42 / 59

Page 43: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

How and Why MC Works: An Example

thus, the randomness of β can be traced back to u by substituting (6) in(7):

β = β + (XTX)−1XTu

β − β = (XTX)−1XTu

to measure the discrepancy between β and β, we use the usual Euclideannorm, i.e.,

||u|| =√u21 + · · ·+ u2

T

for example, if we generate a u(j) with a large ||u(j)||, then thediscrepancy ||β − β|| tends to be large as well

this happens when u(j) represents an extreme realization fromN(0T×1, σ

2IT

)

⇒ it turns out that the influence of these “bad” simulated data can beaveraged out by repeated simulations (or resampling)

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 43 / 59

Page 44: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

How and Why MC Works: An Example

suppose we have drawn m samples u(1), . . . ,u(m) from N(0T×1, σ

2IT

)

and subsequently computed y(j) and β(j)

via (6) and (7), respectively,with j = 1, . . . ,m such that

β(1)

= β + (XTX)−1XTu(1)

...

β(m)

= β + (XTX)−1XTu(m)

can be averaged over all m equations:

1

m

m∑

j=1

β(j)

=1

m

m∑

j=1

β +1

m

m∑

j=1

(XTX)−1XTu(j)

= β + (XTX)−1XT

1

m

m∑

j=1

u(j)

(8)

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 44 / 59

Page 45: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

How and Why MC Works: An Example

notice that (8) is the sample counterpart of

E[β]= β + (XTX)−1XTE[u ]

which corresponds to

E[β]= β

because E[u ] = 0T×1, by construction

the only requirement for this result to hold is that

1

m

m∑

j=1

u(j) p−→ E[u ]

which, by the weak LLN, holds whenever E[u ] < ∞⇒ this is the basic idea of MC simulations!

more generally, assume we have generated an MC sample of estimatesθ(j)

m

j=1for a scalar parameter θ

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 45 / 59

Page 46: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

How and Why MC Works: An Example

a measure of unbiasedness of θ is the MC sample mean

¯θ :=

1

m

m∑

j=1

θ(j)

a measure of dispersion of θ about its sample mean is the MC samplestandard deviation

StD[θ]:=

√√√√ 1

m

m∑

j=1

(θ(j) −

¯θ)2

a combined measure of bias and estimation error of θ is the MC samplemean-squared error

MSE[θ]:=

(¯θ − θ

)2

+1

m

m∑

j=1

(θ(j) −

¯θ)2

= Bias[θ]2

+ StD[θ]2

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 46 / 59

Page 47: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

How and Why MC Works: An Example

thus, for m → ∞, we obtain

¯θ

P−→ E[θ]

StD[θ]

P−→ StD[θ]

MSE[θ]

P−→ MSE[θ]

although m → ∞ is impossible for numerical simulations on a computer,we can nevertheless expect that these convergence results to hold prettywell for large m, say m = 1000

as an indication of weak consistency, we need to find evidence that

MSE[θ]→ 0

as T → ∞ because “m.s.−−−→” ⇒ “

P−→”

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 47 / 59

Page 48: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

How and Why MC Works: An Example

as an indication of convergence in distribution, we need to find evidencethat the nonparametric kernel density estimate of a MC sample for θconverges to the asymptotic distribution of θ as T → ∞digression: the CLT for β states that

√T (β − β)

d−→ N(0k×1, σ

2(XTX)−1)

orβ

asy= N

(β, σ2(XTX)−1/T

)

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 48 / 59

Page 49: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

MC Results: Classical Linear Regression Model

β1 β2 β3

T=

25

¯βi 1.4924 -0.4743 1.7429

StD 0.4726 0.8544 0.1880

MSE 0.2234 0.7307 0.0354

T=

75

¯βi 1.5040 -0.5164 1.7510

StD 0.2558 0.4457 0.1167

MSE 0.0655 0.1990 0.0136

T=

150

¯βi 1.4948 -0.4928 1.7482

StD 0.1730 0.3000 0.0861

MSE 0.0300 0.0901 0.0074

T=

500

¯βi 1.5026 -0.5066 1.7490

StD 0.0951 0.1705 0.0505

MSE 0.0091 0.0291 0.0025

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 49 / 59

Page 50: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Density Comparison (CLT=red, MC=blue)

0.5 1 1.5 2 2.50

0.5

1T

=25

−2 0 2

0

0.2

0.4

0.6

1.2 1.4 1.6 1.8 2 2.20

1

2

3

1 1.5 20

1

2

T=

75

−1.5 −1 −0.5 0 0.50

0.5

1

1.4 1.6 1.8 20

2

4

1 1.5 20

1

2

3

T=

150

−1.5 −1 −0.5 00

0.5

1

1.5

1.6 1.8 20

2

4

6

1.2 1.4 1.6 1.80

2

4

T=

500

β1

−1 −0.5 00

1

2

3

β2

1.6 1.7 1.8 1.90

5

10

β3

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 50 / 59

Page 51: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

MC Simulation: Non-Normal Error Terms

now, let us analyze the effects of non-normal u

assume that the error terms are iid draws from a non-centralt-distribution, i.e., ∀ t = 1, . . . , T

utiid= tν,δ

ν is the parameter of the degrees of freedom

the smaller ν the more leptokurtic tν,δthe variance of tν,δ even does not exist for ν < 2tν,δ converges to a normal distribution for ν → ∞

δ is the non-centrality parameter, i.e., the distribution is centered at theorigin or E[ tν,δ ] = 0 when δ = 0

consider two cases:

1) ν = 4 and δ = 02) ν = 4 and δ = 1

question: what do you conclude?

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 51 / 59

Page 52: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

MC Results: uiid= tν,δ with ν = 4 and δ = 0

β1 β2 β3

T=

25

¯βi 1.4850 -0.4920 1.7690

StD 0.6860 1.2406 0.2737

MSE 0.4708 1.5392 0.0753

T=

75

¯βi 1.4925 -0.4970 1.7477

StD 0.3446 0.5952 0.1679

MSE 0.1188 0.3543 0.0282

T=

150

¯βi 1.4995 -0.5111 1.7481

StD 0.2483 0.4302 0.1184

MSE 0.0616 0.1852 0.0140

T=

500

¯βi 1.4928 -0.4874 1.7470

StD 0.1367 0.2417 0.0713

MSE 0.0188 0.0586 0.0051

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 52 / 59

Page 53: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Density Comparison (CLT=red, MC=blue)

0 2 4

00.20.40.60.8

T=

25

−4 −2 0 2 4

0

0.2

0.4

1 2 30

1

2

0.5 1 1.5 2 2.50

0.5

1

1.5

T=

75

−2 −1 0 1

00.20.40.60.8

1.2 1.4 1.6 1.8 2 2.20

1

2

3

1 1.5 20

1

2

T=

150

−1 0 10

0.5

1

1.4 1.6 1.8 20

2

4

1.2 1.4 1.6 1.80

2

4

T=

500

β1

−1 −0.5 00

1

2

β2

1.6 1.7 1.8 1.90

2

4

6

8

β3

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 53 / 59

Page 54: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

MC Results: uiid= tν,δ with ν = 4 and δ = 1

β1 β2 β3

T=

25

¯βi 2.8980 -0.4878 1.7632

StD 0.7289 1.3123 0.2913

MSE 2.4858 1.7224 0.0851

T=

75

¯βi 2.9131 -0.5117 1.7668

StD 0.4150 0.7232 0.1832

MSE 2.1692 0.5231 0.0338

T=

150

¯βi 2.9091 -0.5048 1.7469

StD 0.2771 0.4625 0.1340

MSE 2.0622 0.2140 0.0180

T=

500

¯βi 2.9030 -0.5022 1.7554

StD 0.1531 0.2607 0.0768

MSE 1.9918 0.0680 0.0059

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 54 / 59

Page 55: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Density Comparison (CLT=red, MC=blue)

1 2 3 4 5

0

0.2

0.4

0.6

0.8

T=

25

−4 −2 0 2 4

0

0.2

0.4

1 1.5 2 2.50

1

2

2 3 40

0.5

1

1.5

T=

75

−2 −1 0 1

00.20.40.60.8

1 1.5 20

1

2

3

2 3 40

1

2

T=

150

−2 −1 0 10

0.5

1

1.5 2 2.50

2

4

2.6 2.8 3 3.2 3.40

2

4

T=

500

β1

−1 −0.5 00

1

2

β2

1.6 1.8 20

2

4

6

β3

Portfolio Selection: The Practice Statistical Inference via Resampling Techniques 55 / 59

Page 56: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Further Estimation Methods

Page 57: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Portfolio Selection: The Practice Further Estimation Methods 57 / 59

Page 58: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Bibliography

Boyd, S. and Vandenberghe, L. (2004). Convex Optimization. CambridgeUniversity Press.

Hall, P. (1992). The Bootstrap and Edgeworth Expansion. Springer.

Hampel, F. R., Ronchetti, E. M., Rousseeuw, P. J. and Stahel,

W. A. (1986). Robust Statistics: The Approach Based on InfluenceFunctions. Wiley.

Huber, P. J. (1981). Robust Statistics. Wiley.

Markowitz, H. (1952). Portfolio selection. The Journal of Finance, 7 77–91.

Rothenberg, T. J. (1984). Approximating the distribution of econometricestimators and test statistics. In Handbook of Econometrics (Z. Grilichesand M. D. Intriligator, eds.), vol. 2. North-Holland, 881–935.

Ruppert, D. (2011). Statistics and Data Analysis for Financial Engineering.Springer.

Sharpe, W. F. (1966). Mutual fund performance. The Journal of Business,39 119–138.

Portfolio Selection: The Practice Further Estimation Methods 58 / 59

Page 59: Financial Econometrics: Portfolio Analysis · 2014. 11. 11. · Financial Econometrics: Portfolio Analysis Portfolio Selection: The Practice Serkan Yener1 1Institut für Statistik

Bibliography

Sundaram, R. (1999). A First Course in Optimization Theory. reprinted ed.Cambridge University Press.

Ullah, A. (2004). Finite Sample Econometrics. Oxford University Press.

van der Vaart, A. W. (1998). Asymptotic Statistics. Cambridge UniversityPress.

Portfolio Selection: The Practice Further Estimation Methods 59 / 59