scholarly journals Investigating the use of the method of "nearest neighbors" to predict the behavior of stock prices in the implementation of arbitrage

Author(s):  
Perminov G.

In this paper, it was considered one of the types of trading in the stock market - Implementation of arbitrage. The aim of the study was to examine the possibility of using the method of "nearest neighbors" with heuristic rules to predict short-term stock price behavior during arbitrage transactions. In a paper tests the hypothesis that the two parameters - TotalRise (percentage price change over the entire period of growth) and LastChange (percentage change in price over the last day) - are crucial for predicting the behavior of stocks after a sharp rise on positive news. Consequently, an investor might assume, how to behave in the price of the shares, if the result will analyze arbitrage other stocks have close to the value of the shares and TotalRise LastChange. For this action, the risk of loss was defined as the ratio of the neighbors with a loss to all of its neighbors (if 20 neighbors of the action 5 neighbors were unprofitable (i.e. the respective shares rose in price), the riskiness of the operation can be set equal to 25%). Win value was defined as the average of the gains (and losses) of all the neighbors. As a result, developed a model is plausible determines the behavior of the shares.

2021 ◽  
Vol 10 (1) ◽  
Author(s):  
Sarah Dong ◽  
Amber Wang

Predicting stock prices has been both challenging and controversial. Since it first spread through the United States, the COVID-19 pandemic has impacted the stock market in a multitude of ways. Thus, stock price prediction has become even more challenging. Recurrent neural networks (RNN) have been widely used in many fields to predict financial time series. In this study, Long Short-Term Memory (LSTM), a special form of RNN, is used to predict the stock market direction for the US airline industry by using NYSE Arca Airline Index (XAL). The LSTM model was optimized through changing different hyperparameters of the model architecture to find the best combination for increased accuracy and performance evaluated by several metrics, including raw RMSE (3.51) and MAPA (4.6%), and very high MAPA (95.4%) and R^2 (0.978).


2021 ◽  
Vol 2 (3) ◽  
Author(s):  
Alireza Namdari ◽  
Tariq S. Durrani

AbstractStock market prediction is important for investors seeking a return on the capital invested, though this prediction is a challenging task, due to the complexity of stock price time-series. This task can be performed by conducting two primary analyses: fundamental and technical. In this paper, we examine the predictability of these two analyses using a multilayer feedforward perceptron neural network (MLP) and determine whether MLP is capable of accurately predicting stock market short-term trends. We utilize stock prices (2013 Mar – 2018 Jun) and twelve financial ratios of technology companies selected through a feature selection preprocess. Our model uses self-organizing maps (SOMs) for clustering the historical prices and produces a low-dimensional discretized representation of the input space. The best results are obtained through hyper-parameter optimizations using a three-hidden layer MLP. The models are integrated using a nonlinear autoregressive structure with exogenous input (NARX). We find that the hybrid model successfully predicts the short-term stock trends. The hybrid model yields the greatest directional accuracy (70.36%) as compared to fundamental and technical analyses (64.38% and 62.85%) and state-of-the-art models. The results indicate that the market is not fully efficient. Our model will be useful to practitioners seeking investing and trading opportunities and others interested in the study of financial markets.


2021 ◽  
Vol 2021 ◽  
pp. 1-8
Author(s):  
Hongying Zheng ◽  
Hongyu Wang ◽  
Jianyong Chen

As an important part of the social economy, stock market plays an important role in economic development, and accurate prediction of stock price is important as it can lower the risk of investment decision-making. However, the task of predicting future stock price is very difficult. This difficulty arises from stocks with nonstationary behavior and without any explicit form. In this paper, we propose a novel bidirectional Long Short-Term Memory Network (BiLSTM) framework called evolutionary BiLSTM (EBiLSTM) for the prediction of stock price. In the framework, three independent BiLSTMs correspond to different objective functions and act as mutation individuals, then their respective losses for evolution are calculated, and finally, the optimal objective function is identified by the minimum of loss. Since BiLSTM is effective in the prediction of time series and the evolutionary framework can get an optimal solution for multiple objectives, their combination well adapts to the nonstationary behavior of stock prices. Experiments on several stock market indexes demonstrate that EBiLSTM can achieve better prediction performance than others without the evolutionary operator.


Stock market is highly volatile and it is necessary for investors to have an accurate prediction of stock prices for a better profitability. Towards this need many methods have been proposed for stock market prediction with aim to provide a higher prediction accuracy. Current methods for stock market prediction are in two categories of machine learning and statistics based. Considering the need for accurate prediction in short term and long term, the merits of both methods must be combined for accurate prediction. This work proposes a hybrid deep learning approach for stock market prediction which combines the historic price-based trend forecasting along with stock market sentiments expressed in twitter to predict the stock price trend.


2021 ◽  
Vol 2021 ◽  
pp. 1-10
Author(s):  
Jiehua Lv ◽  
Chao Wang ◽  
Wei Gao ◽  
Qiumin Zhao

Stock price prediction is very important in financial decision-making, and it is also the most difficult part of economic forecasting. The factors affecting stock prices are complex and changeable, and stock price fluctuations have a certain degree of randomness. If we can accurately predict stock prices, regulatory authorities can conduct reasonable supervision of the stock market and provide investors with valuable investment decision-making information. As we know, the LSTM (Long Short-Term Memory) algorithm is mainly used in large-scale data mining competitions, but it has not yet been used to predict the stock market. Therefore, this article uses this algorithm to predict the closing price of stocks. As an emerging research field, LSTM is superior to traditional time-series models and machine learning models and is suitable for stock market analysis and forecasting. However, the general LSTM model has some shortcomings, so this paper designs a LightGBM-optimized LSTM to realize short-term stock price forecasting. In order to verify its effectiveness compared with other deep network models such as RNN (Recurrent Neural Network) and GRU (Gated Recurrent Unit), the LightGBM-LSTM, RNN, and GRU are respectively used to predict the Shanghai and Shenzhen 300 indexes. Experimental results show that the LightGBM-LSTM has the highest prediction accuracy and the best ability to track stock index price trends, and its effect is better than the GRU and RNN algorithms.


