Skip to content

MoustAhmed/PythonStockPrediction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stock Price Prediction and Analysis, Feel free to adjust it based on your preferences!

This Python script predicts the next day's closing stock price using historical data imported from yahoo finance. It allows users to input their preferred stock symbol, visualizes key indicators, makes a prediction using linear regression and assesses prediction accuracy.

Metrics

Screenshot 2023-12-03 173051

The Mean Absolute Percentage Error (MAPE) is calculated using the formula:

MAPE Formula

Where:

  • n is the number of observations.
  • Y_i is the actual value for observation i.
  • hatY_i is the predicted value for observation i.

This formula provides a measure of the average percentage difference between actual and predicted values.

Figure_1

About

Python stock prediction using pre trained machine learning models.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages