1 Introduction

Stochastic portfolio theory (SPT), which was established by Robert Fernholz, is used as a theoretical tool for applications in equity markets. It is also used for analysing portfolios with controlled behaviour under very general conditions, most of which are consistent with observed features of the real market. See Fernholz (2002) for details and Fernholz and Karatzas (2009) for a survey of SPT. One essential topic in SPT is to invest in an equity market with trading strategies constructed systematically through the method of functional generation. The portfolio generating functions depend merely on current observables: the market capitalisation of each stock in the market. Over sufficiently large investment horizons, the corresponding trading strategies theoretically outperform the corresponding capitalisation-weighted index with probability one. It is also remarkably easy to implement these trading strategies, as there is no stochastic integration or drift involved in computing the wealth of these trading strategies. Hence the need for estimation is reduced.

Fernholz (2001) generalises the method of functional generation to a class of portfolio generating functions that identify market weights not by their company index, but by their ranks in terms of values. This generalisation leads to rank-dependent trading strategies and provides a mathematical interpretation of the size effect; see also Banner et al. (2018). This generalisation also suggests a correction term in the so-called master formula of a trading strategy when the component stocks in this trading strategy change under specific circumstances. Here, the master formula expresses the wealth of a trading strategy through its corresponding portfolio generating function and a finite-variation process under a deterministic function form. This correction term is closely related to the so-called leakage effect, which measures the loss in the wealth of the trading strategy due to untimely renewing the portfolio constituent stocks. See Banner et al. (2005) and Fernholz et al. (2013) for further research on the rank-dependent stock market models.

Karatzas and Ruf (2017) define a new method of functional generation, the additive functional generation, different from the multiplicative functional generation introduced by Fernholz (1999). The cases when portfolio generating functions are rank-dependent are then studied for both additive and multiplicative functional generation. The results of Karatzas and Ruf (2017) are generalised by Ruf and Xie (2019a) in that the dependence of the portfolio generating function on some finite-variation process is allowed. The trading strategies generated functionally from such functions are therefore called generalised functionally generated trading strategies. Also see Strong (2014), Schied et al. (2018), and Karatzas and Kim (2018) for similar research.

Ruf and Xie (2019b) analyse functionally generated trading strategies in the presence of transaction costs empirically. These trading strategies invest in a certain number of the largest stocks in terms of market capitalisations. Every time the portfolio constituent list is renewed, new stocks (indexed by their names) are introduced into the portfolio to replace some old stocks. In this sense, these trading strategies are not strategies that invest in fixed companies, but are actually more close to rank-dependent trading strategies.

In this paper, we first analyse the leakage effect of rank-dependent generalised functionally generated trading strategies theoretically. Our computation of the leakage differs from that of Fernholz (2001). Then we estimate the leakage empirically. An outline of the paper is as follows. Section 2 specifies the market model and recalls the methods of both multiplicative and additive functional generation. Section 3 presents the master formulas for trading strategies generated from rank-dependent generalised portfolio generating functions. The definition of the leakage comes naturally from the master formulas and is computed theoretically. Section 4 provides the method to estimate the leakage in discrete time. Section 5 discusses the procedure of using historical data to backtest the portfolio performance and estimating the leakage. Section 6 studies several trading strategies empirically.

2 The method of functional generation

2.1 Model setup

Assume that we are given a filtered probability space \((\varOmega ,{\mathcal {F}}(\infty ),{\mathcal {F}}(\cdot ),\textsf {P})\) with \({\mathcal {F}}(\cdot )\) right-continuous and \({\mathcal {F}}(0)=\{\emptyset ,\varOmega \}\). Denote

