Using Probabilistic Machine Learning to improve your Stock Trading

Victor Sim
Analytics Vidhya
Published in
4 min readSep 5, 2020

--

Photo by Sebastian Kanczok on Unsplash

Note from Towards Data Science’s editors: While we allow independent authors to publish articles in accordance with our rules and guidelines, we do not endorse each author’s contribution. You should not rely on an author’s works without seeking professional advice. See our Reader Terms for details.

Probabilistic Machine Learning comes hand in hand with Stock Trading: Probabilistic Machine Learning uses past instances to predict probabilities of certain events happening in future instances. This can be directly applied to stock trading, to predict future stock prices.

The Concept:

This program will use Gaussian Naive Bayes to classify data into increasing stock price, or decreasing stock price.

Because of the volatility of the stocks, I will not be using the closing price of the stock to predict it, but rather be using the ratio between the past and current closing prices. To understand how the program works, we must first understand the underling algorithm at play:

What is Gaussian Naive Bayes Classifier?

Gaussian Naive Bayes is an algorithm that classifies data by extrapolating data using Gaussian Distribution (identical to Normal Distribution) as well as Bayes theorem.

--

--

Victor Sim
Analytics Vidhya

Interested in Machine Learning. Open to internships and opportunities. Connect at https://linktr.ee/victorsi.