This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

How Not To Do Mean-Variance Analysis

Vic Norton
Mathematical Ruminations Inc
622 Morton Avenue
Bowling Green, OH 43402-2223
mailto:vic@norton.name
(October 22, 2018)
Abstract

We use the 2014 market history of two high-returning biotechnology exchange-traded funds to illustrate how ex post mean-variance analysis should not be done. Unfortunately, the way it should not be done is the way it generally is done—to our knowledge.

[Uncaptioned image]

ἀγεωμὲτρητος
μηδεὶς
εἰςίτω
Let no one ignorant of geometry enter here

1  Preface

Ex post mean-variance analysis is a financial application of descriptive statistics. But descriptive statistics, where the sum of square deviations from the mean plays a fundamental role, has a strong geometric flavor. In this paper we emphasize the geometry of mean-variance analysis.

Geometry starts with points. The primary points in our geometric exposition are two biotechnology exchange-traded funds,
    FBT – First Trust NYSE Arca Biotechnology Indx Fund
and
    XBI  – SPDR S&P Biotech ETF.
The graphs of the 2013-12-31-normalized adjusted closing prices, 𝐚FBT\mathbf{a}_{\scalebox{0.7}{{FBT}}} and 𝐚XBI\mathbf{a}_{\scalebox{0.7}{{XBI}}}, of the two funds are shown in Figure 2.1, as well as the graph of an unattended long portfolio, UIP, in the two funds. UIP’s normalized adjusted closing price vector,

𝐚UIP=0.75𝐚FBT+0.25𝐚XBI,\mathbf{a}_{\scalebox{0.7}{{UIP}}}=0.75\cdot\mathbf{a}_{\scalebox{0.7}{{FBT}}}+0.25\cdot\mathbf{a}_{\scalebox{0.7}{{XBI}}}, (1.1)

is necessarily a convex combination of 𝐚FBT\mathbf{a}_{\scalebox{0.7}{{FBT}}} and 𝐚XBI\mathbf{a}_{\scalebox{0.7}{{XBI}}}.

Normalized adjusted closing prices are the horses that drive our mean-variance cart. When the adjusted closing price vectors  𝐚FBT,𝐚XBI\mathbf{a}_{\scalebox{0.7}{{FBT}}},\mathbf{a}_{\scalebox{0.7}{{XBI}}}, and 𝐚UIP\mathbf{a}_{\scalebox{0.7}{{UIP}}}  are replaced by their daily return vectors  𝐫FBT,𝐫XBI\mathbf{r}_{\scalebox{0.7}{{FBT}}},\mathbf{r}_{\scalebox{0.7}{{XBI}}}, and 𝐫UIP\mathbf{r}_{\scalebox{0.7}{{UIP}}},  you move into a higher dimensional space with all geometry left behind.

The pictures that follow tell the whole story. Thanks to the TikZ vector-graphics language these pictures are precise, numerical images—not just schematic drawings.

2  Normalized adjusted closing prices – a geometric example

Figure 2.1 shows the 2014 history of an unattended investment portfolio, UIP, in two high-returning exchange traded funds, FBT and XBI. The 2013-12-31 closing composition of UIP was

UIP=75%FBT+25%XBI,\text{\small{UIP}}=75\%~\text{\small{FBT}}+25\%~\text{\small{XBI}}, (2.1)

but these closing proportions never reoccured in 2014. Indeed UIP closed with more than 25% in XBI (green higher than blue) for most of the first quarter, whereas XBI was less than 25% of UIP (blue higher than green) for much of the remaining three quarters. However Figure 2.1 does shows the geometry of the 3:1 proportions. On every vertical line, the brown UIP point is exactly 3/4 of the way from the green XBI point to the blue FBT point.

Figure 2.1: 2013-12-31-normalized adjusted closing prices of two biotechnology ETFs and two “portfolios” in these ETFs
901001101201301401501602013-12-312014-03-312014-06-302014-09-302014-12-31FBT = First Trust Biotechnology Index ETFXBI  = SPDR S&P Biotech ETFUIP  = Unattended FBT-XBI investment portfolioCRP = Continually reallocated FBT-XBI portfolio

There were exactly 253 market days from 2013-12-31 to 2014-12-31 inclusive. Each of the four adjusted closing price graphs in Figure 2.1 represents the changing value of $100 invested at 2013-12-31 closing prices in the corresponding fund or portfolio over the next 252 market days. Each graph corresponds to a point 𝐚253\mathbf{a}\in\mathds{R}^{253}, and the three points, 𝐚FBT,𝐚XBI,and𝐚UIP\mathbf{a}_{\scalebox{0.7}{{FBT}}},\mathbf{a}_{\scalebox{0.7}{{XBI}}},~\text{and}~\mathbf{a}_{\scalebox{0.7}{{UIP}}} of (2.1), are on the line segment

𝐚=t𝐚FBT+(1t)𝐚XBI,0t1,\mathbf{a}=t\cdot\mathbf{a}_{\scalebox{0.7}{{FBT}}}+(1-t)\cdot\mathbf{a}_{\scalebox{0.7}{{XBI}}},\quad 0\leq t\leq 1, (2.2)

in 253\mathds{R}^{253}—with 𝐚UIP\mathbf{a}_{\scalebox{0.7}{{UIP}}} corresponding to t=0.75t=0.75. (Appendix A describes how normalized adjusted closing prices can be computed.)

Portfolio UIP represents a completely passive, unattended investment. Think of an investor as having money in FBT and XBI at the close of 2013. Suppose that FBT represents exactly 75% of his total investment at that time and XBI 25%. UIP then simply tracks each $100 of his investment through 2014. The investor does absolutely nothing, and all dividends from the two funds are automatically reinvested.

However the continually reallocated portfolio CRP, mostly hidden by UIP, is an entirely different matter. Here the investor decides, a priori, that 75% FBT and 25% XBI are the right proportions for his investment. Accordingly, before each market day of 2014, he reinvests his money so as to start the day with exactly these proportions in the two funds.
Algorithm 2.1 computes the growth of $100 under this scenario.

