Online Portfolio Selection Based on Adaptive Kalman Filter through Fuzzy Approach


Online portfolio selection is considered about an asset allocation that can be updated by using current data. This is a fundamental problem in computational finance, which is attracted by investors who aim to manage their existing assets. However, several existing methods for solving this problem have not paid much attention to noisy price data. In this research, the extended Kalman filter with fuzzy approach is applied to the online portfolio selection in order to reduce noise in stock price data and estimate its inherent value. For the initial portfolio setting, two ways, being an equal proportion setting and a single index model (SIM), are applied in this work. Numerical results obtained by the proposed algorithm and other techniques such as anticor (AC) and the anticor based on Kalman filtering (K-AC) are compared and discussed. The results show that, based on this dataset, the proposed method gives the higher wealth and red reward-to-variability (RV) ratio in most window sizes when it is compared to other traditional methods in both initial setting techniques. Taking a closer look at the initial proportion techniques, the results reveal that all algorithms with a single index model provide higher wealth than those obtained by using an equal proportion setting. Moreover, the proposed algorithm equipped with SIM method provides both the higher wealth and RV ratio at the window size 20 days and 30 days.

Share and Cite:

Sirirut, T. and Thongtha, D. (2022) Online Portfolio Selection Based on Adaptive Kalman Filter through Fuzzy Approach. Journal of Mathematical Finance, 12, 480-496. doi: 10.4236/jmf.2022.123026.

1. Introduction

The portfolio selection problem is a process for finding the optimal portfolio that provides the highest return with the lowest risk. In order to maximize long-term return, a portfolio manager often properly modifies a portfolio and its proportion. Thus, portfolio selection is considered as an online problem.

Online portfolio selection algorithms are constructed based on various principles such as cross rate principle and mean reversion principle. The cross rate principle proposed by Albeverio et al. in 2001 [1] and is adjusted by Ren and Wu in 2016 [2] and 2017 [3] . This principle regards the order of the asset returns rather than the returns of asset themselves. The concept of this principle is replacing lower performance asset by a better one into a portfolio. However, the cross rate method is effective when we consider only two assets. For a mean reversion principle, an online portfolio selection strategy has been proposed by many researchers (see, [4] [5] [6] and [7] ). In this principle, it is assumed that the stock price will tend to move back to the mean price or inherent value over time. From this point, the investor may get more capital gain in the future from lower-performance stocks than the higher ones at the current time due to a more reasonable cost. Nevertheless, these strategies did not pay much attention to the noise of price data leading to an inaccurate estimation.

Borodin, El-Yaniv and Gogan [8] proposed an online portfolio strategy, named anticor (AC) strategy, with an assumption that a market follows the mean reversion principle. In the mechanism of AC, the statistical relationship and the cross-correlation matrix are used to determine a change of the next period price from the previous one. By the mean reversion principle and this mechanism of AC, the AC algorithm is able to transfer the wealth by moving the proportions of good performing stocks to poor performing ones, and the corresponding amount of proportions is adjusted according to the cross-correlation matrix. However, the AC uses the relative price as a ratio of the current price and the last previous price. This relative price is called a raw relative price. Therefore, the AC considers a price movement from one period to the next one, but it does not focus on a price movement from one period to the true value or its inherent value. However, it is hard to find the inherent value of a stock price because of the complex market noise. This leads to inaccurate predictions.

To eliminate the impact of market noise and accurately describe the asset’s inherent trend price, Raphael and Alain [9] used the Kalman filter algorithm (KF) to reduce noise in the stock price. They proposed a new relative price, called a cyclically adjusted price relative (CAPR), by replacing the last price in an original relative price by the inherent value via the Kalman filter algorithm. Based on the CAPR, they propose the K-AC algorithm, which is proved to be more efficient than AC.

