The stock market is now days becomes very dynamic and liable to the external as well as internal factors, which can step-up or step-down the market. Nowadays it becomes important to understand the correlation between all the factors which can affect the market and so that we can achieve our primary objective. So, market trends prediction with achieving the high precision is now very necessitating by applying the machine learning algorithms to the historical data and analysing this with others factors like government policies, trending headlines, prices of the important commodities etc., which also play a very crucial role in directing the flow of the stock market and needed to keep beside while evaluating prices of the stock. Machine learning algorithm will help us to develop a model, which is going to analyze the stock prices patterns providing us a model, which is going to help us in the predicting of the stock prices. In this paper, I am comparing the two-machine learning algorithm i.e. Random forest and linear regression to create the training data model and going to test this model on the testing data set to predict the accuracy of the following algorithm’s models. © BEIESP.