Risk Analytics Autumn 2019
Colin Rowat c.rowat@bham.ac.uk 2019-12-02 (preliminary until end of term)
1 / 230
Risk Analytics Autumn 2019 Colin Rowat c.rowat@bham.ac.uk - - PowerPoint PPT Presentation
Risk Analytics Autumn 2019 Colin Rowat c.rowat@bham.ac.uk 2019-12-02 (preliminary until end of term) 1 / 230 Contents Introduction 1 Univariate statistics 2 Multivariate statistics 3 Modelling the market 4 Estimating market
1 / 230
Introduction
Univariate statistics
Multivariate statistics
Modelling the market
Estimating market invariants
Evaluating allocations
Optimising allocations
Estimating market invariants with estimation risk
Evaluating allocations with estimation risk
Optimising allocations with estimation risk
Regulatory framework of risk management 2 / 230
Introduction
3 / 230
Introduction Caveat mercator
5 / 230
Introduction Caveat mercator
1
2
6 / 230
Introduction A standard risk taxonomy
8 / 230
Introduction A standard risk taxonomy
9 / 230
Introduction A standard risk taxonomy
10 / 230
Introduction A standard risk taxonomy
11 / 230
Introduction A standard risk taxonomy
12 / 230
Introduction The Meucci mantra
1 for each security, identify the iid stochastic terms (§3.1) 2 estimate the distribution of the market invariants (§4) 3 project the invariants to the investment horizon (§3.2) 4 dimension reduce to make the problem more tractable (§3.4) 5 evaluate the portfolio performance at the investment horizon (§5)
6 pick the portfolio that optimises your objective function (§6) 7 account for estimation risk 1
2
3
14 / 230
Introduction The Meucci mantra
15 / 230
Univariate statistics Random variables and their representation
naïve statement 17 / 230
Univariate statistics Random variables and their representation
1 the probability that the rv X
2 why do the following also hold?
−3 −2 −1 1 2 3 0.0 0.1 0.2 0.3 0.4 x y
18 / 230
Univariate statistics Random variables and their representation
1 the probability that the rv X
2 why do the following also hold?
19 / 230
Univariate statistics Random variables and their representation
1
2 its properties are less intuitive
3 particularly useful for handling
2 ω2
−3 −2 −1 1 2 3 0.0 0.2 0.4 0.6 0.8 1.0
phi
20 / 230
Univariate statistics Random variables and their representation
1 the inverse of the CDF
2 the number x such that the
VaR 21 / 230
Univariate statistics Random variables and their representation
22 / 230
Univariate statistics Random variables and their representation
23 / 230
Univariate statistics Random variables and their representation
24 / 230
Univariate statistics Summary statistics
1 location, Loc {X}
2 dispersion, Dis {X}
3 z-score normalises a rv, ZX ≡ X−Loc{X}
26 / 230
Univariate statistics Summary statistics
−∞
2
−∞ xfX (x) dx
−∞ (x − E {X})2 fX (x) dx
1 p is the norm on the vector space Lp
2
27 / 230
Univariate statistics Summary statistics
1 kth-raw moment
2 kth-central moment is more commonly used
3
4
28 / 230
Univariate statistics Taxonomy of distributions
30 / 230
Univariate statistics Taxonomy of distributions
31 / 230
Univariate statistics Taxonomy of distributions
Y ∼ Ca (0, 1))
32 / 230
Univariate statistics Taxonomy of distributions
−3 −2 −1 1 2 3 0.0 0.1 0.2 0.3 0.4 x y
33 / 230
Univariate statistics Taxonomy of distributions
%
−3 −2 −1 1 2 3 0.0 0.1 0.2 0.3 0.4 0.5 0.6 x y
34 / 230
Univariate statistics Taxonomy of distributions
1 µ = 0 ⇒ central gamma
2 σ2 = 1 ⇒ non-central
3 µ = 0, σ2 = 1 ⇒ chi-square
−3 −2 −1 1 2 3 0.00 0.05 0.10 0.15 0.20 0.25 x y
X ∼ W 35 / 230
Univariate statistics Taxonomy of distributions
X ∼ Em 36 / 230
Univariate statistics Taxonomy of distributions
37 / 230
Multivariate statistics Building blocks
39 / 230
Multivariate statistics Building blocks
40 / 230
Multivariate statistics Building blocks x y z
copula defined 41 / 230
Multivariate statistics Building blocks
42 / 230
Multivariate statistics Building blocks
1
2
1
2
3
43 / 230
Multivariate statistics Building blocks
IID heuristic test 2
44 / 230
Multivariate statistics Dependence
46 / 230
Multivariate statistics Dependence
47 / 230
Multivariate statistics Dependence
linear returns plot
48 / 230
Multivariate statistics Taxonomy of distributions
1 +x2 2 ≤1
1
1
2
50 / 230
Multivariate statistics Taxonomy of distributions
51 / 230
Multivariate statistics Taxonomy of distributions
ν ν−2Σ
t dependence 52 / 230
Multivariate statistics Taxonomy of distributions
53 / 230
Multivariate statistics Taxonomy of distributions
54 / 230
Multivariate statistics Taxonomy of distributions
X ∼ Ga
priors 55 / 230
Multivariate statistics Taxonomy of distributions
X ∼ Em
1
T
t=1 xt
2
T
t=1
56 / 230
Multivariate statistics Special classes of distributions
2 gN
58 / 230
Multivariate statistics Special classes of distributions
1 stable ⇒ additive: X, Y , Z ∼ NID
2 additive ⇒ stable:
59 / 230
Multivariate statistics Special classes of distributions
60 / 230
Multivariate statistics Special classes of distributions
61 / 230
Multivariate statistics Copulas
63 / 230
Multivariate statistics Copulas
copula example
64 / 230
Multivariate statistics Copulas
1 may have more confidence in marginals than JDF
2 can run shock experiments: idiosyncratic via marginals, common via
65 / 230
Multivariate statistics Copulas
1 if X has a continuous univariate CDF, FX, then FX (X) ∼ U ([0, 1]) proof 2 if U ≡ FX (X) d
66 / 230
Multivariate statistics Copulas
67 / 230
Multivariate statistics Copulas
68 / 230
Multivariate statistics Copulas
69 / 230
Multivariate statistics Copulas
co-monotonic additivity 70 / 230
Modelling the market
1 detecting the invariants
2 determining the distribution of the invariants
3 projecting the invariants into the future 4 mapping the invariants into the market prices
71 / 230
Modelling the market Stylised facts
1 series of compound returns are not IID, but show little serial
2 volatility clustering: series of |Ct,τ| or C2
3 conditional (on any history) expected returns are close to zero 4 volatility appears to vary over time 5 extreme returns appear in clusters 6 returns series are leptokurtic (heavy-tailed)
73 / 230
Modelling the market Stylised facts
1 Ct,τ series show little evidence of (serial) cross-correlation, except for
2 |Ct,τ| series show profound evidence of (serial) cross-correlation 3 correlations between contemporaneous returns vary over time 4 extreme returns in one series often coincide with extreme returns in
74 / 230
Modelling the market The quest for invariance
1
2
2
76 / 230
Modelling the market The quest for invariance
77 / 230
Modelling the market The quest for invariance
78 / 230
Modelling the market The quest for invariance
79 / 230
Modelling the market The quest for invariance
80 / 230
Modelling the market The quest for invariance
τ
τ v xt
hint 81 / 230
Modelling the market The quest for invariance
82 / 230
Modelling the market The quest for invariance
independence 83 / 230
Modelling the market The quest for invariance
84 / 230
Modelling the market The quest for invariance
1
2
∆ YTM
1
2
85 / 230
Modelling the market The quest for invariance
1
2
uv u+v−uv .
86 / 230
Modelling the market The quest for invariance
1
2
87 / 230
Modelling the market The quest for invariance
1
t
2
τ) t−˜ τ
3
τ) t−2˜ τ
4
88 / 230
Modelling the market The quest for invariance
compound returns 89 / 230
Modelling the market The quest for invariance
90 / 230
Modelling the market The quest for invariance
1
2
3
Ut Z (E)
t
t
why ATMF? 91 / 230
Modelling the market The quest for invariance
92 / 230
Modelling the market Projecting invariants to the investment horizon
1
2
3
94 / 230
Modelling the market Projecting invariants to the investment horizon
τ
˜ τ proof
95 / 230
Modelling the market Projecting invariants to the investment horizon
τ (ω) = eiω′µ− 1 2 ω′Σω.
˜ τ µ− 1 2 ω′ τ ˜ τ Σω.
96 / 230
Modelling the market Projecting invariants to the investment horizon
1
τ}
2
τ} ⇔ Sd {XT+τ,τ} =
τ}
97 / 230
Modelling the market Mapping invariants into market prices
1 for equities, manipulating the compound returns formula yields
2 for zero coupon bounds, manipulating the definitions of R(E−T−τ)
T+τ,τ
99 / 230
Modelling the market Mapping invariants into market prices
100 / 230
Modelling the market Mapping invariants into market prices
101 / 230
Modelling the market Mapping invariants into market prices
102 / 230
Modelling the market Mapping invariants into market prices
103 / 230
Modelling the market Dimension reduction
1 actual dimension of the market is less than the number of securities
2 randomness in the market can be well approximated with fewer than
105 / 230
Modelling the market Dimension reduction
1
τ;
1
2
2
τ
106 / 230
Modelling the market Dimension reduction
1 substantial dimension reduction, K ≪ N 2 independence of Ft,˜
τ, Ut,˜ τ} = 0K×N
3 goodness of fit
1
2
3
107 / 230
Modelling the market Dimension reduction
1
2
108 / 230
Modelling the market Dimension reduction
1 want the set of factors to be as highly correlated as possible with the
XF)
2 want the set of factors to be as uncorrelated with each other as
3 more generally, trade-off between more accuracy and more
109 / 230
Modelling the market Dimension reduction
t
t−˜ τ
τ − 1, is a linear factor. The general regression result (3.127)
110 / 230
Modelling the market Dimension reduction
1 CM, the compound return to a broad stock index 2 SmB, size (small minus big), the difference between the compound
3 HmL, value (high minus low), the difference between the compound
111 / 230
Modelling the market Dimension reduction
112 / 230
Modelling the market Dimension reduction
τ
113 / 230
Modelling the market Dimension reduction
114 / 230
Modelling the market Dimension reduction
E
k=1 λk
n=1 λn , can see effect of each further factor 115 / 230
Modelling the market Dimension reduction
116 / 230
Estimating market invariants
x y
Degree 1
Model True function Samples x y
Degree 4
Model True function Samples x y
Degree 15
Model True function Samples
1 underfitting & bias: model forces too many parameters to zero 2 overfitting & inefficiency: “memorises the training set”/“fits to noise” 117 / 230
Estimating market invariants
118 / 230
Estimating market invariants
1 classical econometric parlance 1
2
3
Bayes-Stein sample-based allocation 2 machine learning parlance (Kolanovic and Krishnamachari, 2017) 1
1
2
2
3
119 / 230
Estimating market invariants
1 Rolling window treats last W observations equally, discarding all
2 Exponential smoothing picks a decay factor, λ ∈ [0, 1], and weights
120 / 230
Estimating market invariants
121 / 230
Evaluating allocations
1 investors care about their portfolio’s performance at the horizon
2 need to convert this random variable into a real number
1
2
3
122 / 230
Evaluating allocations Investors’ objectives
1 absolute wealth
2 relative wealth
3 net profits
124 / 230
Evaluating allocations Investors’ objectives
125 / 230
Evaluating allocations Investors’ objectives
1
2
126 / 230
Evaluating allocations Stochastic dominance
1 allocation α strongly dominates allocation β iff
2 allocation α weakly dominates allocation β iff
3 allocation α second-order stochastically dominates allocation β iff
128 / 230
Evaluating allocations Measures of satisfaction
1
2
130 / 230
Evaluating allocations Measures of satisfaction
1
2
certainty-equivalence quantile coherent indices expected shortfall 131 / 230
Evaluating allocations Measures of satisfaction
1 expected value: S (α) = E {Ψα} 2 Sharpe ratio: SR (α) = E{Ψα}
certainty-equivalence quantile expected shortfall 132 / 230
Evaluating allocations Measures of satisfaction
certainty-equivalence quantile coherent indices expected shortfall
133 / 230
Evaluating allocations Measures of satisfaction
certainty-equivalence quantile coherent indices expected shortfall 134 / 230
Evaluating allocations Measures of satisfaction
certainty-equivalence quantile expected shortfall 135 / 230
Evaluating allocations Measures of satisfaction
certainty-equivalence quantile coherent indices expected shortfall 136 / 230
Evaluating allocations Measures of satisfaction
certainty-equivalence quantile expected shortfall 137 / 230
Evaluating allocations Measures of satisfaction
co-monotonicity
certainty-equivalence quantile expected shortfall 138 / 230
Evaluating allocations Measures of satisfaction
certainty-equivalence quantile expected shortfall 139 / 230
Evaluating allocations Measures of satisfaction
certainty-equivalence quantile expected shortfall 140 / 230
Evaluating allocations Measures of satisfaction
141 / 230
Evaluating allocations Certainty-equivalent (expected utility)
143 / 230
Evaluating allocations Certainty-equivalent (expected utility)
1 translation invariance? translation invariance
ζ ψ (Meucci, 2005, www.5.3)
2 super-additivity? super-additivity
3 positive homogeneity? positive homogeneity
γ , γ ≥ 1 ⇒ (Meucci, 2005, www.5.3)
4 monotonicity? monotonicity
5 law-invariance? law-invariance 6 co-monotonic additivity? co-monotonic additivity
144 / 230
Evaluating allocations Certainty-equivalent (expected utility)
7 concavity? concavity
8 risk-aversion? risk-aversion
145 / 230
Evaluating allocations Certainty-equivalent (expected utility)
ζ ψ ⇒ CE (α) = −ζ ln
146 / 230
Evaluating allocations Quantile (Value at Risk)
148 / 230
Evaluating allocations Quantile (Value at Risk)
quantile
Evaluating allocations Quantile (Value at Risk)
1 translation invariance? translation invariance
2 super-additivity? super-additivity
VaR fail
expected value 3 positive homogeneity? positive homogeneity
4 monotonicity? monotonicity 5 law-invariance? law-invariance 6 co-monotonic additivity? co-monotonic additivity
150 / 230
Evaluating allocations Quantile (Value at Risk)
7 concavity? concavity
8 risk-aversion? risk-aversion
151 / 230
Evaluating allocations Quantile (Value at Risk)
1
2
3
152 / 230
Evaluating allocations Coherent indices of satisfaction
154 / 230
Evaluating allocations Coherent indices of satisfaction
1 translation invariance:
2 super-additivity: E {Ψα+β} = E {Ψα} + E {Ψβ} 3 positive homogeneity: E {Ψλα} = E {λΨα} = λE {Ψα} 4 monotonicity: Ψα ≥ Ψβ∀e ∈ E ⇒ E {Ψα} ≥ E {Ψβ} 5 law invariance: E {Ψα} ≡
6 co-monotonic additivity: additive for any α, β, not just co-monotonic 155 / 230
Evaluating allocations Coherent indices of satisfaction
proof
quantile
156 / 230
Evaluating allocations Coherent indices of satisfaction
157 / 230
Evaluating allocations Coherent indices of satisfaction
1 translation invariance? translation invariance
2 super-additivity? super-additivity
3 positive homogeneity? positive homogeneity
4 monotonicity? monotonicity 5 law-invariance? law-invariance 6 co-monotonic additivity? co-monotonic additivity
158 / 230
Evaluating allocations Coherent indices of satisfaction
7 concavity? concavity
8 risk-aversion? risk-aversion
159 / 230
Evaluating allocations Coherent indices of satisfaction
160 / 230
Evaluating allocations Coherent indices of satisfaction
161 / 230
Evaluating allocations Coherent indices of satisfaction
162 / 230
Evaluating allocations Coherent indices of satisfaction
163 / 230
Optimising allocations Introduction
1 collecting information on the investor’s profile, P 1
2
3
4
5
2 collecting information on the market, iT 1
2
3
Optimising allocations Introduction
Tα + T
166 / 230
Optimising allocations Constrained optimisation
168 / 230
Optimising allocations Constrained optimisation
1 closed under positive multiplication: y ∈ K, λ ≥ 0 ⇒ λy ∈ K 2 closed under addition: x, y ∈ K ⇒ x + y ∈ K 3 ‘pointed’: (y = 0) ∈ K ⇒ −y ∈ K
169 / 230
Optimising allocations Constrained optimisation
1 linear programming
+ , the non-negative orthant
2 quadratically constrained quadratic programming (QCQP) includes
(0)z + v(0)
3 second-order cone programming (SOCP) includes QCQP
4 semidefinite programming (SDP) includes SOCP
170 / 230
Optimising allocations Constrained optimisation
1 closed under positive multiplication:
2 closed under addition: x, y ∈ RM
3 ‘pointed’: (y = 0) ∈ RM
171 / 230
Optimising allocations Constrained optimisation
is a cone?
y
1
−1.5 −1.0 −0.5 0.0 0.5 1.0 1.5 y2 −1.5 −1.0 −0.5 0.0 0.5 1.0 1.5 0.00 0.25 0.50 0.75 1.00 1.25 1.50 1.75 2.00 172 / 230
Optimising allocations Constrained optimisation
is a cone?
173 / 230
Optimising allocations The mean-variance approach
175 / 230
Optimising allocations The mean-variance approach
176 / 230
Optimising allocations The mean-variance approach
177 / 230
Optimising allocations The mean-variance approach
1 compute the mean-variance efficient frontier,
2 perform the one-dimensional search,
178 / 230
Optimising allocations Analytical solutions of the mean-variance problem
1 why is frontier linear? 2 why begin at αMV ? 3 why dotted above αSR? 180 / 230
Optimising allocations Analytical solutions of the mean-variance problem
1 why is frontier a parabola? 2 why begin at αMV ?
3 why dotted above αSR?
181 / 230
Optimising allocations Pitfalls of the mean-variance framework
183 / 230
Optimising allocations Pitfalls of the mean-variance framework
robust optimisation
1 as the inequality constrained
2 as the dual formulation
184 / 230
Optimising allocations Pitfalls of the mean-variance framework
1
2
185 / 230
Estimating market invariants with estimation risk Bayesian estimation
shrinkage estimators
187 / 230
Estimating market invariants with estimation risk Determining the prior
1 peak then tweak
2 allocation implied parameters
α∈C
3 prior constrained likelihood maximisation
189 / 230
Evaluating allocations with estimation risk Allocations as decisions
191 / 230
Evaluating allocations with estimation risk Allocations as decisions
192 / 230
Evaluating allocations with estimation risk Prior allocation
194 / 230
Evaluating allocations with estimation risk Sample allocation
θ
S
1
2
T
T
T
α∈C
ˆ θ
T S
ˆ θ
T
4
T
5
T
T
Evaluating allocations with estimation risk Sample allocation
1
T
2
T
θ, the constraints, C ˆ θ, and . . .
3
shrinkage estimators 197 / 230
Optimising allocations with estimation risk
1
2
1
2
3
4
5
198 / 230
Optimising allocations with estimation risk Bayesian allocation
θce
S
1
2
T, eC
T, eC
4
T, eC
5
T, eC
200 / 230
Optimising allocations with estimation risk Black-Litterman allocation
1
2
3
4
v Sv (α)
202 / 230
Optimising allocations with estimation risk Black-Litterman allocation
1 stock indices for Italy, Spain, Switzerland, Canada, USA, Germany are
2 investor provides point estimates on areas of expertise, v
3 the posterior market vector given the view is X|v ∼ N (µBL, ΣBL). 203 / 230
Optimising allocations with estimation risk Robust allocation
1 use iT to define robustness set, ˆ
2 define constraint set to ensure allocation feasible for any θ ∈ Θ
Θ
max θ∈ ˆ
206 / 230
Optimising allocations with estimation risk Robust allocation
1
2
dual
1 elliptical expectations: ˆ
2 known covariances: ˆ
207 / 230
Optimising allocations with estimation risk Robust Bayesian allocation
1 for each security, identify the iid stochastic terms (§3.1) 2 estimate the distribution of the market invariants (§4) 3 project the invariants to the investment horizon (§3.2) 4 dimension reduce to make the problem more tractable (§3.4) 5 evaluate the portfolio performance at the investment horizon (§5)
6 pick the portfolio that optimises your objective function (§6) 7 account for estimation risk 1
2
3
209 / 230
Regulatory framework of risk management
210 / 230
Appendix References
211 / 230
Appendix References
212 / 230
Appendix References
213 / 230
Appendix References
214 / 230
Appendix References
215 / 230
Appendix References
216 / 230
Appendix References
217 / 230
Appendix References
218 / 230
Appendix References
219 / 230
Appendix References
220 / 230
Derivations
LogN 221 / 230
Derivations
∼ St 222 / 230
Derivations
hint 223 / 230
Derivations
τ+XT+τ−˜ τ,˜ τ+···+XT+˜ τ,˜ τ (ω) = E
τ+XT+τ−˜ τ,˜ τ+···+XT+˜ τ,˜ τ
τ × · · · × eiω′XT+˜ τ,˜ τ
τ
τ,˜ τ
τ (ω) × · · · × φXT+˜ τ,˜ τ (ω)
τ (ω)
˜ τ
224 / 230
Derivations
imp vol 225 / 230
Derivations
226 / 230
Derivations
227 / 230
Derivations
1 fully concentrated portfolio
2 diversified portfolio
228 / 230
Derivations
1 closed under positive multiplication: 2 closed under addition: by the triangular inequality for Euclidean norms
3 pointed: Lorentz cone 229 / 230
Derivations
1 if |Sm| is any m × m principal minor of S, then the corresponding
2 given PSD matrices, S and ˜
3 tr (−S) = −tr (S) ≤ 0. SD cone 230 / 230