However, there are some important limits of KF. For example, an initial value of noise covariance is completely assumed in the KF system by a fixed number. The covariance has an effect on the Kalman gain, which is used to control the filter bandwidth of the algorithm [10] . However, these values are unknown in most practical applications. The problem here is that the quality of these a priori noise statistics affects the optimality of the KF. Moreover, it has been shown that uncertain noise may provoke the divergence of the filter [11] [12] . From this point of view, Escamilla-Ambrosio and Mort [13] proposed a fuzzy inference system (FIS) based adaptive Kalman filtering. Also, they applied their system to a tracking model in logistics. Their adaptive process is concerned with a prescription of conditions under which the noise covariance is adaptively tuned via a fuzzy inference system. In their numerical study, the result reveals that the adaptation of the Kalman filter performs well when it is compared to KF. With this idea, we provide a new way to estimate the inherent price, given in [13] , by using the adaptive Kalman filter.

In this work, the adaptive Kalman filtering through fuzzy approach is applied to an online portfolio selection to predict a new inherent value for adjusting a raw relative price. Furthermore, comparing and analyzing the results from our approach with traditional methods in real datasets are provided. This paper is organized into five sections. In Section 2, the problem setting in a financial market and the academic background are described. The new online portfolio selection algorithms consisting of three steps are presented in Section 3. The first step is computing an inherent stock price from adaptive Kalman filtering through fuzzy approach. It is followed by constructing an adjusted relative price by using an inherent stock price from the first step. The last step is modifying an AC algorithm and computing a portfolio via adaptive AC with the adjusted relative price. The numerical results and discussions are described in Section 4. Finally, the conclusions of this work are given in Section 5.

2. Academic Background and Problem Setting

In this section, we introduce the problem setting in a financial market for defining variables utilized in this work. Moreover, the basic knowledge, being the anticor algorithm, Kalman filter, and fuzzy inference system, is also presented. The algorithms will be used to setup portfolio selection algorithms in the next section.

2.1. Problem Setting

Consider m stocks in a financial market. The relative price of stock i at the tth period q t ( i ) is the ratio of the closing price of the stock i at the tth period to the

closing price stock at the (t − 1)th period. That is q t ( i ) = p t ( i ) p t 1 ( i ) . Let

q t = ( q t ( 1 ) , q t ( 2 ) , , q t ( m ) ) and q = ( q 1 , q 2 , , q n ) where n is the number of period invested. The vectors q t and q are known as the market vector and the market sequence. Let b t = ( b t ( 1 ) , b t ( 2 ) , , b t ( m ) ) be a portfolio vector, where b t ( j ) represents the weightage of the investor’s capital invested in the jth stock on the tth period. In this paper, the self-financing portfolio is assumed and margin and short selling are not allowed. Thus, i = 1 m b t ( i ) = 1 and b t ( i ) 0 for all t and i. For trading period t > 0 , the cumulative wealth of a portfolio strategy b = ( b 1 , b 2 , , b n ) after n trading periods is as follows:

S n ( b ) = S 0 t = 1 n b t T q t = S 0 t = 1 n i = 1 m b t ( i ) q t ( i ) (1)

where the initial wealth is denoted by S 0 .

In addition, some assumptions on market and trading are assumed as follows:

1) There are no transaction costs and taxes on trading.

2) Investors can trade in a liquid market. Therefore, investors can buy and sell any number of stocks at closing prices.

3) The market behavior cannot influence any portfolio selection strategy.

The simplest portfolio selection strategy is called a buy and hold strategy (BH), which the investors buy stocks using the initial portfolio b and hold all stocks

until the end of investing period. For a portfolio b t = ( 1 m , 1 m , , 1 m ) for all t,

the BH strategy is referred to as the uniform buy and hold strategy (U-BH), which treats the trend in the market. However, the proportion of each stock in a portfolio may not be equal. In this point, the initial proportion setting with a single index model proposed [14] . We purpose the new method that can adjust the next period trading portfolio according to the value assessment of each stock.