Algorithm 2.1: To compute the 2014 CRP adjusted closing price vector     
a0,CRP=100;% invest $100 in CRP at the 2013-12-31 closefori=1,,252% for each of the 252 market days in 2014 setrF=ai,FBT/ai1,FBT1;% = return of FBT on market dayirX=ai,XBI/ai1,XBI1;% = return of XBI on market dayirR=0.75×rF+0.25×rX;% = return of CRP on market dayiai,CRP=ai1,CRP×(1+rR);% = CRP value at the close of market dayi\begin{array}[]{|l|l}\lx@intercol a_{0,\scalebox{0.7}{{CRP}}}=100;~~{\color[rgb]{0.6,0,1}\definecolor[named]{pgfstrokecolor}{rgb}{0.6,0,1}\pgfsys@color@cmyk@stroke{0.4}{1}{0}{0}\pgfsys@color@cmyk@fill{0.4}{1}{0}{0}\text{\% invest \$100 in \text{\small{CRP}} at the 2013-12-31 close}}\hfil\lx@intercol\\ \lx@intercol\text{for}~i=1,\ldots,252~~{\color[rgb]{0.6,0,1}\definecolor[named]{pgfstrokecolor}{rgb}{0.6,0,1}\pgfsys@color@cmyk@stroke{0.4}{1}{0}{0}\pgfsys@color@cmyk@fill{0.4}{1}{0}{0}\text{\% for each of the 252 market days in 2014 set}}\hfil\lx@intercol\\ \lx@intercol\vtop{\hbox to4.30554pt{}}\lx@intercol&\lx@intercol r_{\scalebox{0.7}{{F}}}=a_{i,\scalebox{0.7}{{FBT}}}/a_{i-1,\scalebox{0.7}{{FBT}}}-1;~~{\color[rgb]{0.6,0,1}\definecolor[named]{pgfstrokecolor}{rgb}{0.6,0,1}\pgfsys@color@cmyk@stroke{0.4}{1}{0}{0}\pgfsys@color@cmyk@fill{0.4}{1}{0}{0}\text{\% = return of \text{\small{FBT}} on market day}~i}\hfil\lx@intercol\\ \lx@intercol\vtop{\hbox to4.30554pt{}}\lx@intercol&\lx@intercol r_{\scalebox{0.7}{{X}}}=a_{i,\scalebox{0.7}{{XBI}}}/a_{i-1,\scalebox{0.7}{{XBI}}}-1;~~{\color[rgb]{0.6,0,1}\definecolor[named]{pgfstrokecolor}{rgb}{0.6,0,1}\pgfsys@color@cmyk@stroke{0.4}{1}{0}{0}\pgfsys@color@cmyk@fill{0.4}{1}{0}{0}\text{\% = return of \text{\small{XBI}} on market day}~i}\hfil\lx@intercol\\ \lx@intercol\vtop{\hbox to4.30554pt{}}\lx@intercol&\lx@intercol r_{\scalebox{0.7}{{R}}}=0.75\times r_{\scalebox{0.7}{{F}}}+0.25\times r_{\scalebox{0.7}{{X}}};~~{\color[rgb]{0.6,0,1}\definecolor[named]{pgfstrokecolor}{rgb}{0.6,0,1}\pgfsys@color@cmyk@stroke{0.4}{1}{0}{0}\pgfsys@color@cmyk@fill{0.4}{1}{0}{0}\text{\% = return of \text{\small{CRP}} on market day}~i}\hfil\lx@intercol\\ \lx@intercol\vtop{\hbox to4.30554pt{}}\lx@intercol&\lx@intercol a_{i,\scalebox{0.7}{{CRP}}}=a_{i-1,\scalebox{0.7}{{CRP}}}\times(1+r_{\scalebox{0.7}{{R}}});~~{\color[rgb]{0.6,0,1}\definecolor[named]{pgfstrokecolor}{rgb}{0.6,0,1}\pgfsys@color@cmyk@stroke{0.4}{1}{0}{0}\pgfsys@color@cmyk@fill{0.4}{1}{0}{0}\text{\% = \text{\small{CRP}} value at the close of market day}~i}\hfil\lx@intercol\end{array}
Note.

The % signs above begin a comment.

It is difficult to make out the red CRP graph from the brown UIP graph in Figure 2.1. These graphs are very close, and the UIP graph is drawn over the CRP graph, hiding it from view for the most part. It is only toward the end of 2014 that one can really make out the differences.

Figure 2.2 is a blow-up of December 2014. The differences in the graphs are now quite visible. Here we see that the red CRP graph is slightly higher than the brown UIP graph throughout December—and clearly higher on December 31. It follows that CRP returned more than UIP over 2014.

Note that the 2014-12-31 value of 𝐚UIP\mathbf{a}_{\text{\small{UIP}}} must be

146.90=0.75×147.54+0.25×144.97146.90=0.75\times 147.54+0.25\times 144.97

by (1.1) and the terminal values of FBT and XBI shown on Figure 2.2. It follows that UIP had a total return of 46.90% over 2014. In fact CRP returned 47.32% over 2014, more than UIP and just slightly less than FBT.

Figure 2.2: December     
140145150135Dec 1Dec 31144.97XBI147.54FBT2014

Here are the adjusted closing prices of the four funds over the month of December 2014.

Table 2.1: The December adjusted closing prices
date FBT XBI UIP CRP
2014-12-01 145.736 135.477 143.171 143.490
2014-12-02 147.918 139.052 145.702 146.048
2014-12-03 148.034 139.184 145.821 146.169
2014-12-04 147.123 138.121 144.873 145.215
2014-12-05 148.150 140.580 146.258 146.622
2014-12-08 151.214 141.417 148.765 149.114
2014-12-09 151.807 145.504 150.231 150.630
2014-12-10 148.699 142.379 147.119 147.508
2014-12-11 148.786 142.720 147.269 147.661
2014-12-12 146.878 142.480 145.778 146.179
2014-12-15 142.657 136.400 141.093 141.469
2014-12-16 140.807 135.609 139.507 139.888
2014-12-17 145.851 142.076 144.907 145.314
2014-12-18 150.737 146.628 149.710 150.129
2014-12-19 152.212 147.990 151.156 151.579
2014-12-22 150.463 146.886 149.569 149.990
2014-12-23 143.842 139.313 142.710 143.107
2014-12-24 145.968 141.988 144.973 145.380
2014-12-26 149.554 145.261 148.481 148.897
2014-12-29 150.017 145.790 148.960 149.378
2014-12-30 148.151 144.258 147.178 147.592
2014-12-31 147.544 144.973 146.901 147.321

The geometric equation (2.1) holds on every line of Table 2.1, but the proportions of FBT and XBI in UIP,

pFBT=0.75×FBT/UIP and pXBI=0.25×XBI/UIP,p_{\scalebox{0.7}{{FBT}}}=0.75\times\text{\small{FBT}}/\text{\small{UIP}}\text{~~and~~}p_{\scalebox{0.7}{{XBI}}}=0.25\times\text{\small{XBI}}/\text{\small{UIP}}, (2.3)

are different on every line. The 2013-12-31, 3:1 proportions come closest to being realized on the 2014-12-31 line of Table 2.1, where UIP closes at 75.33% FBT : 24.67% XBI.

As for daily returns,

ri=ai/ai11(i=1,,252),r_{i}=a_{i}/a_{i-1}-1\quad(i=1,\ldots,252), (2.4)

the 2014 return vector equation,

𝐫CRP=0.75𝐫FBT+0.25𝐫XBI,\mathbf{r}_{\scalebox{0.7}{{CRP}}}=0.75~\mathbf{r}_{\scalebox{0.7}{{FBT}}}+0.25~\mathbf{r}_{\scalebox{0.7}{{XBI}}}, (2.5)

is valid in 252\mathds{R}^{252} due to continual reallocation. This insures that the corresponding mean returns satisfy

eCRP=0.75eFBT+0.25eXBI,e_{\scalebox{0.7}{{CRP}}}=0.75~e_{\scalebox{0.7}{{FBT}}}+0.25~e_{\scalebox{0.7}{{XBI}}}, (2.6)

as required by “The Standard Mean-Variance Portfolio Selection Model” of [2, pp. 3-4].

The ancillary folder that accompanies this article includes three files, FXUZ7.csv,
matlab/FXUC2014.mat, and matlab/FXZC2014.mat, that contain the normalized adjusted closing prices used for this article.

3  How not to do mean-variance analysis

The MathWorks®\text{MathWorks}^{\text{\tiny{\textregistered}}} Financial Toolbox with the MATLAB programming language is perhaps the most popular resource for doing mean-variance analysis. We have computed our mean-variance tables using MATLAB scripts in the matlab subdirectory of the ancillary folder that accompanies this article.

Our MATLAB script hn2mv1a.m illustrates the problem with mean-variance analysis as it is usually practiced. The script begins with the line
         load FXUC2014.mat; % A dates fundsA legendA
which loads the 253×4253\times 4 matrix of adjusted closing prices, A=[𝐚FBT,𝐚XBI,𝐚UIP,𝐚CRP],A=\left[~\mathbf{a}_{\scalebox{0.7}{{FBT}}},~\mathbf{a}_{\scalebox{0.7}{{XBI}}},~\mathbf{a}_{\scalebox{0.7}{{UIP}}},~\mathbf{a}_{\scalebox{0.7}{{CRP}}}\,\right],
displayed in Figure 2.1. This matrix has rank 3 rather than 4, since 𝐚UIP\mathbf{a}_{\scalebox{0.7}{{UIP}}} is a linear combination of 𝐚FBT\mathbf{a}_{\scalebox{0.7}{{FBT}}} and 𝐚XBI\mathbf{a}_{\scalebox{0.7}{{XBI}}} (1.1).