$$\begin{aligned} \varDelta ^{n}_{+}=\left\{ (x_{1},\ldots ,x_{n})'\in (0,1)^{n}:\sum _{i=1}^{n}x_{i}=1\right\} ,\quad n\in {\mathbb {N}}. \end{aligned}$$

For \(x=(x_{1},\ldots ,x_{n})'\in \varDelta ^{n}_{+}\), its corresponding ranked vector is denoted by \({\overline{x}}=(x_{(1)},\ldots ,x_{(n)})'\) with components

$$\begin{aligned} \max _{i\in \{1,\ldots ,n\}}x_{i}=x_{(1)}\ge x_{(2)}\ge \cdots \ge x_{(n-1)}\ge x_{(n)}=\min _{i\in \{1,\ldots ,n\}}x_{i}. \end{aligned}$$

Denote further

$$\begin{aligned} {\mathbb {W}}^{n}_{+}=\left\{ \left( x_{(1)},\ldots ,x_{(n)}\right) '\in \varDelta ^{n}:1>x_{(1)}\ge \cdots \ge x_{(n)}>0\right\} ,\quad n\in {\mathbb {N}}. \end{aligned}$$

Then the rank operator \({\mathfrak {R}}:\varDelta ^{n}_{+}\rightarrow {\mathbb {W}}^{n}_{+}\) maps x to \({\overline{x}}\).

We put ourselves in a frictionless equity market \({\mathcal {M}}\) with \(d\ge 2\) companies, each of which always has exactly one share of stock outstanding in the market. For each company \(i\in \{1,\ldots ,d\}\), we use \(\mu _{i}(\cdot )\) to denote its market weight process, which is computed by dividing its capitalisation process by the process of total capitalisation of all d companies in the market. We assume that \(\mu _{i}(\cdot )\) is a continuous, non-negative semimartingale, for all \(i\in \{1,\ldots ,d\}\). The \(\varDelta ^{d}_{+}\)-valued market weights process is then denoted by \(\mu (\cdot )=(\mu _{1}(\cdot ),\ldots ,\mu _{d}(\cdot ))'\).

Definition 1

The market weights process \(\mu (\cdot )\) is called pathwise mutually non-degenerate if, for all \(t\ge 0\),

  1. 1.

    \(\left\{ t;\mu _{i}(t)=\mu _{j}(t)\right\} \) has Lebesgue measure zero, for all \(i,j\in \{1,\ldots ,d\}\) with \(i\ne j\), a.s.;

  2. 2.

    \(\left\{ t;\mu _{i}(t)=\mu _{j}(t)=\mu _{k}(t)\right\} =\emptyset \), for all \(i,j,k\in \{1,\ldots ,d\}\) with \(i<j<k\), a.s.

\(\square \)

By our assumptions, the ranked market weights process \({\overline{\mu }}(\cdot )\), given by

$$\begin{aligned} {\overline{\mu }}(\cdot )={\mathfrak {R}}(\mu (\cdot ))=(\mu _{(1)}(\cdot ),\ldots ,\mu _{(d)}(\cdot ))', \end{aligned}$$

is a \({\mathbb {W}}^{d}_{+}\)-valued continuous semimartingale (see Theorem 2.2 in Banner and Ghomrasni 2008). Moreover, let \(p_{t}\) be a random permutation of \(\{1,\ldots ,d\}\) that associates the name index of stocks with their ranks at time t, for all \(t\ge 0\). To wit, we have

$$\begin{aligned} \mu _{p_{t}(k)}(t)=\mu _{(k)}(t),\quad k\in \{1,\ldots ,d\},~t\ge 0. \end{aligned}$$
(1)

In particular, if \(\mu _{(k)}(t)=\mu _{(k+1)}(t)\), for some \(k\in \{1,\ldots ,d-1\}\), then we set \(p_{t}(k)<p_{t}(k+1)\).

Instead of investing in all companies of the market \({\mathcal {M}}\), we are only allowed investing in the top \(k<d\) companies in terms of their market capitalisations. We denote the market that contains these top k companies by \({\mathcal {M}}^{k}\). To proceed, we denote the market weights process on \({\mathcal {M}}^{k}\) by \({\widetilde{\mu }}(\cdot )=({\widetilde{\mu }}_{1}(\cdot ),\ldots ,{\widetilde{\mu }}_{k}(\cdot ))'\) with components

$$\begin{aligned} {\widetilde{\mu }}_{i}(t)={\mathfrak {M}}(t)\mu _{(i)}(t),\quad i\in \{1,\ldots ,d\},~t\ge 0. \end{aligned}$$
(2)

Here,

$$\begin{aligned} {\mathfrak {M}}(\cdot )=\frac{1}{\sum _{j=1}^{k}\mu _{(j)}(\cdot )} \end{aligned}$$

represents the multiplier of the market weights from the market \({\mathcal {M}}\) to the market \({\mathcal {M}}^{k}\). Note that

$$\begin{aligned} \sum _{j=1}^{k}{\widetilde{\mu }}_{j}(t)=1, \quad t\ge 0, \end{aligned}$$

by (2), i.e., \({\widetilde{\mu }}(\cdot )\) is \({\mathbb {W}}^{k}_{+}\)-valued. In particular, since \({\overline{\mu }}(\cdot )\) is a d-dimensional continuous semimartingale, \({\widetilde{\mu }}(\cdot )\) is a k-dimensional continuous semimartingale by (2).

2.2 Target trading strategy

A target trading strategy, as defined in the following, is constructed to indicate the number of shares of each stock that one would like to hold every time after rebalancing the portfolio.

Definition 2

An \({\mathbb {R}}^{k}\)-valued process \(\phi (\cdot )=(\phi _{1}(\cdot ),\ldots ,\phi _{k}(\cdot ))'\) is called a target trading strategy with respect to \({\widetilde{\mu }}(\cdot )\) if it is predictable and integrable with respect to \({\widetilde{\mu }}(\cdot )\), and satisfies

$$\begin{aligned} V^{\phi }(\cdot )-V^{\phi }(0)=\int _{0}^{\cdot }\sum _{j=1}^{k}\phi _{j}(t)\mathrm {d}{\widetilde{\mu }}_{j}(t). \end{aligned}$$
(3)

Here, the process

$$\begin{aligned} V^{\phi }(\cdot )=\sum _{j=1}^{k}\phi _{j}(\cdot ){\widetilde{\mu }}_{j}(\cdot ) \end{aligned}$$
(4)

is interpreted as the wealth process of \(\phi (\cdot )\) relative to the market \({\mathcal {M}}^{k}\). A target trading strategy \(\phi (\cdot )\) is long-only if it is nonnegative at any time. \(\square \)

Remark 1

By (2), \({\widetilde{\mu }}(\cdot )\) is ranked, as it consists of ranked market weights \({\widetilde{\mu }}_{i}(\cdot )\), for all \(i\in \{1,\ldots ,k\}\). Therefore, the target trading strategy \(\phi (\cdot )\) is also a rank-based trading strategy. Specifically, if \(k=d\), we have \({\widetilde{\mu }}(\cdot )={\overline{\mu }}(\cdot )\) by (2). In this case, \(\phi (\cdot )\) is just a standard rank-based trading strategy as in the previous research.

Remark 2

When implementing a target trading strategy \(\phi (\cdot )\) with respect to \({\widetilde{\mu }}(\cdot )\) in the real market, the investor needs to buy the new stock to replace the old stock when the portfolio constituents change after rebalancing the portfolio. As the trade is made discretely, loss in the wealth \(V^{\phi }(\cdot )\) will occur from buying the new stock at a higher price than selling the old stock when rebalancing. This loss in the wealth is reflected by the leakage effect. \(\square \)

For a given target trading strategy \(\phi (\cdot )\) with respect to \({\widetilde{\mu }}(\cdot )\), we use \(\pi (\cdot )=(\pi _{1}(\cdot ),\ldots ,\pi _{k}(\cdot ))'\) to denote its portfolio weights process, which has components

$$\begin{aligned} \pi _{i}(\cdot )=\frac{\phi _{i}(\cdot ){\widetilde{\mu }}_{i}(\cdot )}{V^{\phi }(\cdot )},\quad i\in \{1,\ldots ,k\}. \end{aligned}$$

Below, we shall only consider long-only target trading strategies, i.e., target trading strategies with nonnegative \(\pi (\cdot )\).

2.3 Portfolio generating functions

A regular function shall be used as a portfolio generating function to generate trading strategies functionally. Recall the definition of such a function from Karatzas and Ruf (2017) with necessary adjustments consistent with our settings. See Chapter 4 in Xie (2019) for a generalised version of the function when depending on a finite-variation process.

Definition 3

A continuous function \(G:{\mathbb {W}}^{k}_{+}\rightarrow {\mathbb {R}}\) is said to be regular for \({\widetilde{\mu }}(\cdot )\) if

  1. 1.

    there exists a measurable function \(DG=(D_{1}G,\ldots ,D_{k}G)':{\mathbb {W}}^{k}_{+}\rightarrow {\mathbb {R}}^{k}\) such that the process \(\vartheta (\cdot )=(\vartheta _{1}(\cdot ),\ldots ,\vartheta _{k}(\cdot ))'\) with components

    $$\begin{aligned} \vartheta _{i}(\cdot )=D_{i}G({\widetilde{\mu }}(\cdot )),\quad i\in \{1,\ldots ,d\}, \end{aligned}$$
    (5)

    is predictable and integrable with respect to \({\widetilde{\mu }}(\cdot )\); and

  2. 2.

    the continuous, adapted process

    $$\begin{aligned} \varGamma (\cdot )=G({\widetilde{\mu }}(0))-G({\widetilde{\mu }}(\cdot ))+\int _{0}^{\cdot }\sum _{j=1}^{k}\vartheta _{j}(t)\mathrm {d}{\widetilde{\mu }}_{j}(t) \end{aligned}$$
    (6)

    is of finite variation on the interval [0, T], for all \(T\ge 0\).

Moreover, G is Lyapunov for \({\widetilde{\mu }}(\cdot )\) if \(\varGamma (\cdot )\) given by (6) is non-decreasing. \(\square \)

Recall the methods of multiplicative and additive functional generation from Karatzas and Ruf (2017). Use \(\psi (\cdot )=(\psi _{1}(\cdot ),\ldots ,\psi _{k}(\cdot ))'\) and \(\varphi (\cdot )=(\varphi _{1}(\cdot ),\ldots ,\varphi _{k}(\cdot ))'\) to denote the target trading strategies with respect to \({\widetilde{\mu }}(\cdot )\) generated from a regular function multiplicatively and additively, respectively. Then the wealth processes \(V^{\psi }(\cdot )\) and \(V^{\varphi }(\cdot )\) are expressed through the master formulas introduced in the following two lemmas, respectively.

Lemma 1

Let \(\psi (\cdot )\) be the target trading strategy with respect to \({\widetilde{\mu }}(\cdot )\) generated multiplicatively from a given regular function \(G:{\mathbb {W}}^{k}_{+}\rightarrow (0,\infty )\) for \({\widetilde{\mu }}(\cdot )\) with \(1/G({\widetilde{\mu }}(\cdot ))\) locally bounded. Then the wealth process of \(\psi (\cdot )\) is given by the master formula

$$\begin{aligned} V^{\psi }(\cdot )=G({\widetilde{\mu }}(\cdot ))\exp \left( \int _{0}^{\cdot }\frac{\mathrm {d}\varGamma (t)}{G({\widetilde{\mu }}(t))}\right) \end{aligned}$$
(7)

with the finite-variation process \(\varGamma (\cdot )\) given by (6). Moreover, the portfolio weights process \(\pi (\cdot )\) corresponding to \(\psi (\cdot )\) has components

$$\begin{aligned} \pi _{i}(t)=\left( 1+\frac{\vartheta _{i}(t)- \sum _{j=1}^{d}\vartheta _{j}(t){\widetilde{\mu }}_{j}(t)}{G({\widetilde{\mu }}(t))}\right) {\widetilde{\mu }}_{i}(t),\quad t\ge 0, \end{aligned}$$
(8)

with \(\vartheta _{i}(\cdot )\) given by (5), for all \(i\in \{1,\ldots ,d\}\).

Lemma 2

Let \(\varphi (\cdot )\) be the target trading strategy with respect to \({\widetilde{\mu }}(\cdot )\) generated additively from a given regular function \(G:{\mathbb {W}}^{k}_{+}\rightarrow {\mathbb {R}}\) for \({\widetilde{\mu }}(\cdot )\). Then the wealth process of \(\varphi (\cdot )\) is given by the master formula

$$\begin{aligned} V^{\varphi }(\cdot )=G({\widetilde{\mu }}(\cdot ))+\varGamma (\cdot ) \end{aligned}$$
(9)

with the finite-variation process \(\varGamma (\cdot )\) given by (6). Moreover, the portfolio weights process \(\pi (\cdot )\) corresponding to \(\varphi (\cdot )\) has components

$$\begin{aligned} \pi _{i}(t)=\left( 1+\frac{\vartheta _{i}(t)-\sum _{j=1}^{d}\vartheta _{j}(t){\widetilde{\mu }}_{j}(t)}{V^{\varphi }(t)}\right) {\widetilde{\mu }}_{i}(t),\quad t\ge 0, \end{aligned}$$
(10)

with \(\vartheta _{i}(\cdot )\) given by (5), for all \(i\in \{1,\ldots ,d\}\).

As indicated by (7) and (9), the computation of the wealth of functionally generated trading strategies involves no stochastic integration but only market observables.

3 Leakage of functionally generated trading strategies

In this section, we analyse the effect of renewing the constituent stocks of a trading strategy on its wealth. To start, we recall the local time process of a continuous semimartingale.

Definition 4

The local time process of an \({\mathbb {R}}\)-valued continuous semimartingale X at the origin is given by

$$\begin{aligned} {\mathfrak {L}}_{X}(\cdot )=\frac{1}{2}\left( \left| X(t)\right| -\left| X(0)\right| -\int _{0}^{\cdot }\mathrm {sgn}(X(t))\mathrm {d}X(t)\right) , \end{aligned}$$
(11)

where \(\mathrm {sgn}(y)=2{\mathbf {1}}_{y\in (0,\infty )}-1\). \(\square \)

The local time \({\mathfrak {L}}_{X}(t)\) measures the time that \(X(\cdot )\) has spent at 0 up to time t. Hence, the process \({\mathfrak {L}}_{X}(\cdot )\) is of finite variation. We refer to Karatzas and Shreve (1991) for a general study on local times.

Lemma 3

(Theorem 2.3 in Banner and Ghomrasni 2008). The ranked market weights process \({\overline{\mu }}(\cdot )\) has components

$$\begin{aligned} \begin{aligned} \mu _{(i)}(\cdot )&=\mu _{(i)}(0)+\int _{0}^{\cdot }\sum _{j=1}^{d}\frac{{\varvec{1}}_{\left\{ \mu _{j}(t)=\mu _{(i)}(t)\right\} }}{N_{i}(\mu (t))} \mathrm {d}\mu _{j}(t)+\sum _{k=i+1}^{d}\int _{0}^{\cdot }\frac{\mathrm {d}\varLambda ^{(i,k)}(t)}{N_{i}(\mu (t))}\\&\quad -\sum _{k=1}^{i-1}\int _{0}^{\cdot }\frac{\mathrm {d}\varLambda ^{(k,i)}(t)}{N_{i}(\mu (t))}, \end{aligned} \end{aligned}$$
(12)

for all \(i\in \{1,\ldots ,d\}\). Here,

$$\begin{aligned} N_{i}(x)=\sum _{j=1}^{d}{\varvec{1}}_{x_{j}=x_{(i)}} \end{aligned}$$

is the number of components of \(x=(x_{1},\ldots ,x_{d})'\in \varDelta ^{d}_{+}\) that coalesce at a given rank \(i\in \{1,\ldots ,d\}\), and

$$\begin{aligned} \varLambda ^{(i,j)}(\cdot )={\mathfrak {L}}_{\mu _{(i)}-\mu _{(j)}}(\cdot ),\quad 1\le i<j\le d, \end{aligned}$$

is the local time process of the continuous semimartingale \(\mu _{(i)}(\cdot )-\mu _{(j)}(\cdot )\ge 0\) at the origin given by (11).

Lemma 3 is used to prove the following proposition.

Proposition 1

For a given regular function G for \({\widetilde{\mu }}(\cdot )\), the corresponding finite-variation process \(\varGamma (\cdot )\) given by (6) satisfies

$$\begin{aligned} \varGamma (\cdot )={\widetilde{\varGamma }}(\cdot )+L(\cdot ). \end{aligned}$$

Here,

$$\begin{aligned} \begin{aligned} {\widetilde{\varGamma }}(\cdot )&=G({\widetilde{\mu }}(0))+\int _{0}^{\cdot }\sum _{i=1}^{k}\sum _{j=1}^{d}\frac{\vartheta _{i}(t){\mathfrak {M}}(t)}{N_{i}(\mu (t))}{\mathbf {1}}_{\{\mu _{j}(t)=\mu _{(i)}(t)\}}\mathrm {d}\mu _{j}(t)\\&\quad -G({\widetilde{\mu }}(\cdot ))-\int _{0}^{\cdot }\sum _{i,j=1}^{k}\sum _{\nu =1}^{d}\frac{\vartheta _{i}(t){\widetilde{\mu }}_{i}(t){\mathfrak {M}}(t)}{N_{j}(\mu (t))}{\mathbf {1}}_{\{\mu _{\nu }(t)=\mu _{(j)}(t)\}}\mathrm {d}\mu _{\nu }(t)\\&\quad +\int _{0}^{\cdot }\sum _{i,j,\nu =1}^{k}{\mathfrak {M}}^{2}(t)\vartheta _{i}(t){\widetilde{\mu }}_{i}(t)\mathrm {d}\left[ \mu _{(j)},\mu _{(\nu )}\right] (t)\\&\quad -\int _{0}^{\cdot }\sum _{i,j=1}^{k}{\mathfrak {M}}^{2}(t)\vartheta _{i}(t)\mathrm {d}\left[ \mu _{(i)},\mu _{(j)}\right] (t)+{\mathcal {A}}(\cdot ) \end{aligned} \end{aligned}$$
(13)

with

$$\begin{aligned} \begin{aligned} {\mathcal {A}}(\cdot )=&\quad +\int _{0}^{\cdot }\sum _{i=1}^{k}\sum _{j=i+1}^{k}\frac{\vartheta _{i}(t){\mathfrak {M}}(t)}{N_{i}(\mu (t))}\mathrm {d}\varLambda ^{(i,j)}(t)-\int _{0}^{\cdot }\sum _{i=1}^{k}\sum _{j=1}^{i-1}\frac{\vartheta _{i}(t){\mathfrak {M}}(t)}{N_{i}(\mu (t))}\mathrm {d}\varLambda ^{(j,i)}(t)\\&\quad -\int _{0}^{\cdot }\sum _{i,j=1}^{k}\sum _{\nu =j+1}^{k}\frac{\vartheta _{i}(t){\widetilde{\mu }}_{i}(t){\mathfrak {M}}(t)}{N_{j}(\mu (t))}\mathrm {d}\varLambda ^{(j,\nu )}(t)\\&\quad +\int _{0}^{\cdot }\sum _{i,j=1}^{k}\sum _{\nu =1}^{j-1}\frac{\vartheta _{i}(t){\widetilde{\mu }}_{i}(t){\mathfrak {M}}(t)}{N_{j}(\mu (t))}\mathrm {d}\varLambda ^{(\nu ,j)}(t), \end{aligned} \end{aligned}$$

and

$$\begin{aligned} \begin{aligned} L(\cdot )&=\int _{0}^{\cdot }\sum _{i=1}^{k}\sum _{j=k+1}^{d}\frac{\vartheta _{i}(t){\mathfrak {M}}(t)}{N_{i}(\mu (t))}\mathrm {d}\varLambda ^{(i,j)}(t)\\&\quad -\int _{0}^{\cdot }\sum _{i,j=1}^{k}\sum _{\nu =k+1}^{d}\frac{\vartheta _{i}(t){\widetilde{\mu }}_{i}(t){\mathfrak {M}}(t)}{N_{j}(\mu (t))}\mathrm {d}\varLambda ^{(j,\nu )}(t). \end{aligned} \end{aligned}$$
(14)

are processes of finite variation on [0, T], for all \(T\ge 0\).

Proof

By Itô’s lemma and (2), we have

$$\begin{aligned} \mathrm {d}{\widetilde{\mu }}_{i}(t)=\mathrm {d}\left( {\mathfrak {M}}(t)\mu _{(i)}(t)\right) ={\mathfrak {M}}(t)\mathrm {d}\mu _{(i)}(t)+\mu _{(i)}(t)\mathrm {d}{\mathfrak {M}}(t)+\mathrm {d}\left[ \mu _{(i)},{\mathfrak {M}}\right] (t), \end{aligned}$$

for all \(i\in \{1,\ldots ,k\}\), and

$$\begin{aligned} \mathrm {d}{\mathfrak {M}}(t)=-{\mathfrak {M}}^{2}(t)\sum _{j=1}^{k}\mathrm {d}\mu _{(j)}(t)+{\mathfrak {M}}^{3}(t)\sum _{i,j=1}^{k}\mathrm {d}\left[ \mu _{(i)},\mu _{(j)}\right] (t). \end{aligned}$$

The above two equations imply

$$\begin{aligned} \begin{aligned} \mathrm {d}{\widetilde{\mu }}_{i}(t)&={\mathfrak {M}}(t)\mathrm {d}\mu _{(i)}(t)+{\mathfrak {M}}^{2}(t){\widetilde{\mu }}_{i}(t)\sum _{j,\nu =1}^{k}\mathrm {d}\left[ \mu _{(j)},\mu _{(\nu )}\right] (t)\\&\quad -{\mathfrak {M}}(t){\widetilde{\mu }}_{i}(t)\sum _{j=1}^{k}\mathrm {d}\mu _{(j)}(t)-{\mathfrak {M}}^{2}(t)\sum _{j=1}^{k}\mathrm {d}\left[ \mu _{(i)},\mu _{(j)}\right] (t), \end{aligned} \end{aligned}$$
(15)

for all \(i\in \{1,\ldots ,k\}\). Then Lemma 3 and (15) suggest

$$\begin{aligned} \begin{aligned} \mathrm {d}{\widetilde{\mu }}_{i}(t)&=\frac{{\mathfrak {M}}(t)}{N_{i}(\mu (t))}\sum _{j=1}^{d}{\mathbf {1}}_{\{\mu _{j}(t)=\mu _{(i)}(t)\}}\mathrm {d}\mu _{j}(t)+{\mathfrak {M}}^{2}(t){\widetilde{\mu }}_{i}(t)\sum _{j,\nu =1}^{k}\mathrm {d}\left[ \mu _{(j)},\mu _{(\nu )}\right] (t)\\&\quad -{\mathfrak {M}}(t){\widetilde{\mu }}_{i}(t)\sum _{j=1}^{k}\sum _{\nu =1}^{d}\frac{{\mathbf {1}}_{\{\mu _{\nu }(t)=\mu _{(j)}(t)\}}}{N_{j}(\mu (t))}\mathrm {d}\mu _{\nu }(t)-{\mathfrak {M}}^{2}(t)\sum _{j=1}^{k}\mathrm {d}\left[ \mu _{(i)},\mu _{(j)}\right] (t)\\&\quad +\frac{{\mathfrak {M}}(t)}{N_{i}(\mu (t))}\sum _{j=i+1}^{d}\mathrm {d}\varLambda ^{(i,j)}(t)-{\widetilde{\mu }}_{i}(t)\sum _{j=1}^{k}\frac{{\mathfrak {M}}(t)}{N_{j}(\mu (t))}\sum _{\nu =j+1}^{d}\mathrm {d}\varLambda ^{(j,\nu )}(t)\\&\quad -\frac{{\mathfrak {M}}(t)}{N_{i}(\mu (t))}\sum _{j=1}^{i-1}\mathrm {d}\varLambda ^{(j,i)}(t)-{\widetilde{\mu }}_{i}(t)\sum _{j=1}^{k}\frac{{\mathfrak {M}}(t)}{N_{j}(\mu (t))}\sum _{\nu =1}^{j-1}\mathrm {d}\varLambda ^{(\nu ,j)}(t), \end{aligned} \end{aligned}$$

for all \(i\in \{1,\ldots ,k\}\). The above equation, together with (6) and some computation, imply (13) and (14). Moreover, since both \(\varGamma (\cdot )\) and \(L(\cdot )\) are of finite variation on [0, T], for all \(T\ge 0\), so is \({\widetilde{\varGamma }}(\cdot )\). \(\square \)

Remark 3

The process \(L(\cdot )\) given by (14) consists of all local time components between stocks that may leak out of and stocks that may be included into the portfolio after rebalancing. If G is Lyapunov for \({\widetilde{\mu }}(\cdot )\) by Definition 3, \(L(\cdot )\) is positive and increasing from 0. In this case, \(L(\cdot )\) measures the contribution to \(\varGamma (\cdot )\) from rebalancing the portfolio by replacing stocks at the same prices.

However, when rebalancing the portfolio in the real market, one can only sell the stocks leaking out of the portfolio at lower prices relative to the purchase prices of new stocks. Therefore, \(L(\cdot )\) should be subtracted from \(\varGamma (\cdot )\) and hence the wealth of the target trading strategy, as \(\varGamma (\cdot )\) contributes to the wealth through the master formulas (7) or (9). This observation also indicates a method to estimate the leakage, as we will see in the following. \(\square \)

The financial meaning of \(L(\cdot )\) suggested in Remark 3 becomes more clear under some further assumptions on the regular function G and the market \({\mathcal {M}}\), as shown in the following corollaries.

Corollary 1

For a given regular function G for \({\widetilde{\mu }}(\cdot )\), if its corresponding measurable function DG is symmetric, i.e., if

$$\begin{aligned} D_{i}G(x)=D_{j}G(x),\quad x\in \varDelta ^{k}_{+}, \end{aligned}$$
(16)

for all \(i,j\in \{1,\ldots ,k\}\) with \(x_{i}=x_{j}\), then the finite variation process \({\widetilde{\varGamma }}(\cdot )\) given by (13) simplifies to

$$\begin{aligned} \begin{aligned} {\widetilde{\varGamma }}(\cdot )&=G({\widetilde{\mu }}(0))+\int _{0}^{\cdot }\sum _{i=1}^{k}\sum _{j=1}^{d}\frac{\vartheta _{i}(t){\mathfrak {M}}(t)}{N_{i}(\mu (t))}{\mathbf {1}}_{\{\mu _{j}(t)=\mu _{(i)}(t)\}}\mathrm {d}\mu _{j}(t)\\&\quad -G({\widetilde{\mu }}(\cdot ))-\int _{0}^{\cdot }\sum _{i,j=1}^{k}\sum _{\nu =1}^{d}\frac{\vartheta _{i}(t){\widetilde{\mu }}_{i}(t){\mathfrak {M}}(t)}{N_{j}(\mu (t))}{\mathbf {1}}_{\{\mu _{\nu }(t)=\mu _{(j)}(t)\}}\mathrm {d}\mu _{\nu }(t)\\&\quad +\int _{0}^{\cdot }\sum _{i,j,\nu =1}^{k}{\mathfrak {M}}^{2}(t)\vartheta _{i}(t){\widetilde{\mu }}_{i}(t)\mathrm {d}\left[ \mu _{(j)},\mu _{(\nu )}\right] (t)\\&\quad -\int _{0}^{\cdot }\sum _{i,j=1}^{k}{\mathfrak {M}}^{2}(t)\vartheta _{i}(t)\mathrm {d}\left[ \mu _{(i)},\mu _{(j)}\right] (t). \end{aligned} \end{aligned}$$

Proof

Since the measurable function DG is symmetric in the second argument, by (16) we have

$$\begin{aligned} \frac{\vartheta _{i}(t)}{N_{i}(\mu (t))}\mathrm {d}\varLambda ^{(i,j)}(t)=\frac{\vartheta _{j}(t)}{N_{j}(\mu (t))}\mathrm {d}\varLambda ^{(j,i)}(t),\quad i,j\in \{1,\ldots ,k\},~i\ne j, \end{aligned}$$

which implies

$$\begin{aligned} \int _{0}^{\cdot }\sum _{i=1}^{k}\sum _{j=i+1}^{k}\frac{\vartheta _{i}(t){\mathfrak {M}}(t)}{N_{i}(\mu (t))}\mathrm {d}\varLambda ^{(i,j)}(t)=\int _{0}^{\cdot }\sum _{i=1}^{k}\sum _{j=1}^{i-1}\frac{\vartheta _{i}(t){\mathfrak {M}}(t)}{N_{i}(\mu (t))}\mathrm {d}\varLambda ^{(j,i)}(t) \end{aligned}$$
(17)

and

$$\begin{aligned} \int _{0}^{\cdot }\sum _{i,j=1}^{k}\sum _{\nu =1}^{j-1}\frac{\vartheta _{i}(t){\widetilde{\mu }}_{i}(t){\mathfrak {M}}(t)}{N_{j}(\mu (t))}\mathrm {d}\varLambda ^{(\nu ,j)}(t)=\int _{0}^{\cdot }\sum _{i,j=1}^{k}\sum _{\nu =j+1}^{k}\frac{\vartheta _{i}(t){\widetilde{\mu }}_{i}(t){\mathfrak {M}}(t)}{N_{j}(\mu (t))}\mathrm {d}\varLambda ^{(j,\nu )}(t). \end{aligned}$$
(18)

Then combining (13), (17), and (18) yields the desired result. \(\square \)

Recall the random permutation \(p_{t}\) from (1).

Corollary 2

Let G be a regular function for \({\widetilde{\mu }}(\cdot )\) with the corresponding measurable function DG symmetric as by (16). Assume that the market weights process \(\mu (\cdot )\) is pathwise mutually non-degenerate as defined in Definition 1. Then the finite-variation process \(\varGamma (\cdot )\) given by (6) now has the decomposition

$$\begin{aligned} \varGamma (\cdot )={\widetilde{\varGamma }}(\cdot )+L(\cdot ), \end{aligned}$$

where

$$\begin{aligned} \begin{aligned} {\widetilde{\varGamma }}(\cdot )&=G({\widetilde{\mu }}(0))-G({\widetilde{\mu }}(\cdot ))+\int _{0}^{\cdot }\sum _{i=1}^{k}\sum _{j=1}^{d}\vartheta _{i}(t){\mathfrak {M}}(t){\mathbf {1}}_{\{j=p_{t}(i)\}}\mathrm {d}\mu _{j}(t)\\&\quad -\int _{0}^{\cdot }\sum _{i,j=1}^{k}\sum _{\nu =1}^{d}\vartheta _{i}(t){\widetilde{\mu }}_{i}(t){\mathfrak {M}}(t){\mathbf {1}}_{\{\nu =p_{t}(j)\}}\mathrm {d}\mu _{\nu }(t)\\&\quad -\int _{0}^{\cdot }\sum _{i,j=1}^{k}{\mathfrak {M}}^{2}(t)\vartheta _{i}(t)\mathrm {d}\left[ \mu _{(i)},\mu _{(j)}\right] (t)\\&\quad +\int _{0}^{\cdot }\sum _{i,j,\nu =1}^{k}{\mathfrak {M}}^{2}(t)\vartheta _{i}(t){\widetilde{\mu }}_{i}(t)\mathrm {d}\left[ \mu _{(j)},\mu _{(\nu )}\right] (t) \end{aligned} \end{aligned}$$

and

$$\begin{aligned} L(\cdot )=\frac{1}{2}\int _{0}^{\cdot }\left( \vartheta _{k}(t)-\sum _{j=1}^{k}\vartheta _{j}(t){\widetilde{\mu }}_{j}(t)\right) {\mathfrak {M}}(t)\mathrm {d}\varLambda ^{(k,k+1)}(t) \end{aligned}$$

are both of finite variation on [0, T], for all \(T\ge 0\).

Proof

By Proposition 4.1.11 in Fernholz (2002), when \(\mu (\cdot )\) is pathwise mutually non-degenerate, (12) simplifies to

$$\begin{aligned} \begin{aligned} \mu _{(i)}(\cdot )&=\mu _{(i)}(0)+\int _{0}^{\cdot }\sum _{j=1}^{d}{\varvec{1}}_{\left\{ j=p_{t}(i)\right\} } \mathrm {d}\mu _{j}(t)+\frac{1}{2}\int _{0}^{\cdot }\mathrm {d}\varLambda ^{(i,i+1)}(t)\\&\quad -\frac{1}{2}\int _{0}^{\cdot }\mathrm {d}\varLambda ^{(i-1,i)}(t), \end{aligned} \end{aligned}$$
(19)

for all \(i\in \{1,\ldots ,d\}\). Then, thanks to (19), a similar reasoning as in the proof of Proposition 1 and Corollary 1 yields the desired result. \(\square \)

3.1 Leakage of multiplicatively generated trading strategies

For a given regular function G for \({\widetilde{\mu }}(\cdot )\), the wealth process \(V^{\psi }(\cdot )\) of the target trading strategy \(\psi (\cdot )\) with respect to \({\widetilde{\mu }}(\cdot )\) generated multiplicatively by G can now be expressed through the master formula introduced in the following theorem.

Theorem 1

Let \(\psi (\cdot )\) be the target trading strategy with respect to \({\widetilde{\mu }}(\cdot )\) generated multiplicatively from a regular function \(G:{\mathbb {W}}^{k}_{+}\rightarrow (0,\infty )\) for \({\widetilde{\mu }}(\cdot )\) with \(1/G({\widetilde{\mu }}(\cdot ))\) locally bounded. Then the wealth process \(V^{\psi }(\cdot )\) of \(\psi (\cdot )\) relative to the market \({\mathcal {M}}^{k}\) is given by the master formula

$$\begin{aligned} \log V^{\psi }(\cdot )=\log G({\widetilde{\mu }}(\cdot ))+\int _{0}^{\cdot }\frac{\mathrm {d}{\widetilde{\varGamma }}(t)}{G({\widetilde{\mu }}(t))}+\int _{0}^{\cdot }\frac{\mathrm {d}L(t)}{G({\widetilde{\mu }}(t))} \end{aligned}$$
(20)

with \({\widetilde{\varGamma }}(\cdot )\) and \(L(\cdot )\) given by (13) and (14), respectively.

Proof

Since \(\psi (\cdot )\) is generated multiplicatively by G, the master formula (7) implies

$$\begin{aligned} \log V^{\psi }(\cdot )=\log G({\widetilde{\mu }}(\cdot ))+\int _{0}^{\cdot }\frac{\mathrm {d}\varGamma (t)}{G({\widetilde{\mu }}(t))}, \end{aligned}$$

which, together with Proposition 1, yield the desired result. \(\square \)

The leakage \(L^{\psi }(\cdot )\) of the trading strategy \(\psi (\cdot )\) is then defined as the negative of the last term of (20), i.e.,

$$\begin{aligned} L^{\psi }(\cdot )=-\int _{0}^{\cdot }\frac{\mathrm {d}L(t)}{G({\widetilde{\mu }}(t))} \end{aligned}$$
(21)

with \(L(\cdot )\) given by (14). It measures the cumulative lost in the (logarithmic) relative wealth \(V^{\psi }(\cdot )\) due to renewing the portfolio constituents to stop investing in the smallest stocks, which are delisted from (“leaks” out of) the portfolio subsequently. This explanation indicates the method to estimate the leakage \(L^{\psi }(\cdot )\), as shown in the next section.

Remark 4

Our computation for the leakage here is different from, for example, Example 4.2 in Fernholz (2001). The method introduced in Example 4.2 in Fernholz (2001) may lead to trading strategies which have positive portfolio weights for stocks of ranks larger than k for some ranked portfolio generating functions \({\varvec{G}}\) of \({\overline{\mu }}(\cdot )\). To see this, consider a ranked portfolio generating function

$$\begin{aligned} {\varvec{G}}({\overline{x}})=1-\frac{1}{2}\sum _{j=1}^{k}x_{(j)}^{2},\quad {\overline{x}}\in {\mathbb {W}}^{d}_{+}. \end{aligned}$$

Let the trading strategy with respective to \({\overline{\mu }}(\cdot )\) be generated multiplicatively in the same manner as in Example 4.2 in Fernholz (2001) by a portfolio generating function \({\mathcal {G}}\) of \(\mu (\cdot )\) with \({\mathcal {G}}(x)={\varvec{G}}({\mathfrak {R}}(x))\), for all \(x\in \varDelta ^{d}_{+}\). Recall the random permutation \(p_{t}\) from (1). Then, this strategy has portfolio weights

$$\begin{aligned} \pi _{p_{t}(i)}(t)=\frac{1+\frac{1}{2}\sum _{j=1}^{k}\mu _{(j)}^{2}(t)}{1-\frac{1}{2}\sum _{j=1}^{k}\mu _{(j)}^{2}(t)}\mu _{(i)}(t)\ge 0,\quad i\in \{k+1,\ldots ,d\},~t\ge 0, \end{aligned}$$

where the equality holds if and only if \(\mu _{(i)}(t)=0\), which is in general not the case. To avoid this problem, instead of using \({\varvec{G}}\) of \({\overline{\mu }}(\cdot )\) as the portfolio generating function, we use G of \({\widetilde{\mu }}(\cdot )\) to generate target trading strategies with respect to \({\widetilde{\mu }}(\cdot )\). \(\square \)

3.2 Leakage of additively generated trading strategies

For a given regular function G for \({\widetilde{\mu }}(\cdot )\), the wealth process \(V^{\varphi }(\cdot )\) of the target trading strategy \(\varphi (\cdot )\) with respect to \({\widetilde{\mu }}(\cdot )\) generated additively by G can now be expressed through the master formula introduced in the following theorem.

Theorem 2

Let \(\varphi (\cdot )\) be the target trading strategy with respect to \({\widetilde{\mu }}(\cdot )\) generated additively by a regular function \(G:{\mathbb {W}}^{k}_{+}\rightarrow {\mathbb {R}}\) for \({\widetilde{\mu }}(\cdot )\). Then the wealth process \(V^{\varphi }(\cdot )\) of \(\varphi (\cdot )\) relative to the market \({\mathcal {M}}^{k}\) is given by the master formula

$$\begin{aligned} V^{\varphi }(\cdot )=G({\widetilde{\mu }}(\cdot ))+{\widetilde{\varGamma }}(\cdot )+L(\cdot ) \end{aligned}$$
(22)

with \({\widetilde{\varGamma }}(\cdot )\) and \(L(\cdot )\) given by (13) and (14), respectively.

Proof

As \(\varphi (\cdot )\) is generated additively by G, the master formula (9) and Proposition 1 yield the desired result. \(\square \)

Similar to (21), the negative of the last term of (22) is interpreted as the leakage \(L^{\varphi }(\cdot )\) of \(\varphi (\cdot )\), i.e.,

$$\begin{aligned} L^{\varphi }(\cdot )=-L(\cdot ). \end{aligned}$$
(23)

Once again, \(L^{\varphi }(\cdot )\) measures the cumulative lost in the relative wealth \(V^{\varphi }(\cdot )\) from investing in the smallest stocks that should be delisted from the portfolio later.

4 Estimation of the leakage

While the computation of leakage involves the dynamic of a local time in continuous time, in practice, inspired by the financial meaning of leakage, we are able to estimate it directly without calculating the local time.

To this end, we consider a short time period from time 0 to time 1. Assume no trade is made between time 0 and time 1. In particular, let \(({\mathfrak {p}}_{1},\ldots ,{\mathfrak {p}}_{d})\) be a permutation of \((1,\ldots ,d)\) such that

$$\begin{aligned} \mu _{{\mathfrak {p}}_{i}}(0)=\mu _{(i)}(0),\quad i\in \{1,\ldots ,d\}. \end{aligned}$$
(24)

Then the market weights process \({\widehat{\mu }}(\cdot )=({\widehat{\mu }}_{{\mathfrak {p}}_{1}}(\cdot ),\ldots ,{\widehat{\mu }}_{{\mathfrak {p}}_{k}}(\cdot ))'\) of the market that consists of the top k stocks at time 0 has components

$$\begin{aligned} {\widehat{\mu }}_{{\mathfrak {p}}_{i}}(\cdot )=\frac{\mu _{{\mathfrak {p}}_{i}}(\cdot )}{\sum _{j=1}^{k}\mu _{{\mathfrak {p}}_{j}}(\cdot )},\quad i\in \{1,\ldots ,k\}. \end{aligned}$$
(25)

Note that

$$\begin{aligned} {\widehat{\mu }}_{{\mathfrak {p}}_{i}}(0)={\widetilde{\mu }}_{i}(0)={\mathfrak {M}}(0)\mu _{{\mathfrak {p}}_{i}}(0),\quad i\in \{1,\ldots ,k\}, \end{aligned}$$
(26)

by (2), (24), and (25).

4.1 Estimating the leakage of a multiplicatively generated target trading strategy

For a target trading strategy \(\psi (\cdot )\) generated multiplicatively by a regular function G for \({\widetilde{\mu }}(\cdot )\), we estimate the leakage \(L^{\psi }(\cdot )\) at time 1 as in the following.

Let us first consider the implemented trading strategy \({\widehat{\psi }}(\cdot )\) which is generated multiplicatively by G for \({\widehat{\mu }}(\cdot )\). Then, on the one hand, by Lemma 1, we have

$$\begin{aligned} \log {\widehat{V}}^{{\widehat{\psi }}}(1)\approx \log {\widehat{V}}^{{\widehat{\psi }}}(0)+\log G({\widehat{\mu }}(1))-\log G({\widehat{\mu }}(0))+\frac{{\widehat{\varGamma }}(1)-{\widehat{\varGamma }}(0)}{G({\widehat{\mu }}(0))}, \end{aligned}$$
(27)

where

$$\begin{aligned} {\widehat{V}}^{{\widehat{\psi }}}(\cdot )=\sum _{j=1}^{k}{\widehat{\psi }}_{j}(\cdot ){\widehat{\mu }}_{{\mathfrak {p}}_{j}}(\cdot ) \end{aligned}$$

and

$$\begin{aligned} \mathrm {d}{\widehat{\varGamma }}(0)=-\mathrm {d}G({\widehat{\mu }}(0))+\sum _{j=1}^{k}D_{i}G({\widehat{\mu }}(0))\mathrm {d}{\widehat{\mu }}_{{\mathfrak {p}}_{j}}(0). \end{aligned}$$

On the other hand, since \({\widehat{\psi }}(0)=\psi (0)\) by (26), if we assume that \({\widetilde{\mu }}(1)={\widehat{\mu }}(1)\), Lemma 1 also implies

$$\begin{aligned} \log V^{\psi }(1)\approx \log {\widehat{V}}^{{\widehat{\psi }}}(0)+\log G({\widetilde{\mu }}(1))-\log G({\widehat{\mu }}(0))+\frac{{\widehat{\varGamma }}(1)-{\widehat{\varGamma }}(0)}{G({\widehat{\mu }}(0))}. \end{aligned}$$
(28)

Then, in the case \({\widetilde{\mu }}(1)\ne {\widehat{\mu }}(1)\), Theorem 1 suggests that the change in the leakage \(L^{\psi }(\cdot )\) from time 0 to time 1 should be estimated as a correction term in the wealth of \(\psi (\cdot )\) due to renewing the constituent list, such that

$$\begin{aligned} \log V^{\psi }(1)+L^{\psi }(1)-L^{\psi }(0)\approx \log {\widehat{V}}^{{\widehat{\psi }}}(1). \end{aligned}$$
(29)

Therefore, combining (27) to (29) yields

$$\begin{aligned} L^{\psi }(1)-L^{\psi }(0)\approx \log G({\widehat{\mu }}(1))-\log G({\widetilde{\mu }}(1)). \end{aligned}$$
(30)

Over an investment horizon [0, T] with \(T>0\), the leakage \(L^{\psi }(T)\) is estimated as the sum of expressions of the form (30) for all trading days, on which the constituent list of \(\psi (\cdot )\) changes, in [0, T]. Accordingly, \(L^{\psi }(\cdot )\) measures the cumulative net loss in the (logarithmic) relative wealth \(V^{\psi }(\cdot )\) from renewing the portfolio constituents.

4.2 Estimating the leakage of an additively generated target trading strategy

The same technique above can be applied to the estimation of the leakage of a target trading strategy generated additively. For a target trading strategy \(\varphi (\cdot )\) generated additively by a regular function G for \({\widetilde{\mu }}(\cdot )\), we estimate the change in the leakage \(L^{\varphi }(\cdot )\) at time 1 by

$$\begin{aligned} L^{\varphi }(1)-L^{\varphi }(0)\approx G({\widehat{\mu }}(1))-G({\widetilde{\mu }}(1)). \end{aligned}$$
(31)

Hence, the leakage \(L^{\varphi }(T)\) over an investment horizon [0, T] with \(T>0\) is estimated by summing expressions of the form (31) for all trading days, on which the constituent list of \(\varphi (\cdot )\) changes, in [0, T]. Once again, the leakage \(L^{\varphi }(\cdot )\) measures the cumulative net loss in the relative wealth \(V^{\varphi }(\cdot )\) from renewing the portfolio constituents.

5 Practical considerations for backtesting and estimating the leakage

In this section, we introduce the method of backtesting the performance and estimating the leakage of a target trading strategy from given market capitalisations \(S(\cdot )\) and daily returns \(r(\cdot )\) of all stocks. The empirical analysis follows in the next section.

We consider a frictionless market \({\mathcal {M}}^{k}\), which consists of the largest k stocks in terms of market capitalisations among all stocks traded. The portfolio is rebalanced and the constituent list of stocks in \({\mathcal {M}}^{k}\) is renewed simultaneously with a daily frequency. Note that renewing the constituent list implies trading to replace the old top k stocks with the new top k stocks.

Assume that there are in total N trading days (exclusive of the start day). For \(l\in \{1,\ldots ,N\}\), let \(t_{l}\) denote the end of trading day l, at which the end of day market capitalizations and daily returns for trading day l are available and the portfolio is rebalanced. In the following, we fix \(l\in \{1,\ldots ,N\}\) and consider the wealth dynamic and leakage of a target trading strategy \(\phi (\cdot )\) generated either multiplicatively or additively by a regular function G for \({\widetilde{\mu }}(\cdot )\) at time \(t_{l}\). In particular, let \(\{{\mathfrak {p}}_{1},\ldots ,{\mathfrak {p}}_{k}\}\) and \(\{1,\ldots ,k\}\) be the indices of stocks in terms of names in the market \({\mathcal {M}}^{k}\) after renewing at time \(t_{l-1}\) and time \(t_{l}\), respectively, such that

$$\begin{aligned} S_{{\mathfrak {p}}_{i}}(t_{l-1})\ge S_{{\mathfrak {p}}_{j}}(t_{l-1})\quad \text {and}\quad S_{i}(t_{l})\ge S_{j}(t_{l}),\quad i,j\in \{1,\ldots ,k\},~i\le j. \end{aligned}$$

At time \(t_{l}\), the market capitalisations \(S(t_{l})\) and daily returns \(r(t_{l})\) of all stocks at the end of the trading day l are known. The market weights \({\widehat{\mu }}(t_{l})=({\widehat{\mu }}_{{\mathfrak {p}}_{1}}(t_{l}),\ldots ,{\widehat{\mu }}_{{\mathfrak {p}}_{k}}(t_{l}))'\) and \({\widetilde{\mu }}(t_{l})=({\widetilde{\mu }}_{1}(t_{l}),\ldots ,{\widetilde{\mu }}_{k}(t_{l}))'\) are then computed by

$$\begin{aligned} {\widehat{\mu }}_{{\mathfrak {p}}_{i}}(t_{l})=\frac{S_{{\mathfrak {p}}_{i}}(t_{l-1})\left( 1+r_{{\mathfrak {p}}_{i}}(t_{l})\right) }{\sum _{j=1}^{k}S_{{\mathfrak {p}}_{j}}(t_{l-1})\left( 1+r_{{\mathfrak {p}}_{j}}(t_{l})\right) }\quad \text {and}\quad {\widetilde{\mu }}_{i}(t_{l})=\frac{S_{i}(t_{l})}{\sum _{j=1}^{k}S_{j}(t_{l})}, \end{aligned}$$
(32)

respectively, for all \(i\in \{1,\ldots ,k\}\). Given \(\phi (t_{l-1})=(\phi _{{\mathfrak {p}}_{1}}(t_{l-1}),\ldots ,\phi _{{\mathfrak {p}}_{k}}(t_{l-1}))'\), the wealth of \(\phi (\cdot )\) relative to the market \({\mathcal {M}}^{k}\) at time \(t_{l}\) is computed by

$$\begin{aligned} V^{\phi }(t_{l})=\frac{\sum _{j=1}^{k}\phi _{{\mathfrak {p}}_{j}}(t_{l-1})S_{{\mathfrak {p}}_{j}}(t_{l-1})\left( 1+r_{{\mathfrak {p}}_{j}}(t_{l})\right) }{\sum _{j=1}^{k}S_{j}(t_{l})}. \end{aligned}$$
(33)

5.1 Multiplicative generation

If \(\phi (\cdot )\) is generated multiplicatively, then by (30), we estimate the leakage \(L^{\phi }(t_{l})\) by

$$\begin{aligned} L^{\phi }(t_{l})=L^{\phi }(t_{l-1})+\log G({\widehat{\mu }}(t_{l}))-\log G({\widetilde{\mu }}(t_{l})) \end{aligned}$$

with \({\widehat{\mu }}(t_{l})\) and \({\widetilde{\mu }}(t_{l})\) given by (32).

According to (8), we rebalance the portfolio at time \(t_{l}\) to match the target portfolio weights \(\pi (t_{l})=(\pi _{1}(t_{l}),\ldots ,\pi _{k}(t_{l}))'\), which has components

$$\begin{aligned} \pi _{i}(t_{l})=\frac{{\widetilde{\mu }}_{i}(t_{l})}{G({\widetilde{\mu }}(t_{l}))}\left( \vartheta _{i}(t_{l})+G({\widetilde{\mu }}(t_{l}))-\sum _{j=1}^{k}\vartheta _{j}(t_{l}){\widetilde{\mu }}_{j}(t_{l})\right) , \end{aligned}$$
(34)

for all \(i\in \{1,\ldots ,k\}\). As a result, we compute \(\phi (t_{l})=(\phi _{1}(t_{l}),\ldots ,\phi _{k}(t_{l}))'\) by

$$\begin{aligned} \phi _{i}(t_{l})=\frac{\pi _{i}(t_{l})\sum _{j=1}^{k}\phi _{{\mathfrak {p}}_{j}}(t_{l-1})S_{{\mathfrak {p}}_{j}}(t_{l-1})\left( 1+r_{{\mathfrak {p}}_{j}}(t_{l})\right) }{S_{i}(t_{l})},\quad i\in \{1,\ldots ,k\}. \end{aligned}$$
(35)

5.2 Additive generation

If \(\phi (\cdot )\) is generated additively, then the leakage \(L^{\phi }(t_{l})\) is estimated according to (31) by

$$\begin{aligned} L^{\phi }(t_{l})=L^{\phi }(t_{l-1})+G({\widehat{\mu }}(t_{l}))-G({\widetilde{\mu }}(t_{l})) \end{aligned}$$

with \({\widehat{\mu }}(t_{l})\) and \({\widetilde{\mu }}(t_{l})\) given by (32).

Similarly, as suggested by (10), the portfolio is rebalanced at time \(t_{l}\) to match the target portfolio weights \(\pi (t_{l})=(\pi _{1}(t_{l}),\ldots ,\pi _{k}(t_{l}))'\) with components

$$\begin{aligned} \pi _{i}(t_{l})=\frac{{\widetilde{\mu }}_{i}(t_{l})}{V^{\phi }(t_{l})}\left( \vartheta _{i}(t_{l})+V^{\phi }(t_{l})-\sum _{j=1}^{k}\vartheta _{j}(t_{l}){\widetilde{\mu }}_{j}(t_{l})\right) ,\quad i\in \{1,\ldots ,k\}, \end{aligned}$$
(36)

with \(V^{\phi }(t_{l})\) given by (33). Therefore, \(\phi (t_{l})\) is computed by (35) with \(\pi (t_{l})\) given by (36).

Fig. 1
figure 1

The logarithm of the wealth \(V^{\psi }(\cdot )\) relative to the market \({\mathcal {M}}^{k}\) and the corresponding estimated leakage \(L^{\psi }(\cdot )\) in absolute value under different constituent list sizes k

Fig. 2
figure 2

The wealth \(V^{\varphi }(\cdot )\) relative to the market \({\mathcal {M}}^{k}\) and the corresponding estimated leakage \(L^{\varphi }(\cdot )\) in absolute value under different constituent list sizes k

6 Example and empirical results

In this section, we study an example empirically and estimate the leakage of target trading strategies involved with portfolio sizes \(k=100,~300,~500\), respectively. The data used for analysis is downloaded from the CRSP US Stock Database.Footnote 1 For the sake of a better interpretability, we normalise \(G({\widetilde{\mu }}(0))=1\) by replacing G with \(G/G({\widetilde{\mu }}(0))\).

The entropy-weighted portfolio is generated by the portfolio generating function

$$\begin{aligned} G(x)=-\sum _{j=1}^{k}x_{j}\log x_{j},\quad x\in \varDelta ^{k}_{+}. \end{aligned}$$
(37)

Let \(\psi (\cdot )\) be the target trading strategy generated multiplicatively by (37). The logarithm of the relative wealth processes \(V^{\psi }(\cdot )\) and the corresponding estimated leakage \(L^{\psi }(\cdot )\) in absolute value under different constituent list sizes k are shown in Fig. 1. The portfolio with a smaller k performs worse and the corresponding leakage is larger in absolute value.

For the target trading strategy \(\varphi (\cdot )\) generated additively by (37), its relative wealth processes \(V^{\varphi }(\cdot )\) and the corresponding estimated leakage \(L^{\varphi }(\cdot )\) in absolute value under different constituent list sizes k are shown in Fig. 2.