2.2. The Anticor Algorithm

In 2004 Borodin et al. [8] proposed an anticor (AC) algorithm. The AC updates a portfolio for the next trading period by adopting the mean reversion theory. The idea of this principle is that whatever the stock price rises or falls, it must revert to the inherent value. Therefore, the algorithm determines an instrument to transfer the wealth from higher-performance stocks to lower-performance ones. To evaluate the performance of the stocks, the AC partitions historical trading days into a number of equal-sized periods called windows size (w), which w is an integer greater than one. Moreover, the AC requires three assumptions as follows:

1) The growth rate of stock i exceeds that of stock j in the current window.

2) Stock j in the next window follows the same performance of stock i in the past window.

3) There is a positive correlation between stock i over the second last window and stock j over the last window.

Let L X 1 and L X 2 be two w × n matrices defined as

L X 1 = ( log ( X t 2 w + 1 ) ) T , , ( log ( X t w ) ) T L X 2 = ( log ( X t w + 1 ) ) T , , ( log ( X t ) ) T (2)

where log ( X t ) denotes ( log ( q t ( 1 ) ) , , log ( q t ( m ) ) ) . The L X 1 and L X 2 are two w × n matrices constructed by taking the logarithm over two consecutive corresponding to time windows [ t 2 w + 1, t w ] and [ t w + 1, t ] . Let L X k ( j ) be the jth column of L X k and μ k ( j ) and σ k ( j ) be the mean and the standard deviation of L X k ( j ) , respectively. The cross-correlation matrix between the column vectors in L X k is defined as follows:

M c o v ( i , j ) = 1 w 1 ( L X 1 ( i ) μ 1 ( i ) ) ( L X 2 ( j ) μ 2 ( j ) ) T , M c o r ( i , j ) = ( M c o v ( i , j ) σ 1 ( i ) σ 2 ( j ) σ 1 ( i ) , σ 2 ( j ) 0, 0 otherwise . (3)

The M c o r ( i , j ) [ 1,1 ] measures the correlation between the log-relative prices of stock i over the second last window and stock j over the last window. If μ 2 ( i ) μ 2 ( j ) and M c o r ( i , j ) > 0 , the AC computes an updated portfolio in the next trading day by considering these two transferring functions:

#Math_39# (4)

t r a n s f e r i j = b t 1 ( i ) c l a i m i j j c l a i m i j . (5)

The updated investment proportion b ^ t is computed by

b ^ t = 1 b t q t ( b t ( 1 ) q t ( 1 ) , , b t ( m ) q t ( m ) ) (6)


b t ( i ) = b t 1 ( i ) + j i ( t r a n s f e r j i t r a n s f e r i j ) . (7)

2.3. Kalman Filter

The Kalman filter (KF) is considered as the optimal recursive data processing algorithm [15] that produces an estimation of unobservable variables x t n at each instant t = 1 , 2 , . Also, the KF provides a prediction of the future system state based on past estimations. The state equation of the time series of unobservable variables is as follows:

x t + 1 = A t x t + B t u t + ω t (8)

where x t is an ( n × 1 ) state vector at time t, u t is an ( l × 1 ) control variable at time t, ω t is an ( n × 1 ) noise vector at time t assumed to be zero-mean Gaussian white noise with the covariance Q t . The matrix A t is an ( n × n ) transition matrix and B t is an ( n × l ) matrix. The observation equation z t m is given by

z t = H t x t + ν t (9)

where z t is an ( m × 1 ) observation at time t, ν t is an ( m × 1 ) observation noise at time t that are assumed to be zero-mean Gaussian white noise with the covariance R t and H t is an ( m × n ) measurement matrix.

The KF algorithm consists of prediction state and update state as follows [16] :

1) Prediction state (time update equations):

Predictedstateestimate : x ^ t + 1 = A x ^ t + B u t (10)