Next we remove 𝐚CRP\mathbf{a}_{\scalebox{0.7}{{CRP}}} from AA and append the columns
       𝐚UIP2=0.50𝐚FBT+0.50𝐚XBIand𝐚UIP3=0.25𝐚FBT+0.75𝐚XBI\mathbf{a}_{\scalebox{0.7}{{UIP2}}}=0.50\cdot\mathbf{a}_{\scalebox{0.7}{{FBT}}}+0.50\cdot\mathbf{a}_{\scalebox{0.7}{{XBI}}}~~\text{and}~~\mathbf{a}_{\scalebox{0.7}{{UIP3}}}=0.25\cdot\mathbf{a}_{\scalebox{0.7}{{FBT}}}+0.75\cdot\mathbf{a}_{\scalebox{0.7}{{XBI}}}
so that  A=[𝐚FBT,𝐚XBI,𝐚UIP,𝐚UIP2,𝐚UIP3]A=\left[~\mathbf{a}_{\scalebox{0.7}{{FBT}}},~\mathbf{a}_{\scalebox{0.7}{{XBI}}},~\mathbf{a}_{\scalebox{0.7}{{UIP}}},~\mathbf{a}_{\scalebox{0.7}{{UIP2}}},~\mathbf{a}_{\scalebox{0.7}{{UIP3}}}\,\right]  becomes a 253×5253\times 5 matrix of rank 2. Geometrically, AA describes 5 points on a line in 253\mathds{R}^{253}, and 𝚛𝚊𝚗𝚔(A)=2\verb!rank!(A)=2 since the line does not pass through the origin.

The hn2mv1a.m script continues with the lines
%% get asset moments from adjusted closing prices ptf = Portfolio; ptf = estimateAssetMoments(ptf, A, ’dataformat’, ’prices’); [mn, cv] = getAssetMoments(ptf); Here mn and cv are the 5×15\times 1 and 5×55\times 5 mean daily return and covariance of daily return matrices corresponding to the 252×5252\times 5 daily return matrix
       R=[𝐫FBT,𝐫XBI,𝐫UIP,𝐫UIP2,𝐫UIP2]R=\left[~\mathbf{r}_{\scalebox{0.7}{{FBT}}},~\mathbf{r}_{\scalebox{0.7}{{XBI}}},~\mathbf{r}_{\scalebox{0.7}{{UIP}}},~\mathbf{r}_{\scalebox{0.7}{{UIP2}}},~\mathbf{r}_{\scalebox{0.7}{{UIP2}}}\,\right]
derived from AA via (2.4). The annualized results are shown in Table 3.1.

Table 3.1: Annualized results of the MATLAB computations
FBT XBI UIP UIP2 UIP3
EE 0.4245 0.4324 0.4235 0.4244 0.4274
σ{{{{\sigma}}}} 0.2656 0.3491 0.2777 0.2963 0.3203
   covariance VV
FBT 0.0705 0.0804 0.0729 0.0753 0.0778
XBI 0.0804 0.1219 0.0905 0.1008 0.1112
UIP 0.0729 0.0905 0.0771 0.0815 0.0859
UIP2 0.0753 0.1008 0.0815 0.0878 0.0942
UIP3 0.0778 0.1112 0.0859 0.0942 0.1026

One problem with Table 3.1 is immediately obvious. How can the mean returns of the long portfolios UIP and UIP2 be less than the mean return of either component fund? A dimensional problem is less obvious but just as troubling. We start with an adjusted closing price history, AA, which corresponds to five points on a line segment (a one simplex) in 253\mathds{R}^{253};  but, to do mean-variance analysis on AA, we must jump to the four simplex in 252\mathds{R}^{252} generated by the five linearly independent columns of the daily return matrix RR (𝚛𝚊𝚗𝚔(R)=𝚛𝚊𝚗𝚔(V)=5\verb!rank!(R)=\verb!rank!(V)=5). It simply doesn’t make sense to us!

This is the (e,σ)(e,\sigma)-picture of what is happening. The pink region is the image of the 4-simplex in 252\mathds{R}^{252} generated by the five columns of RR. (The coordinates in the picture are percentages.)

Figure 3.1: Obtainable (e,σ)(e,\sigma)
42.042.543.043.5253035eeσ\sigma continually reallocated unattended pathefficient frontierFBTXBIUIPUIP2UIP3CRP continually reallocated portfolios FBTUIPCRP

Figure 3.1 is a graphic representation of Table 3.1. The red, continually reallocated region represents all obtainable (ep,σp)(e_{p},\sigma_{p}) :

all (ep,σp)(e_{p},\sigma_{p}) such that

ep=E𝐩,σp=vp,vp=𝐩TV𝐩,\displaystyle e_{p}=E\mathbf{p},~~\sigma_{p}=\sqrt{\vphantom{b}v_{p}},~~v_{p}=\mathbf{p}^{T}V\mathbf{p}, (3.1)
with the EE and VV from Table 3.1, and
𝟎𝐩𝟏,𝐩=1,𝐩5.\displaystyle\bm{0}\leq\mathbf{p}\leq\bm{1},~~\sum\mathbf{p}=1,~~\mathbf{p}\in\mathds{R}^{5}. (3.2)

The following five portfolios 𝐩\mathbf{p} are equally ee-spaced on the efficient frontier. They were computed with the line

P = estimateFrontier(ptf, 5);

in the MATLAB script hn2mv1a.m.

P={blockarray}rcccclFBTCRP??????XBI
{block}
[r@rrrr]l10.750.500.250FBT
00.250.500.751XBI
00000UIP
00000UIP2
00000UIP3
P=\blockarray{rccccl}\text{\footnotesize{FBT}}&\text{\footnotesize{CRP}}&\text{\footnotesize{???}}&\text{\footnotesize{???}}&\text{\footnotesize{XBI}}&\\ \block{[r@{\hskip 10.76385pt}rrrr]l}1&0.75&0.50&0.25&0\,~&\text{\footnotesize{FBT}}\\ 0&0.25&0.50&0.75&1\,~&\text{\footnotesize{XBI}}\\ 0&0~~&0~~&0~~&0\,~&\text{\footnotesize{UIP}}\\ 0&0~~&0~~&0~~&0\,~&\text{\footnotesize{UIP2}}\\ 0&0~~&0~~&0~~&0\,~&\text{\footnotesize{UIP3}}\\

Every portfolio in the continually reallocated region, other than the generating funds FBT, XBI, UIP, UIP2, and UIP3, must be reallocated at the close each market day of 2014 in order to retain its original 2013-12-31 closing proportions.

On the other hand, the unattended path in Figure 3.1 shows the actual mean returns and standard deviations of return of all unattended portfolios in FBT and XBI as computed directly from their adjusted closing price vectors (2.2) via MATLAB Example 1 (script hn2mv2.m) below.

MATLAB Example 1: To compute the unattended portfolio path from FBT to XBI do
T = 0:1/(nT - 1):1; % nT points partitioning [0, 1]
AT = A(:,1)*T + A(:,2)*(1 - T); % nT unattended price vectors
RT = AT(2:253,:)./ AT(1:252,:) - 1; % nT unattended return vectors
ET = 252*mean(RT); % nT mean daily returns (annualized)
SigT = sqrt(252)*std(RT, 1); % nT standard deviations of return

We should note that the MATLAB lines of hn2mv1a.m,
     eCRP = 252 * mean(rCRP); % eCRP = 0.4265 sigCRP = sqrt(252) * std(rCRP, 1); % sigCRP = 0.2783
