488 Chapter 18
If we use the Excel function Frequency (see Chapter 35) to do a frequency
distribution of these returns, we see that they look normally distributed:
An Excel Note
In cell G9 we used Sumproduct to count the number of daily returns between
−1 percent and +1 percent. The Boolean formula (C4:C14097>−1%) * (C4:
C14097<1%) produces a column of ones for cells in the interval (−1%, +1%)
and zeros elsewhere. Using Sumproduct to multiply and add the product of
two such columns produces the result we want.
Why didn’t we use Excel’s CountIf function (see Chapter 34) for this
purpose? CountIf can count a “one-directional” sort of the data, but not the
data in an interval. Thus CountIf (C4:C14097,“<1%”) will count the number
of data points less than 1%, but there is no way to use CountIf to count the
data points between −1 percent and +1 percent.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
ABC DE F G H IJ K
Date Price Return
3-Jan-50 16.66
Statistics
-5.00% 12
4-Jan-50 16.85 1.13% <-- =LN(B4/B3) Count 14,094 <-- =COUNT(C4:C14097) -4.88% 1
5-Jan-50 16.93 0.47% -4.76% 0
6-Jan-50 16.98 0.29% Maximum daily return 8.71% <-- =MAX(C4:C14097) -4.64% 0
9-Jan-50 17.08 0.59% Minimum daily return -22.90% <-- =MIN(C4:C14097) -4.52% 0
10-Jan-50 17.03 -0.29% -4.40% 2
11-Jan-50 17.09 0.35% Daily returns between -1% and +1% 11436 -4.28% 0
12-Jan-50 16.76 -1.95% 0 -4.16% 2
13-Jan-50 16.67 -0.54% -4.04% 1
16-Jan-50 16.72 0.30% -3.92% 1
17-Jan-50 16.86 0.83% Daily mean return 0.0309% <-- =AVERAGE(C4:C14097) -3.80% 3
18-Jan-50 16.85 -0.06% Daily standard deviation 0.00899 <-- =STDEV(C4:C14097) -3.68% 4
19-Jan-50 16.87 0.12% -3.56% 4
20-Jan-50 16.9 0.18% Annual return 7.78% <-- =G13*252 -3.44% 3
23-Jan-50 16.92 0.12% Annual standard deviation 14.27% <-- =G14*SQRT(252) -3.32% 2
24-Jan-50 16.86 -0.36% -3.20% 1
25-Jan-50 16.74 -0.71% -3.08% 10
26-Jan-50 16.73 -0.06% -2.96% 12
27-Jan-50 16.82 0.54% -2.84% 10
30-Jan-50 17.02 1.18% -2.72% 13
31-Jan-50 17.05 0.18% -2.60% 16
1-Feb-50 17.05 0.00% -2.48% 22
2-Feb-50 17.23 1.05% -2.36% 21
3-Feb-50 17.29 0.35% -2.24% 32
6-Feb-50 17.32 0.17% -2.12% 26
7-Feb-50 17.23 -0.52% -2.00% 34
8-Feb-50 17.21 -0.12% -1.88% 49
9-Feb-50 17.28 0.41% -1.76% 70
10-Feb-50 17.24 -0.23% -1.64% 83
14-Feb-50 17.06 -1.05% -1.52% 111
15-Feb-50 17.06 0.00% -1.40% 133
16-Feb-50 16.99 -0.41% -1.28% 141
17-Feb-50 17.15 0.94% -1.16% 155
20-Feb-50 17.2 0.29% -1.04% 244
21-Feb-50 17.17 -0.17% -0.92% 263
23-Feb-50 17.21 0.23% -0.80% 343
24-Feb-50 17.28 0.41% -0.68% 426
27-Feb-50 17.28 0.00% -0.56% 503
28-Feb-50 17.22 -0.35% -0.44% 597
1-Mar-50 17.24 0.12% -0.32% 702
2-Mar-50 17.23 -0.06% -0.20% 882
3-Mar-50 17.29 0.35% -0.08% 971
6-Mar-50 17.32 0.17% 0.04% 1101
Frequencies: Uses
Excel
Frequency
function
S&P 500 DAILY PRICES AND RETURNS, 1950-2005
Frequencies of S&P 500 Returns, 1950-2005
0
200
400
600
800
1000
1200
-4.5 4.5-4.0 4.0-3.5 3.5-3.0 3.0-2.5 2.5-2.0 2.0-1.5 1.5-1.0 1.0-0.5 0.50.0
Daily return (%)