Individuals aim to develop accurate models for stock prices to make informed decisions as investors, so they can determine opportune moments to purchase and sell stocks for maximizing profits. This paper select Apple stock from yahoo finance range from Aug 1st 2013 to Aug 1st 2023, and then forecasting its future 30 days stock price. This study contain four models, which are XGboost, linear regression, K-Nearest Neighbors (KNN) and Long Short-Term Memory (LSTM). Those models are all fit the train and test data and then draw a visualization plot. For selecting the best model, this paper use root mean squared error(RMSE) metrics and mean absolute percentage error(MAPE) and got the best model are Linear Regression and LSTM. Depending on the mechanism of four models, LSTM can treated as the best one to predict future stock price. In future study, researchers can use LSTM model more to predict stock price for other companies in order to get the best result.