produced the coordinates for the two CRP points of Figure 3.1. The rCRP in this code corresponds to the 𝐫CRP\mathbf{r}_{\scalebox{0.7}{{CRP}}} vector of (2.5) or the 𝐫CRP\mathbf{r}_{\scalebox{0.7}{{CRP}}} from 𝐚CRP\mathbf{a}_{\scalebox{0.7}{{CRP}}} via (2.4). They are the same.

4  The mean periodic return problem

Figure 4.1 on the next page and the hn2domv3.m script below it illustrate a serious problem with mean periodic returns. This is a simple, artifical example, where a fund gains 50% in the first quarter of the year, loses 67% in the second quarter, gains 200% in the third quarter, and loses 17% in the forth quarter.

An investor in the fund realizes that his fund has returned 25% over the year, but the trip has been terribly rocky; he decides to bail out.

Not so fast, his investment adviser tells him. Just add up the quarterly returns:
        50%67%+200%17%=166%.50\%-67\%+200\%-17\%=166\%.
You have avergaed averaged over 40% per quarter. The fund may seem a bit risky, but, in view of its history, you should expect to average 40% per quarter next year as well. It’s clear from the numbers.

Figure 4.1 tells the whole story. Mean periodic returns tend to accentuate the positive. Mean periodic discounts do just do just the opposite.

Definition 1 (Effective return and discount).

Let a0a_{0} and a1a_{1} be the the adjusted closing prices of a security on two different market days with a0a_{0} occuring before a1a_{1}. Then the effective return of the security over that period of time is defined as
               r=(a1a0)/a0,r=(a_{1}-a_{0})/a_{0},
and the effective discount as
               d=(a1a0)/a1.d=(a_{1}-a_{0})/a_{1}.
The equation
               (1+r)(1d)=1(1+r)(1-d)=1
always holds, and rr and dd always have the same sign, positive, negative, or zero.

Definition 1 is a paraphrase of definitions in The Theory of Interest, [1].

The means of periodic changes in year-to-date return and periodic changes in date-to-end-of-year discount are the appropriate measures of effective performance of a security over a year. In the the example of Figure 4.1, the annualized mean of the changes in year-to date return is
        e0=50%00%+100%25%=25%,e^{0}=50\%-00\%+100\%-25\%=25\%,
and the annualized mean of changes in date-to-end-of-year discount is
        e1=40%80%+80%20%=20%.e^{1}=40\%-80\%+80\%-20\%=20\%.
These annualized means do satisfy Definition 1,  (1+e0)(1e1)=1(1+e^{0})(1-e^{1})=1.

Note.

The e0e^{0} and e1e^{1} above correspond to the e_0 and e_1 in the MATLAB code underneath Figure 4.1. Likewise ere^{r} and ede^{d} correspond to e_r and e_d.

On the other hand, the MATLAB code shows that the mean return, ere^{r}, and the mean discount, ede^{d}, have opposite signs, and (1+er)(1ed)=5.8667(1+e^{r})(1-e^{d})=5.8667. These computations show that mean returns and mean discounts are essentially incompatible with the theory of interest. The mean return problem has been noted, for example, in [3, pp. 104-105].

Figure 4.1: The mean periodic return/discount problem
time0/40/41/41/42/42/43/43/44/44/4 adjusted closing price 5050100100150150
%% hn2mv3.m - the mean periodic return/discount problem
%% quarterly adjusted closing prices
a = [ 100, 150, 50, 150, 125 ];
%% annualized mean quarterly return
r = a(2 : 5) ./ a(1 : 4) - 1; % quarterly returns
e_r = 4 * mean(r); % e_r = 1.6667
sig_r = 2 * std(r, 1); % sig_r = 2.0069
%% annualized mean quarterly discount
d = 1 - a(1 : 4) ./ a(2 : 5); % quarterly discounts
e_d = 4 * mean(d); % e_d = -1.2000
sig_d = 2 * std(d, 1); % sig_d = 2.0580
%% annualized mean quarterly change in year-to-date return
df_0 = diff(a) / a(1); % changes in year-to-date return
e_0 = 4 * mean(df_0); % e_0 = 0.2500
sig_0 = 2 * std(df_0, 1); % sig_0 = 1.5155
%% annualized mean quarterly change in date-to-end-of-year discount
df_1 = diff(a) / a(5); % changes in date_to_end_of_year discount
e_1 = 4 * mean(df_1); % e_1 = 0.2000
sig_1 = 2 * std(df_1, 1); % sig_1 = 1.2124
%% return-discount relationaship as per "The Theory of Interest"
(1 + e_0) * (1 - e_1) % = 1
%% meaningless return-discount relationship
(1 + e_r) * (1 - e_d) % = 5.8667

SEC Rule 156 below might apply to the situation illustrated by Figure 4.1 and the hn2mv3.m script which follows it.

     Rule 156: Investment Company Sales Literature

     Under the federal securities laws, including section 17(a) of the
     Securities Act of 1933 (15 U.S.C. 77q(a)) and section 10(b) of the
     Securities Exchange Act of 1934 (15 U.S.C. 78j(b)) and Rule 10b-5
     thereunder (17 CFR Part 240), it is unlawful for any person,
     directly or indirectly, by the use of any means or instrumentality
     of interstate commerce or of the mails, to use sales literature
     which is materially misleading in connection with the offer or sale
     of securities issued by an investment company. Under these
     provisions, sales literature is materially misleading if it:

       1. Contains an untrue statement of a material fact or
       2. omits to state a material fact necessary in order to make a
          statement made, in the light of the circumstances of its use,
          not misleading.

Securities Act of 1933: Rule 156

Rule 156 raises an interesting question. Is the use of mean-variance analysis, as it appears to be practiced today, “materially misleading” when an investment company tells a client to “expect” a 160% return over the next year based on a 25% total return over the past year? This sort of reasoning reminds us of Mark Twain’s analysis of the expected shortening of the lower Mississippi due to the rounding of its bends over time (Appendix B).

More realistically, consider the example of FBT. In Table 3.1 we have seen that the annualized mean daily return of FBT over 2014 was  eFBT=eFBTr=42.45%e_{\scalebox{0.7}{{FBT}}}=e^{r}_{\scalebox{0.7}{{FBT}}}=42.45\%. An investor with a marginal knowledge of the theory of interest might ask his advisor what the corresponding annualized mean daily discount was. If the advisor were perplexed by this question, the investor could explain that to get the annualized mean discount you simply replace the daily return equation (2.4) by the daily discount equation

di=1ai1/ai(i=1,,252)d_{i}=1-a_{i-1}/a_{i}\quad(i=1,\ldots,252)\hskip 102.43008pt (4.1)

and sum the results. The advisor might then be mildly concerned by the annualized average discount,  eFBTd=35.34%e^{d}_{\scalebox{0.7}{{FBT}}}=35.34\%, if he were told that returns and discounts over the same period of time are supposed to satisfy the equation
         (1+r)(1d)=1(1+r)(1-d)=1,
according to the theory of interest, but, in fact, (1+eFBTr)(1eFBTd)=0.9211(1+e^{r}_{\scalebox{0.7}{{FBT}}})(1-e^{d}_{\scalebox{0.7}{{FBT}}})=0.9211.

5  How to do it – the linear model

Our MATLAB script hn2mv1L.m is a linear variant of the hn2mv1a.m script of Section 3. We again remove 𝐚CRP\mathbf{a}_{\scalebox{0.7}{{CRP}}} from AA and append the unattended portfolio vectors 𝐚UIP2\mathbf{a}_{\scalebox{0.7}{{UIP2}}} and 𝐚UIP3\mathbf{a}_{\scalebox{0.7}{{UIP3}}} to the result. Then we add the unattended, long-short portfolio ZNS, with normalized adjusted closing price vector