Predictederrorcovariance : P t + 1 = A P t A T + Q t (11)

2) Update state (measurement update equations):

Kalmangain : K t = P t H T [ H P t H T + R t ] 1 (12)

Updatedstateestimate : x ^ t = x ^ t + K t [ z t H x ^ t ] (13)

Updatederrorcovariance : P t = [ I K t H ] P t (14)

In addition, the covariance matrices Q t and R t in KF display the statistics of the noises. In many practical applications, we don’t know the true value or Gaussianity of it. Thus, Q t and R t are used as tuning parameters in general, the user can adjust to get the desired performance.

2.4. Fuzzy Inference System

A fuzzy inference system (FIS) is a system that uses fuzzy set theory to map inputs to outputs. The work of the FIS consists of the following three steps:

1) Fuzzification transforms the crisp values into fuzzy values, it maps actual input values into fuzzy membership functions and evaluates each input’s grade of membership in each membership function. The membership function of a fuzzy set A is denoted by μ A ( x ) where μ A ( x ) [ 0,1 ] and it represents the degree of membership of x to the fuzzy set A [17] . The triangular membership function, which is used in this paper, is characterized by a mathematical simplicity. It is specified by three parameters { a , b , c } . For each value x, the triangular membership function μ A ( x ) is defined as follows:

μ A ( x ) = ( 0 if x a , x a b a if a x b , c x c b if b x c , 0 if x c .

2) Fuzzy rules are a set of rules that make an association between typical input and output data, sometimes in an intuitive way, or, on other occasions, in a data driven way. The fuzzy IF-THEN rule is used in our work is in the following form:

IF x is A THEN y is B,

where A is a condition in a form of a fuzzy set of input and B is a conclusion in a form of a fuzzy set of output.

3) The defuzzification is finally converted into real output or crisp output. The centre of gravity method (COG) is used as a defuzzification method in this research. Let μ ( x i ) be the membership value for point x i in the universe of discourse. Then, COG of a tuning factor Δ R t is defined by

COG = i μ ( x i ) x i i μ ( x i ) . (15)

3. Computing an Online Portfolio Selection Based on Adaptive Kalman Filtering through Fuzzy Approach

In this research, we adapted AC by adjusting the relative price. The adjusted relative price is defined as a ratio of the current price over the inherent price which is computed through KF and fuzzy approach. There are three steps for constructing the new algorithm. First, we compute an inherent stock price from adaptive KF through fuzzy approach. After that, an adjusted relative price is constructed by using the current price and the inherent stock price that derives from the first step. The last step is computing a portfolio via adaptive AC with the adjusted relative price obtained from the second step.

3.1. Computing an Inherent Stock Price

Previously, the raw relative price is adjusted by the traditional KF formulation which already assumes entire a priori noise statistics. The quality of these prior affects on the optimality of the KF and may provoke the divergence of the filter. Therefore, an adaptive Kalman filtering through fuzzy approach is developed [13] . This adaptation improves the KF performance and prevents filter divergence when Q t or R t in (11) and (12) are uncertain.

3.1.1. Residual Value and Variance Setting

In this work, the KF algorithm is applied for predicting the inherent value of a stock price on the next trading day by using the current observation. Thus, the linear KF is optimal and we will set the variables in KF accord with the financial market. That is, the dimension of all variables is an ( 1 × 1 ) matrix. The A, B, and H are assumed to be 1. In fact, we don’t know the control variable in the market, so the u t is assumed to be zero.

Therefore, we defined variables for finding the inherent value of stock prices in KF as follows:

1) Prediction state (time update equations):

p ^ t + 1 k = A p ^ t k + B u t (16)

V t + 1 = A V t A T + Q t (17)

2) Update state (measurement update equations):

K t = V t H T [ H V t H T + R t ] 1 (18)

p ^ t k = p ^ t k + K t [ p t H p ^ t k ] (19)

V t = [ I K t H ] V t (20)

