Professional Documents
Culture Documents
Objectives:
To acquaint all the participants with frequently used:
· basic concepts
· terminology and
· notations
in statistics before starting with the EPAT lectures.
Key takeaways:
This session will cover the following topics in statistics:
· Data and its distribution:
§ Frequency distribution
§ Probability distribution
· Introduction to ‘data driven’ decision making with the help of statistics
§ Examples of stock selection using statistical analysis
Note:
Discussion on the following topics is not a part of this session and will be covered at length in the EPAT lectures:
· Hypothesis testing
· Advanced probability theory
· Time series analysis
Pre-requisites:
· High school level statistics or EPAT stats primer or equivalent material
Typical time series data in finance
PROBABILITY D
TSLA
200
220
Log
FREQUENCY DISTRIBUTION OF DATA
Frequency
2 Frequency Distribution/Histogram
2
3.5
0 Frequen
3 3
3
2 2.5
Frequency
0
2
12
1.5
0.5
0
-0.02 -0.01 0 0.01 0.02 0.03 0.04
Probability
0.167 Probability Distribution
0.167
0.300
0.000 Probabil
0.250
0.250
0.250
0.167 0.200
Probability
0.000
1 0.150
0.100
0.050
0.000
Stock Re- -0.02 -0.01 0 0.01 0.02 0.03
turn
10%
9.53%
0.09531
togram
Frequency
0.03 0.04
on
Probability
0.02 0.03
0.02 0.03
MEAN or EXPECTED VALUE
0.75%
0.75%
PROBABILITY DISTRIBUTION
x_i*f_i Stock Return(X) Probability x_i*p_i
-0.02 -1% 0.167 -0.001667
-0.04 -2% 0.167 -0.003333
0.03 1% 0.250 0.0025
0.06 2% 0.250 0.005
0.06 3% 0.167 0.005
0.09 Total 1 0.75%
0.75%
VARIANCE & STANDARD DEVIATION
variance
std deviation
PROBABILITY DISTRIBUTION
Stock Return(X) Probability
0.00000625 -1% 0.167
0.00015625 -2% 0.167
0.00030625 1% 0.250
0.00050625 2% 0.250
0.00015625 3% 0.167
0.00075625 Total 1
0.00030625
0.00050625
0.00075625
0.00000625
0.00015625
0.00000625
0.003625
0.0003021
1.738%
PROBABILITY DISTRIBUTION
Stock Return(X) Probability(p_i) (x_i-μ) 〖 (x_i−μ
-1% 0.16667 -1.7500% ) 〗 ^20.0306%
-2% 0.16667 -2.75% 0.0756%
1% 0.25000 0.25% 0.0006%
2% 0.25000 1.25% 0.0156%
3% 0.16667 2.25% 0.0506%
Total 1
CASE 1
n = number of samples = 4
Suppose μ = 5
Xi Xi - 𝝁 (Xi - 𝝁)^2
4 4-5 1
5 5-5 0
3 3-5 4
7 7-5 4
4.75
CASE 2
n = sample size = 4
Suppose, sample mean = x̅ = 5
Xi Xi - x̅ (Xi - x)̅ ^2
4 4-5 1
5 5-5 0
3 3-5 4
8 8-5 9 The last value HAS to be 8, as the sample mean is fi
Only three(n-1) sample values can vary freely, so we only divide by three when calculating sample varia
So, we can use:
In general, the denominator is (n-1) to calculate sample variance, as population mean is usually not kno
This is known as Bessel's correction.
s the sample mean is fixed at 5
6/25/2019 -3.157% 5% 4
6/26/2019 0.375% 7% 1
6/27/2019 0.164% 8% 4
6/28/2019 -0.142% 10% 2
6/29/2019 0.000% 11% 0
6/30/2019 0.000% 13% 0
7/1/2019 1.284% 15% 1
7/2/2019 0.663% total 397
7/3/2019 0.644%
7/4/2019 0.000%
7/5/2019 -0.291%
7/6/2019 0.000%
7/7/2019 0.000%
7/8/2019 -0.073% Returns Probability
7/9/2019 -0.365% -15% 0.0025189 Probability
7/10/2019 1.019% -13% 0 0.6
7/11/2019 0.399% -12% 0
0.5
0.4
Probability
0.6
- -9% -7% -6% -4% -3% -1% 1% 2% 4% 5% 7% 8% 10% 11% 13% 15%
% 10%
Probability Distribution
Probability Distribution
0% -9% -7% -6% -4% -3% -1% 1% 2% 4% 5% 7% 8% 10% 11% 13% 15%
Probability
Date Crypto
5/29/2019 -0.694% Mean ̄̄ 0.1491%
5/30/2019 -3.926%
5/31/2019 9.000% Sample Standard deviation 6.5886%
6/1/2019 11.000% Population standard deviation 6.5803%
6/2/2019 2.089%
6/3/2019 -6.107%
6/4/2019 12.000%
6/5/2019 1.511%
6/6/2019 -0.028%
6/7/2019 2.837%
6/8/2019 -1.117%
6/9/2019 3.345% Frequency Distribution of returns
6/10/2019 4.062%
6/11/2019 -0.908% Returns Frequency
6/12/2019 2.752% -37% 1 Frequency Dis
6/13/2019 18.000% -34% 1 200
6/14/2019 5.624% -31% 3 180
6/15/2019 1.663% -28% 1 160
140
6/16/2019 14.000% -25% 0
120
6/17/2019 3.623% -21% 1 100
6/18/2019 -2.560% -18% 2 80
6/19/2019 2.111% -15% 0 60
40
6/20/2019 2.735% -12% 2
20
6/21/2019 6.480% -9% 5 0
6/22/2019 5.492% -6% 14 17 35 99 64 29 94 58 23 88
6 01 116 220 325 430 534 639 744 848 5
6/23/2019 1.436% -2% 51 85 74 92 10 28 46 64 82 00 89
953 720 902 085 267 449 631 813 996 781
6/24/2019 1.435% 1% 175 6 2 5 9 2 5 8 1 4 1 3
71 00 83 66 50 33 16 00 83 68 01
0.3 .34 .30 .27 .24 .21 .18 .15 .11 86 55
6/25/2019 7.082% 4% 91 - -0 -0 -0 -0 -0 -0 -0 -0 0.0 0.0 0.0
- - -
6/26/2019 10.392% 7% 28
6/27/2019 -14.086% 10% 9 Freq
6/28/2019 10.950% 13% 6
6/29/2019 -3.610% 17% 3
6/30/2019 -9.551% 20% 2
7/1/2019 -2.163% 22% 2
7/2/2019 2.065% total 397
7/3/2019 10.735%
7/4/2019 -6.235%
7/5/2019 -2.113%
7/6/2019 2.096% Probability Distribution of returns
7/7/2019 2.162%
7/8/2019 7.293% Returns Probability
7/9/2019 2.343% -37% 0.0025189 Probability
7/10/2019 -3.319% -34% 0.0025189 0.5
7/11/2019 -6.563% -31% 0.0075567 0.45
0.4
0.35
0.3
Probability
0.5
0.45
7/12/2019 4.026% -28% 0.0025189
0.4
7/13/2019 -3.585% -25% 0
0.35
7/14/2019 -9.974% -21% 0.0025189
7/15/2019 6.231% -18% 0.0050378 0.3
7/16/2019 -13.010% -15% 0 0.25
7/17/2019 2.281% -12% 0.0050378 0.2
7/18/2019 10.034% -9% 0.0125945
0.15
7/19/2019 -1.273% -6% 0.0352645
0.1
7/20/2019 2.245% -2% 0.1284635
7/21/2019 -1.561% 1% 0.440806 0.05
7/22/2019 -2.415% 4% 0.2292191 0
-37% -34% -31% -28% -25% -21% -18% -15% -12% -
7/23/2019 -4.277% 7% 0.070529
7/24/2019 -0.897% 10% 0.02267 P
7/25/2019 1.018% 13% 0.0151134
7/26/2019 -0.419% 17% 0.0075567 0.833753
7/27/2019 -3.978% 20% 0.0050378
7/28/2019 0.793% 22% 0.0050378
7/29/2019 -0.353% total 1
7/30/2019 0.927%
7/31/2019 4.977%
8/1/2019 3.114%
8/2/2019 1.140%
8/3/2019 2.886%
8/4/2019 1.372%
8/5/2019 7.616%
8/6/2019 -2.774%
8/7/2019 4.041%
8/8/2019 0.205%
8/9/2019 -0.865%
8/10/2019 -4.290%
8/11/2019 1.493%
8/12/2019 -1.223%
8/13/2019 -4.277%
8/14/2019 -7.747%
8/15/2019 2.585%
8/16/2019 0.609%
8/17/2019 -1.374%
8/18/2019 1.115%
8/19/2019 5.512%
8/20/2019 -1.400%
8/21/2019 -5.809%
8/22/2019 -0.069%
8/23/2019 2.733%
8/24/2019 -2.383%
8/25/2019 -0.211%
8/26/2019 2.291%
8/27/2019 -1.787%
8/28/2019 -4.232%
8/29/2019 -2.504%
8/30/2019 0.925%
8/31/2019 0.339%
9/1/2019 1.322%
9/2/2019 6.034%
9/3/2019 2.675%
9/4/2019 -0.273%
9/5/2019 -0.179%
9/6/2019 -2.101%
9/7/2019 1.584%
9/8/2019 -0.722%
9/9/2019 -1.018%
9/10/2019 -2.119%
9/11/2019 0.617%
9/12/2019 2.277%
9/13/2019 -0.476%
9/14/2019 -0.024%
9/15/2019 -0.100%
9/16/2019 -0.685%
9/17/2019 -0.346%
9/18/2019 -0.420%
9/19/2019 0.668%
9/20/2019 -0.826%
9/21/2019 -1.590%
9/22/2019 0.506%
9/23/2019 -3.387%
9/24/2019 -11.396%
9/25/2019 -1.549%
9/26/2019 -4.336%
9/27/2019 1.637%
9/28/2019 -0.072%
9/29/2019 -1.719%
9/30/2019 2.341%
10/1/2019 0.596%
10/2/2019 0.596%
10/3/2019 -1.585%
10/4/2019 -0.654%
10/5/2019 -0.663%
10/6/2019 -2.004%
10/7/2019 3.223%
10/8/2019 -0.204%
10/9/2019 4.459%
10/10/2019 -0.108%
10/11/2019 -3.083%
10/12/2019 0.178%
10/13/2019 -0.187%
10/14/2019 0.645%
10/15/2019 -2.022%
10/16/2019 -1.924%
10/17/2019 0.701%
10/18/2019 -1.613%
10/19/2019 0.193%
10/20/2019 2.923%
10/21/2019 0.263%
10/22/2019 -2.008%
10/23/2019 -6.976%
10/24/2019 -0.282%
10/25/2019 15.576%
10/26/2019 6.746%
10/27/2019 3.318%
10/28/2019 -3.094%
10/29/2019 1.853%
10/30/2019 -2.354%
10/31/2019 -0.067%
11/1/2019 0.669%
11/2/2019 0.687%
11/3/2019 -0.958%
11/4/2019 1.919%
11/5/2019 -0.745%
11/6/2019 0.196%
11/7/2019 -0.997%
11/8/2019 -4.992%
11/9/2019 0.099%
11/10/2019 2.745%
11/11/2019 -3.288%
11/12/2019 0.661%
11/13/2019 -0.084%
11/14/2019 -1.137%
11/15/2019 -2.482%
11/16/2019 0.692%
11/17/2019 0.318%
11/18/2019 -3.132%
11/19/2019 -1.241%
11/20/2019 -2.180%
11/21/2019 -4.790%
11/22/2019 -4.529%
11/23/2019 1.387%
11/24/2019 -4.730%
11/25/2019 1.394%
11/26/2019 1.011%
11/27/2019 4.340%
11/28/2019 -0.910%
11/29/2019 3.995%
11/30/2019 -2.469%
12/1/2019 -1.920%
12/2/2019 -1.378%
12/3/2019 -0.025%
12/4/2019 -0.930%
12/5/2019 2.706%
12/6/2019 1.325%
12/7/2019 0.122%
12/8/2019 0.107%
12/9/2019 -2.161%
12/10/2019 -1.659%
12/11/2019 -0.834%
12/12/2019 0.356%
12/13/2019 0.367%
12/14/2019 -1.995%
12/15/2019 0.388%
12/16/2019 -3.073%
12/17/2019 -4.212%
12/18/2019 9.582%
12/19/2019 -1.016%
12/20/2019 0.222%
12/21/2019 -0.383%
12/22/2019 4.456%
12/23/2019 -2.076%
12/24/2019 -0.450%
12/25/2019 -0.647%
12/26/2019 -0.497%
12/27/2019 0.706%
12/28/2019 0.383%
12/29/2019 1.430%
12/30/2019 -1.747%
12/31/2019 -1.363%
1/1/2020 0.091%
1/2/2020 -2.982%
1/3/2020 5.145%
1/4/2020 0.895%
1/5/2020 0.009%
1/6/2020 4.829%
1/7/2020 5.077%
1/8/2020 -1.027%
1/9/2020 -2.485%
1/10/2020 3.649%
1/11/2020 -1.580%
1/12/2020 1.928%
1/13/2020 -0.590%
1/14/2020 8.393%
1/15/2020 -0.235%
1/16/2020 -0.945%
1/17/2020 2.353%
1/18/2020 0.154%
1/19/2020 -2.645%
1/20/2020 -0.558%
1/21/2020 1.019%
1/22/2020 -0.743%
1/23/2020 -3.161%
1/24/2020 0.463%
1/25/2020 -0.919%
1/26/2020 2.736%
1/27/2020 3.641%
1/28/2020 5.037%
1/29/2020 -0.448%
1/30/2020 2.065%
1/31/2020 -1.666%
2/1/2020 0.453%
2/2/2020 -0.516%
2/3/2020 -0.544%
2/4/2020 -1.211%
2/5/2020 4.710%
2/6/2020 1.211%
2/7/2020 0.680%
2/8/2020 0.706%
2/9/2020 2.550%
2/10/2020 -2.571%
2/11/2020 3.567%
2/12/2020 1.154%
2/13/2020 -1.081%
2/14/2020 0.957%
2/15/2020 -4.099%
2/16/2020 0.455%
2/17/2020 -2.459%
2/18/2020 4.663%
2/19/2020 -5.015%
2/20/2020 -0.259%
2/21/2020 0.811%
2/22/2020 -0.240%
2/23/2020 2.704%
2/24/2020 -2.764%
2/25/2020 -3.197%
2/26/2020 -5.579%
2/27/2020 -0.408%
2/28/2020 -1.275%
2/29/2020 -0.841%
3/1/2020 -0.431%
3/2/2020 3.588%
3/3/2020 -0.923%
3/4/2020 -0.370%
3/5/2020 3.695%
3/6/2020 0.482%
3/7/2020 -2.330%
3/8/2020 -8.999%
3/9/2020 -2.275%
3/10/2020 -0.176%
3/11/2020 0.022%
3/12/2020 -37.170%
3/13/2020 11.928%
3/14/2020 -6.531%
3/15/2020 3.691%
3/16/2020 -7.007%
3/17/2020 4.211%
3/18/2020 0.245%
3/19/2020 18.188%
3/20/2020 0.123%
3/21/2020 -0.221%
3/22/2020 -5.737%
3/23/2020 10.052%
3/24/2020 4.964%
3/25/2020 -0.798%
3/26/2020 0.530%
3/27/2020 -3.672%
3/28/2020 -3.518%
3/29/2020 -5.129%
3/30/2020 8.575%
3/31/2020 0.137%
4/1/2020 2.611%
4/2/2020 2.828%
4/3/2020 -0.887%
4/4/2020 1.992%
4/5/2020 -1.112%
4/6/2020 7.078%
4/7/2020 -1.311%
4/8/2020 2.197%
4/9/2020 -0.436%
4/10/2020 -5.979%
4/11/2020 -0.093%
4/12/2020 1.633%
4/13/2020 -1.808%
4/14/2020 -0.038%
4/15/2020 -2.928%
4/16/2020 7.147%
4/17/2020 -0.290%
4/18/2020 2.276%
4/19/2020 -0.940%
4/20/2020 -4.277%
4/21/2020 -0.024%
4/22/2020 3.443%
4/23/2020 4.391%
4/24/2020 1.631%
4/25/2020 0.252%
4/26/2020 1.452%
4/27/2020 1.507%
4/28/2020 0.147%
4/29/2020 12.732%
4/30/2020 -1.619%
5/1/2020 2.382%
5/2/2020 1.397%
5/3/2020 -1.014%
5/4/2020 0.171%
5/5/2020 1.014%
5/6/2020 2.951%
5/7/2020 7.366%
5/8/2020 -1.094%
5/9/2020 -2.527%
5/10/2020 -8.729%
5/11/2020 -1.766%
5/12/2020 2.356%
5/13/2020 5.287%
5/14/2020 5.003%
5/15/2020 -4.166%
5/16/2020 0.523%
5/17/2020 3.132%
5/18/2020 20.000%
5/19/2020 15.000%
5/20/2020 18.000%
5/21/2020 11.000%
5/22/2020 1.110%
5/23/2020 0.291%
5/24/2020 -4.549%
5/25/2020 1.326%
5/26/2020 -0.807%
5/27/2020 3.916%
5/28/2020 3.755%
5/29/2020 -0.909%
5/30/2020 2.768%
5/31/2020 -2.467%
6/1/2020 7.464%
6/2/2020 -6.270%
6/3/2020 1.332%
6/4/2020 -34.900%
6/5/2020 -1.379%
6/6/2020 -0.123%
6/7/2020 -31.000%
6/8/2020 0.129%
6/9/2020 0.248%
6/10/2020 -34.000%
6/11/2020 -5.555%
6/12/2020 -20.000%
6/13/2020 -33.000%
6/14/2020 -20.000%
6/15/2020 -22.000%
6/16/2020 -30.000%
6/17/2020 23.000%
6/18/2020 18.000%
6/19/2020 15.000%
6/20/2020 15.000%
6/21/2020 12.000%
6/22/2020 3.709%
6/23/2020 22.000%
6/24/2020 -3.282%
6/25/2020 -0.524%
6/26/2020 -1.100%
6/27/2020 -1.283%
6/28/2020 1.086%
Frequency Distribution
99 564 029 494 958 423 888 526 174 821 311 884 236 859 394 929 465
2 3 3 3 4 4 3 8 2 5 7 3 1 1 0 0
03 84 65 46 27 08 95 05 16 32 62 52 24 43 62 81
51 672 494 316 138 960 818 037 255 267 308 090 287 465 643 821
22 54 86 18 49 17 36 54 75 09 91 27 95 63 31
50 133 816 500 183 668 501 334 322 999 165 033 349 666 983
.2 .1 .1 .1 8 5 2 8 3 7 .1 .1 .1 .1
-0 -0 -0 -0 -0.0 -0.0 -0.0 0.00 0.0 0.0 0 0 0 0
Frequency
Probability Distribution
Probability Distribution
28% -25% -21% -18% -15% -12% -9% -6% -2% 1% 4% 7% 10% 13% 17% 20% 22%
Probability
Given the below information,
would you choose to invest in
Stock A or Stock B?
Stock A
Mean 0.38%
Standard deviation 1.57%
nformation,
e to invest in
?
Stock B
0.38%
1.57%
SKEWNESS
KURTOSIS
Stock A
Mean 0.38%
Standard deviation 1.57%
Skewness -0.291
Kurtosis 3.89
w information,
ose to invest in
k B?
Stock B
0.38%
1.57%
0.12
2.34
COVARIANCE & CORRELATION
-0.0001580681818182
-0.993210036810036 0
0.8
NORMAL DISTRIBUTION
STRIBUTION
0.1 250%
0.9 -20%
7.00%
Z- value range
- ∞ to -1.96
-1.96 to 0
0 to 1.96
1.96 to ∞
0.158655253931457
Solution:
0.6210%
0.6210%
Solution:
0.67
investment of $10000
11000
9500
35000
8000
Area under the curve
2.50%
47.50%
47.50%
2.50%
en a cumulative probability
function in Excel