Giter Site home page Giter Site logo

saurabh251000 / market_analysis_and_prediction Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.95 MB

Market Analysis and Prediction

Home Page: https://saurabh251000.github.io/Resume/

Jupyter Notebook 100.00%
market market-analysis market-prediction market-predictions market-predictor prediction prediction-model share-market stock-market stock-market-analysis

market_analysis_and_prediction's Introduction

Market Analysis and Prediction ๐Ÿ“•

This is my self projest , I have intrest in Share Market and Data Analytics so I choose this project , I think this project is best beacause of I explore in both feild. I choose india's most valuable companies for analysis and prediction . Companies are

  • Reliance : Most valuable companies in Oil & Gas
  • TCS (Tata Consultancy Service) : Most valuable in IT service
  • SBIN (State Bank of India) : Most Valuable Banking Brand
  • Hindustan Unilever : One of India's top fast-moving consumer goods (FMCG) company

Prediction of stocks is difficult and complex because it depends on various factors like market inflation, gdp, govvt. Policies and company performance. So in this model predicted stocks taking the factor of closing price.

I can divide the whole project in three parts

  • Data Scrapping ๐Ÿ“ƒ
  • Market Analysis ๐Ÿ’ป
  • Market Production ๐Ÿ“‰

1 :Data Scraping : Extract the data from Yahoo Finance

  • Use 1 year historical data for Market Analysis Purpose
  • Use 5 year historical data for Market Prediction

Store the data in Pandas Dataframe.

2 :Market Analysis

  • Plotting the Closing Price of each company ๐Ÿ“ˆ
  • Plotting the Volume of Sales ๐Ÿ“ˆ
  • Plot 10 days, 20 days, 30 days Moving Average of Stocks ๐Ÿ“ˆ
  • Plot percentage of Daily Return of the shares ๐Ÿ’น
  • Plot Correlation between stocks closing price ๐Ÿ“ˆ
  • Risk Analysis : Calculate coefficient of variabilty (risk/reward) ๐Ÿ’น

3 :Market Prediction

  • Get data from yahoo finance
  • Scaling the Dataset
  • Divide into train and test data
  • Creating Train dataset
  • Train LSTM model
  • Test the Model
  • Plot the prediction value

Tip

LSTM Model : A time series forcast method to predict the value. This model used sigmoid activation function for the scaling of data and we minimised the errors using loss function that is mean square error. We used lstm because it is a better version of rnn (recurrent neural network). It assigns some weightage to the important and not important data. It also assigns some weightage to some important older data or insight that might be very useful in the future. This thing cant be done in RNN model. RNN model gives more weightage to the recent data. RNN has Gradient vanishing problem.

  • LSTM model using keras import library.

Important

Data Scalling : In dataset has datapoints far from each other, Scaling is a technique to mske them Closer to each other, SO ML model easily understand and interprete the data.

  • Standard Scaler : Follow Normal Distribution.
  • MinMax Scaler : Substract minimum value from each value and divide by range of data. It converts range [0-1]

Contact Me

market_analysis_and_prediction's People

Contributors

saurabh251000 avatar

Stargazers

 avatar

Watchers

 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.