Professional Documents
Culture Documents
OGF MIF Statistics 2022 Sessions 1-4 v2
OGF MIF Statistics 2022 Sessions 1-4 v2
Statistics
October-November 2022
Descriptive Statistics
Study session I
• Descriptive Statistics
– Descriptive statistics
– Frequency distributions
– Graphical distributions
– Numerical methods for summarizing quantitative data
– Measures of central tendency: mean, median, mode
– Measures of variation: range, variance, standard deviation
– Measures of skewness and kurtosis
• Descriptive Statistics
– Other measures for quantitative data
– z-score, percentiles, deciles, quartiles
– Value at risk
•You need to make it clear if a class includes the limits or not (if we have
classes from 1.40 to 1.50 and from 1.50 to 1.60, where we count the 1.50?)
n n
x1 x 2 ..... x i
x1 f 1 x 2 f 2 ..... x i fi
X i 1
X i 1
n n f 1 f 2 ...... n
X arithmetic mean 800
700 Arithmetic Mean: 1.45
xi observations (i 1 to n) 600
500
120 Median: 11 Arithmetic Mean: 12.60 120 Median: 11 Arithmetic Mean: 14.41
100 100
80 80 Extreme
Values
60 60
40 40
20 20
0 0
0
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
0
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
MASTER IN INTERNATIONAL FINANCE 11
IEB
Descriptive Statistics
Mode
• Mode – the most frequent value in the data set.
• It has sense if it is really representative. We can also find
multimode distributions
120 Mode: 5
100
80
60
40
20
0
0
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
Xn+2=Xn+1*Exp(-r)=Xn*Exp(r)*Exp(-r)=Xn*Exp(0)=Xn
60
50
40
30
20
10
0
0 1 2 3 4 5 6 7 8 9
range
x X i
DX i 1
n
(x X)
i
2
S i1
n 1
140 140 Mean: 10
Mean: 10
120 Standard deviation: 5.29 120 Standard deviation: 3.16
100 100
80 80
60 60
40 40
20 20
0 0
0
10
12
14
16
18
20
0
10
12
14
16
18
20
i
(x X) 2
100 100
80 80
60 60
40 40
20 20
0 0
0
10
12
14
16
18
20
0
10
12
14
16
18
20
• Var(a+X)=Var(X)
• Var(aX)=a2Var(X)
• StDev(a+X)=StDev(X)
• StDev(aX)=a StDev(X)
• Mean(a+X)=a+Mean(X)
• Mean(aX)=a Mean(X)
MASTER IN INTERNATIONAL FINANCE 24
IEB
Descriptive Statistics
Risk measurements
• One way of measuring risk is to identify the risk to the dispersion
of returns:
– Range
– Avegare absolute deviation
– Variance
– Standard deviation
60 Median: 7.5
50 Mean: 6
40
30
20
10
0
0 1 2 3 4 5 6 7 8 9
(x X)
i
3
Skewness i
nS3
Excess Kurtosis K i
4
3
nS
platykurtic leptokurtic
• Excess kurtosis=kurtosis-3
100
100
80
80
60
60
40
40
20 20
0 0
VaR
MASTER IN INTERNATIONAL FINANCE 30
IEB
Descriptive Statistics
Value at Risk (VaR), with probability x%
•VaR is not coherent risk measure. It is NOT true that
VaR(X+Y)<=VaR(X)+VaR(Y)
•Used in financial markets for the simplicity of its interpretation,
but often wrongly perceived as a maximum level of loss.
•VaR gives you information of the threshold, but not about the
magnitude of the loss…
•If Normal distribution is assumed, -VaR=m-ks where k=1,645 for
5%, or k=2,32 for 1%
i
x k
mk i 1
n n
(x i X )k
• The k-central moment (more used) is mk,X i 1
max(0, xi ) 2
( min(0, xi )) 2
Sn1 i1
Sn1 i1
n 1 n 1
i
( x K) 2
Sdownside, K i1
n 1
• For alternative investments, it is used K=0 or K=objective return,
and even, only considering the negative values of the sum:
n
ë i
2
é( x K)ù
û
Sdownside, K t1
n 1
MASTER IN INTERNATIONAL FINANCE 36
IEB
MASTER IN INTERNATIONAL FINANCE
Introduction to Probability
Study session II
• Introduction to Probability
– Probability space, probability function, sample space, event
– Conditional probability
– Independent events
– The Inclusion-Exclusion Formula, Bayes' theorem
– Prior and posterior probability
Independent events
•Events A and B are defined to be statistically independent if:
So this is equivalent to
not default
mortgage
Total
not default
probabilities
mortgage
should sum 1
MASTER IN INTERNATIONAL FINANCE
IEB
Introduction to Probability
Suppose the following probabilities regarding a specific client and the
probabilities of different products:
not default
mortgage
P(default everything)=?
P(not default mortgage)=0,012
not default
mortgage
MASTER IN INTERNATIONAL FINANCE
IEB
Introduction to Probability
P(default credit card / not default mortgage)=0,5
P(default credit card)=0,03
P(not default mortgage / default credit card)=0,2
P(default everything)=?
P(not default mortgage)=0,012
default
0,80 mortgage 0,024
P(default everything)=?
P(not default mortgage)=0,012
default
Definition of conditional 0,80 mortgage 0,024
probability
P(A/B)=P(A and B)/P(B)
default not default
0,03 credit card mortgage 0,006
0,20
P(default mortgage / not default
credit card)=0,964/0,97=0,99381
default
0,80 mortgage 0,024
default
mortgage 0,024
The figures that appear in the example, are
0,80
not real… the strange probability here is
Random Variables
Study session III
• Random Variables
– Random variables and the distribution function
– Discrete random variables and point probabilities
– Continuous random variables and density functions
– Independent random variables
– Expected value of random variables
– Variance and standard deviation of random variables
fY (y) P(Y y)
FY (y) P(Y £ y) fY (i )
i£y
0 £ FY (y) £ 1
ì1 if y Î [0,1]
Y(w) w fY (y) í
î0 othercase
b
P(a £ Y £ b) ò fY (i) di
a
y
FY (y) P(Y £ y) ò fY (i)di
¥
0 £ FY (y) £ 1
Probability Distributions
Study session IV
• Probability Distributions
– Discrete Probability Distributions
– Uniform
– Bernouilli
– Binomial
– Poisson
– Continuous Probability Distributions
– Uniform
– Exponential
– Normal Distribution
î0 othercase
P(X £ a) 1 e l a
ì
ï 1
( xm )2
E[X] m
f X (x) í e 2s 2
î s 2p
ï Var[X] s 2
-5
-2
-4.4
-3.8
-3.2
-2.6
-1.4
-0.8
-0.2
4
0.4
1.6
2.2
2.8
3.4
4.6
-5
-2
-4.4
-3.8
-3.2
-2.6
-1.4
-0.8
-0.2
4
0.4
1.6
2.2
2.8
3.4
4.6
0.45
0.4
0.35
0.3
0.25
0.2
0.15 68%
0.1
0.05
0
-5
-2
-4.4
-3.8
-3.2
-2.6
-1.4
-0.8
-0.2
4
0.4
1.6
2.2
2.8
3.4
100
80
60
40
20
100
80
60
40
20
X eN ( m ,s )
s2
m
E(X) e 2
s2 2 m s 2
Var (X) (e 1) e