GithubHelp home page GithubHelp logo

shriansh2002 / stock-prediction Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 211 KB

This project predicts Apple stock prices using linear regression. It's based on historical stock price data and uses Python and popular data science libraries like Pandas, NumPy, Matplotlib, and scikit-learn.

License: MIT License

Python 100.00%
apple datascience finance linearregression machinelearning matplotlib ml numpy pandas prediction

stock-prediction's Introduction

Stock Prediction App

This repository contains a Python script to predict the closing price of Apple stock using Linear Regression. The script uses data from a CSV file AAPL.csv to train a linear regression model and then predicts the closing price for the test data.

Table of Contents

Prerequisites

  • Python 3.x
  • Pandas
  • NumPy
  • Matplotlib
  • Scikit-learn

Installation

  1. Clone this repository to your local machine using

    git clone https://github.com/Shriansh2002/Stock-Prediction.git
  2. Install the required packages using

    pip install -r requirements.txt

Usage

  • Put your AAPL.csv file in the same directory as the script.
  • Run the script using python apple_stock_prediction.py.
  • The script will train a linear regression model on the training data and predict the - closing price for the test data.
  • The root mean squared error (RMSE) of the prediction will be displayed on the console.
  • A plot will also be displayed showing the predicted closing prices and the actual closing prices.

Contributing

  • Fork this repository to your own GitHub account and then clone it to your local device.
  • Create a new branch:
    git checkout -b my-new-feature
  • Make changes and test them.
  • Submit a pull request detailing the changes made and any additional information about the feature.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

stock-prediction's People

Contributors

shriansh2002 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.