where p t is an observation price, p t k is an unobservation price obtained from KF algorithm, p ^ t k is an estimation of p t k , p ^ t k is an prediction of p ^ t k and the variance corresponding to the state estimation error defined by:

V t = E ( p t k p ^ t k ) 2 . (21)

The weighted residual with Kalman gain, K t [ p t p ^ t k ] , performs as a correction to the predicted estimate p ^ t k . The actual variance #Math_103#, is approximated by its sample variance [18] through averaging inside a moving estimation window of size N. That is,

C ^ r t = 1 N i = i 0 t r i 2 , (22)

where r t : = p t p ^ t k is the residual and i 0 = t N + 1 is the first sample inside the estimation window. This means that its variance is estimated by using only the last N samples of r t .

3.1.2. Adaptive Observation Noise through Fuzzy Inference System

The purpose of adaptive observation noise through FIS in this research is to improve the performance of KF and prevent filter divergence when R t or Q t are uncertain. The observation noise R t in KF represents the accuracy of the measurement instrument. A larger R t of measured data implies that we trust the observed data less and take more importance on the predicted data.

In order to adjust R t , the R 1 is assumed to the variance of training data and the noise variance Q t in Equation (17) is assumed to be known and be a constant value for all t. Thus, we replace Q t with Q. This adaptive noise is able to reasonably correct the mismatch of the actual variance C ^ r t in Equation (22) and its theoretical variance S t : = H V t H T + R t = V t + R t in Equation (18). Now, the discrepancy between S t and C ^ r t , called the degree of matching ( D o M t ) [13] , is defined as:

D o M t = S t C ^ r t . (23)

Based on knowledge of the size of the discrepancy between S t and C r t , an FIS is used to derive a tuning factor Δ R t .

As mentioned above, FIS consists of three steps, namely, fuzzification, fuzzy rule base, and defuzzification.

Fuzzification: To simplify our idea, we divide the fuzzification step into 3 steps as follows:

1) Determining input and output for which the input is an error D o M t and actual output is a tuning factor Δ R t of R t .

2) Choosing an appropriate membership function for determining input and output fuzzy sets. Because of the linearity of the Kalman equation, the performance of a triangular membership function is accepted in this research [19] .

3) Choosing the correct labels for each fuzzy set which, in this research, named as a linguistic variable. Based on experience knowledge, the linguistic variables for error ( D o M t ) are set as negative big (NB), negative medium (NM), negative small (NS), zero (ZE), positive Small (PS), positive medium (PM) and positive big (PB). Also, based on [20] and experience knowledge, it is quantized into equal sizes. The linguistic variables for change of error ( Δ R t ) are defined as decrease large (DL), decrease medium (DM), decrease small (DS), maintain (M), increase small (IS), increase medium (IM) and increase large (IL), and all values are quantized with equal size.

Here, we use the membership function for the error D o M t in Figure 1, a is a scale, D o M t represents crisp input; seven memberships are used to describe

Figure 1. Membership functions used to translate crisp input into fuzzy. This type of membership is constructed by modifying a membership function in [19] .

the input. The input boundary of a triangular membership function is defined by the maximum and minimum of D o M t in KF. The membership functions for Δ R t can be expressed similarly, b is a scale, and the output boundary is defined by the maximum and minimum of Δ R t in KF.

Fuzzy rule base: The fuzzy rule base in this research based on Escamilla-Ambrosio and Mort [13] . The rules of adaptation are defined as follows:

1) If D o M t is negative big (NB) then increase Δ R t large (IL).

2) If D o M t is negative Medium (NM) then increase Δ R t medium (IM).

3) If D o M t is negative small (NS) then increase Δ R t small (IS).

4) If D o M t is zero (ZE) then maintain (M) Δ R t unchanged.

5) If D o M t is positive small (PS) then decrease Δ R t small (DS).

