On Robustness of Double Linear Policy with Time-Varying Weights

Extracted source text · arXiv 2303.10806

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%2345678901234567890123456789012345678901234567890123456789012345678901234567890
%        1         2         3         4         5         6         7         8
\pdfminorversion=4     
\documentclass[letterpaper, 10 pt, journal, twoside]{IEEEtran}  % Comment this line out
% if you need a4paper
%\documentclass[a4paper, 10pt, conference]{ieeeconf}      % Use this line for a4
% paper

\IEEEoverridecommandlockouts                              % This command is only
% needed if you want to
% use the \thanks command

%\overrideIEEEmargins
% See the \addtolength command later in the file to balance the column lengths
% on the last page of the document
% \usepackage[english]{babel}
\usepackage{amsmath, amssymb,amsthm} % assumes amsmath package installed
\usepackage{bm}
\usepackage{multirow}
\usepackage{makecell}

\usepackage[bb=dsserif]{mathalpha}

\newtheorem{theorem}{Theorem}[section]
\renewcommand\thetheorem{\arabic{section}.\arabic{theorem}}
\newtheorem{definition}[theorem]{Definition}
\newtheorem{corollary}[theorem]{Corollary}
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{example}[theorem]{Example}
\newtheorem{remark}[theorem]{Remark}
\newtheorem{prop}[theorem]{Proposition}
% \newtheorem*{mydef}{Definition}
% \newtheorem*{remark}{Remark}


%\usepackage{verbatim}
 %\usepackage{graphics} % for pdf, bitmapped graphics files
%\usepackage{mathptmx} % assumes new font selection scheme installed
%\usepackage{times} % assumes new font selection scheme installed


%\usepackage{graphics} % support the \includegraphics command and options
\usepackage{graphicx} % support the \includegraphics command and options
\usepackage{epsfig} % for postscript graphics files% \usepackage{epstopdf}
\usepackage{epstopdf}
% \usepackage{mathtools}
% \DeclarePairedDelimiter\ceil{\lceil}{\rceil}
% \DeclarePairedDelimiter\floor{\lfloor}{\rfloor}
\usepackage{cite}
\usepackage[ruled,vlined]{algorithm2e}
\usepackage{bbm}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows,positioning,calc,chains}

\newcommand\Bbbbone{%
  \ifdefined\mathbbb%
    \mathbbb{1}%
  \else%
    \boldsymbol{\mathbb{1}}%
  \fi}


\makeatletter
\DeclareRobustCommand{\rvdots}{%
	\vbox{
		\baselineskip4\p@\lineskiplimit\z@
		\kern-\p@
		\hbox{.}\hbox{.}\hbox{.}
}}
\makeatother


\usepackage{lipsum}
\makeatletter
\def\footnoterule{\relax%
	\kern-5pt
	\hbox to \columnwidth{\hfill\vrule width .9\columnwidth height 0.4pt\hfill}
	\kern4.6pt}
\makeatother


\DeclareMathOperator*{\cart}{\times}

