%0 Journal Article %T Machine Learning Application in Stock Price Prediction: Applied to the Active Firms in Oil and Gas Industry in Tehran Stock Exchange %J Petroleum Business Review %I Petroleum University of Technology %Z 2645-4726 %A Ghanbari, Ali mohammad %A Jamshidi, Hamid %D 2019 %\ 06/01/2019 %V 3 %N 2 %P 29-41 %! Machine Learning Application in Stock Price Prediction: Applied to the Active Firms in Oil and Gas Industry in Tehran Stock Exchange %K Stock Prediction %K Machine Learning %K Oil and gas industry %R 10.22050/pbr.2019.112803 %X Stock price prediction is one of the crucial concepts in finance area. Machine learning can provide the opportunity for traders and investors to predict stock prices more accurately. In this paper, Closing Price is dependent variable and First Price, Last Price, Opening Price, Today’s High, Today’s Low, Volume, Total Index of Tehran Stock Exchange, Brent Index, WTI Index and Exchange Rate are independent variables. Seven different machine learning algorithms are implemented to predict stock prices. Those include Bayesian Linear, Boosted Tree, Decision Forest, Neural Network, Support Vector, and Ensemble Regression. The sample of the study is fifteen oil and gas companies active in the Tehran Stock Exchange. For each stock the data from the September 23, 2017 to September 23, 2019 gathered. Each algorithm provided two metrics for performance: Root Mean Square Error and Mean Absolute Error. By comparing the aforementioned metrics, the Bayesian Linear Regression had the best performance to predict stock price in the oil and gas industry in the Tehran Stock Exchange. %U https://pbr.put.ac.ir/article_112803_e576410070fbc135eb46717cc49ec35c.pdf