6) If D o M t is positive medium (PM) then decrease Δ R t medium (DM).

7) If D o M t is positive big (PB) then decrease Δ R t large (DL).

Defuzzification: The last step to design FIS in defuzzification. In this part, a fuzzy set is transformed into a crisp set. Therefore, the input for defuzzification is an aggregate output and the output of this step is a crisp number. Based on (15), the center of gravity method (COG) is used as a defuzzification method in this research. Thus, FIS generates the tuning factor Δ R t , and the correction is made in this way:

R t = R t 1 + Δ R t . (24)

The R t in the above equation is used as an updated value in (18). We now adjust the observation noise variance of R t in the KF by using the fuzzy approach to prevent the divergence of KF. Consequently, the observation price p ^ t k in (16) is added as an updated variable of the adaptive KF through fuzzy approach. Then, we observe a new inherent value of stock prices, denoted by p f k . The computation procedure of the development of the KF by using the fuzzy approach is shown in Figure 2.

3.2. Constructing an Adjusted Relative Prices

Since the raw relative price from the original AC can only measure how much the price moves from one period to the next one, it cannot measure how far the

Figure 2. The computation procedure of an improvement of KF via FIS.

stock price is different from its inherent value. Therefore, the adjusted relative price is proposed to measure this difference. The adjusted relative price of stock i for tth trading period is shown as follows:

Theadjustedrelativeprice = p t ( i ) p t f k ( i ) (25)

3.3. Computing a Portfolio via Adaptive Online Portfolio Selection

In this research, we modify an AC algorithm by applying the adjusted relative price via adaptive Kalman filtering through fuzzy approach. In this step, the updated portfolio for the next trading day is obtained. The algorithm for AC based on adaptive Kalman filtering through fuzzy approach (FK-AC) is shown in Table 1.

4. Numerical Results and Discussions

In this part, we will study the construction of an online trading portfolio with three algorithms, that is AC, K-AC, and FK-AC, and compare their performance by considering wealth and the reward-to-variability (RV) ratio of portfolios. In this research, we will use the real data from the SET50 market consisting of the top 50 listed companies in the Stock Exchange of Thailand in terms of large market capitalization and high liquidity. The daily price of SET50 over 10 months from 1 July 2020 to 1 April 2021 is considered as observation data.

For computing a portfolio, we divide this data into two groups. The first group, the data from 1 July 2020 to 31 August 2020, is used to compute initial parameters in each method. In this step, data window sizes are set to be 10, 20,

Table 1. The algorithm for FK-AC.

and 30. The second group, the data from 1 September 2020 to 30 April 2021, is considered as data for constructing a daily portfolio for each algorithm. In this work, the initial parameters in each method, the covariance R and the error covariance V (or P), are obtained by using the first two months of the data. These initial parameters are only used for constructing the updated portfolio for the first trading day. After that, the two parameters are updated by a mechanism of each algorithm and then used for constructing the next trading day portfolio. In this step, the two month data is assumed to have a sufficient amount for computing initial parameters. Moreover, it reflects the movement of the stock price better than using a long period of time. For an investment period, the data for seven months is considered as data for constructing a daily portfolio obtained from each algorithm. This data group depends on how long you want to invest. In this research, we study an investment for seven months.

For numerical study, an initial portfolio may affect numerical results. In this work, two ways of initial portfolio setting are assumed. Firstly, the initial proportion for each stock is assumed to be equal. We will call this initial portfolio as the basic method. Apart from equally proportion setting, we also use the single index model (SIM) [14] to set up an initial portfolio. In this way, the initial weight for each stock may be different. After that, the portfolios obtained by these two initial setting approaches with AC, K-AC and FK-AC algorithms are compared. Moreover, the following three different ways for selecting stocks into a portfolio are applied:

1) Selecting all stocks in SET50 market

2) Random selecting 10 stocks from SET50

3) Random selecting 2 stocks from each industrial sector in SET50

