Posts

Showing posts with the label deep learning

Financial News - Noise or Information? [Part II]

Image
  This is part II of the three-part series on building analytical models using financial news data to predict stock price movement (up or down). So far, we have explored the use of LSTM to predict stock price movement based on trend and momentum indicators. We also tried the n-gram TF-IDF scheme to model financial news data for predicting stock price movement. Unfortunately, both methods failed to pick up any useful signals that would help us trade profitably. For those who missed the two earlier posts, or would like to recap the analyses, you may access them through here and here. One issue with our earlier attempt to predict stock price movement using financial news was that the language model proposed in part I of the series was not sophisticated enough to understand the meaning of words nor the sequential dependencies of words in sentences. This post introduces word embedding and Bi-directional Long Short-Term memory (Bi-LSTM) to model financial news data that could overcom...

A Random Walk down the Stock Market

Image
  For the first post of this blog, I think it is apt to start with a random walk down the stock market. People in the market should be of no stranger to the Random Walk Hypothesis (RWH) . The concept of random walk could be traced back to Jules Regnault, a French broker in the 1800s. The term was later popularised by the book, A Random Walk Down Wall Street , written by Burton Malkiel. It is a financial theory that suggests stock prices evolve randomly and thus cannot be predicted by past trend. In this post, I put the RWH to test by constructing a Long Short-Term Memory (LSTM) model to predict stock price movement (up or down) one day ahead. The data used in this analysis was obtained from Kaggle . It contains stock market information of securities listed on the two US stock exchanges, NASDAQ and NYSE. The Date, Open, Low, High, Close, Adjusted Close and Volume of each trading day was provided for each stock. For this ...