GithubHelp home page GithubHelp logo

payneal / data_viz_group_final Goto Github PK

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

Georgia Institute of Technology: DEPENDENCY AMONG ECONOMIES, MEASURED BY MAIN STOCK INDICES.

Home Page: https://www.youtube.com/watch?v=_WM7tLt-Btk

Jupyter Notebook 46.26% HTML 16.65% JavaScript 15.08% R 6.27% Python 15.74%
model-visualization stock-indices economies

data_viz_group_final's Introduction

DEPENDENCY AMONG ECONOMIES, MEASURED BY MAIN STOCK INDICES

DESCRIPTION - Describe the package

Our Projects goal was to Analyze economic dependency among economies by measuring the strength, direction,and relationship between their main stock indices, and how these relationships have changed over timethrough a practical visualization

Folder structure

  • data/ = all data files csv and json files generated
  • dataprep.ipyb = jupyter notebook
  • src/ = python upload stuff for gathering data
    • stocks.py = has all stocks and symbols used
    • upload.py = upload script to get data from yahoo and save csv files
    • csv_json.py = create json from csv files
    • change_in_close_price.py = csv with change percent per day
  • lib/ = D3 stuff
  • index.html = html code
  • index.js = js code for d3 vizualizationns
  • r_code/ = r_code to generate data in r_data/
  • r_data/ = csv files generated for model visualization
  • venv = virtual environment
  • requirements = pip installs required to get index.py to run

INSTALLATION - How to install and setup your code

  • git clone repo
git clone https://github.gatech.edu/apayne44/Data_and_Visual_Analytics_Project.git

  • create python virtual environment
    python3 -m venv /path/to/new/virtual/environment
  • install python requirements
    • only needed to create new data
    • alot of requiremnets are for jyupter which is only needed if you wish to use notebook
    source venv/activate/bin
    pip install -r requirements.txt
  • install packages in R
    • all packages used found in anaconda r essential bundal
      • vars
      • lubridate
    • install anaconda
    • install r essential bundal
   # download R essential bundal
   conda install -c r r-essentials

EXECUTION - How to run a demo on your code

DEMO VIDEO

DEPENDENCY AMONG ECONOMIES, MEASURED BY MAIN STOCK INDICES

To view model visualization

    # be at root directory and run
    python3 -m http.server

To get new up todate data

  • to change the dates of data grabedgo to ./src/stocks.py
  • change end to end date you wish to examine
  • change start to start date you wish to examine
  • see varible all_stocks_info also at ./src/sctocks.py and add stock name & create foleder of stock name in ./data and use stock name found for stock in yahoo for symbol
    source venv/bin/activate
    pip install -r requirements.txt
    cd src
    python3 upload.py
    source venv/bin/activate
    cd src
    python3 csv_json.py
  • create change stock percent from generated = ./data/change_precent.json
    source venv/bin/activate
    cd src
    python3 change_in_close_price.py

build model with new data

    cd r_code
    chmod +x project_v6.R
    Rscript project_v6.R

starting jupyter notebook to view uploaded csv or json data

    git clone repo
    python3 env ./venv
    source venv/bin/activate
    pip install -r requirements.txt
    jupyter notebook dataprep.ipynb

stocks to be used:

  • AEX = (^AEX)
  • ATX = (^ATX)
  • BEL 20 = (^BFX)
  • Bovespa = (^BVSP)
  • BSE Sensex = (^BSESN)
  • CAC40 = (^FCHI)
  • CSE = (^GSPTSE)
  • DAX PERFORMANCE-INDEX = (^GDAXI)
  • Dow 30 = (^DJI)
  • EURONEXT 100 = (^N100)
  • HANG SENG INDEX = (^HSI)
  • IBEX 35 = (^IBEX)
  • IDX Composite = (^JKSE)
  • KOSPI Composite Index = (^KS11)
  • MOEX Russia Index = (IMOEX.ME)
  • Nasdaq = (^IXIC)
  • Nifty 50 = (^NSEI)
  • IPC MEXICO = (^MXX)
  • MERVAL = (^MERV)
  • Nikkei 225 = (^N225)
  • Russell 2000 = (^RUT)
  • S&P 500 = (^GSPC)
  • S&P/NZX 50 INDEX GROSS = (^NZ50)
  • S&P/TSX Composite index = (^GSPTSE)
  • SMI = (^SSMI)

data_viz_group_final's People

Contributors

payneal 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.