2004 ◽  
Vol 43 (4II) ◽  
pp. 619-637 ◽  
Author(s):  
Muhammad Nishat ◽  
Rozina Shaheen

This paper analyzes long-term equilibrium relationships between a group of macroeconomic variables and the Karachi Stock Exchange Index. The macroeconomic variables are represented by the industrial production index, the consumer price index, M1, and the value of an investment earning the money market rate. We employ a vector error correction model to explore such relationships during 1973:1 to 2004:4. We found that these five variables are cointegrated and two long-term equilibrium relationships exist among these variables. Our results indicated a "causal" relationship between the stock market and the economy. Analysis of our results indicates that industrial production is the largest positive determinant of Pakistani stock prices, while inflation is the largest negative determinant of stock prices in Pakistan. We found that while macroeconomic variables Granger-caused stock price movements, the reverse causality was observed in case of industrial production and stock prices. Furthermore, we found that statistically significant lag lengths between fluctuations in the stock market and changes in the real economy are relatively short.


Author(s):  
Vanita Tripathi ◽  
Shalini Aggarwal

In a first of this kind, this paper examines the issue of prior return effect in Indian stock market in intra-day analysis using high frequency data. We document that in Indian stock market, security returns exhibit a reversal in their direction within few minutes of extreme price rises as well as price falls. However the speed with which the correction takes place is slightly different for good news events and bad news events. Indian investors tend to be optimistic as they immediately bring stock prices up following unjustified price falls but take time to bring stock prices down following unjustified price rises. These findings lend a further support to short-term overreaction literature. More importantly, these findings serve as a proof of predictability of the direction of future stock prices and consequent returns on an intra-day basis. It forwards important investment implications for traders, fund managers, and investors at large.


Author(s):  
Ding Ding ◽  
Chong Guan ◽  
Calvin M. L. Chan ◽  
Wenting Liu

Abstract As the 2019 novel coronavirus disease (COVID-19) pandemic rages globally, its impact has been felt in the stock markets around the world. Amidst the gloomy economic outlook, certain sectors seem to have survived better than others. This paper aims to investigate the sectors that have performed better even as market sentiment is affected by the pandemic. The daily closing stock prices of a total usable sample of 1,567 firms from 37 sectors are first analyzed using a combination of hierarchical clustering and shape-based distance (SBD) measures. Market sentiment is modeled from Google Trends on the COVID-19 pandemic. This is then analyzed against the time series of daily closing stock prices using augmented vector autoregression (VAR). The empirical results indicate that market sentiment towards the pandemic has significant effects on the stock prices of the sectors. Particularly, the stock price performance across sectors is differentiated by the level of the digital transformation of sectors, with those that are most digitally transformed, showing resilience towards negative market sentiment on the pandemic. This study contributes to the existing literature by incorporating search trends to analyze market sentiment, and by showing that digital transformation moderated the stock market resilience of firms against concern over the COVID-19 outbreak.


Author(s):  
Kuo-Jung Lee ◽  
Su-Lien Lu

This study examines the impact of the COVID-19 outbreak on the Taiwan stock market and investigates whether companies with a commitment to corporate social responsibility (CSR) were less affected. This study uses a selection of companies provided by CommonWealth magazine to classify the listed companies in Taiwan as CSR and non-CSR companies. The event study approach is applied to examine the change in the stock prices of CSR companies after the first COVID-19 outbreak in Taiwan. The empirical results indicate that the stock prices of all companies generated significantly negative abnormal returns and negative cumulative abnormal returns after the outbreak. Compared with all companies and with non-CSR companies, CSR companies were less affected by the outbreak; their stock prices were relatively resistant to the fall and they recovered faster. In addition, the cumulative impact of the COVID-19 on the stock prices of CSR companies is smaller than that of non-CSR companies on both short- and long-term bases. However, the stock price performance of non-CSR companies was not weaker than that of CSR companies during times when the impact of the pandemic was lower or during the price recovery phase.


2012 ◽  
Vol 27 (03) ◽  
pp. 1350022 ◽  
Author(s):  
CHUNXIA YANG ◽  
YING SHEN ◽  
BINGYING XIA

In this paper, using a moving window to scan through every stock price time series over a period from 2 January 2001 to 11 March 2011 and mutual information to measure the statistical interdependence between stock prices, we construct a corresponding weighted network for 501 Shanghai stocks in every given window. Next, we extract its maximal spanning tree and understand the structure variation of Shanghai stock market by analyzing the average path length, the influence of the center node and the p-value for every maximal spanning tree. A further analysis of the structure properties of maximal spanning trees over different periods of Shanghai stock market is carried out. All the obtained results indicate that the periods around 8 August 2005, 17 October 2007 and 25 December 2008 are turning points of Shanghai stock market, at turning points, the topology structure of the maximal spanning tree changes obviously: the degree of separation between nodes increases; the structure becomes looser; the influence of the center node gets smaller, and the degree distribution of the maximal spanning tree is no longer a power-law distribution. Lastly, we give an analysis of the variations of the single-step and multi-step survival ratios for all maximal spanning trees and find that two stocks are closely bonded and hard to be broken in a short term, on the contrary, no pair of stocks remains closely bonded for a long time.


Sign in / Sign up

Export Citation Format

Share Document