| Literature DB >> 34963777 |
Bui Thanh Khoa1, Tran Trong Huynh2.
Abstract
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.Entities:
Mesh:
Year: 2021 PMID: 34963777 PMCID: PMC8710363 DOI: 10.1155/2021/2917577
Source DB: PubMed Journal: Comput Intell Neurosci
Logistic regression in prior studies.
| Authors | Research | Accuracy |
|---|---|---|
| Jabeur [ | Bankruptcy prediction using partial least squares logistic regression | ∼70% |
| Rafatnia et al. [ | Financial distress prediction across firms | 83.3% |
| Jovanović et al. [ | Financial indicators as predictors of illiquidity | 95.5% |
| Strzelecka et al. [ | Application of logistic regression models to assess household financial decisions regarding debt | 70.5% |
Tickers and observations in the VN30 basket.
| Ticker | Observations | Ticker | Observations | Ticker | Observations |
|---|---|---|---|---|---|
| BID | 1,840 | MWG | 1,731 | TCB | 762 |
| BVH | 2,989 | NVL | 1,112 | TCH | 1,173 |
| CTG | 2,975 | PDR | 2,573 | TPB | 789 |
| FPT | 3,611 | PLX | 1,039 | VCB | 2,987 |
| GAS | 2,265 | PNJ | 3,043 | VHM | 772 |
| HDB | 857 | POW | 605 | VIC | 3,424 |
| HPG | 3,381 | REE | 5,050 | VJC | 1,076 |
| KDH | 2,833 | SBT | 3,319 | VNM | 3,838 |
| MBB | 2,401 | SSI | 3,600 | VPB | 957 |
| MSN | 2,896 | STB | 3,720 | VRE | 898 |
Variable description.
| Variables | Formula | Description | Source |
|---|---|---|---|
|
| The closing price at date | Schöneburg [ | |
|
|
| The direction of price movement (foredir = 1 implies that the closing price increases from the previous day) | Ren et al. [ |
|
|
| The fluctuation of the price within a trading day | Vijh et al. [ |
|
|
| The difference between the lowest price and the opening price | |
|
|
| The fluctuation of closing prices between 2 consecutive days | |
|
| 1/7∑ | The average closing price of 7 consecutive trading sessions | |
|
| 1/14∑ | The average closing price of 14 consecutive trading sessions | |
|
| 1/21∑ | The average closing price of 21 consecutive trading sessions | |
|
|
| The standard deviation of the closing price of 7 consecutive trading sessions | |
|
|
| Fluctuation of VN-Index between 2 consecutive trading sessions | Qiu and song [ |
|
|
| The return rate of the VN-Index portfolio | |
|
| Time trend variable (the default origin is January 1, 1970) |
Figure 1Rolling window method.
Descriptive statistics of variables.
| Statistics | Close | HL | LO | Variation | ma7 | ma14 | ma21 | sd7 |
|---|---|---|---|---|---|---|---|---|
| Min | 5.3 | −161.7 | −40 | −169 | 5.39 | 5.59 | 5.83 | 0 |
| Median | 37.2 | 0.8 | −0.3 | 0 | 37.2 | 37.25 | 37.26 | 0.66 |
| Max | 665 | 44.5 | 82 | 30 | 634.57 | 623 | 622.14 | 93.83 |
| Mean | 51.54 | 1.242 | −0.62 | 0 | 51.56 | 51.58 | 51.59 | 1.19 |
| SD | 43 | 1.6 | 1.13 | 2 | 43.1 | 43.2 | 43.27 | 2.03 |
Figure 2The number of observations on the tickers' price increases/decreases.
Figure 3Closing prices movement of tickers.
Figure 4Variation movement of the tickers.
The statistics of the variables in the market.
| Statistics | closevn | vnic | vnipc | closevn30 | rvn30 | rf |
|---|---|---|---|---|---|---|
| Min | 235.5 | −73.23 | −7.15 | 230.7 | −6.73 | 0.27 |
| Median | 582 | 0.68 | 0.1 | 614.1 | 0.11 | 4.86 |
| Max | 1,420.3 | 40.85 | 4.74 | 1,557.4 | 5.16 | 13.83 |
| Mean | 668.7 | 0.32 | 0.04 | 677 | 0.06 | 5.77 |
| SD | 246.45 | 8.7 | 1.28 | 228.59 | 1.31 | 3.49 |
Figure 5Movement of VN-Index, VN30 index, and bond interests (T-bill).
A summary on accuracy of tickers in VN30 portfolio.
| Ticker | Logistic | SVM | Ticker | Logistic | SVM | Ticker | Logistic | SVM |
|---|---|---|---|---|---|---|---|---|
| BID | 59.49 | 92.55 | POW | 56.85 | 93.36 | MWG | 53.84 | 91.51 |
| BVH | 58.4 | 92.91 | REE | 62.21 | 92.53 | NVL | 58.29 | 93.72 |
| CTG | 61.93 | 93.53 | SBT | 62.2 | 93.6 | PDR | 59.98 | 92.76 |
| FPT | 58.67 | 90.64 | SSI | 58.9 | 91.75 | PLX | 56.3 | 91.41 |
| GAS | 57.55 | 92.9 | STB | 63.32 | 92.19 | PNJ | 57.86 | 91.64 |
| HDB | 57.61 | 93.71 | TCB | 55.53 | 95.73 | VIC | 59.87 | 91.57 |
| HPG | 58.93 | 91.22 | TCH | 54.88 | 91.97 | VJC | 58.57 | 86.66 |
| KDH | 61.89 | 93.36 | TPB | 58.82 | 96.94 | VNM | 61.83 | 91.34 |
| MBB | 62.15 | 93.67 | VCB | 58.6 | 93.25 | VPB | 57.5 | 88.03 |
| MSN | 62.48 | 93.05 | VHM | 57.84 | 94.85 | VRE | 55.62 | 91.95 |
| Average accuracy | SVM | Logistic | ||||||
| 92.48 | 58.93 | |||||||
Stock trading results.
| Ticker | SVM | Logistic | Return | Adj SVM | Adj logistic | Adj return |
|---|---|---|---|---|---|---|
| BID | 1.448 | 0.177 | 0.067 | 0.780 | 0.072 | 0.025 |
| BVH | 1.450 | 0.280 | 0.038 | 0.800 | 0.116 | 0.010 |
| CTG | 1.432 | 0.380 | 0.046 | 0.788 | 0.162 | 0.014 |
| FPT | 1.353 | 0.331 | 0.054 | 0.726 | 0.135 | 0.015 |
| GAS | 1.421 | 0.257 | 0.068 | 0.775 | 0.108 | 0.026 |
| HDB | 1.469 | 0.465 | 0.059 | 0.839 | 0.207 | 0.025 |
| HPG | 1.333 | 0.316 | 0.048 | 0.705 | 0.132 | 0.014 |
| KDH | 1.427 | 0.427 | 0.039 | 0.781 | 0.183 | 0.012 |
| MBB | 1.462 | 0.398 | 0.067 | 0.811 | 0.170 | 0.025 |
| MSN | 1.434 | 0.449 | 0.038 | 0.793 | 0.194 | 0.011 |
| MWG | 1.359 | 0.211 | 0.094 | 0.716 | 0.088 | 0.037 |
| NVL | 1.411 | 0.284 | 0.083 | 0.808 | 0.125 | 0.035 |
| PDR | 1.494 | 0.396 | 0.062 | 0.812 | 0.166 | 0.022 |
| PLX | 1.240 | 0.226 | 0.065 | 0.702 | 0.104 | 0.028 |
| PNJ | 1.375 | 0.329 | 0.038 | 0.720 | 0.136 | 0.010 |
| POW | 1.344 | 0.317 | 0.034 | 0.888 | 0.158 | 0.017 |
| REE | 1.552 | 0.467 | 0.053 | 0.730 | 0.134 | 0.013 |
| SBT | 1.427 | 0.411 | 0.049 | 0.778 | 0.174 | 0.015 |
| SSI | 1.372 | 0.309 | 0.053 | 0.748 | 0.127 | 0.015 |
| STB | 1.402 | 0.425 | 0.052 | 0.721 | 0.160 | 0.014 |
| TCB | 1.603 | 0.271 | 0.006 | 0.864 | 0.111 | 0.001 |
| TCH | 1.475 | 0.242 | 0.056 | 0.784 | 0.100 | 0.021 |
| TPB | 1.643 | 0.419 | 0.027 | 0.936 | 0.176 | 0.010 |
| VCB | 1.452 | 0.325 | 0.041 | 0.803 | 0.136 | 0.012 |
| VHM | 1.590 | 0.477 | 0.035 | 0.859 | 0.198 | 0.014 |
| VIC | 1.396 | 0.369 | 0.049 | 0.758 | 0.156 | 0.015 |
| VJC | 1.268 | 0.367 | 0.047 | 0.690 | 0.165 | 0.019 |
| VNM | 1.437 | 0.460 | 0.063 | 0.743 | 0.176 | 0.014 |
| VPB | 1.316 | 0.305 | 0.045 | 0.755 | 0.139 | 0.019 |
| VRE | 1.397 | 0.355 | 0.071 | 0.802 | 0.160 | 0.030 |
| Average | 1.426 | 0.348 | 0.052 | 0.781 | 0.146 | 0.018 |
The p-value for testing the effectiveness of trading methods.
| Ticker | p_LR_vn30 | p_LR_vni | p_SVM_vn30 | p_SVM_vni | p_return |
|---|---|---|---|---|---|
| BID | 0.291 | 0.178 | 0.001 | 0.001 | 0.641 |
| BVH | 0.001 | 0.001 | 0.001 | 0.001 | 0.549 |
| CTG | 0.001 | 0.001 | 0.001 | 0.001 | 0.499 |
| FPT | 0.001 | 0.001 | 0.001 | 0.001 | 0.543 |
| GAS | 0.020 | 0.010 | 0.001 | 0.001 | 0.578 |
| HDB | 0.020 | 0.004 | 0.001 | 0.001 | 0.574 |
| HPG | 0.001 | 0.001 | 0.001 | 0.001 | 0.464 |
| KDH | 0.001 | 0.001 | 0.001 | 0.001 | 0.628 |
| MBB | 0.001 | 0.001 | 0.001 | 0.001 | 0.531 |
| MSN | 0.001 | 0.001 | 0.001 | 0.001 | 0.643 |
| MWG | 0.224 | 0.131 | 0.001 | 0.001 | 0.581 |
| NVL | 0.069 | 0.027 | 0.001 | 0.001 | 0.428 |
| PDR | 0.001 | 0.001 | 0.001 | 0.001 | 0.666 |
| PLX | 0.211 | 0.103 | 0.001 | 0.001 | 0.550 |
| PNJ | 0.001 | 0.001 | 0.001 | 0.001 | 0.599 |
| POW | 0.615 | 0.387 | 0.001 | 0.001 | 0.897 |
| REE | 0.001 | 0.001 | 0.001 | 0.001 | 0.562 |
| SBT | 0.001 | 0.001 | 0.001 | 0.001 | 0.346 |
| SSI | 0.001 | 0.001 | 0.001 | 0.001 | 0.542 |
| STB | 0.001 | 0.001 | 0.001 | 0.001 | 0.549 |
| TCB | 0.377 | 0.178 | 0.001 | 0.001 | 0.730 |
| TCH | 0.092 | 0.038 | 0.001 | 0.001 | 0.419 |
| TPB | 0.076 | 0.021 | 0.001 | 0.001 | 0.651 |
| VCB | 0.001 | 0.001 | 0.001 | 0.001 | 0.533 |
| VHM | 0.055 | 0.014 | 0.001 | 0.001 | 0.667 |
| VIC | 0.001 | 0.001 | 0.001 | 0.001 | 0.540 |
| VJC | 0.012 | 0.003 | 0.001 | 0.001 | 0.510 |
| VNM | 0.001 | 0.001 | 0.001 | 0.001 | 0.549 |
| VPB | 0.096 | 0.030 | 0.001 | 0.001 | 0.572 |
| VRE | 0.088 | 0.024 | 0.001 | 0.001 | 0.552 |
Glossary of variables.
| Variable | Definition |
|---|---|
| SVM | The average rate of return using the SVM model |
| Logistic | The average rate of return using the logistic regression model |
| Return | The average rate of return on investment for holding securities |
| Adj SVM, adj logistic, and adj return | Risk-adjusted rate of return |
| p_LR_vn30, p_LR_vni, p_SVM_vn30, and p_SVM_vni | The |
| p_return | The |
Logistic regression result.
| Deviance residuals | ||||
|---|---|---|---|---|
| Min | 1Q | Median | 3Q | Max |
| –2.2376 | −1.0705 | −0.9763 | 1.2765 | 1.9416 |
| Estimate | Std. error |
| Pr(>|z|) | |
| (Intercept) | −1.54 | 8.77 | −17.589 | <2 |
| close | 3.57 | 4.41 | 0.81 | 0.4179 |
| HL | 5.53 | 9.29 | 5.951 | 2.67 |
| LO | 6.07 | 1.11 | 5.47 | 4.50 |
| variation | 1.00 | 6.00 | 1.67 | 0.0949 |
| vnicbb | −2.51 | 2.18 | −11.543 | <2 |
| vnipc | 2.00 | 1.63 | 12.295 | <2 |
| insec | 7.45 | 5.18 | 14.389 | <2 |
| ma7 | 4.88 | 7.81 | 0.625 | 0.5321 |
| ma14 | −1.34 | 9.15 | −0.146 | 0.8838 |
| ma21 | −8.35 | 5.35 | −1.562 | 0.1184 |
| sd7 | 3.98 | 5.54 | 7.184 | 6.76 |
Note. Significance codes: 0 “∗∗∗“ 0.001 “∗∗ 0.01 “∗” 0.05 “.” 0.1 “ “ 1.
Runs tests results.
| VN30 index | VN-Index |
|---|---|
| Approximate runs rest data: VN30 | Approximate runs rest data: VN-Index |
| Runs = 1,482; | Runs = 1,466; |