In the second and the third ways of selecting stocks, twenty cases of randomly selected in each way are used to study the performance of trading algorithms with data window size 10 days, 20 days, and 30 days.

The results are compared by considering wealth and RV ratio of portfolios. The RV ratio indicates investment excess return per unit of risk. The annualized RV ratio is defined as [21] :

RVratio = APY R f ASTDV (26)

where APY is annual percentage yield, ASTDV is the annualized standard deviation of the daily logarithmic returns. This value ASTDV measures an asset’s volatility (risk). The R f is risk-free return rate which here is set to be zero. The APY and ASTDV can be computed by using the following formula:

APY = ( W T W 0 ) 1 T 1 (27)

ASTDV = σ ^ 252 (28)

where W T is the wealth of the last trading day, W 0 is the wealth of the first

trading day, T is the time for investment which is computed as n 252 where n is

the number of the trading day and σ ^ is the standard deviation of the daily logarithmic returns. The number 252 is assumed to represent the number of trading days per year in the stock market. The flowchart of computing is shown in Figure 3. Some portfolio’s wealth results are shown in Figure 4. Moreover, the averages of the wealth of all cases obtained from three different ways for selecting stocks into the portfolio are shown in Table 2.

From Table 2, overall, the FK-AC method provides a higher average of wealth than other methods. Considering the window size of 10, the AC gives the higher average of wealth compared to other algorithms. In the case of 20 and 30 window sizes, the FK-AC gives a better wealth. To indicate investment excess return per unit of risk, the average of RV ratio is used to compare the performance of those algorithms. The results are shown in Table 3.

In Table 3, the FK-AC method also provides a higher RV ratio than other methods. We observe that, particularly, our algorithm provides a better portfolio performance than other methods in the case of the window size 20 and 30. However, for the window size of 10, the AC gives a higher average of RV ratio than other algorithms.

Figure 3. Flowchart of computing portfolio and comparing algorithm.

Figure 4. Wealth of portfolio from selecting all stocks in SET50 market.

Table 2. The average wealth of 3 ways of each algorithm.

Table 3. The average RV ratio of 3 ways of each algorithm.

5. Conclusions

In this research, the anticor (AC) is adjusted by replacing the raw relative price with the alternative relative price observed from Kalman filtering through fuzzy approach. This alternative price provides the direction of how far the price moves from the current price to an inherent price while the raw relative price cannot. From this point, the AC mechanism with the alternative relative price is used to transfer the optimal wealth of each stock in the portfolio for the next period.

For numerical studies, the portfolio selection based on adaptive Kalman filtering through fuzzy approach is compared with the anticor (AC) and the anticor based on Kalman filtering (K-AC). The observation data is the SET50 stock prices. The tools which are used to measure the performance of algorithms are portfolio wealth and reward-to-variability (RV) ratio of a portfolio.

The results show that, based on the dataset in this work, our method provides the higher wealth and RV ratio in most window sizes compared with the original anticor method and the anticor method based on KF in overall. Looking at the initial proportion obtained from the single index model approach, the results show that the proposed method gives both the higher wealth and the higher RV ratio at the window size 20 days and 30 days. Moreover, all methods with the single index model provide higher wealth than those with the basic method. There are two aspects of contributions from this paper. Firstly, this provides a new algorithm that considers the noise of the data. For the second aspect, this work may benefit to investors or developers who need to construct a daily speculative portfolio or efficient trading program by implementing this algorithm with a short period of historical data.


The authors appreciate the referee(s) for their helpful comments. The first authors would like to thank the Department of Mathematics, Faculty of Science, King Mongkut’s University of Technology Thonburi for financial support and thanks to the Science Achievement Scholarship of Thailand, SAST for the financial support.

Conflicts of Interest

The authors declare no conflicts of interest.


