Multi-Objective Intelligent Decision-Making Methods Driven by Big DataView this Special Issue
Is It Possible to Earn Abnormal Return in an Inefficient Market? An Approach Based on Machine Learning in Stock Trading
Risk management and stock investment decision-making is an essential topic for investors and fund managers, especially in the context of the COVID-19 pandemic. The problem becomes easier if the market is efficient, where stock prices fully reflect potential risk. Nevertheless, if the market is not efficient, investors may have an opportunity to find an effective investment method. Vietnam is one of the emerging markets; the efficiency is still weak. Thus, there will be an opportunity for astute investors. This study aims to test the weak-form efficient market and provide a modern approach to investors’ decision-making. To achieve that aim, this study uses historical data of stocks in the VN-Index and VN30 portfolio to buy and sell within a one-day period under the rolling window approach to test the Ho Chi Minh City Stock Exchange (HoSE) through a runs test and to perform stock trading using the support vector machine (SVM) and logistic regression. The buying/selling of stocks is guided by the forecasted outcomes (increase/decrease) of logistic regression and SVM. This study adjusted the return rate in proportion to the risks and compared it with index investments of VN-Index and VN30 to evaluate investment efficiency. The test results dismissed the weak-form efficient-market hypothesis, which opens up many opportunities for short-term traders. This study’s primary contribution is to provide a stock trading strategy for short-term investors to maximize trading profits. Because logistic regression and SVM have proven effective trading methods, investors can use them to achieve abnormal returns.
Risk management and stock investing decision-making are critical topics for investors and fund managers, particularly regarding the COVID-19 pandemic. If the market is efficient, where stock prices adequately represent a possible risk, the issue becomes simpler to solve [1, 2]. Some investors often use technical analysis to select stocks as historical data (mainly price and trading volume) in the short term. Some technical analysis tools forecast price movement direction, deciding whether to buy or sell stocks . Mizrach and Weerts  used technical indicators, price, and volume history to forecast future stock returns, sometimes called “chartists” because they use graphical trading representations. Azzopardi  applied principles to study how human emotions impact financial decision-making. SVM and artificial neural networks (ANN) identify market abnormalities in many financial markets worldwide . Nevertheless, Fama  proposed efficient-market hypothesis casts doubt on the reliability of the technical analysis. This theory will not help beat the market because it assumes that the price of a security fully reflects all available information [8–10]. That said, each market is efficient to a certain extent; specifically, there are three types of efficient markets in ascending order: weak, semistrong, and strong. Even in the weak form, the stock’s price fully reflects its historical data.
For that reason, the security price cannot be predicted solely based on past prices . Some empirical evidence suggests that markets are not truly efficient, which implies that investors may use templates or prediction models to achieve a higher rate of return [12, 13]. Hawaldar et al.  tested the weak-form efficient-market hypothesis of the Bahrain Bourse stock market for the period 2011 to 2015 and concluded that the Kolmogorov–Smirnov goodness-of-fit test, run test, and autocorrelation test reject the weak-form efficient-market hypothesis. Kumar et al.  supported India’s weak-form efficient-market hypothesis for 2012–2017 but rejected the medium-form efficient-market hypothesis. Mensi et al.  studied the daily closing prices on the global and regional GIPSI stock markets in the USA and five GIPSI stock markets in Europe from January 1, 2009, to September 8, 2017. GIPSI, worldwide, and US markets are all inefficient, particularly in the short term. Whatever the time range, the Greek stock market is the most inefficient of all markets. In the short and long run, Portugal and Ireland have the least inefficient marketplaces. These findings also suggest that stock markets may not be suitable for risk diversification in asset allocation or risk hedging. The author also suggests that these findings have significant consequences for investors and policymakers. In reality, investors may utilize knowledge about long-term memory and the differential threshold for persistence across time horizons to outperform the market and generate abnormal returns.
A recent trend in behavioral finance theory is to explain that anomalies complement the shortcomings of the efficient-market hypothesis. Kahneman and Tversky, a pioneering researcher, point out that investors rely heavily on emotions and instincts rather than rationality to make decisions . Emotional decision-making can lead to mistakes when making irrational investment choices. Some anomalies associated with behavioral finance theory include calendar, fundamental, and technical anomalies . Some experiments show the weekend effect, holiday effect, turn-of-the-month effect, and January effect . Rossi studied calendar anomalies in the Milan Stock Exchange from January 2005 to December 2015. They found that returns were negative on Monday and positive on Wednesday. Thus, investors should buy on Monday and sell on Wednesday. One limitation of these studies is that the effects may disappear or even reverse . As a result, investors may be exposed to risks when using these investment trends.
This study aims to test the weak-form efficiency of the HoSE market and determine whether investors using logistic regression and the SVM model can outperform the market. The runs test approach rejects the weak form of an efficient market. These findings suggest that classic econometric and statistical models are likely to beat the market. However, the constantly evolving machine learning algorithms provide a viable alternative to traditional regression models. Some studies on the SVM application in finance have obtained many positive results, such as Cao and Tay , Huang et al. , Lu et al. , Mohamed , Azimi-Pour et al. , and Syriopoulos et al. . The rolling window drives the buying and selling of securities by the logistic regression model’s output and the SVM algorithm. Input variables include close (closing price); HL (the highest minus lowest price); LO (lowest price minus opening price); variation (the difference in closing price between 2 consecutive trading sessions); ma7, ma14, and ma21 (average price of 7, 14, and 21 consecutive sessions, respectively); sd7 (standard deviation of 7 consecutive sessions); vnc (the difference in closing prices of VN-Index for 2 consecutive sessions); vnipc (return rate of VN-Index portfolio); and insect (time trend). The data covers all stocks in the VN30 basket from January 28, 2000, to July 30, 2021. As a result, the SVM investment strategy beat the market with an extremely high average return rate.
Machine learning may discover weak-form efficient markets and develop trading methods for short-term investors, thereby maximizing earnings. Predicting the movement of stock prices using algorithms, such as the SVM model, has demonstrated a high accuracy. The parameters of the machine learning model were accurately predicted using the rolling window technique. Since a sample’s representativeness may be impaired by a period too short or too lengthy, 365 days is a good choice for a historical data set. Stock investing in a weak market is usually tricky for short-term investors. The SVM model, in particular, is a valuable tool for predicting the direction of price movement in the market. It is necessary to modify the investment returns to reflect the inherent risks to raise the degree of trust in the investment performance review. The Sharpe ratio is used to manage risk, while the T-test is used to evaluate trading methods. Due to the SVM model’s superb accuracy, the trading strategy employing it has produced a great return.
The following diagram depicts the flow of this study. Next, a brief review of relevant literature is provided: the efficient-market hypothesis (EMH), logistic regression, support vector machine (SVM). Section 3 of the study provides the conceptual foundation for the paper, including the theories of weak-form efficient-market hypothesis testing and price movement forecasting decision. Section 4 focuses on empirical data and outcomes. Section 5 provides further in-depth explanations of the study’s findings. In Section 6, the conclusions of this study and the limits and potential for further research are summarized and explained.
2. Literature Review
2.1. Efficient-Market Hypothesis (EMH)
Fama  first proposed EMH in the 1970s. This article is significant because it paved the way for many other studies on the accuracy of the EMH theory. The concept of efficiency refers to the rapid absorption of information instead of the resources that produce maximum output as in other fields of economics. Information is defined as news that can affect prices and is unpredictable. In capital markets, efficient markets can be interpreted in various ways. The market in which prices always reflect available information is called an efficient market . Meanwhile, Malkiel  argued that a capital market is efficient if it wholly and correctly reflects all relevant information in determining security prices. Generally, however, markets are considered efficient for certain types of information if disclosing that information to participants does not affect stock prices. EMH includes the following hypotheses:
Weak-form efficiency hypothesis: this degree of efficiency exists when a security’s price reflects historical data about a security’s price, including stock price and trading volume. In other words, one can forecast current stock prices on past stock prices. Testing the weak-form efficient-market hypothesis mainly concerns whether there is a statistical dependence between price changes. In other words, if the price changes are random, the market is a weak-form efficient market. Several frequently used testing techniques are autocorrelation and Ljung–Box’s Q , variance ratio, LM-test , CD-test , Wright’s test , runs test, January effect, and unit root test .
Semistrong-form efficiency hypothesis: this degree of efficiency exists when a security’s price reflects publicly accessible market information, including historical data on security prices and publicly available information in the market, such as those in an issuer’s prospectus. The semistrong-form efficient market encompasses the weak-form hypothesis because all market information, including stock prices, interest rates, and trading volume, must be publicly analyzed using the weak-form efficient-market hypothesis. Public information includes all nonmarket data, such as earnings and dividend announcements, P/E ratio, D/P ratio, P/B ratio, stock splits, and political economy information. Studies examining semistrong-form EMH can be classified into these two categories:(i)Studies that sought to forecast future rates of return using publicly accessible data, except for pure market data such as price levels and trading volumes, have been included in the weak-form test. These studies may include time series analysis of returns or cross-sectional distribution of returns of individual stocks. EMH proponents argue that it is impossible to use publicly available information to predict future returns using past returns or to forecast future cross-sectional distributions of returns (e.g., highest quartiles or deciles of returns) [33–36].(ii)Event studies investigate how quickly stock prices change in response to specific key economic events. One practical approach is to test whether it is feasible to invest in stocks and earn an extraordinarily high rate of return after a significant event (such as stock merges, stock splits, central economic data, and principal) is publicly announced or not. Again, EMH proponents expect stock prices to adjust rapidly so that investors cannot earn high returns by buying after public announcements and paying regular transaction costs [37–40].
Strong-form efficiency hypothesis: this degree of efficiency exists as all information is fully reflected in stock prices, including nonpublic information such as internal information. The strong-form efficient-market hypothesis combines both the weak-form and the semistrong-form efficient hypothesis. The strong-form efficient-market hypothesis extends the assumption of efficient markets, in which prices reflect publicly available information to a perfect market, and all information is free and available. It is necessary to know when internal or insider information arises to evaluate strong-form efficient markets. This timing is hard to identify. Strong-form efficient markets are often researched in developed countries. For emerging markets, most studies focus on weak- and semistrong-form EMH. The exploration of strong form effectiveness is still a controversial matter among scholars [41–43].
2.2. Logistic Regression
Logistic regression is a statistical technique that describes the relationship between independent variables and binary dependent variables (which can also be applied to discrete dependent variables). Through this relationship, logistic regression allows the output prediction of a given set of input values. In predicting the output using logistic regression, this study calculates the probability that the output takes the value 1 with the given observation data to find . With the assumption of binomial distribution of the dependent variable, this study considers the odd ratio as follows:
Taking the logarithm on both sides of (1), this study has where that are the parameters to be estimated.
From equation (2), this study makes the equivalent transformation as follows:
Usually, the maximum likelihood estimation (MLE) method is used to estimate the parameter . The classification rule is determined by equation (3) as follows:
Logistic regression is applied in many fields for the binary dependent variable. In finance, Han et al.  used a sample of 76 firms and 32 variables related to their financial ratios to predict precarious financial situations. The authors used the backward stepwise method in logistic regression and obtained results with high accuracy of 92.86%. Konglai and Jingjing  used logistic regression to analyze listed companies’ credit risk in China. The data used included 130 companies with 6 dependent variables and was divided into 90 companies for the training set and 40 for the testing set. The training sample has an accuracy of 87.8%, while the testing set has a precision of 75%. Table 1 summarizes some publications that have used typical logistic regression.
2.3. Support Vector Machine (SVM)
The SVM algorithm was proposed by Vapnik and Lerner  to solve the classification issue. SVM is a supervised mathematical algorithm used to classify data in different dimensions. Suppose that Y is a categorical variable with two possible values –1 and 1 and X is an input variable. The classification hyperplane is defined by the equation: , where and b are the coefficients. The coefficients and b should be chosen such that if and if . The training set is used to find and b such that is minimized, and the vectors in which are called support vectors. To improve classifier efficiency, a kernel function is used to map the data to a high-dimensional space where the data will be more clearly segregated. The kernel function is defined by the dot product: . Some common kernel functions are linear, polynomial, and radial basic function. Nevertheless, for some complex data sets, it is impossible to find a perfect hyperplane. Hence, Cortes and Vapnik  propose to add soft margins, that is, accepting some misclassified observations. The SVM algorithm is now minimized: given that , where C is a hyperparameter and is a conversion mapping from low- to high-dimensional space.
SVM is often used in financial research. For instance, Kim  has used SVM to predict hotels’ bankruptcy in Korea. Between 1995 and 2002, a sample of 33 hotels was collected, and the forecast results achieved 95% accuracy. In the Japanese market, Huang et al.  used SVM to predict the direction of the NIKKEI 225 Index and showed that SVM outperformed other classification methods in their study, including random walk model, quadratic discriminant analysis (QDA), and ANN. Ren et al.  integrated SVM with investor behavior analysis in the Chinese market. This study forecasted the SSE 50 Index’s movement from 2014 to 2016 in 485 trading days, used both fivefold and rolling window methods, and reached a maximum accuracy of 89.93%.
3. Research Data and Methods
3.1. Research Data and Variable Description
Research data includes 30 companies in the VN30 basket (unadjusted price), VN-Index, and VN30 index in a one-day period. Table 2 describes the tickers and their observations in the VN30 basket.
The data collection period was from July 28, 2000, to July 30, 2021, in which some companies were newly established, and there were some days off. Hence, the number of observations of these companies was varied. The data was collected from the website https://www.hsx.vn (Ho Chi Minh City Stock Exchange). Each observation included date, ticker, closing price, opening price, highest price, lowest price, and trading volume. The variables in the study are described in Table 3.
3.2. Research Method
3.2.1. Testing the Weak-Form Efficient-Market Hypothesis
According to the weak-form efficient-market theory, a security’s past prices cannot forecast current prices and generate abnormal returns. There are other testing techniques available, but these studies employ runs tests like some previous studies, including Fawson et al. , Moustafa , Ahmad et al. , Nisar and Hanif , Hamid et al. , and Wei . The runs test, known as the Wald–Wolfowitz test, is a nonparametric statistical test that examines the randomness hypothesis on a two-state data series . The runs test will assess whether the elements of the series appear independently. In other words, if assuming the price increases or stays the same as (+) and decrease as (–), then a weak-form efficient market implies that price changes are independent. When the sample size is large enough, the statistic , where: R: number of runs in the sample (each run is a sequence of consecutive “+” or “−” signs) : expected value of R, calculated by the formula : the standard error of the runs, ( are the number of “+” and “−” signs, respectively)
Mainly this method explores the randomness in the changes of the VN-Index and VN30 index. If this variation is random, it supports the weak-form efficient-market hypothesis, suggesting that traditional forecasting models using historical data are unlikely to produce an excess return.
Finally, to test the influence of factors affecting price movements, we performed logistic regression for all data in the research period. This result also implies that investors with little experience in academic knowledge can still base the fluctuations of variables (variables with strong impact) to make investment decisions.
3.2.2. Price Movement Forecasting and Investment Decision-Making
This study focuses on two models, logistic regression and SVM, to forecast price movement direction. Assuming that the historical data has a maximum value of 1 year, the study will use fixed training data of 365 observations to make forecasts using the “rolling window” method. Algorithms are used to identify the optimal parameters for the first 365 observations, forecast the 366th observation, and continue until the last observation, as shown in Figure 1.
3.3. Forecasting Model
The sigmoid function is employed for the logistic regression model, and the MLE method is used to estimate the regression coefficients. For the SVM algorithm, the kernel function radial and are used. Based on the logistic regression and SVM models, the investors will buy/sell stocks, respectively. To assess investment performance, this study adjusts risks using the Sharpe ratio [64, 65]: , where : return rate of the portfolio (or security) p : risk-free rate (1-year treasury note) : standard deviation of the portfolio (or security) p
Finally, this study compares the performances of investments made by the logistic regression model and SVM with investments made by the T-test according to VN30 and VN-Index. Furthermore, this study seeks to determine whether holding a single stock is more efficient than holding a market portfolio index. The novelty of this study is to provide a securities trading method using a logistic regression model and SVM.
4.1. Descriptive Statistics
The descriptive statistics of the variables are described in Table 4 below. The table shows that the price fluctuates from 0.233 USD/share to 23.233 USD/share; the average price is 2.266 USD/share. The foredir ends up with 39,096 observations resulting in a decrease in closing price compared to the day before. The remaining 29,420 observations of closing price were not decreased; the specific amount is shown in Figure 2. The most muscular daily closing price movement-down 7.108 USD/share on a day, occurred to VNM ticker on July 5, 2007 (exchange rate USD/VND = 22,748).
The fluctuations of the variables close and variation are better shown in the boxplot on Figures 3 and 4. Some tickers such as FPT, REE, SSI, and STB tilted to the right and had unusually high closing prices in some trading sessions. Still, the tickers’ variation is mostly stable. This study noticed an anomaly that FPT plummeted 7.429 USD/share on May 21, 2007, the most profound fall across all stocks in the VN30 portfolio in all trading sessions. The decline in share price is due to FPT’s dividend payment policy with a payout ratio of 2:1, which shows that one more FPT share will be awarded for every two FPT shares an investor holds.
For the market, this study has a summary table detailing the variables closevn (closing price of VN-Index), vnic, vnipc, closevn30 (closing price of VN30 index), rvn30 (return rate of VN30 index), and rf (the interest of 1-year government bonds). Table 5 and Figure 5 show that the closing prices of the VN-Index and VN30 index primarily fluctuate together, while bond interests are primarily stable and tend to decrease. From the beginning of 2020, this study noticed that both the VN-Index and VN30 dropped significantly and then rose again. This result was because of the COVID-19 pandemic, which obstructed the production and trading activities of businesses. When the businesses stabilized, the cash flow poured into the financial investments, leading to increased stock prices.
4.2. Runs Test Results
Runs test results showed that the weak-form efficient-market hypothesis is dismissed at 1%, implying that technical analysis can obtain an abnormal return.
4.3. Accuracy of Price Movement Forecasting Models
This study used the logistic regression model and SVM to forecast the increase and decrease of stocks based on the rolling window method. The accuracy value (the number of correct predictions out of the total predictions) is summarized in Table 6. The average accuracy in forecasting 30 stocks of the logistic regression model and SVM are 58.93% and 92.48%. The SVM model has proven to be more effective than the logistic regression model.
4.4. Stock Trading Results
Stocks were traded on the stock price increase and decrease forecasts made by the logistic regression and the SVM models. The results of average daily return before and after risk adjustment are in Table 7. As seen in Tables 5 and 7, the SVM model outperforms the logistic regression model and the portfolio index investment (including VN30 and VN-Index). To determine the efficacy of the trading strategies, this study conducted five one-sided T-tests with the null hypothesis (investments are not more efficient than index portfolio investments) and the alternative hypothesis (investment methods are more efficient). Table 8 summarizes the results of the tests by -value. The terminologies in Tables 7 and 8 are explained in Table 9.
4.5. Factor Affecting the Stock Price Movement
This study performed logistic regression for the entire data to determine the factors affecting the stock price movement. Logistic regression results are shown in Table 10. The regression result in Table 10 shows that the factors HL, LO, variation, vnic, vnipc, insec, and sd7 have a statistically significant impact, of which vnipc has the most substantial impact. This conclusion shows that market portfolio return is the strongest indicator of price change expectations; for every extra percentage rise in market portfolio return, investors anticipate the odds ratio increasing by 0.2. In addition, the model also shows that the moving average indicators (MA) are not statistically significant at 0.1, that is, the MA indicator does not affect stock trading. Volatility indicators HL and LO have regression coefficients of 0.055 and 0.061, respectively. Both are statistically significant, showing that these fluctuations increase the possibility of bullish forecasting for the next trading session. Nevertheless, the vnic indicator has a negative coefficient and is statistically significant, showing that the greater the market volatility, the more it predicts that the price will decrease.
The nonparametric runs test examines the randomness of a sequence of rising/falling states of stock prices. The weak-form efficient market implies that prices rise/fall randomly . This study performs a runs test on two rising/falling ranges of the VN30 and VN-Index portfolios with the null hypothesis that the direction of price movement is random. Runs test results in Table 11 have a -value less than 0.01. This study rejects the null hypothesis for both tests . This result implies that the weak-form efficient-market hypothesis is rejected. This result is also consistent with some previous research [61, 68–70]. Market weakness is not guaranteed to present an opportunity for short-term traders looking for past patterns to rely on when buying/selling to maximize trading profits.
This study implements three trading strategies: the logistic regression model, the SVM model, and holding stocks for the long term. In the first two strategies, the models forecast the increase/decrease of the stock price, resulting in buying and selling correspondingly. Compared to the traditional logistic regression model, the SVM model better predicts price movement direction. On all 30 tickers in Table 6, the SVM model defeated the logistic regression model. Additionally, its accuracy is exceptional, averaging 92.48% and 58.93%. This finding is much like prior studies, which show that SVM produces greater accuracy than the logistic regression model [71–74].
The accuracy of the SVM model in Table 6 is very high, with most of them correct over 90%, except for the two tickers: the VJC ticker and VPB ticker. Moreover, its lowest accuracy is 86.66%, and the highest is 96.94% (for TPB ticker). This result is better than similar studies such as Kim , Kara et al. , Patel et al. , and Duong et al. . One success in the SVM model comes from its model estimation method. Compared to other methods, the “rolling window” is more efficient because the continuous-time series ensures the input parameters’ accuracy. The 365-day period is a reasonable choice. If it is longer, the data will become too outdated. If it is shorter, the collected data may not be a good representation of the whole. Specifically, the training data is permanently fixed for the latest 365 observations. Because of the continual updating of the training data set, the initial parameters are adjusted accordingly, increasing the forecasts’ accuracy.
In contrast, the sample’s representativeness will be a problem if the data set is split into two independent sets. For example, Vijh et al.  divided the data set into two sets: the training data set (June 4, 2009–March 4, 2017) and the testing data set (April 4, 2017–May 4, 2019). The parameters calculated by the training data set are too outdated for forecasting; using data from 2017 to forecast for 2019 does not seem to be reasonable. Cao and Tay  and Ji et al.  divided the data set into three sets: training, validation, and testing data. While rationality is much better when applied historical data, performance will be significantly less than the rolling window.
The superior predictive power of the SVM model has led to excellent trading performance. From Table 7, using the SVM model for trading has achieved an average rate of return of 1.426%/day with the corresponding Sharpe ratio of 0.781, which is much greater than using the logistic regression model. Although the logistic regression method is not as effective as the SVM model, it still produces a great result with an average return rate of 0.348%/day and a Sharpe ratio of 0.146. In contrast, the average rate of return of VN30 and VN-Index is only 0.06% per day and 0.04% per day, respectively. The efficiency test results of all three methods (trading under the SVM model, logistic regression, and long-term holding of individual stocks) in Table 8 suggest that the SVM method is more efficient than investment according to the VN30 and VN-Index with a significance level of 0.001 (the -values are approximately 0). Trading using the logistic regression model is effective when 25 out of 30 stocks achieved statistical significance at 0.1. For long-term holding of individual stocks, the average return rate is 0.052%/day, higher than VN-Index (0.04%/day) but lower than the VN30 index (0.06%/day). Furthermore, the -values are all greater than 0.1, implying that the investing strategy of long-term holding individual stocks cannot outperform the market.
Logistic regression results reveal that indicators such as HL, LO, variation, vnic, vnipc, and sd7 impact stock price movement. Specifically, the increase of HL, LO, vnipc, and sd7 predicts that the price will increase, and VNC ticker increase predicts that the price will decrease. Indicators related to MA and close are not statistically significant and therefore do not have a predictive function of stock price movement.
Financial markets are efficient when old and new information is quickly reflected in the current price of a security. Therefore, because the current price includes historical information, technical analysis will not guarantee an excess return. Unfortunately, the test results reveal that the HoSE market is inefficient, meaning that technical analysis might generate abnormal returns.
The study’s main contributions are identifying weak-form efficient markets and providing trading strategies for short-term investors by applying the machine learning model to optimize profits. Stock price movement forecasting algorithms, particularly the SVM model, have shown the predicting effectiveness, with an average accuracy of up to 92.48% and the peak accuracy of 96.94% (for the ticker TPB). The rolling window approach performed well in predicting the parameters of the machine learning model. The duration of the historical data is critical because the sample’s representativeness may be compromised by a period that is too short or too long; hence, 365 days is considered a suitable option. Stock trading in an underperforming market is always a challenge for short-term investors. One trading strategy investors should consider there is the logistic regression model (especially the SVM model) to forecast price movement direction. Because high investment returns often conceal underlying risks, investment results should be adjusted accordingly to increase the confidence level in the investment performance evaluation. This study chooses the Sharpe ratio for risk adjustment and uses the T-Test to determine the effectiveness of trading strategies. Due to the high accuracy of the SVM model, the trading strategy using it has earned an exceptional rate of return.
Moreover, as the HoSE stock market is inefficient, short-term investors can rely on past patterns to maximize returns in trading. Short-term investors should consider using the SVM model and logistic regression models when making buying/selling decisions. The decision to choose trading stocks should be based on several indicators such as intraday price movement, price movement between two consecutive trading sessions, moving average, the standard deviation of the stock, and market volatility. It is possible to synthesize the SVM model from those indicators into an indicator for the final forecast. For long-term investors, it is better to invest in a diversified portfolio or a portfolio index rather than holding individual stocks. Medium- to long-term investors should invest in a diversified portfolio or use fundamental analysis to select good stocks for a longer-term plan. Investors with limited knowledge related to pattern analysis can rely on indicators such as intraday price movement, price movement between two straight days, market volatility, and the stock’s overall risk in the short term to forecast an increase or decrease in a security’s price. Moreover, the return on the market portfolio is the most potent indicator because it reflects an optimistic attitude towards the market. If returns are positive, investors are more optimistic about market growth and thus decide to buy more; as a result, the stock price will increase.
Although this trading method has obtained an unprecedented return rate on short-term trading, the study omitted several factors such as transaction costs, taxes, and liquidity risk. Superior returns also use historical information, which is only valuable for inefficient market conditions. Therefore, more experiments are needed on inefficient markets to increase the reliability of the model. Further research may expand in two directions. First, the model’s effectiveness in different markets has to be tested, and other factors such as tax transaction costs has to be considered. Second, the other authors can apply machine learning algorithms such as tree decision, deep learning, and neural networks to increase the model’s predictive ability.
The data are available on request.
Conflicts of Interest
The authors declare that no known conflicting financial interests or personal connections have affected the work described in this article.
This research did not receive any specific grant from funding agencies in the public or commercial sectors.
R. Vanaga and B. Sloka, “Financial and capital market commission financing: aspects and challenges,” Journal of Logistics, Informatics and Service Science, vol. 7, no. 1, pp. 17–30, 2020.View at: Google Scholar
L. Zhang and H. Kim, “The influence of financial service characteristics on use intention through customer satisfaction with mobile fintech,” Journal of System and Management Sciences, vol. 10, no. 2, pp. 82–94, 2020.View at: Google Scholar
B. T. Khoa and D. T. Thai, “Capital structure and trade-off theory: evidence from vietnam,” The Journal of Asian Finance, Economics, and Business, vol. 8, no. 1, pp. 45–52, 2021.View at: Google Scholar
P. V. Azzopardi, Behavioural Technical Analysis, Harriman House Limited, Petersfield, UK, 2010.
S. S. Alexander, “Price movements in speculative markets: trends or random walks,” Industrial Management Review, vol. 2, no. 2, p. 7, 1986.View at: Google Scholar
A. Shleifer, Inefficient Markets: An Introduction to Behavioural Finance, Oup Oxford, Oxford, UK, 2000.
I. T. Hawaldar, B. Rohith, and P. Pinto, “Testing of weak form of efficient market hypothesis: evidence from the Bahrain Bourse,” Investment Management and Financial Innovations, vol. 14, no. 2, pp. 376–385, 2021.View at: Google Scholar
N. E. Al-Loughani, K. M. Al-Saad, and M. M. Ali, “The holiday effect and stock return in the Kuwait stock exchange,” Global Competitiveness, vol. 13, no. 1, pp. 81–91, 2005.View at: Google Scholar
C. Hommes, “Booms, busts and behavioural heterogeneity in stock prices,” Journal of Economic Dynamics and Control, vol. 80, pp. 101–124, 2015.View at: Google Scholar
A. E. Mohamed, “Comparative study of four supervised machine learning techniques for classification,” International Journal of Applied, vol. 7, no. 2, 2017.View at: Google Scholar
A. T. M. Shaker, “Testing the weak-form efficiency of the Finnish and Swedish stock markets,” European Journal of Business and Social Sciences, vol. 2, no. 9, pp. 176–185, 2014.View at: Google Scholar
K. V. Chow and K. C. Denning, “A simple multiple variance ratio test,” Journal of Econometrics, vol. 58, no. 3, pp. 385–401, 1993.View at: Google Scholar
S. Tokić, B. Bolfek, and A. R. Peša, “Testing efficient market hypothesis in developing Eastern European countries,” Investment Management and Financial Innovations, vol. 15, no. 2, p. 281, 2018.View at: Google Scholar
A. Yalama and S. Çelik, “Financial market efficiency in Turkey: empirical evidence from Toda Yamamoto causality test,” European Journal of Economics, Finance and Administrative Sciences, vol. 13, pp. 88–93, 2021.View at: Google Scholar
S. Dharmasena and D. Bessler, “Weak-form efficiency vs semi-strong form efficiency in price discovery: an application to international black tea markets,” Sri Lankan Journal of Agricultural Economics, vol. 6, no. 1, pp. 1–24, 2015.View at: Google Scholar
S. S. Ali, K. Mustafa, and A. Zaman, “Testing semi-strong form efficiency of stock market,” The Pakistan Development Review, pp. 651–674, 2021.View at: Google Scholar
B. M. Hussin, A. D. Ahmed, and T. C. Ying, “Semi-strong form efficiency: market reaction to dividend and earnings announcements in Malaysian stock exchange,” IUP Journal of Applied Finance, vol. 16, no. 5, 2010.View at: Google Scholar
T. Mallikarjunappa and J. J. Dsouza, “A study of semi-strong form of market efficiency of Indian stock market,” Amity Global Business Review, vol. 8, pp. 60–68, 2017.View at: Google Scholar
C. O. Manasseh, C. K. Ozuzu, and J. E. Ogbuabor, “Semi strong form efficiency test of the Nigerian stock market: evidence from event study analysis of bonus issues,” International Journal of Economics and Financial Issues, vol. 6, no. 4, 2016.View at: Google Scholar
T. Potocki and T. Swist, “Empirical test of the strong form efficiency of the Warsaw stock exchange: the analysis of WIG 20 index shares,” South-Eastern Europe Journal of Economics, vol. 10, 2 pages, 2012.View at: Google Scholar
D. Han, L. Ma, and C. Yu, “Financial prediction: application of logistic regression with factor analysis,” in Proceedings of the 2008 4th International Conference on Wireless Communications, Networking and Mobile Computing, pp. 1–4, Dalian, China, October 2008.View at: Publisher Site | Google Scholar
Z. Konglai and L. Jingjing, “Studies of discriminant analysis and logistic regression model application in credit risk for China’s listed companies,” Management Science and Engineering, vol. 4, no. 4, pp. 24–32, 2021.View at: Google Scholar
S. B. Jabeur, “Bankruptcy prediction using partial least squares logistic regression,” Journal of Retailing and Consumer Services, vol. 36, pp. 197–202, 2017.View at: Google Scholar
A. A. Rafatnia, A. Suresh, L. Ramakrishnan, D. F. B. Abdullah, F. M. Nodeh, and M. Farajnezhad, “Financial distress prediction across firms,” Journal of Environmental Treatment Techniques, vol. 8, no. 2, pp. 646–651, 2020.View at: Google Scholar
D. Jovanović, M. Todorović, and M. Grbić, “Financial indicators as predictors of illiquidity,” Romanian Journal of Economic Forecasting, vol. 20, no. 1, pp. 128–149, 2017.View at: Google Scholar
V. Vapnik and A. Y. Lerner, “Recognition of patterns with help of generalized portraits,” Avtomat i Telemekh, vol. 24, no. 6, pp. 774–780, 1963.View at: Google Scholar
S. Y. Kim, “Prediction of hotel bankruptcy using support vector machine, artificial neural network, logistic regression, and multivariate discriminant analysis,” Service Industries Journal, vol. 31, no. 3, pp. 441–468, 2021.View at: Google Scholar
E. Schöneburg, “Stock price prediction using neural networks: a project report,” Neurocomputing, vol. 2, no. 1, pp. 17–27, 2020.View at: Google Scholar
R. Ren, D. D. Wu, and T. Liu, “Forecasting stock market movement direction using sentiment analysis and support vector machine,” IEEE Systems Journal, vol. 13, no. 1, pp. 760–770, 2018.View at: Google Scholar
M. A. Moustafa, Testing the Weak-Form Efficiency of the United Arab Emirates Stock Market.
K. M. Ahmad, S. Ashraf, and S. Ahmed, “Testing weak form efficiency for Indian stock markets,” Economic and Political Weekly, vol. 4, pp. 49–56, 2006.View at: Google Scholar
S. Nisar and M. Hanif, “Testing weak form of efficient market hypothesis: empirical evidence from South Asia,” World Applied Sciences Journal, vol. 17, no. 4, pp. 414–427, 2012.View at: Google Scholar
K. Hamid, M. T. Suleman, S. Z. Ali Shah, and R. S. Imdad Akash, “Testing the weak form of efficient market hypothesis: empirical evidence from Asia-Pacific markets,” International Research Journal of Finance and Economics, vol. 58, no. 2010, 2017.View at: Google Scholar
J. V. Bradley, Distribution-free Statistical Tests, Prentice-Hall, New York, NY, USA, 1968.
T. T. Huynh, Application of Machine Learning in CAPM, Faculty of Finance, University of Economics Ho Chi Minh City, Chi Minh City, Vietnam, 2020.
J. Sharma and R. E. Kennedy, “A comparative analysis of stock price behavior on the Bombay, London, and New York stock exchanges,” Journal of Financial and Quantitative Analysis, vol. 12, no. 3, pp. 391–413, 1997.View at: Google Scholar
D. A. Salazar, J. I. Vélez, and J. C. Salazar, “Comparison between SVM and logistic regression: which one is better to discriminate?” Revista Colombiana de Estadística, vol. 35, no. SPE2, pp. 223–237, 2019.View at: Google Scholar
D. Khanna, R. Sahu, V. Baths, and B. Deshpande, “Comparative study of classification techniques (SVM, logistic regression and neural networks) to predict the prevalence of heart disease,” International Journal of Machine Learning and Computing, vol. 5, no. 5, pp. 414–419, 2015.View at: Publisher Site | Google Scholar
K. C. Ho, W. Speier, and S. El-Saden, “Predicting discharge mortality after acute ischemic stroke using balanced data,” in Proceedings of the AMIA Annual Symposium Proceedings, Washington, NJ, USA, November 2014.View at: Google Scholar
P. Amini, H. Ahmadinia, J. Poorolajal, and M. M. Amiri, “Evaluating the high risk groups for suicide: a comparison of logistic regression, support vector machine, decision tree and artificial neural network,” Iranian Journal of Public Health, vol. 45, no. 9, p. 1179, 2021.View at: Google Scholar
Y. Kara, M. Acar Boyacioglu, and Ö. K. Baykan, “Predicting direction of stock price index movement using artificial neural networks and support vector machines: the sample of the Istanbul stock exchange,” Expert Systems with Applications, vol. 38, no. 5, pp. 5311–5319, 2011.View at: Publisher Site | Google Scholar
D. Duong, T. Nguyen, and M. Dang, “Stock market prediction using financial news articles on ho chi minh stock exchange,” in Proceedings of the 10th International Conference on Ubiquitous Information Management and Communication, pp. 1–6, Danang, Vietnam, January 2016.View at: Publisher Site | Google Scholar