机器学习股票
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.
Towards Data Science编辑的注意事项: 尽管我们允许独立作者按照我们的 规则和指南 发表文章 ,但我们不认可每位作者的贡献。 您不应在未征求专业意见的情况下依赖作者的作品。 有关 详细信息, 请参见我们的 阅读器条款 。
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:
由于股票的波动性,我将不会使用股票的收盘价来预测它,