\newcommand{\tolstrut}{%
	\vrule height\dimexpr\fontcharht\font`\A+.2ex\relax width 0pt\relax
}
%\usepackage[hidelinks]{hyperref}
\usepackage{color,hyperref}
\definecolor{darkblue}{rgb}{0.0,0.0,0.6}
\hypersetup{colorlinks,breaklinks,linkcolor=darkblue,urlcolor=darkblue,anchorcolor=darkblue,citecolor=darkblue}
\def \Re {\text{Re}}

\makeatother
\title{On Robustness of Double Linear Policy\\ with Time-Varying Weights}



\author{\large Xin-Yu Wang$^{*}$  and Chung-Han Hsieh${}^{**}$, \textit{Member, IEEE}% <-this % stops a space
	\thanks{This paper is partially supported by the Ministry of Science and Technology~(MOST), Taiwan, R.O.C. under Grant:  MOST-111-2221-E-007-124-.\hskip -10pt ${}^*$Xin-Yu Wang is a graduate student with the Department of Quantitative Finance, National Tsing Hua University, Hsinchu 300044, Taiwan R.O.C. E-mail: \href{mailto: xinyuwang@gapp.nthu.edu.tw}{xinyuwang@gapp.nthu.edu.tw}. } 
	\thanks{\hskip -10pt ${}^{**}$Chung-Han Hsieh is with the Department of Quantitative Finance, National Tsing Hua University, Hsinchu 300044, Taiwan R.O.C. E-mail: \href{mailto: ch.hsieh@mx.nthu.edu.tw}{ch.hsieh@mx.nthu.edu.tw}.}
}


\begin{document}
	
	
	
	\maketitle
	\thispagestyle{empty}
	\pagestyle{empty}
	
%	\parindent = 0pt
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
	
\begin{abstract} 
In this paper, we extend the existing double linear policy by incorporating time-varying weights instead of constant weights and study a certain robustness property, called robust positive expectation (RPE),  in a discrete-time setting. 
 We prove that the RPE property holds by employing a novel elementary symmetric polynomials characterization approach and derive an explicit expression for both the expected cumulative gain-loss function and its variance.
To validate our theory, we perform extensive Monte Carlo simulations using various weighting functions. 
Furthermore, we demonstrate how this policy can be effectively incorporated with standard technical analysis techniques, using the moving average as a trading signal.
\end{abstract}
	
\vspace{3mm}
\begin{IEEEkeywords}
 Stochastic Systems, Finance, Robustness, Time-Varying Parameter Systems, Positive Systems. 
\end{IEEEkeywords}
	
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

% \medskip
\section{Introduction}\label{section: introduction}
The Robust Positive Expectation (RPE) is a property that ensures a trading policy has a positive expected profit robustly, and it is closely related to the stochastic positivity of a dynamical system in the control area.
Some early work related to robustness issues in financial systems can be found in \cite{dokuchaev2002dynamic}.
Later, a strategy called Simultaneous Long-Short (SLS) was proposed; see~\cite{barmish2011arbitrage,barmish2015new}, and shown to guarantee the RPE in markets with asset prices governed by geometric Brownian motion (GBM).


Later, several extensions were proposed in the literature, including generalization for Merton’s diffusion model in~\cite{baumann2016stock}, GBM model with time-varying parameters in~\cite{primbs2017robustness}, and any linear stochastic differential equation (SDE) in~\cite{baumann2019positive}. 
Additionally, the SLS strategy was extended to the proportional-integral (PI) controller in \cite{malekpour2018generalization}, to the latency trading in \cite{malekpour2016stock},  
and coupled SLS strategy on pair trading for two correlated assets was studied in \cite{deshpande2018generalization, deshpande2020simultaneous}.  
In \cite{maroni2019robust}, a robust design strategy for
stock trading via feedback control is proposed.
\cite{o2020generalized} proposed a generalized SLS with different weight settings on long and short positions. Recently, \cite{hsieh2022generalization} considered a long-only affine feedback control with a stop-loss order.


In \cite{hsieh2022robust}, a modified SLS strategy,  called \textit{double linear policy}, was proposed to solve an optimal weight selection problem using the mean-variance approach in a discrete-time setting while preserving the RPE property.  Then \cite{hsieh2022robustness} established a sufficient condition of RPE when the transaction costs are present. 
However, previous work including \cite{hsieh2022robust, hsieh2022robustness} and many SLS literature assumed constant weight, investing the same proportion of account value in each stage.
This paper extends the  weight of double linear policy from constant to a broad class of time-varying functions in a discrete-time setting and proves that the RPE property still holds for this extension.

\subsection{Contributions of the Paper}
Proving an RPE property for a policy with time-varying weights is known to be challenging.\footnote{The conventional method for proving RPE of a trading policy with constant weight often relies on a key identity that $(1+x)^k + (1-x)^k>2$ for all~$k>1$ and $x \neq 0$. However, this approach may not apply when~$x$ varies over time, as in the case of the policies with time-varying weights.} This paper addresses this challenge by using a novel \textit{elementary symmetric polynomials} characterization approach.  We extend the existing results by showing that the RPE property holds for the double linear policy with time-varying weights. Closed-form expressions for the expected cumulative gain-loss function and its variance are provided. 
Additionally, we illustrate how the proposed policy can be incorporated with the common technical analysis technique.
The results presented in this paper contribute to the literature on robustness in financial systems.

\section{Problem Formulation}
For stage $k=0,1,2,\dotsc,$ let $S(k)>0$ be the \textit{underlying risky asset price} at stage $k$. Then the associated \textit{per-period return} is given by
$X(k):=\frac{S(k+1)-S(k)}{S(k)}.
$
Assume that~$X(k) \in [X_{\min},   X_{\max}]$ for all $k$ with probability one, and known bounds $-1 < X_{\min} < 0 < X_{\max} < \infty$. Additionally, assume that $X_{\min}$ and~$X_{\max}$ are in the support of $X(k)$.
Furthermore, assume that~$X(k)$ are independent with a common mean $\mathbb{E}[X(k)] = \mu \in \mathbb{R}$ and common variance~${\rm var}(X(k)) = \sigma^2 > 0$ for all~$k$.\footnote{This setting does not assume an underlying stochastic process governing the prices of the risky asset and is less restrictive than the typical independent and identically distributed returns assumption. }
In the sequel, we assume that the trades incur zero transaction costs and that the underlying asset has perfect liquidity. This setting serves as a good starting point for building the model and is closely related to the \textit{frictionless market} in finance; see \cite{merton1992continuous}.
 

\subsection{Double Linear Policy with Time-Varying Weights}
In~\cite{hsieh2022robust} and many SLS literature, the trading policy is proposed with constant weights. This paper extends the constant weights to a time-varying weighting function.
With initial account value~$V(0) := V_0 > 0$, we spilt it into two parts: Taking a fraction $\alpha \in [0,1]$, define $V_L(0) := \alpha V_0$ as the initial account value for \textit{long} position and $V_S(0) := (1-\alpha) V_0$ for \textit{short} position.
If $\alpha=1$, we are in a long-only position while~$\alpha =0$ corresponds to a pure short position.

The trading policy $\pi(\cdot)$ is given by~$\pi(k) := \pi_L(k)+\pi_S(k)$, where $\pi_L$ and $\pi_S$ are of double linear forms:
\begin{align} \label{eq: double linear policy}
    \begin{cases}
        \pi_L(k) = w(k) V_L(k);  \\
        \pi_S(k) = -w(k) V_S(k).
    \end{cases}
\end{align}
The weighting function $w(k) \in \mathcal{W} := [0, w_{\max}]$ for all~$k$ with $w_{\max} := \min\{1,1/X_{\max}\}$ and is assumed to be \textit{causal}; i.e., it may depend only on the information up to stage $k-1$. 
Any $w(k) \in \mathcal{W}$ is called \textit{admissible} weight. This condition is closely related to the survival trades; see Section~\ref{subsection: survivability considerations}. Hence, the account values under the double linear policy~$\pi_L$ and~$\pi_S$, denoted by $V_L(k)$ and $V_S(k)$, can be described as the following linear time-varying stochastic difference equation:
\begin{align*}
    \begin{cases}
        V_L(k+1) = V_L(k)+X(k)\pi_L(k) + (V_L(k) - \pi_L(k)) r_f;\\
        V_S(k+1) = V_S(k)+X(k)\pi_S(k),
    \end{cases}
\end{align*}
where $r_f \geq 0$ is a \textit{riskless} rate for a bank account or a treasury bond.\footnote{In practice, when shorting an asset, the corresponding proceeds are typically held as \textit{collateral} by the broker to cover any potential losses from the short position. These proceeds are generally not available for immediate reinvestment into a riskless asset, such as a bank account or treasury bond.}
Note that when $r_f >0$, account profit increases. Hence, as seen later in sections to follow, when studying the robustness of the double linear policy, we assume without loss of generality~$r_f :=0$. Then the account value for long position reduce to $V_L(k+1) = V_L(k) + X(k)\pi_L(k)$.
% This implies that
% $ 
% V_L(k)=\prod_{j=0}^{k-1} (1+w(j)X(j))V_L(0) 
% $
% and
% $
% V_S(k) = \prod_{j=0}^{k-1} (1-w(j)X(j))V_S(0).
% $
Therefore, the overall account value for both long and short positions at stage~$k$ is given by
 \begin{align*}
    V(k) 
    &=V_L(k)+V_S(k)
    =V_0 \left( \alpha R_+(k) + (1-\alpha)R_-(k) \right) ,
\end{align*}
where $R_+(k):=\prod_{j=0}^{k-1}(1+w(j)X(j) )$ and $R_-(k):=\prod_{j=0}^{k-1}(1-w(j)X(j))$. 


\subsection{Survivability Considerations} \label{subsection: survivability considerations}
Fix $V_0 > 0$ and $\alpha \in (0,1)$, we ensure that the trades are survivable for all $k$; i.e., the $w$-value that can potentially lead to $V(k)<0$ is disallowed. To see this, for stage~$k=0,1,\dotsc $, fix~$w(k) \in \mathcal{W}$. We observe that for the long position, we have $ V_L(k) 
    % &= V_0 \alpha R_+(k) 
     \geq V_0 \alpha (1+ w_{\max} X_{\min})^k > 0
$
since $w_{\max} \leq 1$ and $X_{\min} >-1$.
On the other hand, for the short position, we also have
$    V_S(k) 
    % &= V_0 (1-\alpha) R_-(k) 
     \geq V_0 (1-\alpha) (1- w_{\max} X_{\max})^k \geq 0
$
since $w_{\max} \leq 1/X_{\max}$.
Therefore, the overall account value satisfies $V(k) = V_L(k) + V_S(k) >0$ for all $k$ with probability~one.
% \begin{align*}
%     V(k) &\geq 
%     V_0(\alpha (1+w_{\max}X_{\min})^k + (1-\alpha) (1-w_{\max}X_{\max})^k ).
% \end{align*}
% Since $w(k)\in \mathcal{W}$ for all $ k$ with $w_{\max}:=\min\{1,1/X_{\max}\}$ and $-1 < X_{\min} < 0 < X_{\max} < \infty$. We have $-1 < w_{\max}X_{\min} \leq w(j)X(j)\leq w_{\max}X_{\max} \leq 1$ for all $j$.
% It is readily verified that both of~$1+w_{\max}X_{\min} > 0$ and $1-w_{\max}X_{\max} \geq 0$. 
% Hence, $V(k) >0 $ for all $k$ with probability one.

\subsection{Robust Positive Expectation Problem}
% For $k > 0$, let $\mathcal{G}(k):= V(k) - V_0$ be the cumulative gain-loss function. 
% Then the expected cumulative gain-loss function denoted by 
% $\overline{\mathcal{G}}(k) := \mathbb{E}[\mathcal{G}(k)]$.
The primary objective of this paper is to study the following RPE problem.


\begin{definition}[Robust Positive Expectation] \rm
    For stage $k = 0, 1, \dots$, let $V_0>0$ be the initial account value, and $V(k)$ be the account value at stage $k$. Define the expected cumulative gain-loss function up to stage $k$ as  $\overline{\mathcal{G}}(k):= \mathbb{E}[V(k)] - V_0$. A trading policy is said to have a \textit{robust positive expectation}~(RPE) property if it ensures that $\overline{\mathcal{G}}(k)>0$ for all $k>1$ and under all market conditions.
\end{definition}


\section{Gain-Loss Analysis}
For $k > 0$, let $X:=\{X(j)\}_{j=0}^{k-1}$ and ${\bm w}:=\{w(j)\}_{j =0}^{k-1}$.
With $V_0>0$, consider the double linear policy with $\alpha \in (0,1)$ and weight~$w(k) \in \mathcal{W}$ for all $k$.
The \textit{cumulative trading gain-loss function} up to stage $k$ is given by
\begin{align*}
    \mathcal{G}(\alpha, \bm{w}, k, X) &:= V(k) - V_0 \\
    &=  V_0 (\alpha R_+(k) + (1-\alpha)R_-(k)-1),
\end{align*}
and the expectation is $\overline{\mathcal{G}}(\alpha, {\bm w}, k, \mu):= \mathbb{E}[\mathcal{G}(\alpha, \bm{w}, k, X)]$.
If the weights are constant; i.e.,~$w(k):=w$ for all $k$, then the RPE property is readily established when $\alpha = 1/2$, see~\cite{hsieh2022robustness}. However, difficulties arise when the weighting function is time-varying. 
  To address this, a set of \textit{elementary symmetric polynomials}\footnote{ We say that $e(\cdot)$ is a \textit{symmetric polynomial} if for any permutation~$\sigma$ of the subscripts $1, 2, \cdots, n$, it follows that $e(x_{\sigma(1)}, x_{\sigma(2)}, \cdots, x_{\sigma(n)}) = e(x_1, x_2, \cdots, x_n)$.} in $k$ variables, $\{w(0), \dots, w(k-1)\}$, are considered and defined as $\{e_1(k), e_2(k),\dots e_k(k)\}$ with
\[
e_j(k) := \sum_{0 \leq i_1<i_2< \dotsb < i_j \leq k-1} w(i_1)w(i_2) \dotsm w(i_j)  
% \sum_{\{(i_1,\dotsc , i_j):0 \leq i_1<i_2< \dotsb < i_j \leq k-1\}}\Big(w(i_1)w(i_2) \dotsm w(i_j)\Big)
\] 
for $i_j \in \mathbb{N}$.
Note that $e_j(k)\geq 0$ for all~$j$ and~$k$, 
% With $w:=\{w(i_j)\}_{j=0}^{k-1}$, we define an auxiliary function
% \[
% \mathcal{M}(k,j,w,\mu ):= e_j(k) \mu^j,
% % \sum_{\{(i_1,\dotsc , i_j):0 \leq i_1< \dotsb < i_j \leq k-1\}}\Big(w(i_1)w(i_2) \dotsm w(i_j)\Big) \mu^j,
% \]
which is the sum of the $j$th multiplication term of admissible weights.
The following example illustrates the calculation of elementary symmetric polynomials.
% and the auxiliary functions.
% Then the following lemma is useful to prove the RPE property.

 

\begin{example}[Elementary Symmetric Polynomials] \rm
This example illustrates the calculation of the elementary symmetric polynomials $e_j(k)$.
% and auxiliary function $\mathcal{M}(k, j, w, \mu)$.
Specifically, for $k=1$, the polynomials to be calculate is $\{e_1(1)\}$ which is given by
$
e_1(1) = w(0).
$
For stage~$k=2$, the elementary symmetric polynomials~$\{e_1(2), e_2(2)\}$ are given~by
\begin{align*}
    e_1(2) &= \sum_{0\leq i_1 \leq 1} w(i_1) = w(0) + w(1); \\
    e_2(2) &= \sum_{0 \leq i_1 < i_2 \leq 1} w(i_1)w(i_2) = w(0)w(1).
\end{align*}
Similarly, for $k=3$, the elementary symmetric polynomials~$\{e_1(3), e_2(3), e_3(3)\}$  becomes
\begin{align*}
    e_1(3) &= \sum_{0\leq i_1 \leq 2} w(i_1) = w(0) + w(1) + w(2); \\
    e_2(3) &= \sum_{0 \leq i_1 < i_2 \leq 2} w(i_1)w(i_2) \\
    &= w(0)w(1) + w(0)w(2) + w(1)w(2); \\
    e_3(3) &= \sum_{0 \leq i_1 < i_2 < i_3 \leq 2} w(i_1)w(i_2)w(i_3) = w(0)w(1)w(2). 
\end{align*}


\end{example}

% \begin{remark} \rm
    As seen later in this section, the representation of elementary symmetric polynomials is useful for proving the RPE property; see Lemmas~\ref{lemma: representation of long-short returns} and \ref{lemma: positive polynomial} to follow.
% \end{remark}
Define shorthand notations $\overline{R}_+(k) := \mathbb{E}[R_+(k)]$
% = $\prod_{j=0}^{k-1}(1+w(j)\mu)$
and $\overline{R}_-(k) := \mathbb{E}[R_-(k)]$. 
With the aid of the independence of $X(k)$, it follows that $\overline{R}_+(k) = \prod_{j=0}^{k-1}(1+w(j)\mu)$ and $\overline{R}_-(k) = \prod_{j=0}^{k-1}(1-w(j)\mu)$.

\begin{lemma} \label{lemma: representation of long-short returns}
Fix $m \geq 1.$ Let $\alpha \in (0,1)$ and $w(k) \in \mathcal{W}$ for all~$k$, $\overline{R}_+(k)$ and $\overline{R}_-(k)$ for stage $k = 2m+1$ satisfies 
    \begin{align*}
        % \mathbb{E}[R_+(k)] 
        \overline{R}_+(k)& = 1 + \sum_{j=0}^{m} e_{2j+1}(k) \mu^{2j+1} + \sum_{j=1}^{m} e_{2j}(k) \mu^{2j}; \\
        % \mathbb{E}[R_-(k)] 
        \overline{R}_-(k)& = 1 - \sum_{j=0}^{m}e_{2j+1}(k)\mu^{2j+1} + \sum_{j=1}^{m} e_{2j}(k)\mu^{2j}.
    \end{align*}
   On the other hand, for $k =2m$, $\overline{R}_+(k)$ and~$\overline{R}_-(k)$  satisfies
    \begin{align*}
        % \mathbb{E}[R_+(k)] 
        \overline{R}_+(k) & = 1+ \sum_{j=0}^{m-1}e_{2j+1}(k)\mu^{2j+1} + \sum_{j=1}^{m}e_{2j}(k)\mu^{2j}; \\
        % \mathbb{E}[R_-(k)] 
        \overline{R}_-(k)& = 1- \sum_{j=0}^{m-1}e_{2j+1}(k)\mu^{2j+1} + \sum_{j=1}^{m} e_{2j}(k)\mu^{2j}.
    \end{align*}
\end{lemma}

\begin{proof}
    We use a shorthand notation $w_j$ for $w(j)$ in the proof.
   Fix $m \geq 1$. 
   % We recall that
   % $R_+(k):=\prod_{j=0}^{k-1} (1+w(j)X(j))$ and $R_-(k):=\prod_{j=0}^{k-1}(1-w(j)X(j))$.
   Now for the case $k = 2m+1$, which is an odd number, $\overline{R}_+(k)$ is given by
    \begin{align*}
        % \mathbb{E}[R_+(k)]
        \overline{R}_+(k)
        % & = \mathbb{E}\left[\prod_{j=0}^{k-1} (1+w_j X(j))\right]\\ 
        &= \prod_{j=0}^{k-1} (1+w_j\mu) \\
        & = (1+w_0\mu)(1+w_1\mu) \dotsm (1+w_{k-1}\mu)\\
        & = 1 + e_1(k)\mu + \dotsb + e_k(k)\mu^k\\
        & = 1 + \sum_{j=1}^{k} e_j(k) \mu^j \\
        & = 1 + \sum_{j=0}^{m} e_{2j+1}(k) \mu^{2j+1} + \sum_{j=1}^{m} e_{2j}(k) \mu^{2j},
        % &\quad = 1 + \sum_{j=0}^{m} \mathcal{M}(k,2j+1,w,\mu) + \sum_{j=1}^{m} \mathcal{M}(k,2j,w,\mu).
    \end{align*}
where the last equality separates terms into odd and even cases.    
Likewise, $\overline{R}_-(k)$ for $k=2m+1$ is 
    \begin{align*}
        % &\mathbb{E}[R_-(k)]
        &\overline{R}_-(k)
        =\prod_{j=0}^{k-1} (1-w_j\mu) \\
        &\quad = 1 + \sum_{j=1}^{k} (-1)^j e_j(k) \mu^j \\
        &\quad = 1 + \sum_{j=0}^{m}(-1)^{2j+1}e_{2j+1}(k) \mu^{2j+1} + \sum_{j=1}^{m}(-1)^{2j}e_{2j}(k) \mu^{2j}\\
        &\quad = 1 - \sum_{j=0}^{m}e_{2j+1}(k)\mu^{2j+1} + \sum_{j=1}^{m} e_{2j}(k)\mu^{2j}.
        % &\quad = 1+ \sum_{j=0}^{m}(-1)^{2j+1}\mathcal{M}(k,2j+1,w,\mu) \\
        % &\quad \quad + \sum_{j=1}^{m} (-1)^{2j} \mathcal{M}(k,2j,w,\mu) \\
        % &\quad = 1- \sum_{j=0}^{m}\mathcal{M}(k,2j+1,w,\mu) + \sum_{j=1}^{m}\mathcal{M}(k,2j,w,\mu).
    \end{align*}
On the other hand, for the even number case $k = 2m$,  with an almost identical argument, it is readily verified that
    $
        \overline{R}_+(k)
        % \mathbb{E}[R_+(k)]
         % &= \prod_{j=0}^{k-1} (1+w_j\mu) \\
        % &= 1 + \sum_{j=1}^{k} e_j(k) \mu^j \\
        % &= 1 + \sum_{j=0}^{m-1} e_{2j+1}(k) \mu^{2j+1} + \sum_{j=1}^{m} e_{2j}(k) \mu^{2j} \\
        % &= 1 + \sum_{j=0}^{m-1} \mathcal{M}(k,2j+1,w,\mu) + \sum_{j=1}^{m} \mathcal{M}(k,2j,w,\mu) \\
        = 1+ \sum_{j=0}^{m-1}e_{2j+1}(k)\mu^{2j+1} + \sum_{j=1}^{m}e_{2j}(k)\mu^{2j}
    $
and
    $
     \overline{R}_-(k)
     % \mathbb{E}[R_-(k)] 
      % &=\prod_{j=0}^{k-1} (1-w_j\mu) \\
        % &= 1 + \sum_{j=1}^{k} (-1)^j e_j(k) \mu^j \\ 
        % &= 1+ \sum_{j=0}^{m-1} (-1)^{2j+1}\mathcal{M}(k,2j+1,w,\mu) \\
        % &\quad + \sum_{j=1}^{m} (-1)^{2j} \mathcal{M}(k,2j,w,\mu) \\
        % &= 1- \sum_{j=0}^{m-1}\mathcal{M}(k,2j+1,w,\mu) + \sum_{j=1}^{m}\mathcal{M}(k,2j,w,\mu)\\
        = 1- \sum_{j=0}^{m-1}e_{2j+1}(k)\mu^{2j+1} + \sum_{j=1}^{m} e_{2j}(k)\mu^{2j}
    $
    and the proof is complete.
\end{proof}



\begin{lemma} \label{lemma: positive polynomial}
    For $k  > 1$,   $e_{2}(k)>0$ provided that at least two weights $w(i), w(j) >0$ for some $i,j \in \{0,1,\dots, k-1\}$ and~$i \neq j$.
\end{lemma}

\begin{proof}
Fix $k > 1$. Then
$	
e_{2}(k) := \sum_{0 \leq i_1<i_2 \leq k-1} w(i_1)w(i_2)  .
$
Proceed a proof by induction. If $k=2$, which corresponds to  
$
     e_{2}(2) = w(0)w(1) .
$
Since we are assuming that at least two weights are strictly positive, in this case, it corresponds to $w(0), w(1) >0 $.  Therefore,  $e_2(2) >0.$ 
Next, assuming that~$e_{2}(k) >0$ for at least two  weights $w(i), w(j) >0$ for some $i,j \in \{0,1,\dots, k-1\}$, we must show $e_{2}(k+1) >0.$
Note that
\begin{align*}
e_{2}(k+1) 
    & = \sum_{0 \leq i_1 < i_2 \leq k} w(i_1)w(i_2) \\
    &= \sum_{0 \leq i_1<i_2 \leq k-1} w(i_1)w(i_2)  + \sum_{i=1}^{k} w(k-i)w(k) \\
    &=  e_2(k) +  \sum_{i=1}^{k} w(k-i)w(k)  >0,
\end{align*}
where the last inequality holds by inductive hypothesis that~$e_2(k) >0$ for at least two weights, say $w(i), w(j) >0$ for some $i,j \in \{0,1,\dots, k-1\}$  and the fact that the sum~$\sum_{i=1}^{k} w(k-i)w(k)  \geq 0$.
\end{proof}


\begin{theorem}[RPE with Time-Varying Weights] \label{theorem: RPE with time-varying weights}
  Let $V_0>0$.  Consider a double linear policy with $\alpha \in (0,1)$ and weights~$w(k)\in \mathcal{W}$ for all $k$. Then, the \textit{expected cumulative gain-loss function} is given by
    \begin{align*}
        \overline{\mathcal{G}}(\alpha, {\bm w}, k, \mu) 
        &= V_0\left( \alpha \overline{R}_+(k)+(1-\alpha)\overline{R}_-(k) -1 \right).
    \end{align*}
    Moreover, when $\alpha = 1/2$ and $w(k) \in \mathcal{W}$ with at least two weights being strictly positive, the RPE property holds; i.e.,~$
    \overline{\mathcal{G}}(\alpha, {\bm w}, k, \mu)>0
    $ for $k>1$ and all \(\mu \neq 0\). 
\end{theorem}

 


\begin{proof}
    %%%%%%%%%%%%%% cumulative gain-loss closed form %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
    To calculate the expected cumulative gain-loss function, we use the fact that per-period returns $X(k)$ are independent with common mean $\mathbb{E}[X(k)] = \mu$ for all $k$. Thus, it is readily verified that
    \begin{align*}
        \overline{\mathcal{G}}(\alpha, \bm{w}, k, \mu)  
        &= \mathbb{E}\left[ V_0 \left( \alpha R_+(k) + (1-\alpha) R_-(k) -1 \right) \right] \\
        % &= \mathbb{E}\Bigg[ V_0 \bigg( \alpha \prod_{j=0}^{k-1} (1+w(j)X(j)) + (1-\alpha) \prod_{j=0}^{k-1}(1-w(j)X(j)) -1 \bigg) \Bigg] \\
        &= V_0 \left( \alpha \mathbb{E}[R_+(k)] + (1-\alpha) \mathbb{E}[R_-(k)] -1 \right) \\
        &= V_0 \left( \alpha \overline{R}_+(k) + (1-\alpha) \overline{R}_-(k)-1 \right),
        % &= V_0 \left( \alpha \prod_{j=0}^{k-1}(1+w(j) \mu) + (1-\alpha) \prod_{j=0}^{k-1}(1-w(j)\mu)-1 \right),
    \end{align*}
    which is identical to the desired equality in the statement of the theorem.
    To complete the proof, we now show that the RPE property holds. Fix $k>1$. Consider two cases by splitting~$k$ into odd and even numbers. 
    We begin by considering~$k=2m+1$ with $m\geq 1$, corresponding to an odd number. Then, using Lemma~\ref{lemma: representation of long-short returns} for the odd case, we have 
    \begin{align*}
        &\overline{\mathcal{G}}(\alpha, \bm{w}, k, \mu) \\
        % &= V_0 \bigg( \alpha \mathbb{E}[R_+(k)] + (1-\alpha) \mathbb{E}[R_-(k)] \bigg) \\
        % &= V_0 \bigg( \alpha \prod_{j=0}^{k-1}(1+w(j) \mu) + (1-\alpha) \prod_{j=0}^{k-1}(1-w(j)\mu)-1 \bigg) \\
        &= V_0 \bigg( \alpha \Big(1 + \sum_{j=0}^{m}e_{2j+1}(k)\mu^{2j+1} + \sum_{j=1}^{m}e_{2j}(k)\mu^{2j} \Big) \\
        &\quad + (1-\alpha)\Big(1 - \sum_{j=0}^{m}e_{2j+1}(k)\mu^{2j+1} + \sum_{j=1}^{m}e_{2j}(k)\mu^{2j}\Big) -1 \bigg)\\
        &= V_0\bigg( (2\alpha-1) \sum_{j=0}^{m}e_{2j+1}(k) \mu^{2j+1} + \sum_{j=1}^{m}e_{2j}(k) \mu^{2j} \bigg) \\
        &= V_0\bigg( (2\alpha-1)\mu \sum_{j=0}^{m}e_{2j+1}(k) \mu^{2j} + \sum_{j=1}^{m}e_{2j}(k) \mu^{2j} \bigg).
        % &= V_0 \Bigg( \alpha \bigg( 1+ \sum_{j=0}^{m} \mathcal{M}(k, 2j+1) + \sum_{j=1}^{m} \mathcal{M}(k,2j) \bigg) + \\
        % &\qquad\quad (1-\alpha) \bigg( 1-\sum_{j=0}^{m} \mathcal{M}(k,2j+1) + \sum_{j=1}^{m}\mathcal{M}(k,2j) \bigg) -1 \Bigg)\\
        % &= V_0 \Bigg( \Big( \alpha+(1-\alpha) -1 \Big) + \Big(\alpha -(1-\alpha)\Big) \sum_{j=0}^{m}\mathcal{M}(k,2j+1) + \Big(\alpha+ (1-\alpha)\Big) \sum_{j=1}^{m} \mathcal{M}(k,2j) \Bigg)\\
        % &= V_0 \Bigg( \Big(2\alpha -1\Big) \sum_{j=0}^{m} \mathcal{M}(k,2j+1) + \sum_{j=1}^{m}\mathcal{M}(k,2j) \Bigg)\\
        % &= V_0 \Bigg( \Big(2\alpha -1\Big) \sum_{j=0}^{m} \mathcal{M}_O(k,2j+1)\mu + \sum_{j=1}^{m}\mathcal{M}(k,2j) \Bigg)
    \end{align*}
    % where 
        % &\mathcal{M}(k,j,w,\mu ):= e_j(k)\mu^j \\
        % &e_j(k) := \sum_{0 \leq i_1<i_2< \dotsb < i_j \leq k-1}\Big(w(i_1)w(i_2) \dotsm w(i_j)\Big) \\
        % &\mu \mathcal{M}_O(k,j,w,\mu ):=\mathcal{M}(k,j,w,\mu ), \\
        % &\text{i.e. }
        % \mathcal{M}_O(k,j,w,\mu )= e_j(k)\mu^{(j-1)}.
Since $w(k) \in \mathcal{W}$, we have 
$e_j(k) \geq 0$ for all $j$ and $k$. 
Hence, it follows that~$e_{2j+1}(k) \mu^{2j} \geq 0$ and $e_{2j}(k) \mu^{2j} \geq 0$.  
In addition, for~$\alpha = {1}/{2}$, the expected cumulative gain-loss function becomes 
\begin{align*}
\overline{\mathcal{G}}(\alpha, {\bm w}, k, \mu) 
	&= V_0 \sum_{j=1}^{m} e_{2j}(k) \mu^{2j} \\
	&= V_0 \left(  e_{2}(k) \mu^{2}  + \sum_{j=2}^{m} e_{2j}(k) \mu^{2j} \right).
\end{align*}
Since $V_0 > 0$, $\mu \neq 0$ and at least two weights are strictly positive $w(i), w(j) > 0$ for some $i, j$ with $i \neq j$, Lemma~\ref{lemma: positive polynomial} indicates that $e_2(k) >0$. It follows that $\overline{\mathcal{G}}(\alpha, \bm{w}, k, \mu)  >0$.
% That is the RPE property holds when $\mu \neq 0$ and at least two stage weights are non-zero.
% have $\overline{\mathcal{G}}(\alpha, w, k, \mu) >0$ for $\mu \neq 0$; i.e., an RPE property is seen.
    On the other hand, consider the case $k=2m$, which is an even number. 
    Using the second part of Lemma~\ref{lemma: representation of long-short returns}, we obtain 
    {\small 
    \begin{align*}
        \overline{\mathcal{G}}(\alpha, \bm{w}, k, \mu)
        &= V_0 \bigg( (2\alpha-1)\mu \sum_{j=0}^{m-1} e_{2j+1}(k) \mu^{2j} + \sum_{j=1}^{m}e_{2j}(k)\mu^{2j} \bigg). 
        % &= V_0 \Bigg( \alpha \bigg( 1+ \sum_{j=0}^{m-1} \mathcal{M}(k, 2j+1,w,\mu) + \sum_{j=1}^{m} \mathcal{M}(k,2j,w,\mu) \bigg) \\
        % &\quad + (1-\alpha) \bigg( 1-\sum_{j=0}^{m-1} \mathcal{M}(k,2j+1,w,\mu) \\
        % &\quad + \sum_{j=1}^{m}\mathcal{M}(k,2j,w,\mu) \bigg) -1 \Bigg)\\
        % &= V_0 \Bigg( (2\alpha -1) \sum_{j=0}^{m-1} \mu \mathcal{M}_O(k,2j+1,w,\mu) \\
        % &\qquad+ \sum_{j=1}^{m}\mathcal{M}(k,2j,w,\mu) \Bigg) 
    \end{align*}
    }A similar argument can be made for showing that~$e_{2j}(k) \mu^{2j} \geq 0$ for all $j$ and $k$.
    % $\mathcal{M}_O(k,2j+1,w,\mu)  \geq 0$ and  $\mathcal{M}(k,2j,w,\mu) \geq 0$. 
    Hence, taking $\alpha = 1/2$, using the fact that at least two weights are strictly positive, and Lemma~\ref{lemma: positive polynomial}, we again have $\overline{\mathcal{G}}(\alpha, \bm{w}, k, \mu)  > 0$ when $\mu \neq 0$, which completes the~proof.
\end{proof}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{remark} \rm \label{remark: RPE remark}
$(i)$. Theorem~\ref{theorem: RPE with time-varying weights} can be viewed as an extension of the existing RPE result using double linear policy with constant weights stated in \cite{hsieh2022robust}. That is, by taking $w(k) := w$ for all $k$, one readily obtains
\begin{align*}
    \overline{\mathcal{G}}(\alpha, \bm{w}, k, \mu)  
        % &= V_0\left( \alpha\prod_{j=0}^{k-1}(1+w\mu)+(1-\alpha)\prod_{j=0}^{k-1}(1-w\mu) -1 \right)\\
        &= V_0\left( \alpha (1+w\mu)^k +(1-\alpha) (1-w\mu)^k -1 \right).
\end{align*}
If $\alpha = 1/2$ and $w \in \mathcal{W}\setminus \{0\}$,  the desired strict positivity holds; i.e., $\overline{\mathcal{G}}(\alpha, \bm{w}, k, \mu) > 0 $ for $\mu \neq 0$ and all $k$.
$(ii)$. According to Theorem~\ref{theorem: RPE with time-varying weights}, it is readily verified that the expected cumulative gain-loss function  satisfies
    $ \overline{\mathcal{G}}(\alpha, \bm{w}, k, \mu) > 0$ for all $k $
     if~${\rm sgn}( (2\alpha - 1) \mu )>0$.
     % for~\(\mu > 0\), if \(\alpha > 1/2\) we have \(\overline{\mathcal{G}}(\alpha, \bm{w}, k, \mu)>0\) for all $k$. On the other hand,  for~\(\mu < 0\) if \(\alpha < 1/2\) we have 
%     $
%     \overline{\mathcal{G}}(\alpha, \bm{w}, k, \mu)>0,
%     $ for all $k$.
\end{remark}




\begin{lemma}[Variance of the Gain-Loss Function] \label{lemma: variance of the gain-loss function}
Let $V_0>0$. Consider a double linear policy with $\alpha \in (0,1)$ and weights $w(k) \in \mathcal{W}$ for all $k$ then 
the variance of the cumulative gain-loss function is given by  
\begin{align*}
    &{\rm var}(\mathcal{G}(\alpha , \bm{w}, k, X)) \\
    % &= \alpha^2 V_0^2 \prod_{j=0}^{k-1} \bigg( w(j)^2 \sigma^2 + \Big(1+w(j)\mu\Big)^2 \bigg) \\
    % &\quad+ (1-\alpha)^2 V_0^2 \prod_{j=0}^{k-1} \bigg( w(j)^2 \sigma^2 + \Big( 1-w(j)\mu \Big)^2 \bigg)\\
    % &\quad +2\alpha (1-\alpha)V_0^2 \prod_{j=0}^{k-1} \bigg( 1-w(j)^2 (\sigma^2 + \mu^2) \bigg) \\
    % &\quad- 2\alpha V_0^2 \prod_{j=0}^{k-1} \Big( 1+w(j)\mu\Big) \\
    % &\quad - 2(1-\alpha) V_0^2 \prod_{j=0}^{k-1} \Big( 1-w(j)\mu \Big) + V_0^2 \\
    % &\quad - V_0^2\bigg( \alpha \prod_{j=0}^{k-1} ( 1+w(j)\mu ) + (1-\alpha) \prod_{j=0}^{k-1} ( 1-w(j)\mu ) -1 \bigg)^2.
    &= V_0^2 \Bigg( \alpha^2 \prod_{j=0}^{k-1} \Big(w(j)^2 \sigma^2 + (1+w(j)\mu)^2  \Big) \\
        &\qquad + (1-\alpha)^2 \prod_{j=0}^{k-1} \Big(w(j)^2\sigma^2 + (1-w(j)\mu)^2 \Big) \\
        &\qquad + 2 \alpha (1-\alpha) \prod_{j=0}^{k-1}\Big(1-w(j)^2(\sigma^2 + \mu^2)\Big) \\
        &\qquad - 2\alpha(1-\alpha)\prod_{j=0}^{k-1}(1-w(j)^2\mu^2) \\
        &\qquad -\alpha^2 \prod_{j=0}^{k-1} (1+w(j) \mu)^2 - (1-\alpha)^2 \prod_{j=0}^{k-1} (1-w(j)\mu)^2 \Bigg). 
\end{align*}
\end{lemma}

 

\begin{proof}
The proof is based on straightforward calculation on ${\rm var}(\mathcal{G}(\alpha, \bm{w}, k, X))
        = \mathbb{E}[\mathcal{G}^2(\alpha, \bm{w}, k, X)] - \overline{\mathcal{G}}^2(\alpha, \bm{w}, k, \mu)$.
We first calculate the second moment of the gain-loss function:
% {\small 
% \begin{align*}
%     \mathbb{E}[\mathcal{G}^2(\alpha, w, k, X)] 
%     % & = \mathbb{E} \Bigg[ V_0^2 \bigg(\alpha \prod_{j=0}^{k-1}(1+w(j)X(j)) \\
%     % &\qquad  +(1-\alpha)\prod_{j=0}^{k-1}(1-w(j)X(j)) - 1 \bigg)^2 \Bigg] \\
%     &= V_0^2\Bigg( \alpha^2 \mathbb{E}\bigg[\prod_{j=0}^{k-1}(1+w(j)X(j))^2\bigg] \\
%     &\qquad \quad+ (1-\alpha)^2 \mathbb{E}\Bigg[ \prod_{j=0}^{k-1} (1-w(j)X(j))^2 \Bigg] + 1 \\
%     &\qquad\quad+ 2 \alpha (1-\alpha)\mathbb{E}\bigg[\prod_{j=0}^{k-1} (1-w(j)^2X(j)^2)\bigg] \\
%     &\qquad\quad - 2\alpha \mathbb{E}\bigg[\prod_{j=0}^{k-1} (1+w(j)X(j))\bigg] \\
%     &\qquad\quad - 2 (1-\alpha) \mathbb{E}\bigg[\prod_{j=0}^{k-1} (1-w(j)X(j)) \bigg] \Bigg).
% \end{align*}
% }
With the aid of the independence of $X(k)$, a lengthy but straightforward calculation leads to
{\small 
\begin{align} \label{eq: E[g_square]}
    &\mathbb{E}[\mathcal{G}^2(\alpha, \bm{w}, k, X)] \nonumber \\
    &= V_0^2 \Bigg(\alpha^2 \prod_{j=0}^{k-1} \Big(w(j)^2 \sigma^2 + (1+w(j)\mu)^2\Big) \nonumber \\
    &\qquad + (1-\alpha)^2 \prod_{j=0}^{k-1} \Big(w(j)^2\sigma^2 + (1-w(j)\mu)^2  \Big) + 1 \nonumber \\
    &\qquad + 2 \alpha (1-\alpha) \prod_{j=0}^{k-1}\Big(1-w(j)^2(\sigma^2 + \mu^2)\Big) \nonumber \\
    &\qquad - 2 \alpha \prod_{j=0}^{k-1} ( 1+w(j)\mu )  - 2 (1-\alpha)\prod_{j=0}^{k-1}( 1-w(j)\mu ) \Bigg).
\end{align}
}Then we calculate the square of the expected cumulative gain-loss function. That is,
{\small 
\begin{align} \label{eq: g_bar_square}          
&\overline{\mathcal{G}}^2(\alpha, \bm{w}, k, \mu) \nonumber \\
    &= V_0^2 \bigg( \alpha \overline{R}_+(k) + (1-\alpha) \overline{R}_-(k) -1 \bigg)^2 \nonumber \\
    &= V_0^2 \bigg( \alpha^2 \prod_{j=0}^{k-1} (1+w(j) \mu)^2 + (1-\alpha)^2 \prod_{j=0}^{k-1} (1-w(j)\mu)^2 \nonumber \\
    &\qquad + 1 +2\alpha(1-\alpha)\prod_{j=0}^{k-1}(1-w(j)^2\mu^2) \nonumber \\
    &\qquad - 2\alpha \prod_{j=0}^{k-1}(1+w(j)\mu) - 2(1-\alpha)\prod_{j=0}^{k-1}(1-w(j)\mu)\bigg).
    % &\qquad+2\alpha(1-\alpha)\prod_{j=0}^{k-1}(1-w(j)^2\mu^2) \bigg)
\end{align}
}In combination with Equations~(\ref{eq: E[g_square]}) and (\ref{eq: g_bar_square}), a lengthy but straightforward calculation again leads to the desired expression for the variance of the gain-loss function.
    % A lengthy but straightforward calculation leads to the variance of the gain-loss function:
    % \begin{align*}
    %     &{\rm var}(\mathcal{G}(\alpha , w, k, X))\\
    %     &= \mathbb{E}[\mathcal{G}^2(\alpha, w, k, X)] - \overline{\mathcal{G}}^2(\alpha, w, k, \mu) \\
    %     % &= V_0^2 \Bigg( \alpha^2 \prod_{j=0}^{k-1} \Big(1+2w(j)\mu+w(j)^2 (\sigma^2 + \mu^2)\Big) \\
    %     % &\quad + (1-\alpha)^2 \prod_{j=0}^{k-1} \Big(1-2w(j)\mu + w(j)^2(\sigma^2 + \mu^2) \Big) + 1 \\
    %     % &\quad + 2 \alpha (1-\alpha) \prod_{j=0}^{k-1}\Big(1-w(j)(\sigma^2 + \mu^2)\Big) \\
    %     % &\quad - 2 \alpha \prod_{j=0}^{k-1}( 1+w(j)\mu )  - 2(1-\alpha) \prod_{j=0}^{k-1}( 1-w(j)\mu ) \Bigg) \\
    %     % % &\quad - V_0^2 \bigg( \alpha \prod_{j=0}^{k-1} (1+w(j)\mu) + (1-\alpha) \prod_{j=0}^{k-1}(1-w(j)\mu) -1 \bigg)^2
    %     % &\quad - V_0^2 \Bigg( \alpha^2 \prod_{j=0}^{k-1} (1+w(j) \mu)^2 + (1-\alpha)^2 \prod_{j=0}^{k-1} (1-w(j)\mu)^2  \\
    %     % &\quad + 1 - 2\alpha \prod_{j=0}^{k-1}(1+w(j)\mu) - 2(1-\alpha)\prod_{j=0}^{k-1}(1-w(j)\mu)\\
    %     % &\quad+2\alpha(1-\alpha)\prod_{j=0}^{k-1}(1-w(j)^2\mu^2) \Bigg) \\
    %     &= V_0^2 \Bigg( \alpha^2 \prod_{j=0}^{k-1} \Big(w(j)^2 \sigma^2 + (1+w(j)\mu)^2  \Big) \\
    %     &\qquad + (1-\alpha)^2 \prod_{j=0}^{k-1} \Big(w(j)^2\sigma^2 + (1-w(j)\mu)^2 \Big) \\
    %     &\qquad + 2 \alpha (1-\alpha) \prod_{j=0}^{k-1}\Big(1-w(j)^2(\sigma^2 + \mu^2)\Big)  \\
    %     & \qquad - 2\alpha(1-\alpha)\prod_{j=0}^{k-1}(1-w(j)^2\mu^2) \\
    %     &\qquad -\alpha^2 \prod_{j=0}^{k-1} (1+w(j) \mu)^2 - (1-\alpha)^2 \prod_{j=0}^{k-1} (1-w(j)\mu)^2 \Bigg)
    % \end{align*}
    % which is desired.
\end{proof}

\begin{remark} \rm
  If $w(k):=w$ for all $k$, Lemma~\ref{lemma: variance of the gain-loss function} reduces to the variance expression obtained in \cite[Lemma 3.1]{hsieh2022robust}.
%     $(ii)$ If $\alpha = 1/2$, i.e., the case where RPE holds, then the corresponding variance is
% \begin{align*}
%     &{\rm var}(\mathcal{G}(\alpha , w, k, X)) \\
%     &= V_0^2 \Bigg( \frac{1}{4} \prod_{j=0}^{k-1} \Big(w(j)^2 \sigma^2 + (1+w(j)\mu)^2  \Big) \\
%         &\qquad + \frac{1}{4} \prod_{j=0}^{k-1} \Big(w(j)^2\sigma^2 + (1-w(j)\mu)^2 \Big)  \\
%         &\qquad + \frac{1}{2} \prod_{j=0}^{k-1}\Big(1-w(j)^2(\sigma^2 + \mu^2)\Big) - \frac{1}{2}\prod_{j=0}^{k-1}(1-w(j)^2\mu^2) \\
%         &\qquad -\frac{1}{4} \prod_{j=0}^{k-1} (1+w(j) \mu)^2 - \frac{1}{4} \prod_{j=0}^{k-1} (1-w(j)\mu)^2 \Bigg).
% \end{align*}
% \textbf{\color{red} What is the Upper bound for the variance? Is there any alpha that yields a lower var than alpha  = 1/2?}
\end{remark}
 
\section{Illustrative Examples}
This section illustrates the robustness of the double linear policy with time-varying weights using various examples. 
 
 \begin{example}[GBM with Jumps] \rm
 \label{example: GBM with jumps}
We now collect historical daily prices for Apple Inc. (Ticker:~AAPL) over a one-year period from January~2022 to December~2022.\footnote{Note that this one-year period provides a good test case since 2022 is often described as a bearish market. }
 Having estimated the volatility $\sigma^*$, we simulate the associated GBM prices with jumps, see \cite{etheridge2002course}, using Monte Carlo simulations. That is, for~$t \in [0, T]$, we generate the price governed by the following stochastic differential equation:
\begin{align} \label{eq: GBM with jump: stock dynamics}
     % S_t &= S_0 \exp \left( \left(\mu - \frac{1}{2} \sigma^2\right) t + \sigma W_t\right)\\
    S_t &= S_0 \exp \left( \left(\mu^* - \frac{1}{2} {\sigma^*}^2\right) t + \sigma^* W_t\right)(1 - \delta)^{N_t},
\end{align}
 where $W_t := \{W(t): t\geq 0\}$ is a standard Wiener process, $\mu^*$ is the \textit{drift} constant, $\sigma^*$ is the volatility constant, $N_t = \{N(t): t\geq 0\}$ is a Poisson process with $P(N_t = k) = \frac{ (\lambda t)^k}{k!} e^{-\lambda t }$ that is independent with $W_t$, $\lambda$ is the average rate of the jump that occurs for the process, and $\delta \in [0, 1)$ is the magnitude of the random jump.\footnote{For 252 daily data, the drift rate and volatility constants can be approximated by using  $\mu^* \approx 252 \mu$ and $\sigma^* \approx \sqrt{252}\sigma$. When $\delta = 0$, Equation~(\ref{eq: GBM with jump: stock dynamics}) reduces to GBM. While it is not shown in this paper, the double linear policy~(\ref{eq: double linear policy}) assures RPE for the GBM case as well.} 
 
 
 To simulate the price, we discretize the process~(\ref{eq: GBM with jump: stock dynamics}) by taking a time period length of $\Delta t := 1/252$ and $T = 1$ for one year with an annualized drift rate~$\mu^* \in (-1, 1)$, annualized volatility computed from historical data $\sigma_{\rm AAPL} \approx 35.63 \% $, jump intensity $\lambda = 0.2$ with a jump size $\delta = 0.1$. With initial account value $V_0 = 1$, 
 we consider four admissible weighting functions defined by~$w_i:\{0, 1, \dots, N=252\} \to \mathcal{W} \subseteq \mathbb{R}$ for~$i \in \{0,1,2,3\}$ with
 \begin{align*}
     w_0(k) & := 0.8;\\
     w_1(k) &:= \log\left( 1+\frac{k}{N}(e-1) \right); \\
     w_2(k) &:= \frac{1}{2} \left( \sin \left(\frac{1}{\frac{0.02}{N}k - 0.01} \right) + 1 \right); \\
     w_3(k) &:= 
           f(k)\sin \left( \frac{1}{f(k)} \right) \mathbb{1}_{ \left\{  f(k)\sin \left( \frac{1}{f(k)} \right)  \geq 0 \right\}  }(k),
 \end{align*}
 where $ f(k) := (\frac{4}{N}k - 2)$ and $\mathbb{1}_A(x)$ is an indicator function satisfying $\mathbb{1}_A(x) = 1$ for $x \in A$ and zero otherwise. 
 
 The four weighting functions above represent different investment philosophies. For example, $w_0(k)$ represents a constant buy-and-hold strategy, $w_1(k)$ represents an increasing investing strategy over the specified period,  $w_2(k)$ corresponds to a more active trading approach, and $w_3(k)$ represents investing more at the beginning and end of the period, with little or no investment in the middle.
 Consistent with the simulations conducted in~\cite{hsieh2022robust}, we generate $10,000$ GBM sample paths for each $\mu^*$ and various~$\alpha \in \{0.1, 0.3, 0.5, 0.7, 0.9\}$. Then we calculate the average cumulative gain-loss; see Figure~\ref{fig: Gain-Loss Function Simulation with jump}. 
For~$\alpha = 0.5$, the positive expectation gain is seen for all four weighting functions.


 
 % \begin{figure}[h!]
 %     \centering
 %    \includegraphics[width=\linewidth]{figs/GainLoss_4weight_GBM.eps}
 %     \caption{Gain-Loss Function versus $\mu \in (-1, 1)$ simulate by GBM}
 %     \label{fig: Gain-Loss Function Simulation}
 % \end{figure}

 \begin{figure}[h!]
     \centering
    \includegraphics[width=.9\linewidth]{figs/GainLoss_4weight_jump.eps}
     \caption{Weighting Functions (Left) and  Expected Gain-Loss for~$\mu^* \in (-1, 1)$.}
     \label{fig: Gain-Loss Function Simulation with jump}
 \end{figure}

 % \footnotetext{$\mu = \mu^* + \lambda \delta$, where $\mu^*$ is the drift constant for GBM, and $\mu \approx \mu^*$ when jump compensator $\lambda \delta$ is too little to ignore.}
 
\end{example}
 

 
 
% \begin{example}[Backtest Using Daily Data] \rm
%  To evaluate the trading performance of the double linear policy with time-varying weights, we retrieved Apple's historical daily stock price from 2021 to 2022 from Yahoo! Finance, where the price trajectories are shown in Figure~\ref{fig: daily stock price}. 
%  With $\alpha = 1/2$, weighting functions are the same as in Example~\ref{example: GBM with jumps}, and initial account value $V_0 = 1$, the corresponding cumulative gain-loss and variance in 2021 and 2022 under different weighting functions are shown in Figure~\ref{fig: Apple gain-loss} and Table~\ref{tab: daily data gain loss}.
 
%   % minute-to-minute price data from February 6, 2023 to February 18, 2023; see Figure~\ref{fig: minutely stock price}.

% \begin{figure}[h!]
%     \centering   \includegraphics[width=0.8\linewidth]{figs/APPLE_dailyprice.eps}
%     \caption{Apple Daily Prices.}
%     \label{fig: daily stock price}
% \end{figure}

% \begin{figure}[h!]
%     \centering
%     \includegraphics[width=0.8\linewidth]{figs/APPLE_trading.eps}
%     \caption{Cumulative Trading Gain-Loss Using Apple Daily Price Data.}
%     \label{fig: Apple gain-loss}
% \end{figure}

% % \begin{table}[h!]
% %     \centering
% %     \caption{trading performance under different weighting functions}
% %     \begin{tabular}{|c|c|c|c|c|c|c|}
% %         \hline
% %          % \multicolumn{2}{|c|}{} 
% %          & & B\&H & $w_0$ & $w_1$ & $w_2$ & $w_3$ \\
% %          \hline
% %         \multirow{ 3}{*}{2021} & $\overline{\mathcal{G}}$ & 0.3806 & 0.0197 & 0.0271 & 0.0092 & -0.0049 \\
% %         & var($\overline{\mathcal{G}}$)& 0.1309 & 0.0042 & 0.0015 & 0.0010 & 0.0026\\
% %         & Sharpe ratio & 1.0121 & 0.0820 & 0.3309 & -0.1650 & -0.3791 \\
% %         \hline
% %         \multirow{ 3}{*}{2022} & $\overline{\mathcal{G}}$ & -0.2820 & -0.0173 & -0.0180 & -0.0163 & 0.0184 \\
% %         & var($\overline{\mathcal{G}}$) & 0.0790 & 0.0072 & 0.0027 & 0.0020 & 0.0048 \\
% %         & Sharpe ratio & -1.1087 & -0.5517 & -0.9098 & -1.0251 & -0.1612 \\
% %         \hline
% %     \end{tabular}
% %     \label{tab: daily data gain loss}
% % \end{table}

% \begin{table}[h!]
%     \centering
%     \caption{trading performance under different weighting functions}
%     \begin{tabular}{|c|c|c|c|c|c|c|}
%         \hline
%         \multirow{ 2}{*}{} & \multicolumn{3}{c|}{2021} & \multicolumn{3}{c|}{2022}\\
%         \hline
%         & $\mathcal{G}$ & var($\mathcal{G}$) &  {\makecell[c]{Sharpe\\ ratio}} & $\mathcal{G}$ & var($\mathcal{G}$) &  {\makecell[c]{Sharpe\\ ratio}} \\
%         \hline
%         B\&H & 0.3806 & 0.1309 & 1.0121 & -0.2820 & 0.0790 & -1.1087 \\
%         \hline
%         $w_0$ & 0.0197 & 0.0042 & 0.0820 & -0.0173 & 0.0072 & -0.5517 \\
%         \hline 
%         $w_1$ & 0.0271 & 0.0015 & 0.3309 & -0.0180 & 0.0027 & -0.9098 \\
%         \hline
%         $w_2$ & 0.0092 & 0.0010 & -0.1650 & -0.0163 & 0.0020 & -1.0251 \\
%         \hline
%         $w_3$ & -0.0049 & 0.0026 & -0.3791 & 0.0184 & 0.0048 & -0.1612 \\
%         \hline
%     \end{tabular}
%     \label{tab: daily data gain loss}
% \end{table}


% To estimate the Sharpe ratio, fix risk-free rate $R_f^{2021} = 1.44\%$, $R_f^{2022} = 2.96\%$.
% The buy-and-hold strategy with equal weights $w =1$ received a $38.06$\% return for 2021, which is a bullish market, while got a negative return for the year 2022, which is a bearish market.
% % Compared to these strategies, although the double linear policy didn't get returns as high as buy and hold in 2021, it also didn't get as much loss in 2022.
% Instead of constant weight $w_0$, we have the best performance for the double linear policy with time-varying weighting function $w_1$ for 2.71\% return in 2021, and $w_3$ for 1.84\% in 2022. 






% Observed that the trading performance seems doesn't better than buy and hold during stocks surge, but also beat buy and hold during the stocks plummet. 
% We see that double linear policy  steadily makes some gains while there is an apparent trend either for a bull market or the bearish market, and also avoids losing money while the average trend is zero.

% % As for the optimal weighting function selection problem, it is one important future work.

% \end{example}


\begin{example}[Minute-by-Minute Case] \rm
\label{example: minute-by-minute}
In this example, we study the performance of the double linear policy using relatively high-frequency minute-by-minute price data for Twitter Inc. (Ticker: TWTR) between May 4, 2022, and May~19,~2022.\footnote{During this period, CEO Elon Musk announced that the Twitter deal was temporarily put on hold on May 13, causing a 9.7\% decreases in shares at market close. The data is retrieved using the Bloomberg Terminal.}
The price trajectory for the specific period is shown in Figure~\ref{fig: minutely stock price}.
The figure also includes a subplot with a magnified view for the interval~$k \in [50, 100]$ minutes, featuring various moving average lines, which will be used in the next example.


\begin{figure}[h!]
    \centering    \includegraphics[width=.9\linewidth]{figs/TWTR_Mayprice.eps}
    \caption{Twitter Minutely Prices from May 4, 2022 to May 19, 2022.}
    \label{fig: minutely stock price}
\end{figure}



We now examine the trading performance of the double linear policy using the same four weighting function $w_i(k)$ for $i \in \{0,1,2,3\}$ described in Example~\ref{example: GBM with jumps}. Specifically, with~$\alpha = 1/2$ and initial account value~$V_0 = 1$, the corresponding trading gain-loss trajectories are shown in Figure~\ref{fig: TWTR trading gain loss}. 
In contrast to the negative returns obtained by the buy-and-hold  (B\&H)  long-only strategy with constant weight $w_0$, we note that all the proposed weighting functions  of the double linear policy assured positive trading gains for the Twitter data.
Table~\ref{tab: minutely data trading performance} also summarizes another performance metric, such as variances and Sharpe ratio. 
It is also worth mentioning that similar findings hold for flipped TWTR price data, indicating the robustness of double linear policy and an ability to capture underlying market dynamics in both bull and bearish markets.


\begin{figure}[h!]
    \centering
    \includegraphics[width=.9\linewidth]{figs/TWTR_trading.eps}
    \caption{Cumulative Gain-Loss Using Twitter Minute-by-Minute Data.}
    \label{fig: TWTR trading gain loss}
\end{figure}

\begin{table}[h!]
    \centering
    \caption{Performance of Double Linear Policy with Various Weights}
    \begin{tabular}{c c c c c c}
         \hline
         & B\&H & $w_0$ & $w_1$ & $w_2$ & $w_3$ \\
        \hline
        \hline
       {\rm Gain-Loss} & -0.2003 & 0.0150 & 0.0142 & 0.0138 & 0.0070 \\
       \hline
       \makecell[c]{Variance} & 0.0066 & 2.9e-05 & 2.3e-05 & 2.6e-05 & 6.2e-06 \\
       \hline
        Sharpe Ratio & -1.6878 & 1.2106 & 1.2308 & 1.4722 & 0.9497 \\
        \hline
    \end{tabular}
    \label{tab: minutely data trading performance}
\end{table}
\end{example}


\begin{example}[Blending Moving Average Indicator] \rm
In this example, we blend the use of the \textit{moving average} indicator,  a common method in technical analysis,  as a criterion for designing the weighting function into the double linear policy. This  approach enables dynamic adjustment of the investment based on the indicator. 
The weighting function used in the double linear policy~(\ref{eq: double linear policy}) is defined as
\begin{align} \label{eq: weight with MA indicator}
 w_{{\rm MA}_d}(k) := w \cdot \mathbb{1}_{ \left\{ S(k) >{\rm MA}_d(k) \right\} }(k),
\end{align}
where $w \in \mathcal{W}$ and ${\rm MA}_d(k)$
represent the last $d$-period average stock price for~$d \geq 1$.
For example, in the case of minutely data,~${\rm MA}_5(k)$, ${\rm MA}_{10}(k)$, ${\rm MA}_{20}(k)$, ${\rm MA}_{30}(k)$ represent the last 5-minute, 10-minute, 20-minute, and 30-minute average stock price, respectively.
The investment philosophy is to invest only when the stock price is higher than the  moving average, which signals a buying opportunity.

With $\alpha = 1/2$, $V_0 = 1$, and $w=0.8$, we summarize the cumulative gain-loss, variance, and Sharpe ratio in Table~\ref{tab: minutely data trading performance for moving average}, and the trading trajectories are shown in Figure~\ref{fig: TWTR trading gain loss for moving average}.
From the table, we see that $w_{\rm MA_{20}}$ leads to the best performance in terms of the Sharpe ratio.
In all cases, we see positive returns using the weighting functions incorporated with the moving average indicator. Also, while not demonstrated in this paper, the MA indicator in Equation~(\ref{eq: weight with MA indicator}) can be readily replaced by another technical analysis indicator, such as weighted moving average, moving median, moving average convergence and divergence~(MACD) and so on.



\begin{table}[h!]
    \centering
    \caption{Performance of Double Linear Policy with MA Indicator}
    \begin{tabular}{c c c c c}
         \hline
         & $w_{{\rm MA}_5}$ & $w_{{\rm MA}_{10}}$ & $w_{{\rm MA}_{20}}$ & $w_{{\rm MA}_{30}}$\\
        \hline
        \hline
       {\rm Gain-Loss} & 0.0061 & 0.0076 & 0.0117 & 0.0042\\
       \hline
       Variance & 9.7e-06 & 1.1e-05 & 1.4e-05 & 2.2e-06\\
       \hline
        Sharpe Ratio & 0.7097 & 0.8806 & 1.6343 & 0.8651\\
        \hline
    \end{tabular}
    \label{tab: minutely data trading performance for moving average}
\end{table}

\begin{figure}[h!]
    \centering    
    \includegraphics[width=.9\linewidth]{figs/TWTR_trading_MA.eps}
    \caption{Cumulative Gain-Loss Using Various MA Indicators.}
    \label{fig: TWTR trading gain loss for moving average}
\end{figure}

 \end{example}




\section{Concluding Remarks}
This paper extends  the double linear policy by incorporating time-varying weights in a discrete-time setting. Using a set of elementary symmetric polynomials, we prove that the RPE property is preserved in the extended policy. In addition, we derive an explicit expression for the expected cumulative gain-loss function and its variance.
We conducted extensive Monte Carlo simulations using various weighting functions to validate our theory. Our results also show that the extended double linear policy with time-varying weights can be integrated with the standard technical analysis technique such as moving~average.

In future research, it would be interesting to expand our analysis to a multi-asset case, where the weights can be optimized for a portfolio of assets; see  \cite{hsieh2022robust} for an initial approach. Additionally, one valuable direction would be to investigate the impact of serial-correlated returns on the performance of the double linear policy with time-varying weights.
For example, an Auto-Regressive (AR) return model might be worth pursuing.
Finally, the impact of transaction costs could be considered to assess the practicality of the proposed policy in real-world applications; see \cite{hsieh2022robustness}.



 
\bibliographystyle{ieeetr}
\bibliography{refs}   


% \clearpage
% \appendix
% \section{Appendix}

% \begin{table}[h!]
%     \centering
%     \caption{Performance of Double Linear Policy with Various Weights}
%     \begin{tabular}{|c|c|c|c|c|c|c|}
%         \hline
%          & B\&H & $w_0$ & $w_1$ & $w_2$ & $w_3$ \\
%         \hline
%        $\mathcal{G}$ & -0.2458 & 0.0150 & 0.0142 & 0.0138 & 0.0070 \\
%        sample variance & 0.0066 & 2.93e-05 & 2.30e-05 & 2.57e-05 & 6.2e-06 \\
%        Sharpe ratio & -1.6878 & 1.2106 & 1.2308 & 1.4722 & 0.9497 \\
%        \hline
%     \end{tabular}
%     % \label{tab: minutely data trading performance}
% \end{table}

% \begin{table}[h!]
%     \centering
%     \caption{Performance of Double Linear Policy with MA Indicator}
%     \begin{tabular}{|c|c|c|c|c|c|c|}
%         \hline
%          & $w_{{\rm MA}_5}$ & $w_{{\rm MA}_{10}}$ & $w_{{\rm MA}_{20}}$ & $w_{{\rm MA}_{30}}$\\
%         \hline
%        $\mathcal{G}$ & 0.0061 & 0.0076 & 0.0117 & 0.0042\\
%        sample variance  & 9.71e-06 & 1.08e-05 & 1.42e-05 & 2.22e-06\\
%        Sharpe ratio & 0.7097 & 0.8806 & 1.6343 & 0.8651\\
%        \hline
%     \end{tabular}
%     % \label{tab: minutely data trading performance for moving average}
% \end{table}



% % $(1+R_f)^k + \sum_{j=0}^{m} e_{2j+1}(\mu - R_f)^{2j+1} (1+R_f)^{2m - 2j} + \sum_{j=1}^m e_{2j}(\mu - R_f)^{2j} (1+R_f)^{2m+1-2j}$
% % \\
% % $\frac{r_f}{2}(1+ (w_0+w_1)(\mu-1-r_f) + w_0w_1(-2\mu+r_f)$

% \subsection{Serial Correlated Returns}
% Since stock returns may not be independent for each stage, consider constant admissible weight $w$ and AR(1) model first for $k = 0, 1, 2, \dotsc$, assume $|a_1|<1$, $\epsilon_k \overset{\mathrm{iid}}{\sim} (0, \sigma_\epsilon^2)$ and ${\rm cov}(X_k, \epsilon_s) = 0 \text{, if } s<k$
% \begin{align*}
%     X_{k+1} &= a_0 + a_1X_{k} + \epsilon_k \\
%     &= a_0(1 + a_1 + a_1^2 + \dotsb + a_1^{k-1}) + a_1^{k}X_0 \\
%     &\quad + (a_1^{k-1}\epsilon_{1} + a_1^{k-2}\epsilon_2 + \dotsb  + \epsilon_k) \\
%     &= a_0 \sum_{j=0}^{k-1} a_1^j + a_1^k X_0 + \sum_{j=1}^k a_1^{k-j} \epsilon_j
% \end{align*}
% % $$
% % \begin{aligned}
% %     \mathcal{G}(\alpha, w, k, \mu) &= V_0 \Bigg( \alpha \prod_{j=0}^{k-1} (1+wX_j) + (1-\alpha) \prod_{j=0}^{k-1} (1-wX_j) -1\Bigg) \\
% %     &= V_0\Bigg( \alpha (1+wX_0)(1+wX_1)\dotsb (1+wX_{k-1}) \\
% %     &\qquad \quad + (1-\alpha )(1-wX_0)(1-wX_1)\dotsb (1-wX_{k-1}) -1 \Bigg)
% % \end{aligned}$$
% If $\{X_t\}$ is a stationary time series, we have the following properties, 
% \begin{enumerate}
%     \item mean function is constant over time, i.e., $\mu = \frac{a_0}{1-a_1}$
%     \item ${\rm cov} (X_t,X_{t-k}) = {\rm cov}(X_0, X_k)$ for all time $t$ and lag $k$, i.e., $\sigma^2 = \frac{\sigma_\epsilon^2}{1-a_1^2}$
% \end{enumerate}
% $ \mathbb{E}[X_0] = \mathbb{E}[X_1] = \dotsb = \mathbb{E}[X_k] = \mu$ 
% \begin{align*}
%     \mathbb{E}[X_0X_1] &= \mathbb{E}[X_0(a_0 + a_1X_0 + \epsilon_1)] = a_0 \mathbb{E}[X_0] + a_1 \mathbb{E}[X_0^2] \\
%     &= a_0 \mu + a_1(\sigma^2 + \mu^2) \\
%     &= (1 - a_1) \mu^2 + a_1(\sigma^2 + \mu^2) = \mu^2 + a_1 \sigma^2
% \end{align*} 
% For $k=2$, 
% \begin{align*}
%     &\mathbb{E}[\mathcal{G}(\alpha, w, 2, \mu, a_1)] \\
%     &= \mathbb{E}\bigg[V_0 \bigg( \alpha (1+ wX_0)(1+wX_1) \\
%     &\quad+ (1-\alpha)(1-wX_0)(1-wX_1) -1 \bigg) \bigg] \\
%     &= V_0 \Bigg(\mathbb{E}\left[(2\alpha -1)\Big( w(X_0+X_1)\Big) + w^2X_0X_1 \right] \Bigg) \\
%     &= V_0\Bigg( (2\alpha - 1) \Big(w \mathbb{E}[X_0+X_1]\Big) + w^2 \mathbb{E}[X_0X_1] \Bigg) \\
%     &= V_0 \Bigg( (2\alpha - 1)w (2\mu) + w^2(\mu^2 + a_1 \sigma^2) \Bigg) 
% \end{align*}
% at $\alpha = \frac{1}{2}$, if $a_1 > -\frac{\mu^2}{\sigma^2}$ we have positive expectation $\overline{\mathcal{G}}(\alpha, w, 2, \mu, a_1) > 0$.\\
% \\
% For $k = 3$,\\
% $\mathbb{E}[X_0X_1] = \mathbb{E}[X_1X_2] = \mu^2 + a_1 \sigma^2$ 
% \begin{align*}
%     \mathbb{E}[X_0X_2] &= \mathbb{E}[X_0(a_0(1+a_1) + a_1^2X_0 + (a_1\epsilon_1 + \epsilon_2)] \\
%     &= a_0(1 + a_1) \mathbb{E}[X_0] + a_1^2 \mathbb{E}[X_0^2] \\
%     &= a_0(1+a_1)\mu + a_1^2(\sigma^2+\mu^2) \\
%     &= (1-a_1)(1+a_1)\mu^2 + a_1^2(\sigma^2+\mu^2) \\
%     &= \mu^2 + a_1^2\sigma^2
% \end{align*} 
% \begin{align*}
%     &\mathbb{E}[X_0X_1X_2] \\
%     &= \mathbb{E}[X_0(a_0 + a_1X_0 + \epsilon_1)(a_0(1+a_1) + a_1^2X_0 + a_1\epsilon_1 + \epsilon_2)] \\
%     &= a_0^2(1+a_1)\mathbb{E}[X_0] + a_0a_1(1+2a_1)\mathbb{E}[X_0^2] + a_1^3 \mathbb{E}[X_0^3] \\
%     &= a_0^2(1+a_1)\mu + a_0a_1(1+2a_1)(\sigma^2 + \mu^2) + a_1^3 \mathbb{E}[X_0^3] \\
%     &= (1-a_1)^2(1+a_1)\mu^3 + (1-a_1)\mu a_1(1+2a_1)(\sigma^2+\mu^2) \\
%     &\quad + a_1^3\mathbb{E}[X_0^3]\\
%     &= (1-a_1^3)\mu^3 + a_1(1-a_1)(1+2a_1)\sigma^2 + a_1^3\mathbb{E}[X_0^3]
% \end{align*} 
% \begin{align*}
%     &\mathbb{E}[\mathcal{G}(\alpha, w, 3, \mu, a_1)] \\
%     &= \mathbb{E}\bigg[ V_0 \bigg( \alpha (1+ wX_0)(1+wX_1)(1+wX_2) \\
%     &\qquad + (1-\alpha)(1-wX_0)(1-wX_1)(1-wX_2) -1 \bigg) \bigg] \\
%     &= V_0 \Bigg(\mathbb{E}\Big[(2\alpha -1)\Big( w(X_0+X_1) + w^3X_0X_1X_2\Big) \\
%     &\qquad + w^2(X_0X_1 + X_0X_1 + X_1X_2) \Big] \Bigg) \\
%     &= V_0\Bigg( (2\alpha - 1)\Big( w \mathbb{E}[X_0+X_1+X_2] + w^3 \mathbb{E}[X_0X_1X_2]\Big) \\
%     &\qquad + w^2 \mathbb{E}[X_0X_1 + X_0X_2 + X_1X_2] \Bigg) \\
%     &= V_0 \Bigg( (2\alpha - 1)\bigg(3 w \mu + w^3 \Big( (1-a_1^3)\mu^3 \\
%     &\qquad + a_1(1-a_1)(1+2a_1)\sigma^2 + a_1^3 \mathbb{E}[X_0^3]\Big) \bigg)\\
%     &\qquad + w^2\bigg( 2(\mu^2 + a_1\sigma^2) + (\mu^2 + a_1^2\sigma^2) \bigg) \Bigg) \\
%     &= V_0\Bigg( (2\alpha -1)\Big( 3w\mu + (1-a_1^3)w^3\mu^3 \\
%     &\qquad+ a_1(1-a_1)(1+2a_1)w^3\sigma^2 + a_1^3\mathbb{E}[X_0^3]\Big) \\
%     &\qquad + w^2 \Big( 3\mu^2 + a_1(2+a_1)\sigma^2 \Big) \Bigg)
% \end{align*}
% at $\alpha = \frac{1}{2}$, if $\frac{\mu^2}{\sigma^2}>\frac{1}{3}$, we have positive expectation; o.w, if $0 <\frac{\mu^2}{\sigma^2}<\frac{1}{3}$ and $a_1> -1 + \sqrt{1-\frac{3\mu^2}{\sigma^2}}$ we have positive expectation $\overline{\mathcal{G}}(\alpha, w, 3, \mu ,a_1)>0$. 
% For $k=4$, the even part,
% $$
% \begin{aligned}
%     &\mathbb{E}[w^2(X_0X_1+\dotsb + X_2X_3) + w^4X_0X_1X_2X_3] \\
%     &= w^2\mathbb{E}[X_0X_1+\dotsb + X_2X_3]+ w^4\mathbb{E}[X_0X_1X_2X_3]\\
%     &= w^2\Bigg( a_0(6+3a_1+ a_1^2)\mathbb{E}[X_0] + a_1(3+2a_1+a_1^2)\mathbb{E}[X_0^2] \Bigg) \\
%     &\quad +w^4 \Bigg( a_0^3(1+a_1)(1+a_1+a_1^2)\mathbb{E}[X_0] \\
%     &\quad+ a_0^2(a_1+3a_1^2+4a_1^3+3a_1^4) \mathbb{E}[X_0^2] \\
%     &\quad + a_0a_1^2(a_1 + 2a_1^2 + 3a_1^3) \mathbb{E}[X_0^3] + a_1^6\mathbb{E}[X_0^4]\Bigg) 
% \end{aligned}$$

% \subsection{lognormal distribution}
% Consider pre-period return is lognormal distribution
% \[
% \exp(Y) = 1+X_0  \sim lognormal(\mu, \sigma^2)
% \]
% Then we have $n$-th moment 
% $\mathbb{E}[(1+X_k)^n] = \exp (n\mu + \frac{1}{2}n^2 \sigma^2)$. For example, \\
% % $\mathbb{E}[X_0 + 1] = \exp(\mu + \frac{1}{2}\sigma^2) \implies$
% $\mathbb{E}[X_0] = \exp(\mu + \frac{1}{2}\sigma^2) -1$ 
% \\
% % $\mathbb{E}[(X_0 + 1)^2] = \exp(2\mu + \frac{4}{2}\sigma^2) \implies $
% $ \mathbb{E}[X_0^2] = \exp(2\mu + \frac{4}{2}\sigma^2) - 2\exp(\mu + \frac{1}{2}\sigma^2) + 1$ 
% \\
% % $\mathbb{E}[(X_0 + 1)^3] = \exp(3\mu + \frac{9}{2}\sigma^2) \implies $
% $ \mathbb{E}[X_0^3] = \exp(3\mu + \frac{9}{2}\sigma^2) - 3\exp(2\mu + \frac{4}{2}\sigma^2) + 3\exp(\mu + \frac{1}{2}\sigma^2) - 1$ 
% \\
% Thus, expected cumulative returns
% \begin{align*}
%     &\mathbb{E}[\mathcal{G}_2(\alpha, w, \mu)]  \\
%     &= V_0\bigg((2\alpha - 1) 2w \mathbb{E}[X_0] + w^2 \Big(a_0 \mathbb{E}[X_0] + a_1 \mathbb{E}[X_0^2] \Big) \bigg) \\
%     &= V_0\bigg((2\alpha - 1) 2w \mathbb{E}[X_0] + w^2 \Big((1-a_1) (\mathbb{E}[X_0])^2 + a_1 \mathbb{E}[X_0^2] \Big) \bigg) \\
%     &= V_0\bigg( (2\alpha - 1) 2w \Big(\exp(\mu + \frac{1}{2}\sigma^2) - 1 \Big) \\
%     &\qquad + w^2 \Big(\big(\exp(\mu + \frac{1}{2} \sigma^2) -1 \big)^2 \\
%     &\qquad+ a_1\big(\exp(2\mu + 2\sigma^2) - \exp(2\mu + \sigma \big) \Big) \bigg)
% \end{align*}

% \subsection{Binomial lattice}
% Let $S(k)$ be the price at stage $k$, and $Y$ from Bernoulli distribution satisfies, 
% \[
% S(k+1) = S(k) Y(k)
% \]
% and 
% \[
% P(Y=u+1) = p, P(Y=d+1)=1-p
% \]
% So pre-period 
% \[
% X(k) = \frac{S(k+1) - S(k)}{S(k)} = \frac{S(k)Y(k) - S(k)}{S(k)} = Y(k)-1
% \]
% That is, pre-period return $\{X_k\}$ is Bernoulli distribution with 
% \[
% P(X = u) = p, P(X = d) = 1-p
% \]
% And the $n$-th moment is $\mathbb{E}[X_0^n] = u^n p + d^n (1-p)$.\\
% Thus, expected cumulative returns
% \begin{align*}
%     &\mathbb{E}[\mathcal{G}_2(\alpha, w, \mu)] \\
%     &= V_0\bigg((2\alpha - 1) 2w \mathbb{E}[X_0] + w^2 \mathbb{E}[X_0X_1] \bigg) \\
%     &= V_0\bigg((2\alpha - 1) 2w \mathbb{E}[X_0] + w^2 \Big(a_0 \mathbb{E}[X_0] + a_1 \mathbb{E}[X_0^2] \Big) \bigg) \\
%     &= V_0\bigg((2\alpha - 1) 2w \mathbb{E}[X_0] + w^2 \Big((1-a_1) (\mathbb{E}[X_0])^2 + a_1 \mathbb{E}[X_0^2] \Big) \bigg) \\
%     &= V_0\bigg( (2\alpha - 1) 2w \Big(up+d(1-p)\Big) \\
%     &\qquad + w^2 \Big((1-a_1)\big( up+d(1-p) \big)^2 + a_1(u^2p + d^2(1-p) ) \Big) \bigg)
% \end{align*}





% \subsection{Different weights for long and short positions}
% Different weights for long and short position double linear policy are given by
% \begin{align*}
% \begin{cases}
%     \pi_L(k) = wV_L(k);\\
%     \pi_S(k) = -\beta w V_S(k).
% \end{cases}
% \end{align*}
% Thus, the account value for the long and short positions can be written as

% \begin{align*}
% \begin{cases}
%     V_L(k+1) = V_L(k) + \pi_L(k)X(k);\\
%     V_S(k+1) = V_S(k) + \pi_S(k)X(k).
% \end{cases}
% \end{align*}
% That is $V_L(k+1) = V_L(k)(1+wX(k))$ and $V_S(k+1) = V_S(k)(1-\beta w X(k))$, so the total account value at stage $k$ is 
% \begin{align*}
%     V(k) &= V_L(k)+V_S(k)\\
%     &= V_0\Bigg( \alpha \bigg( \prod_{j=0}^{k-1} (1+wX(j))\bigg) \\
%     &\qquad + (1-\alpha) \bigg( \prod_{j=0}^{k-1} (1-\beta w X(j))\bigg) \Bigg)\\
%     &\geq V_0 \Bigg (\alpha (1+wX_{\min})^k+(1-\alpha)(1-\beta w X_{\max})^k \bigg) \\
%     &> V_0 \Bigg (\alpha (1-w)^k+(1-\alpha)(1-\beta w X_{\max})^k \bigg)
% \end{align*}
% for $-1 < X_{\min} \leq X(k) \leq X_{\max} < \infty $.
% For the survivability test to avoid bankruptcy, $w$ and $\beta$ satisfy $w\in [0,1]$ and $\beta w \in [0, 1/X_{\max}]$.\\
% \\
% The expected cumulative gain-loss function is given by
% \begin{align*}
%     \overline{\mathcal{G}}_k 
%     &= \mathbb{E} \left[ V(k) -V_0 \right]\\
%     &= \mathbb{E} \bigg[V_0\bigg( \alpha \prod_{j=0}^{k-1}(1+wX(j)) \\
%     &\qquad (1-\alpha)\prod_{j=0}^{k-1}(1-\beta w X(j)) -1\bigg)\bigg] \\
%     &= V_0\left(\alpha (1+w\mu)^k + (1-\alpha)(1-\beta w \mu)^k -1\right). 
% \end{align*}

% For $k=1$
% \begin{align*}
%     \overline{\mathcal{G}}_1 &=  V_0\left(\alpha (1+w\mu) + (1-\alpha)(1-\beta w \mu) -1\right) \\
%     &= V_0(\alpha w \mu + \alpha \beta w \mu - \beta w \mu) \\
%     &= V_0 w \mu(\beta (\alpha -1) + \alpha )
% \end{align*}

% For $k=2$
% \begin{align*}
%     \overline{\mathcal{G}}_2 &=  V_0\left(\alpha (1+w\mu)^2 + (1-\alpha)(1-\beta w \mu)^2 -1\right) \\
%     &= V_0 \Big(2w \mu \left(\beta (\alpha -1) + \alpha \right) + w^2\mu^2 \left(\beta^2 (1-\alpha) + \alpha \right)\Big)
% \end{align*}

% For $k=3$
% \begin{align*}
%     \overline{\mathcal{G}}_3 &=  V_0\left(\alpha (1+w\mu)^3 + (1-\alpha)(1-\beta w \mu)^3 -1\right) \\
%     &= V_0 \Big(3w \mu \big(\beta (\alpha -1) + \alpha \big) + w^3 \mu^3 \big(\beta^3 (\alpha -1) + \alpha \
%     \big) \\
%     &\quad + 3w^2\mu^2 \big(\beta^2 (1-\alpha) + \alpha \big)\Big)
% \end{align*}

% For $k=4$
% \begin{align*}
%     \overline{\mathcal{G}}_4 &=  V_0\left(\alpha (1+w\mu)^4 + (1-\alpha)(1-\beta w \mu)^4 -1\right) \\
%     &= V_0 \Big(4w \mu \big(\beta (\alpha -1) + \alpha \big) + w^3 \mu^3 \big(\beta^3 (\alpha -1) + \alpha 
%     \big) \\
%     &\qquad + 4w^2\mu^2 \big(\beta^2 (1-\alpha) + \alpha \big) + 6w^4\mu^4 \big(\beta^4 (1-\alpha) + \alpha \big) \Big)
% \end{align*}


% \begin{theorem}[Sufficiency for Positive Expectation]
% Let $k=1, 2, \dots$, $\alpha \in (0,1)$, $w \in [0, 1]$ be the weight for long position, $\beta w \in [0, 1/X_{\max}]$ be the weight for short position. Then if $\mu^\ell (\beta^\ell (\alpha -1) + \alpha) \geq 0$  for $\ell = 1, 3, \dots, 2k-1$, cumulative gain loss is non-negative 
% \[
% \overline{\mathcal{G}}_k(\alpha, w, \beta, \mu) \geq 0.
% \]
% Moreover, if $w, \beta >0$, $\mu \neq 0$ and $\mu^\ell (\beta^\ell (\alpha-1) + \alpha) > 0$, we have positive expected gain.
% \end{theorem}
% \begin{proof}
% Let $\alpha \in (0,1)$, $w \in [0, 1]$, $\beta w \in [0, 1/X_{\max}]$, the cumulative gain-loss function $\overline{\mathcal{G}}_k$ at stage $k$ is given by 
% \begin{align*}
%     \overline{\mathcal{G}}_k &= V_0 \Big( \alpha (1+w\mu)^k + (1-\alpha)(1-\beta w \mu )^k -1\Big) \\
%     &= V_0 \Bigg( \alpha \sum_{j=0}^k \binom{k}{j} (w \mu)^j + (1-\alpha) \sum_{j=0}^k \binom{k}{j}(-\beta w \mu)^j -1 \Bigg) \\
%     &= V_0 \Bigg( \alpha \sum_{j=1}^k \binom{k}{j} (w \mu)^j + (1-\alpha) \sum_{j=1}^k \binom{k}{j}(-\beta w \mu)^j \Bigg) \\
%     &= V_0 \Bigg( \sum_{j=1}^k \binom{k}{j} \Big(\alpha (w\mu)^j + (-1)^j(1-\alpha)(\beta w \mu)^j \Big) \Bigg) \\
%     &= V_0 \Bigg( \sum_{j=1}^{2n-1} \binom{k}{2j-1} \Big( \alpha (w \mu)^{2j-1} - (1-\alpha)(\beta w \mu)^{2j-1} \Big) \\
%     &\qquad \quad+ \sum_{j=1}^{2n} \binom{k}{2j} \Big(\alpha (w \mu)^{2j} + (1-\alpha) (\beta w \mu)^{2j} \Big) \Bigg) \\
%     &= V_0 \Bigg( \sum_{j=1}^{2n-1} \binom{k}{2j-1} \Big( \alpha-(1-\alpha)\beta^{2j-1} \Big) (w \mu)^{2j-1} \Big) \\
%     &\qquad \quad+ \sum_{j=1}^{2n} \binom{k}{2j} \Big(\alpha + (1 - \alpha) \beta^{2j} \Big) (w \mu)^{2j} \Bigg) \\
%     &= V_0 \Bigg( \sum_{j=1}^{2n-1} \binom{k}{2j-1} w^{2j-1} \mu^{2j-1} \Big(\beta^{2j-1} (\alpha -1) + \alpha \Big) \Big) \\
%     &\qquad \quad+ \sum_{j=1}^{2n} \binom{k}{2j} w^{2j} \mu^{2j} \Big( \beta^{2j}(1 - \alpha) + \alpha \Big)  \Bigg) 
% \end{align*}
% For $w \in [0,1], \beta \in [0, 1/X_{\max}]$,
% since $\alpha \in (0, 1)$, thus $(1-\alpha)$ is positive, and $\mu^{2j}$ is non-negative, we then have $\sum_{j=1}^{2n} \binom{k}{2j} w^{2j} \mu^{2j} \Big( \beta^{2j}(1 - \alpha) + \alpha \Big) \geq 0$, the even part of the cumulative gain-loss function is non-negative. 
% However, the odd term of the cumulative gain-loss function, since $(\alpha -1)$ is negative, $\beta^{2j-1}(\alpha-1) + \alpha$ might be negative. Besides, $\mu^{2j-1}$ is negative when $\mu<0$. As a result, if $\mu^{2j-1} (\beta^{2j-1}(\alpha -1) + \alpha) \geq 0$, for $j = 1, 2, 3, \dots, $ the odd term of cumulative gain-loss function $\sum_{j=1}^{2n-1} \binom{k}{2j-1} w^{2j-1} \mu^{2j-1} \Big(\beta^{2j-1} (\alpha -1) + \alpha \Big) \geq 0$. 
% Thus, cumulative gain-loss function $\overline{\mathcal{G}}_k$ is non-negative.
% \end{proof}
% % \\
% % Moreover, for $\mu \neq 0$ and $w>0$, $\beta>0$, 
% For $\alpha \in (0,1)$, $w, \beta>0$\\
% $(i)$ $\beta^\ell (\alpha-1) + \alpha = 0$
% \begin{align*}
%     &\beta^\ell (\alpha-1) + \alpha = 0 \\
%     &\implies \beta^\ell = \frac{-\alpha}{\alpha -1} = \frac{\alpha}{1-\alpha}, \text{ for } \ell = 1, 3, \dots \\
%     &\implies \beta^\ell = \frac{\alpha}{1-\alpha} = 1 \text{, for } \ell = 1, 3, \dots \\
%     &\implies \alpha = \frac{1}{2}
% \end{align*}
% So, when $\alpha=1/2, \beta = 1$, which is the equal weight double linear form, $V_L(0) =V_S(0)= \frac{1}{2}V_0$ and
% \begin{align*}
% \begin{cases}
%     \pi_L(k) &= w V_L(k);\\
%     \pi_S(k) &= -\beta w V_S(k) = -w V_S(k).
% \end{cases}
% \end{align*}
% \\
% $(ii)$ For $\mu >0$, $\beta^\ell (\alpha-1) + \alpha > 0$
% \begin{align*}
%     &\beta^\ell (\alpha-1) + \alpha > 0 \\
%     &\implies \beta^\ell < \frac{-\alpha}{\alpha-1} = \frac{\alpha}{1-\alpha} \text{, for } \ell = 1, 3, \dots 
% \end{align*}

% There are two conditions for $\alpha$,
% \begin{enumerate}
%     \item $\alpha > 1/2$, $\beta^\ell< \frac{\alpha}{1-\alpha}$ and $\frac{\alpha}{1-\alpha}>1$ 
    
%     For example, let $\alpha = 2/3$, $\frac{\alpha}{1-\alpha}=2$, then for if $\beta^3<2$ can guarantee $\beta<2$, which implies that for $\ell = 1, 3, \dots, L$, if $\beta^L <2$, then $\beta^\ell<2 \ \forall \ell$.
%     Moreover, if $\beta < 1 < \frac{\alpha}{1-\alpha}$ can also garantee $\beta^\ell < 1, \forall \ell$ 
    
%     \item $\alpha < 1/2$, $\beta^\ell< \frac{\alpha}{1-\alpha}<1$
    
%     For example, let $\alpha = 1/3$, $\frac{\alpha}{1-\alpha}=1/2$, then for $\beta >0$, if $\beta<1/2$ can guarantee $\beta^3<1/2$, which implies that for $\ell = 1, 3, \dots, L$, if $\beta <1/2$, then $\beta^\ell<1/2 \ \forall \ell$.
%     % \textbf{better?}
% \end{enumerate}
% \textbf{Compare}

% Let $\alpha_1> 1/2$, $\beta_1<1$ be first set of parameters, $\alpha_2 < 1/2 , \beta_2 < \frac{\alpha_2}{1-\alpha_2}$ be second set of parameters. Then, corresponding gain-loss function for $k=2$ are
% \begin{align*}
%     \overline{\mathcal{G}}_2^{(1)} &= V_0 (2w\mu (\beta_1(\alpha_1 - 1) + \alpha_1) + w^2 \mu^2(\beta_1^2 (1-\alpha_1) + \alpha_1)); \\ 
%     \overline{\mathcal{G}}_2^{(2)} &= V_0 (2w\mu (\beta_2(\alpha_2 - 1) + \alpha_2) + w^2 \mu^2(\beta_2^2 (1-\alpha_2) + \alpha_2)).
% \end{align*}
% For $\mu>0$, to compare these two value, we choose $\beta_1 = \beta_2 = \beta $, and since $1>\alpha_1>1/2>\alpha_2>0$ , we then have $0>\alpha_1-1>-1/2>\alpha_2-1>-1$ and
% \begin{align*}
%     \overline{\mathcal{G}}_2^{(1)} &= V_0 (2w\mu (\beta(\alpha_1 - 1) + \alpha_1) + w^2 \mu^2(\beta^2 (1-\alpha_1) + \alpha_1)) \\
%     &> V_0 (2w\mu (-\frac{1}{2} \beta + \alpha_1) + w^2 \mu^2(\beta^2  + \alpha_1(1-\beta^2))) \\
%     &> V_0 (2w\mu (-\frac{1}{2} \beta + \alpha_2) + w^2 \mu^2(\beta^2  + \alpha_2(1-\beta^2))) \\
%     &> V_0 (2w\mu (\beta(\alpha_2 - 1) + \alpha_2) + w^2 \mu^2(\beta^2 (1-\alpha_2) + \alpha_2)) \\
%     &= \overline{\mathcal{G}}_2^{(2)}.
% \end{align*}
% It shows that under different sets of parameters, when $\mu >0$, under equal weight of short position $\beta w$, if we allocate more initial account value for long position and less for short position, we would have more expected gain-loss.
% \\
% $(iii)$ For $\mu <0$, $\beta^\ell (\alpha-1) + \alpha < 0$
% \begin{align*}
%     &\beta^\ell (\alpha-1) + \alpha < 0 \\
%     &\implies \beta^\ell > \frac{-\alpha}{\alpha-1} = \frac{\alpha}{1-\alpha} \text{, for } \ell = 1, 3, \dots 
% \end{align*}

% There are two conditions for $\alpha$,
% \begin{enumerate}
%     \item $\alpha > 1/2$, $\beta^\ell> \frac{\alpha}{1-\alpha}>1$ 
    
%     For example, let $\alpha = 2/3$, $\frac{\alpha}{1-\alpha}=2$, then for if $\beta>2$ can guarantee $\beta^3>2$, which implies that for $\ell = 1, 3, \dots, L$, if $\beta >2$, then $\beta^\ell>2 \ \forall \ell$.
    
%     \item $\alpha < 1/2$, $\beta^\ell> \frac{\alpha}{1-\alpha}$ and $\frac{\alpha}{1-\alpha}<1$
    
%     For example, let $\alpha = 1/3$, $\frac{\alpha}{1-\alpha}=1/2$, then for $\beta >0$, if $\beta^3>1/2$ can guarantee $\beta<1/2$, which implies that for $\ell = 1, 3, \dots, L$, if $\beta^L >1/2$, then $\beta^\ell>1/2 \ \forall \ell$.

%     Moreover, if $\beta >1$ can also guarantee $\beta ^\ell > \frac{\alpha}{1-\alpha} \ \forall \ell$ for $\frac{\alpha}{1-\alpha} <1$ 
% \end{enumerate}
% \textbf{Compare}

% Let $\alpha_1> 1/2$, $\beta_1>\frac{\alpha_1}{1-\alpha_1}$ be first set of parameters, $\alpha_2 < 1/2 , \beta_2 > 1$ be second set of parameters. Then, the corresponding gain-loss function for $k=2$ are
% \begin{align*}
%     \overline{\mathcal{G}}_2^{(1)} &= V_0 (2w\mu (\beta_1(\alpha_1 - 1) + \alpha_1) + w^2 \mu^2(\beta_1^2 (1-\alpha_1) + \alpha_1)); \\ 
%     \overline{\mathcal{G}}_2^{(2)} &= V_0 (2w\mu (\beta_2(\alpha_2 - 1) + \alpha_2) + w^2 \mu^2(\beta_2^2 (1-\alpha_2) + \alpha_2)).
% \end{align*}
% For $\mu<0$, to compare these two value, we choose $\beta_1 = \beta_2 = \beta $, and since $1>\alpha_1>1/2>\alpha_2>0$ , we then have $0<\mu(\alpha_1-1)<-\frac{1}{2} \mu < \mu(\alpha_2-1) < -\mu$ and
% \begin{align*}
%     \overline{\mathcal{G}}_2^{(1)} &= V_0 (2w\mu (\beta(\alpha_1 - 1) + \alpha_1) + w^2 \mu^2(\beta^2 (1-\alpha_1) + \alpha_1)) \\
%     &< V_0 (2w\mu (-\frac{1}{2} \beta + \alpha_1) + w^2 \mu^2(\beta^2  + \alpha_1(1-\beta^2))) \\
%     &< V_0 (2w\mu (-\frac{1}{2} \beta + \alpha_2) + w^2 \mu^2(\beta^2  + \alpha_2(1-\beta^2))) \\
%     &< V_0 (2w\mu (\beta(\alpha_2 - 1) + \alpha_2) + w^2 \mu^2(\beta^2 (1-\alpha_2) + \alpha_2)) \\
%     &= \overline{\mathcal{G}}_2^{(2)}.
% \end{align*}
% It shows that under different sets of parameters when $\mu <0$, under the weight of the short position, be fixed $\beta w$, if we allocate more initial account value for a short position and less for a long position, we would have more expected gain-loss.
% As a result, these four conditions 
% \begin{table}[h!]
%     \centering
%     \caption{\textbf{????}}
%     \begin{tabular}{|c|c|c|c|}
%          \hline
%          \multicolumn{2}{|c|}{$\mu>0$} &  \multicolumn{2}{c|}{$\mu<0$}\\
%          \hline
%          $\alpha >1/2$ & $\alpha < 1/2$ & $\alpha > 1/2$ & $\alpha < 1/2$\\
%          \hline
%          $\beta <1$ &
%          $\beta < \frac{\alpha}{1-\alpha}$ & 
%          $\beta > \frac{\alpha}{1-\alpha} $ & $\beta >1 $ \\
%          \hline
%     \end{tabular}

%     \label{tab:my_label}
% \end{table}


% The relationship between parameters $\mu, \alpha, \beta$ are summarized in Table~\ref{tab:my_label}. In the case of $\mu>0$, there are two pair options for $\alpha$ and $\beta$. One is $\alpha>1/2$ and $\beta<1$, which means when there is an uptrend for market direction, we allocate more initial account value for the long position and give less weight to the short position. This would result in a positive expected value. 
% Another one is  $\alpha<1/2$, and corresponding $\beta<\frac{\alpha}{1-\alpha}$, which means if we allocate more initial account value in a short position during an uptrend in the market, weight should be less in correspond to obtain a positive expected value. 

\end{document}

\begin{thebibliography}{10}

\bibitem{dokuchaev2002dynamic}
N.~Dokuchaev, {\em {Dynamic Portfolio Strategies: Quantitative Methods and
  Empirical Rules for Incomplete Information}}, vol.~47.
\newblock Springer Science \& Business Media, 2002.

\bibitem{barmish2011arbitrage}
B.~R. Barmish and J.~A. Primbs, ``{On Arbitrage Possibilities via Linear
  Feedback in an Idealized Brownian Motion Stock Market},'' in {\em Proceedings
  of the IEEE Conference on Decision and Control (CDC) and European Control
  Conference (ECC)}, pp.~2889--2894, 2011.

\bibitem{barmish2015new}
B.~R. Barmish and J.~A. Primbs, ``{On a New Paradigm for Stock Trading via a
  Model-Free Feedback Controller},'' {\em IEEE Transactions on Automatic
  Control}, vol.~61, no.~3, pp.~662--676, 2015.

\bibitem{baumann2016stock}
M.~H. Baumann, ``{On Stock Trading via Feedback Control when Underlying Stock
  Returns Are Discontinuous},'' {\em IEEE Transactions on Automatic Control},
  vol.~62, no.~6, pp.~2987--2992, 2016.

\bibitem{primbs2017robustness}
J.~A. Primbs and B.~R. Barmish, ``{On Robustness of Simultaneous Long-Short
  Stock Trading Control with Time-Varying Price Dynamics},'' {\em
  IFAC-PapersOnLine}, vol.~50, no.~1, pp.~12267--12272, 2017.

\bibitem{baumann2019positive}
M.~H. Baumann and L.~Gr{\"u}ne, ``{Positive Expected Feedback Trading Gain for
  All Essentially Linearly Representable Prices},'' in {\em Proceedings of the
  Asian Control Conference (ASCC)}, pp.~150--155, 2019.

\bibitem{malekpour2018generalization}
S.~Malekpour, J.~A. Primbs, and B.~R. Barmish, ``{A Generalization of
  Simultaneous Long--Short Stock Trading to PI Controllers},'' {\em IEEE
  Transactions on Automatic Control}, vol.~63, no.~10, pp.~3531--3536, 2018.

\bibitem{malekpour2016stock}
S.~Malekpour and B.~R. Barmish, ``{On Stock Trading Using a Controller with
  Delay: The Robust Positive Expectation Property},'' in {\em Proceedings of
  the IEEE Conference on Decision and Control (CDC)}, pp.~2881--2887, 2016.

\bibitem{deshpande2018generalization}
A.~Deshpande and B.~R. Barmish, ``{A Generalization of the Robust Positive
  Expectation Theorem for Stock Trading via Feedback Control},'' in {\em
  Proceedings of the European Control Conference (ECC)}, pp.~514--520, 2018.

\bibitem{deshpande2020simultaneous}
A.~Deshpande, J.~A. Gubner, and B.~R. Barmish, ``{On Simultaneous Long-Short
  Stock Trading Controllers with Cross-Coupling},'' {\em IFAC-PapersOnLine},
  vol.~53, no.~2, pp.~16989--16995, 2020.

\bibitem{maroni2019robust}
G.~Maroni, S.~Formentin, and F.~Previdi, ``{A Robust Design Strategy for Stock
  Trading via Feedback Control},'' in {\em Proceedings of the European control
  conference (ECC)}, pp.~447--452, 2019.

\bibitem{o2020generalized}
J.~D. O’Brien, M.~E. Burke, and K.~Burke, ``{A Generalized Framework for
  Simultaneous Long-Short Feedback Trading},'' {\em IEEE Transactions on
  Automatic Control}, vol.~66, no.~6, pp.~2652--2663, 2020.

\bibitem{hsieh2022generalization}
C.-H. Hsieh, ``{Generalization of Affine Feedback Stock Trading Results to
  Include Stop-Loss Orders},'' {\em Automatica}, vol.~136, p.~110051, 2022.

\bibitem{hsieh2022robust}
C.-H. Hsieh, ``{On Robust Optimal Linear Feedback Stock Trading},'' {\em arXiv
  preprint arXiv:2202.02300}, 2022.

\bibitem{hsieh2022robustness}
C.-H. Hsieh, ``{On Robustness of Double Linear Trading with Transaction
  Costs},'' {\em IEEE Control Systems Letters}, vol.~7, pp.~679--684, 2022.

\bibitem{merton1992continuous}
R.~C. Merton, {\em {Continuous-Time Finance}}.
\newblock Blackwell Cambridge, MA, 1992.

\bibitem{etheridge2002course}
A.~Etheridge and M.~Baxter, {\em {A Course in Financial Calculus}}.
\newblock Cambridge University Press, 2002.

\end{thebibliography}