Professional Documents
Culture Documents
Lesson3 - Unit 1
Lesson3 - Unit 1
Summary Statistics
Learning Outcomes
Analysis ■
mean, the standard deviation, and the variance.
Consider, the stock prices given under:
Date Open Price High Price Low Price Close Price
29-January-2021 39.5 39.8 37.4 37.7
28-January-2021 39 39.5 38.4 38.9
27-January-2021 41.1 41.1 39.25 39.4
25-January-2021 40.75 41.95 39.7 40.8
22-January-2021 42.95 43 40.05 40.95
21-January-2021 44.6 44.75 42.1 42.4
20-January-2021 45.1 45.2 43.95 44.05
19-January-2021 43.35 44.1 41.8 43.75
18-January-2021 45.15 45.15 41.85 42.35
15-January-2021 44.5 45.7 43.9 44.45
14-January-2021 44.85 44.9 43.8 44.25
13-January-2021 44.25 44.75 43.35 44.4
12-January-2021 43.3 45.15 43.2 43.45
11-January-2021 44.9 44.9 42.8 43.3
8-January-2021 45.75 45.75 43.65 44.3
7-January-2021 43.2 45.6 43 44.95
6-January-2021 42.15 43.3 41.75 42.4
5-January-2021 42.85 42.95 41.85 42.15
4-January-2021 40.25 43.3 40.15 42.85
1-January-2021 40.9 40.9 39.7 39.9
Source: BSE India, Stock Prices of Tata
Mean
■ Thus, the average price of the stock of TATA steel is = S1 + S2 + S3 + S4 + S5… + S20
/Si
■ Mean is = 42.3 ₹
Median
■ The mean should not be confused with the Date Open Price High Price Low Price Close Price
median.
29-January-2021 39.5 39.8 37.4 37.7
28-January-2021 39 39.5 38.4 38.9
27-January-2021 41.1 41.1 39.25 39.4
■ Median is the middle observation. 25-January-2021 40.75 41.95 39.7 40.8
22-January-2021 42.95 43 40.05 40.95
■ To develop a measure of spread, calculations for each day stock price can be
done, to know how far it is from the mean stock price.
■ The Mean S is subtracted from each Si to give the ith deviation from the
mean,
■ Deviation from mean will be (S- Si)
■ The sum of the deviations will always be equal to zero.
■ Hence, either squared deviations or absolute (occasionally) deviations are
taken.
Deviations
■ It is defined as the sum of squared deviations divided by one less than the total
number of observations.
■ The square root of the variance reveals the average deviation of the
observations from the mean.
Standard Deviation
19 25 31 13 25 37
Y = 25 Y = 25
S.D. = 3 S.D. = 6
2. S.D. = 0 only when all values are the same (only when you have a constant and not a
“variable”)
3. If you were to “rescale” a variable, the S.D.. would change by the same magnitude—if we
changed units above so the mean equaled 250, the S.D. on the left would be 30, and on
the right, 60
4. Like the mean, the S.D. will be inflated by an outlier case value.
Review Date Close Price S Deviatio
n
Absolute Mean Squared Mean
Source: Investopedia
Bi-Variate and Multivariate Analysis
A Case -
Anuj is a retail trader, who wishes to make investment in
the stocks of Titanium Ltd. As he is not a naïve investor,
he understands how value of the share price is
determined. Therefore, he can decide by looking at the
trend of the prices or he can look for the factors which
make a change in the stock prices. What do you think
what he will do to arrive to a decision?
Contd..
application of
29-January-2021 37.7 718.3
28-January-2021 38.9 0.032 711.3 -0.010
Co-Variance
27-January-2021 39.4 0.013 716.5 0.007
25-January-2021 40.8 0.036 720.85 0.006
22-January-2021 40.95 0.004 720.1 -0.001
Co-variance in
of Tata of Birla Corp TS
Steel
1 2 3 4 56 78 9 10
the stock
29-January-2021 37.7 718.3 0.003 727.6-37.69653 9.32 -351.331655
returns
27-January-2021 39.4 0.013 716.5 0.007 0.003470 0.00076026-0.009383 -0.01 6.14613E-05
Mean and Deviations from 20-January-2021 44.05 0.039 716.75 -0.007 0.003470 0.00076026-0.0354446 0.01 -0.00027737
mean are calculated 19-January-2021 43.75 -0.007 716.35 -0.001 0.003470 0.000760260.01028094 0.00 1.35537E-05
(Column 6-9). 18-January-2021 42.35 -0.032 707.1 -0.013 0.003470 0.000760260.03547049 0.01 0.000484986
Step 3:
14-January-2021 44.25 -0.004 723.35 0.001 0.003470 0.000760260.00796993 0.00 1.09799E-06
■ 13-January-2021 44.4 0.003 732.85 0.013 0.003470 0.000760268.0664E-05 -0.01 -9.98056E-07
Column8*Column9 12-January-2021 43.45 -0.021 741.95 0.012 0.003470 0.000760260.02486689 -0.01 -0.000289874
■ Step 4: 11-January-2021 43.3 -0.003 744.65 0.004 0.003470 0.000760260.00692274 0.00 -1.99292E-05
= -351.32 / 19= -18.49 5-January-2021 42.15 -0.006 731.75 -0.016 0.003470 0.000760260.00936672 0.02 0.000157628
-351.3295738
Date Close Price Close Price
of Tata Steel ONGC
1 2 3
Tasks
29-January-2021 37.7 88.4
28-January-2021 38.9 90.7
27-January-2021 39.4 89.65
25-January-2021 40.8 91.3
22-January-2021 40.95 92.8 ■ 1. Find out the Covariance
21-January-2021 42.4 94.9 in the stock prices of the
20-January-2021 44.05 98.85 two companies and
19-January-2021 43.75 98.1 interpret the same.
18-January-2021 42.35 96.7 ■ 2. Find out the
15-January-2021 44.45 101.35 covariances in Stock
14-January-2021 44.25 105 Returns of ONGC and
13-January-2021 44.4 105.2 Steel Industry and
12-January-2021 43.45 103.45 interpret the same.
11-January-2021 43.3 102.55
8-January-2021 44.3 100.65
7-January-2021 44.95 97.9
6-January-2021 42.4 96.95
5-January-2021 42.15 94.95
4-January-2021 42.85 96.95
1-January-2021 39.9 93.2
Correlation
Calculated
28-January-20 38.9 0.032 711.3 -0.010 0.0035 0.001 -0.02835974 0.01 11.799225 266.3424
21
27-January-20 39.4 0.013 716.5 0.007 0.003470 0.000760259 -0.00938298 -0.01 8.614225 123.6544
21
25-January-20 40.8 0.036 720.85 0.006 0.003470 0.000760259 -0.0320625 -0.01 2.356225 45.8329
21
22-January-20 40.95 0.004 720.1 -0.001 0.003470 0.000760259 -0.00020598 0.00 1.918225 56.5504
+1. 18-January-20
21
42.35 -0.032 707.1 -0.013 0.003470 0.000760259 0.03547049 0.01 0.000225 421.0704
15-January-20 44.45 0.050 722.9 0.022 0.003470 0.000760259 -0.04611628 -0.02 4.473225 22.2784
■ For the data in the previous 21
case, 14-January-20
21
44.25 -0.004 723.35 0.001 0.003470 0.000760259 0.00796993 0.00 3.667225 18.2329
13-January-20 44.4 0.003 732.85 0.013 0.003470 0.000760259 8.0664E-05 -0.01 4.264225 27.3529
S_TS = 2.085
8-January-202 44.3 0.023 754.5 0.013 0.003470 0.000760259 -0.01962419 -0.01 3.861225 722.5344
■ 1
7-January-202 44.95 0.015 743.35 -0.015 0.003470 0.000760259 -0.01120219 0.02 6.838225 247.4329
S_BCo = 12.90
1
■ 6-January-202 42.4 -0.057 743.7 0.000 0.003470 0.000760259 0.06020019 0.00 0.004225 258.5664
1
■ r = - 0.6872 5-January-202
1
42.15 -0.006 731.75 -0.016 0.003470 0.000760259 0.00936672 0.02 0.034225 17.0569
4-January-202 42.85 0.017 736.3 0.006 0.003470 0.000760259 -0.01313686 -0.01 0.265225 75.3424
1
1-January-202 39.9 -0.069 728 -0.011 0.003470 0.000760259 0.0723153 0.01 5.929225 0.1444
1
82.6305 3163.087
Date Close Price Close Price
of Tata Steel ONGC
1 2 3
Task
29-January-2021 37.7 88.4
28-January-2021 38.9 90.7
27-January-2021 39.4 89.65
25-January-2021 40.8 91.3
22-January-2021 40.95 92.8 ■ Find out the r in Stock
21-January-2021 42.4 94.9 Returns of ONGC and
20-January-2021 44.05 98.85 Steel Industry and
19-January-2021 43.75 98.1 interpret the same.
18-January-2021 42.35 96.7
15-January-2021 44.45 101.35
14-January-2021 44.25 105
13-January-2021 44.4 105.2
12-January-2021 43.45 103.45
11-January-2021 43.3 102.55
8-January-2021 44.3 100.65
7-January-2021 44.95 97.9
6-January-2021 42.4 96.95
5-January-2021 42.15 94.95
4-January-2021 42.85 96.95
1-January-2021 39.9 93.2
Auto Covariance and
Auto-Correlation
■ The covariance and correlation coefficient are summary statistics that
measure the extent of linear relationship between two variables.
■ They can be used to identify explanatory relationships.
■ Autocorrelation and Autocovariance are the measures that serve same
purpose for a single series.
■ For Example, if we compare Yt (observation at time t) with Yt-1, then we see
how consecutive observations are related.
■ Yt-1 is a lagged observation by one period. So, there can be Yt-2, Yt-3, Yt-4…
Auto Covariance and
Auto-Correlation
■ Auto-Covariance is written as : ■ Auto-correlation is written as :
Graphical
Summary of ACF
Auto-Covarian
ce and
Auto-Correlati
onMonthly Returns of Tata Steel.
■
Sum Up