[1] Albeverio, S. and Lao, Y.L. and Zhao, X. (2001) On-Line Portfolio Selection Strategy with Prediction in the Presence of Transaction Costs. Mathematical Methods of OR, 54, 133-161.
[2] Ren, P. and Wu, J. (2016) On-Line Portfolio Selection for a Currency Exchange Market. Journal of Mathematical Finance, 6, 471-488.
[3] Ren, P. and Wu, J. (2017) Foreign Exchange Market Modelling and an On-Line Portfolio Selection Algorithm.
[4] Chaudhuri, K. and Wu, Y. (2004) Mean Reversion in Stock Prices: Evidence from Emerging Markets. Managerial Finance, 29, 22-37.
[5] Debondt, W.F.M. and Thaler, R. (1985) Does the Stock Market Overreact? The Journal of Finance, 40, 793-805.
[6] Lo, A.W. and Mackinlay, A.C. (1990) When Are Contrarian Profits Due to Stock Market Overreaction? The Review of Financial Studies, 3, 175-205.
[7] Wang, J., Zhang, D. and Zhang, J. (2015) Mean Reversion in Stock Prices of Seven Asian Stock Markets: Unit Root Test and Stationary Test with Fourier Functions. International Review of Economics & Finance, 37, 157-164.
[8] Borodin, A., El-Yaniv, R. and Gogan, V. (2004) Can We Learn to Beat the Best Stock. Journal of Artificial Intelligence Research, 21, 579-594.
[9] Raphael, N. and Alain, K. (2013) Kalman Filtering and Online Learning Algorithms for Portfolio Selection. Economic Research Southern Africa.
[10] Moghaddamjoo, A. and Kirlin, L.R. (1989) Robust Adaptive Kalman Filtering with Unknown Inputs. IEEE Transactions on Acoustics, Speech, and Signal Processing, 37, 1166-1175.
[11] Jazwinski, A.H. (1969) Adaptive Filtering. Automatica, 5, 475-485.
[12] Fitzgerald, R.J. (1971) Divergence of the Kalman Filter. IEEE Transactions Automatic Control, 16, 736-747.
[13] Escamilla-Ambrosio, P.J. and Mort, N. (2001) Development of a Fuzzy Logic-Based Adaptive Kalman Filter. 2001 European Control Conference (ECC), Porto, 4-7 September 2001, 1768-1773.
[14] Kamil, A.A. (2003) Portfolio Analysis Using Single Index Model. WSEAS Transactions on Mathematics, 2, 83-91.
[15] Maybeck, P.S. (1979) Stochastic Models, Estimation and Control. Mathematics in Science and Engineering, Vol. 141. Elsevier, Amsterdam.
[16] Youngjoo, K. and Hyochoong, B. (2018) Introduction to Kalman Filter and Its Applications. In: Govaers, F., Ed., Introduction and Implementations of Kalman Filter, IntechOpen, London, 7-22.
[17] Yahia, N., Bellamine, N. and Ghzala, H. (2012) Integrating Fuzzy Case-Based Reasoning and Particle Swarm Optimization to Support Decision Making. International Journal of Computer Science Issues, 9, 117-124.
[18] Mohamed, A. and Schwarz, K. (1999) Adaptive Kalman Filtering for INS/GPS. Journal of Geodesy, 73, 193-203.
[19] Piltan, F.Z. and Rezaie, H.S. and Boroomand, B.D. and Jahed, A.M. (2012) Design Robust Backstepping On-Line Tuning Feedback Linearization Control Applied to IC Engine. International Journal of Advanced Science and Technology, 43, 127-142.
[20] Yue, S. and Henrich, D. (2006) Manipulating Deformable Linear Objects: Fuzzy-Based Active Vibration Damping Skill. Journal of Intelligent & Robotic Systems, 46, 201-219.
[21] Dochow, R. (2016) Online Algorithms for the Portfolio Selection Problem. Springer Gabler Wiesbaden, Berlin.

Copyright © 2024 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.