Member-only story
How I used Artificial Intelligence (AI), Python & XGBoost to Predict the Stock Market
Use Artificial Intelligence (AI) to predict the stock market with Python
Disclaimer: The material in this article is purely educational and should not be taken as professional investment advice. Invest & budget at your own discretion. Affiliate links are in this article (by clicking on these links you help me out with no additional cost to yourself). Please enjoy the article!
In this article I will demonstrate how I created a model with an accuracy of about 70% using artificial intelligence and python to predict the price of the stock market.
For this project, I used a machine learning algorithm called XGBoost. Machine learning is a subset of artificial intelligence (AI). XGBoost stands for Extreme Gradient Boosting, it is a machine learning library that helps you build models to predict outcomes. It is used to solve problems in regression, classification, and ranking. XGBoost is an ensemble learning method that combines the predictions of multiple weak models to produce a stronger prediction.
I used this machine learning library on data from the S&P500 (which many consider to be a good representation of the U.S. stock market) to predict the future price of the market.