𝐚ZNS=1.25515𝐚FBT0.25515𝐚XBI\vskip-4.30554pt\hskip-12.91663pt\mathbf{a}_{\scalebox{0.7}{{ZNS}}}=1.25515\cdot\mathbf{a}_{\scalebox{0.7}{{FBT}}}-0.25515\cdot\mathbf{a}_{\scalebox{0.7}{{XBI}}}\\ (5.1)

to AA, so that AA becomes the 253×6253\times 6 matrix
            A=[𝐚FBT,𝐚XBI,𝐚UIP,𝐚UIP2,𝐚UIP3,𝐚ZNS]A=\left[\,\mathbf{a}_{\scalebox{0.7}{{FBT}}},\,\mathbf{a}_{\scalebox{0.7}{{XBI}}},\,\mathbf{a}_{\scalebox{0.7}{{UIP}}},\,\mathbf{a}_{\scalebox{0.7}{{UIP2}}},\,\mathbf{a}_{\scalebox{0.7}{{UIP3}}},\,\mathbf{a}_{\scalebox{0.7}{{ZNS}}}\,\right]
of rank 2. Finally, we put 𝐚CRP\mathbf{a}_{\scalebox{0.7}{{CRP}}} back into AA,

A=[𝐚FBT,𝐚XBI,𝐚UIP,𝐚UIP2,𝐚UIP3,𝐚ZNS,𝐚CRP],A=\left[\,\mathbf{a}_{\scalebox{0.7}{{FBT}}},\,\mathbf{a}_{\scalebox{0.7}{{XBI}}},\,\mathbf{a}_{\scalebox{0.7}{{UIP}}},\,\mathbf{a}_{\scalebox{0.7}{{UIP2}}},\,\mathbf{a}_{\scalebox{0.7}{{UIP3}}},\,\mathbf{a}_{\scalebox{0.7}{{ZNS}}},\,\mathbf{a}_{\scalebox{0.7}{{CRP}}}\,\right], (5.2)

and, since 𝐚CRP\mathbf{a}_{\scalebox{0.7}{{CRP}}} is independent of the other six columns of AA, the rank of AA increases to 3.

When the lines
   %% get asset moments from adjusted closing prices ptf = Portfolio; ptf = estimateAssetMoments(ptf, A, ’dataformat’, ’prices’); [mn, cv] = getAssetMoments(ptf);
of hn2mv1a.m are replaced with the lines
   %% get daily changes in year to date return R_0 = diff(A / 100); % divide by 100 so that A(1, :) == 1 %% get (annualized) asset moments E_0 = sum(R_0) % total return Sig_0 = sqrt(252) * std(R_0, 1); % standard deviation of return V_0 = 252 * cov(R_0, 1); % covariance of return
in hn2mv1L.m, we arrive at the mean-variance results

Table 5.1: Annualized results from the linear model

FBTXBIUIPUIP2UIP3ZNSCRPE00.47540.44970.46900.46260.45620.48200.4732σ00.32050.40500.33230.35100.37560.31630.3334covariance V0FBT0.10270.11310.10530.10790.11050.10010.1056XBI0.11310.16410.12580.13860.15130.10010.1264UIP0.10530.12580.11040.11560.12070.10010.1108UIP20.10790.13860.11560.12320.13090.10010.1160UIP30.11050.15130.12070.13090.14110.10010.1212ZNS0.10010.10010.10010.10010.10010.10010.1003CRP0.10560.12640.11080.11600.12120.10030.1112\begin{array}[]{|l|rrrrrr|>{\columncolor{CRi}}r|}\hline\cr\lx@intercol\hfil\rule{0.0pt}{11.38109pt}\hfil\lx@intercol\vrule\lx@intercol&\text{\footnotesize{FBT}}&\text{\footnotesize{XBI}}&\text{\footnotesize{UIP}}&\text{\footnotesize{UIP2}}&\text{\footnotesize{UIP3}}&\text{\footnotesize{ZNS}}&\pagecolor{CRi}\text{\footnotesize{CRP}}\\ \hline\cr\rule{0.0pt}{11.95013pt}E^{0}&0.4754&0.4497&0.4690&0.4626&0.4562&0.4820&\pagecolor{CRi}0.4732\\ {{{{\sigma}}}}^{0}&0.3205&0.4050&0.3323&0.3510&0.3756&0.3163&\pagecolor{CRi}0.3334\\ \hline\cr\lx@intercol\hfil\text{covariance~}V^{0}~~~\rule{0.0pt}{14.22636pt}\hfil\lx@intercol\\ \hline\cr\rule{0.0pt}{11.38109pt}\text{\footnotesize{FBT}}&0.1027&0.1131&0.1053&0.1079&0.1105&0.1001&\pagecolor{CRi}0.1056\\ \text{\footnotesize{XBI}}&0.1131&0.1641&0.1258&0.1386&0.1513&0.1001&\pagecolor{CRi}0.1264\\ \text{\footnotesize{UIP}}&0.1053&0.1258&0.1104&0.1156&0.1207&0.1001&\pagecolor{CRi}0.1108\\ \text{\footnotesize{UIP2}}&0.1079&0.1386&0.1156&0.1232&0.1309&0.1001&\pagecolor{CRi}0.1160\\ \text{\footnotesize{UIP3}}&0.1105&0.1513&0.1207&0.1309&0.1411&0.1001&\pagecolor{CRi}0.1212\\ \text{\footnotesize{ZNS}}&0.1001&0.1001&0.1001&0.1001&0.1001&0.1001&\pagecolor{CRi}0.1003\\ \hline\cr\rule{0.0pt}{11.38109pt}\text{\footnotesize{CRP}}&0.1056&0.1264&0.1108&0.1160&0.1212&0.1003&0.1112\\ \hline\cr\end{array}

The covariance matrix V0V^{0} has rank three, but the upper-left 6×66\times 6 block has rank only two, since the four unattended portfolios UIP through ZNS are affine combinations of the two funds FBT and XBI. Moreover, the corresponding portion of the total return matrix E0E^{0} mirrors these affine combinations (in contrast to the confusing order of the five mean return values in the EE of Table 3.1).

Figure 5.1 shows the obtainable (e0,σ0)(e^{0},\sigma^{0}) corresponding to Table 5.1. This nonlinear triangle is the (e0,σ0)(e^{0},\sigma^{0})-image of the triangle in 252\mathds{R}^{252} with vertices 𝐫XBI0,𝐫ZNS0\mathbf{r}^{0}_{\scalebox{0.7}{{XBI}}},\mathbf{r}^{0}_{\scalebox{0.7}{{ZNS}}}, and 𝐫CRP0\mathbf{r}^{0}_{\scalebox{0.7}{{CRP}}}.

Figure 5.1: Mean-variance analysis – the linear model part 1
e0e^{0}σ0\sigma^{0}44454647484930323436384042e0e^{0}σ0\sigma^{0} continually reallocated portfolios unattended long portfolio path unattended long-short portfolio path FBTXBIUIPUIP2UIP3ZNSCRPpp

Note.

We mentioned the theory of interest in the last section and the relationship between discount and return. To continue this discusion let ai(i=0,1,,n)a_{i}(i=0,1,\dots,n) be adjusted closing prices of a given security over nn successive investment periods. Then the total return, e0e^{0}, and the total discount, e1e^{1}, of the security over this time interval are given by

e0=i=1n(aiai1)/a0=(ana0)/a0ande1=i=1n(aiai1)/an=(ana0)/an.e^{0}=\sum_{i=1}^{n}(a_{i}-a_{i-1})/a_{0}=(a_{n}-a_{0})/a_{0}\quad\text{and}\quad e^{1}=\sum_{i=1}^{n}(a_{i}-a_{i-1})/a_{n}=(a_{n}-a_{0})/a_{n}\,.

Thus e0e^{0} and e1e^{1} conform to the return-discount requirement of the theory of interest,

