299 Calculating the Variance-Covariance Matrix
you to defi ne a block of cells relative to some initial cell. Thus, for
example, Offset(initial cells, rows, columns) refers to a block of cells of
the same size as the initial cells, but rows and columns over from the
initial cells. The technique is illustrated in the following spreadsheet.
Note that the borders 0, 1, 2, 3, 4, 5 have been added to the variance-
covariance matrix in the lower half of the spreadsheet:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ABCDEF
Return data
Date GE MSFT JNJ K B
G
A IBM
3-Jan-94 56.44% -1.50% 6.01% -9.79% 58.73% 21.51%
3-Jan-95 18.23% 33.21% 41.56% 7.46% -0.24% 6.04%
2-Jan-96 56.93% 44.28% 57.71% 37.76% 65.55% 27.33%
2-Jan-97 42.87% 79.12% 22.94% -5.09% 54.34% 41.08%
2-Jan-98 47.11% 38.04% 17.62% 32.04% 37.11% 2.63%
4-Jan-99 34.55% 85.25% 26.62% -10.74% 15.05% -2.11%
3-Jan-00 28.15% 11.20% 3.41% -48.93% 43.53% 23.76%
2-Jan-01 4.61% -47.19% 10.69% 11.67% 28.29% 21.76%
2-Jan-02 -19.74% 4.27% 23.11% 19.90% -15.09% 4.55%
2-Jan-03 -44.78% -29.47% -5.67% 10.88% -23.23% 15.54%
2-Jan-04 35.90% 18.01% -1.27% 15.49% 39.82% 31.80%
012345
0
0.1035 0.0758 0.0222 -0.0043 0.0857 0.0123
1
0.0758 0.1657 0.0412 -0.0052 0.0379 -0.0022
2
0.0222 0.0412 0.0360 0.0181 0.0101 -0.0039
3
-0.0043 -0.0052 0.0181 0.0570 -0.0076 -0.0046
4
0.0857 0.0379 0.0101 -0.0076 0.0896 0.0248
5
0.0123 -0.0022 -0.0039 -0.0046 0.0248 0.0184
USING OFFSET AND COVAR TO CREATE THE
VARIANCE-COVARIANCE MATRIX
Sample var-cov matrix, uses the formula
=COVAR(OFFSET($B$4:$B$14,0,B$17),OFFSET($B$4:$B$14,0,$A18))*11/10 to
compute the sample var-cov matrix. This formula is copied in each cell.
10.5 Computing the Global Minimum Variance Portfolio
The two most prominent uses of the variance-covariance matrix are to
fi nd the global minimum variance portfolio (GMVP) and to fi nd effi cient
portfolios. Both uses illustrate the problematics of working with sample
data and provide us with the introduction needed for sections 10.7–10.10,
which discuss alternatives to the sample variance-covariance matrix. In
this section we discuss the GMVP.