In this model, we will try to predict the closing price of a stock. We will be using LINEAR REGRESSION ALGORIITHM & SVR to predict the outcome. for the dataset we will be using Yahoo Finance library which will give the required data. So install yfinance library using pip install yfinance command As the dataset do not contain any missing value and any categorical value so we dont require to manipulate our dataset.
As the model linear regression is best suited for the model where r2 score is higher than the svr model. More Algorithms can be used for the model to predict the final outcome like random forest and decision tree.
Dataset : used Yahoo finance library by installing yfinance.