(1+e0)(1e1)=ana0a0an=1,(1+e^{0})(1-e^{1})=\frac{a_{n}}{a_{0}}\frac{a_{0}}{a_{n}}=1\,,

but a corresponding summand pair only conforms by accident.

5.1  The linear model – part 2

The covariance matrix V0V^{0} of Table 5.1 is the Gram matrix, V0=(Z0)TZ0V^{0}=(Z^{0})^{T}Z^{0}, of the 252×7252\times 7 risk vector matrix

Z0=R0𝟏252(E0/252),Z^{0}=R^{0}-\bm{1}_{252}\,(E^{0}/252)\,,\\ (5.3)

or
             Z_0 = R_0 - ones(252, 1) * (E_0 / 252)
in MATLAB code. The columns of Z0Z^{0} represent pure risk in that the sum of each column is zero (= zero total return).

Table 5.1 and Figure 5.1 are summaries of the 2014 adjusted closing price histories of FBT, XBI, UIP, UIP2, UIP3, ZNS, and CRP. E0E^{0} and Z0Z^{0} are the complete histories split into their return and risk parts.

For example, let e0e^{0} and 𝐳𝟎\mathbf{z^{0}} be the total return and risk vector of any one of the seven funds in Table 5.1. Then Algorithm 5.1 will compute the the normalized 2014 adjusted closing price history of this fund (starting from $100 at the close of 2013-12-31).
          Algorithm 5.1: To compute the adjusted closing price vector 𝐚\mathbf{a} from e0e^{0} and 𝐳0\mathbf{z}^{0} 𝐫0=𝐳0+(e0/252) 1252;a00=1;fori=1,,252ai0=ai10+ri0;𝐚=100𝐚0;\mathbf{r}^{0}=\mathbf{z}^{0}+(e^{0}/252)\,\bm{1}_{252};\\ a^{0}_{0}=1;\\ \text{for}~i=1,\ldots,252\\ \hskip 15.0694pta^{0}_{i}=a^{0}_{i-1}+r^{0}_{i}\,;\\ \hskip 0.43057pt\mathbf{a}=100*\mathbf{a}^{0};

Our MATLAB code that illustrates this linear model section is organized into four scripts.

hn2mv1L.m   – compute the seven fund mean-variance table E0,V0E^{0},V^{0} for the linear model
hn2mv1L1.m – construct (and save) the orthogonal U,E0,Z0U,E^{0},Z^{0} system (UEZ2014.mat)
hn2mv1L2.m – generate an adjusted closing price history AA from the orthogonal system
hn2mv1L3.m – construct the seven fund E0,Z0E^{0},Z^{0} table corresponding to the orthogonal
        system

We have already described the first script, hn2mv1L.m. The second script, hn2mv1L1.m, takes the risk matrix Z0Z^{0} (5.3) apart orthogonally,

Z0=UZ~0,Z~0=UTZ0,UTU=I,U=[𝐮x,𝐮y,𝐮z]252×3,Z^{0}=U\widetilde{Z}^{0},\quad\widetilde{Z}^{0}=U^{T}Z^{0},\quad U^{T}U=I,\quad U=\left[\mathbf{u}_{x},\mathbf{u}_{y},\mathbf{u}_{z}\right]\in\mathds{R}^{252\times 3}, (5.4)

where UU is defined by

𝐯x\displaystyle\mathbf{v}_{x} =𝐳FBT0𝐳XBI0,\displaystyle=\mathbf{z}^{0}_{\scalebox{0.7}{{FBT}}}-\mathbf{z}^{0}_{\scalebox{0.7}{{XBI}}},\quad 𝐮x\displaystyle\mathbf{u}_{x} =𝐯x/𝐯x,\displaystyle=\mathbf{v}_{x}/\|\mathbf{v}_{x}\|,
𝐯y\displaystyle\mathbf{v}_{y} =𝐳FBT0𝐮x(𝐮xT𝐳FBT0),\displaystyle=\mathbf{z}^{0}_{\scalebox{0.7}{{FBT}}}-\mathbf{u}_{x}(\mathbf{u}_{x}^{T}\mathbf{z}^{0}_{\scalebox{0.7}{{FBT}}}),\quad 𝐮y\displaystyle\mathbf{u}_{y} =𝐯y/𝐯y,\displaystyle=\mathbf{v}_{y}/\|\mathbf{v}_{y}\|, (5.5)
𝐯z\displaystyle\mathbf{v}_{z} =𝐳CRP0[𝐮x,𝐮y]([𝐮x,𝐮y]T𝐳CRP0),\displaystyle=\mathbf{z}^{0}_{\scalebox{0.7}{{CRP}}}-\left[\mathbf{u}_{x},\mathbf{u}_{y}\right](\left[\mathbf{u}_{x},\mathbf{u}_{y}\right]^{T}\mathbf{z}^{0}_{\scalebox{0.7}{{CRP}}}),\quad 𝐮z\displaystyle\mathbf{u}_{z} =𝐯z/𝐯z,\displaystyle=\mathbf{v}_{z}/\|\mathbf{v}_{z}\|,

and the resulting Z~0\widetilde{Z}^{0} is

FBTXBIUIPUIP2UIP3ZNSCRP0.05140.25300.10180.15220.202600.1030xZ~0=0.31630.31630.31630.31630.31630.31630.3171y0000000.0024z.\begin{array}[]{l|rrrrrr|>{\columncolor{CRi}}r|l}\lx@intercol\hfil\rule{0.0pt}{11.38109pt}\hfil\lx@intercol&\text{\footnotesize{FBT}}&\text{\footnotesize{XBI}}&\text{\footnotesize{UIP}}&\text{\footnotesize{UIP2}}&\text{\footnotesize{UIP3}}&\lx@intercol\hfil\text{\footnotesize{ZNS}}\lx@intercol&\lx@intercol\hfil\text{\footnotesize{CRP}}\lx@intercol\\ \hline\cr\rule{0.0pt}{11.95013pt}&-0.0514&-0.2530&-0.1018&-0.1522&-0.2026&0&-0.1030&x\\ \widetilde{Z}^{0}=&0.3163&0.3163&0.3163&0.3163&0.3163&0.3163&0.3171&y\\ &0&0&0&0&0&0&0.0024&z\\ \cline{2-8}\cr\end{array}. (5.6)

The orthonormal matrix UU and the FBT, XBI, ZSN, CRP columns (1, 2, 6, 7) of E0E^{0} (Table 5.1) and Z~0\widetilde{Z}^{0} (5.6) are saved as U, E_0, and Z_0 in the MATLAB file UEZ2014.mat. MATLAB Example 2 verifies the contents this file.

MATLAB Example 2: Linear mv-analysis – check UEZ2014.mat
%% hn2mv1L1check.m - Linear mv-analysis
% Check UEZ2014.mat
load UEZ2014.mat; % U E_0 Z_0 dates funds legend
%{
legend =
10 x 60 char array
’U: 252 x 3 orthonormal matrix of risk vectors u: sum(u) = 0’
’E_0: 1 x 4 matrix of total 2014 returns
’Z_0: 3 x 4 matrix of risk vector coordinates
’dates: 252 x 10 string array of 2014 market days
’funds: 4 x 3 string array of fund symbols
FBT - First Trust Biotechnology Index Fund
XBI - SPDR S&P Biotech ETF
ZNS - Unattended long-short FBT-XBI portfolio
CRP - Continually reallocated FBT-XBI portfolio
’legend: the above description
%}
%% risk and orthogonality of U
%{
mean(U) = 1.0e-15 * [0.0039 -0.0007 0.4282] % all risk
norm(U’ * U - eye(3)) = 1.7697e-14 % orthonormal
%}
%% display E_0, Z_0, Sig_0, and V_0
%{
FBT XBI ZNS CRP
E_0 =
0.4754 0.4497 0.4820 0.4732
Z_0 =
-0.0514 -0.2530 0 -0.1030
0.3163 0.3163 0.3163 0.3171
0 0 0 0.0024
Sig_0 = sqrt(sum(Z_0 .^ 2)) =
0.3205 0.4050 0.3163 0.3334
V_0 = Z_0’ * Z_0 =
0.1027 0.1131 0.1001 0.1056
0.1131 0.1641 0.1001 0.1264
0.1001 0.1001 0.1001 0.1003
0.1056 0.1264 0.1003 0.1112
%}

Table 5.2 below contains all of the information in Table 5.1 in a more compact, geometric form. The computation  V0=(Z0)TZ0V^{0}=(Z^{0})^{T}Z^{0}  reproduces the V0V^{0} of Table 5.1

Table 5.2: Annualized results from the linear model – part 2

FBTXBIUIPUIP2UIP3ZNSCRPE00.47540.44970.46900.46260.45620.48200.4732σ00.32050.40500.33230.35100.37560.31630.33340.05140.25300.10180.15220.202600.1030xZ00.31630.31630.31630.31630.31630.31630.3171y0000000.0024z\begin{array}[]{|l|rrrrrr|>{\columncolor{CRi}}r|l}\hline\cr\lx@intercol\hfil\rule{0.0pt}{11.38109pt}\hfil\lx@intercol\vrule\lx@intercol&\text{\footnotesize{FBT}}&\text{\footnotesize{XBI}}&\text{\footnotesize{UIP}}&\text{\footnotesize{UIP2}}&\text{\footnotesize{UIP3}}&\text{\footnotesize{ZNS}}&\text{\footnotesize{CRP}}\\ \hline\cr\rule{0.0pt}{11.95013pt}E^{0}&0.4754&0.4497&0.4690&0.4626&0.4562&0.4820&0.4732\\ {{{{\sigma}}}}^{0}&0.3205&0.4050&0.3323&0.3510&0.3756&0.3163&0.3334\\ \hline\cr\rule{0.0pt}{11.38109pt}&-0.0514&-0.2530&-0.1018&-0.1522&-0.2026&0&-0.1030&x\\ Z^{0}&0.3163&0.3163&0.3163&0.3163&0.3163&0.3163&0.3171&y\\ &0&0&0&0&0&0&0.0024&z\\ \cline{1-8}\cr\end{array}

The E0E^{0} and σ0{{{{\sigma}}}}^{0} rows of Table 5.2 are exactly the same as those of Table 5.1, but the Z0Z^{0} of Table 5.2 replaces the V0=(Z0)TZ0V^{0}=(Z^{0})^{T}Z^{0} of Table 5.1 and, in each column, σ0=𝐳0\sigma^{0}=\|\mathbf{z}^{0}\|.

Figure 5.2 shows the xyxy-plane in the risk hyperplane {𝐳252:mean(𝐳)=0}\{\mathbf{z}\in\mathds{R}^{252}:\texttt{mean}(\mathbf{z})=0\}. It exactly reflects the Z0Z^{0} data in Table 5.2. Of course 𝐳CRP0\mathbf{z}^{0}_{\scalebox{0.7}{{CRP}}} is not in xyxy-plane as evidenced by its nonzero zz-coordinate and the fact that its projection onto the xyxy-plane is linearly incompatible with its total 2014 return, eCRP0e^{0}_{\scalebox{0.7}{{CRP}}}.

The illustrative unattended portfolio

p=0.39946×FBT+0.60054×XBIp=0.39946\times\text{\footnotesize{FBT}}+0.60054\times\text{\footnotesize{XBI}}

(at 2013-12-31 closing prices) in Figure 5.1 and 5.2 had total 2014 return ep0=0.4600e^{0}_{p}=0.4600 with xp=0.1725x_{p}=-0.1725 and σp0=0.3603\sigma^{0}_{p}=0.3603.

Figure 5.2: The xyxy-plane in risk space
xxyye0e^{0}-0.3-0.2-0.10.10.20.30.40.450.460.470.48σp0\sigma^{0}_{p}𝐳CRP0\mathbf{z}^{0}_{\scalebox{0.7}{{CRP}}} projectionFBTXBIUIPUIP2UIP3ZNS𝟎\bm{0}ppFBTXBIUIP3UIP2UIPZNSeCPR0e^{0}_{\scalebox{0.7}{{CPR}}}

6  History: adjusted closing prices revisted

Let us close this article with a revised version of Figure 2.1. The revision, Figure 6.1, shows the same adjusted-closing-price history of the exchange traded funds FBT and XBI and the continually reallocated portfolio CRP, but now the unattended long-short portfolio, ZNS, has replaced UIP. Of the four funds and portfolios, ZNS (purple) had the highest 2014 return with the least volatility.

These normalized adjusted closing prices were generated from UEZ2014.mat by the MATLAB script hn2mv1L3.m. They are recorded, to 5-decimal places (along with the prices of UIP, UIP2, and UIP3), in the comma-separated-value file FXUZC7.csv.

Figure 6.1: 2013-12-31-normalized adjusted closing prices of two biotechnology ETFs and two portfolios in these ETFs
901001101201301401501602013-12-312014-03-312014-06-302014-09-302014-12-31FBT = First Trust Biotechnology Index ETFXBI  = SPDR S&P Biotech ETFZNS = Unattended long-short FBT-XBI portfolioCRP = Continually reallocated FBT-XBI portfolio

Now the MATLAB script hn2mv1b.m, with the AA of 5.2 in the
  ptf = estimateAssetMoments(ptf, A, ’dataformat’, ’prices’);
code produces

Table 6.1: Annualized results from the traditional nonlinear model

FBTXBIUIPUIP2UIP3ZNSCRPE0.42450.43240.42350.42440.42740.42750.4265σ0.26560.34910.27770.29630.32030.26050.2783covariance VFBT0.07050.08040.07290.07530.07780.06820.0730XBI0.08040.12190.09050.10080.11120.07030.0908UIP0.07290.09050.07710.08150.08590.06860.0773UIP20.07530.10080.08150.08780.09420.06910.0817UIP30.07780.11120.08590.09420.10260.06970.0862ZNS0.06820.07030.06860.06910.06970.06780.0687CRP0.07300.09080.07730.08170.08620.06870.0774\begin{array}[]{|l|rrrrrr|>{\columncolor{CRi}}r|}\hline\cr\lx@intercol\hfil\rule{0.0pt}{11.38109pt}\hfil\lx@intercol\vrule\lx@intercol&\text{\footnotesize{FBT}}&\text{\footnotesize{XBI}}&\text{\footnotesize{UIP}}&\text{\footnotesize{UIP2}}&\text{\footnotesize{UIP3}}&\text{\footnotesize{ZNS}}&\text{\footnotesize{CRP}}\\ \hline\cr\rule{0.0pt}{11.95013pt}E&0.4245&0.4324&0.4235&0.4244&0.4274&0.4275&0.4265\\ {{{{\sigma}}}}&0.2656&0.3491&0.2777&0.2963&0.3203&0.2605&0.2783\\ \hline\cr\lx@intercol\hfil\text{covariance~}V~~~\rule{0.0pt}{14.22636pt}\hfil\lx@intercol\\ \hline\cr\rule{0.0pt}{11.38109pt}\text{\footnotesize{FBT}}&0.0705&0.0804&0.0729&0.0753&0.0778&0.0682&0.0730\\ \text{\footnotesize{XBI}}&0.0804&0.1219&0.0905&0.1008&0.1112&0.0703&0.0908\\ \text{\footnotesize{UIP}}&0.0729&0.0905&0.0771&0.0815&0.0859&0.0686&0.0773\\ \text{\footnotesize{UIP2}}&0.0753&0.1008&0.0815&0.0878&0.0942&0.0691&0.0817\\ \text{\footnotesize{UIP3}}&0.0778&0.1112&0.0859&0.0942&0.1026&0.0697&0.0862\\ \text{\footnotesize{ZNS}}&0.0682&0.0703&0.0686&0.0691&0.0697&0.0678&0.0687\\ \hline\cr\rule{0.0pt}{11.38109pt}\text{\footnotesize{CRP}}&0.0730&0.0908&0.0773&0.0817&0.0862&0.0687&0.0774\\ \hline\cr\end{array}

with the corresponding TikZ image

Figure 6.2: How not to do MV-analysis – a last look
42.042.543.043.5253035eeσ\sigmacontinually reallocatedportfoliosefficient frontierunattended portfolio pathlong-shortFBTXBIUIPUIP2UIP3ZNSCRPpp

Here the continually-reallocated black-dotted portfolio points are exactly 1/2 and 3/4 of the ee-way from FBT to XBI on the red, continually-reallocated, FBT-to-XBI path.

7  Conclusion

The growth in value of an unattended investment portfolio P over a given interval of time can be completely described by a normalized adjusted closing price equation

𝐚P=jpj𝐚j,\mathbf{a}_{\scalebox{0.7}{{P}}}=\sum_{j}p_{j}\mathbf{a}_{j},\\ (7.1)

where the pjp_{j} are the proportions of the securities in the portfolio P at the close of the day of normalization. The corresponding mean periodic return equation,

eP=jpjej,e_{\scalebox{0.7}{{P}}}=\sum_{j}p_{j}e_{j},\\ (7.2)

does not follow when e=𝚖𝚎𝚊𝚗(𝐫)e=\verb!mean!(\mathbf{r}) and periodic return vectors 𝐫\mathbf{r} are defined by

ri=ai/ai11.r_{i}=a_{i}/a_{i-1}-1. (7.3)

The mean periodic return equation (7.2) does hold with (7.3) when one restricts his attention to continually reallocated portfolios. Unfortunately continually reallocated investment portfolios are more numerical artifact than financial reality.

Appendix A An adjusted closing price primer

The adjusted closing prices of a security are artificial “closing prices” that are adjusted to incorporate all dividends and splits. The day-to-day growth of a security or an unattended investment portfolio of securities is completely described by its adjusted closing prices. If the adjusted closing price of the security/portfolio is a0a_{0} on market day 0 and a1a_{1} on a later market day 1, then its total return from day 0 to day 1 is  r=Δa/a0(Δa=a1a0)r=\Delta{a}/a_{0}~(\Delta{a}=a_{1}-a_{0}). Two adjusted closing price vectors for a given security that cover the same time interval must be positive scalar multiples of each other. Thus the returns, rr, of the security from one market day to another do not depend on any particular adjusted closing price representation.

Table A.1 shows how one can compute adjusted closing prices for the exchange traded fund XBI over the period 2013-12-31 through 2014-12-31. The required input data are all closing prices for the fund over this period as well as the dividends it made during the period with their ex-dividend dates. On each line the adjusted closing price is computed by
       adjusted closing price=closing price×adjusted closing shares.\text{adjusted closing price}~=~\text{closing price}~\times~\text{adjusted closing shares}\,.

The adjusted closing shares in the table increase on each ex-dividend day and are constant in between. If the closing price on the market day prior to an ex-dividend day is c0c_{0} and the dividend on the ex-dividend day is d1d_{1}, then the adjusted closing shares on the ex-dividend day must be increased by a factor of c0/(c0d1)c_{0}/(c_{0}-d_{1}) in order that an investor who has his dividends reinvested maintains the value of his investment.

The adjusted closing prices in Table A.1 are “normalized” at 100.000 on 2013-12-31. To compute the adjusted closing prices for the 243 missing days just fill in the missing closing prices and multiply them by the corresponding adjusted closing shares. Also note that these closing prices and distributions have not been adjusted for the 3:1 split in 2015.

Table A.1: How to generate normalized adjusted closing prices for XBI – SPDR S&P Biotech ETF
adjusted adjusted
market distri- closing closing closing
day bution price shares price
2013-12-31 130.20 0.768049 100.000
\cdots \cdots 0.768049 \cdots
2014-03-20 160.17 0.768049 123.018
2014-03-21 0.333023 153.15 0.769649 117.872
\cdots \cdots 0.769649 \cdots
2014-06-19 153.32 0.769649 118.003
2014-06-20 0.616142 153.42 0.772754 118.556
\cdots \cdots 0.772754 \cdots
2014-09-18 159.94 0.772754 123.594
2014-09-19 0.562774 158.27 0.775483 122.736
\cdots \cdots 0.775483 \cdots
2014-12-18 189.08 0.775483 146.628
2014-12-19 0.490997 190.34 0.777502 147.990
\cdots \cdots 0.777502 \cdots
2014-12-31 186.46 0.777502 144.973

A.1  Yahoo!Finance

Yahoo!Finance is a good source for adjusted closing prices of an individual security, like our XBI. Simply download the daily, historical prices over the time interval desired as a CSV (comma-separated-value) file and open the file in a spreadsheet program (e.g., Excel).

This spreadsheet will have seven labeled columns:
   Date,Open,High,Low,Close,Adj Close,Volume.
Delete all but the “Date” and the “Adj Close” columns. We will assume these are now columns A and B, respectively, as in the spreadsheet image (Figure A.1) below.

The Yahoo adjusted closing prices are not normalized at any particular date. Yahoo simply sets the adjusted closing price of a security at the close of the latest market day equal to its closing price on that day, Then previous adjusted closing prices must be rescaled if the day is an ex-distribution or an ex-split day.

To normalize your Yahoo adjusted prices at say 100 on a particular date (i.e., 2013-12-31 in Figure A.1) start a new normalized adjusted closing price column on your spreadsheet, say column C, by putting

= B[date row]*100/B$[date row]    (with [date row] = the row number) (A.1)

in the cell of that date. The number 100 should appear in this cell (i.e., in cell C2). Now you need only fill up and/or down from this cell to get all normalized adjusted closing prices in column C. (We only filled down in in Figure A.1.)

Figure A.1: XBI data from Yahoo on 2018-09-19
Refer to caption

The normalized adjusted closing prices in column C of Figure A.1 were generated from the prices in column B as described above. These prices were then rounded to 3 decimal places. The numbers in the D column come from our anc/FXUZ7.cvs file. They were generated by the process used to generate Table A.1 from the closing prices and distributions of XBI. Out of the 253 market days considered, the C (A_0) price was 0.001 greater than the D (XBI) price on 7 days. Otherwise the two columns of adjusted closing prices were exactly the same. (These 7 “errors” occurred in the 243 rows that have been collapsed in Figure A.1.)

Appendix B Life on the Mississippi

In the space of one hundred and seventy-six years the Lower Mississippi has shortened itself two hundred and forty-two miles. That is an average of a trifle over one mile and a third per year. Therefore, any calm person, who is not blind or idiotic, can see that in the Old Oolitic Silurian Period, just a million years ago next November, the Lower Mississippi River was upwards of one million three hundred thousand miles long, and stuck out over the Gulf of Mexico like a fishing-rod. And by the same token any person can see that seven hundred and forty-two years from now the Lower Mississippi will be only a mile and three-quarters long, and Cairo and New Orleans will have joined their streets together, and be plodding comfortably along under a single mayor and a mutual board of aldermen. There is something fascinating about science. One gets such wholesale returns of conjecture out of such a trifling investment of fact.

–  Mark Twain

References

  • [1] Stephen G. Kellison “The Theory of Interest, 3rd Edition” McGraw-Hill, 2009
  • [2] Harry M. Markowitz “Mean-Variance Analysis in Portfolio Choice and Capital Markets” Blackwell, 1987
  • [3] David F. Swensen “Pioneering Portfolio Management” FREE PRESS, 2009