Giter VIP home page Giter VIP logo

financial-engineering's Introduction

Stock Market-Analysis

Source: stocks from google finance : https://www.google.com/finance

Data: Historical prices from NASDAQ and NYSE for last 10 years. Which includes variables : Open,High,Low,Close,Volume.
10 stock sources from NASDAQ - AAPL(Apple), AMD, AMZN(Amazon),ATVI,FB(Facebook),GOOG,GOOGL(Google),INTC(Intel),
MSFT(Microsoft),TSLA(Tesla).
10 stock sources from NYSE - ABB, AFG, ALK, BAC, C, GCH, GE, IBM, JPM(JP Morgan), LVS, T.

alt text

Methods :Preprocessing the variables of the datasets. The datasets are stock sources which are loaded into the R enviroment from csv format.

  • Date: Originally date format in the dataset is 16-Mar-17,and its data type is factor, which is converted to date type using as.date() to 2017-03-16. We write a function to transform date column for all the sources.

alt text

  • Columns: Here we are working with 10 stock sources from NASDAQ, each stock source dataset consists of 5 columns Date,Open,High,Low,Close,Volume. Below is a descriptive view of the dataframe of one of the sources.

alt text
alt text

Listing the stocks and their individual length.

tickers= temp
j=0
for(t in tickers)
{
  j=j+1
  a =get(noquote(t))[,1]
  print(c(t,length(a)))

}  

[1] "aapl.csv" "4000"    
[1] "amd.csv" "4000"   
[1] "amzn.csv" "4000"    
[1] "atvi.csv" "4000"    
[1] "fb.csv" "1215"  
[1] "goog.csv" "3165"    
[1] "googl.csv" "3165"     
[1] "intc.csv" "4000"    
[1] "msft.csv" "4000"    
[1] "tsla.csv" "1691"    

Considering sources which has longest historical price range, based on their number of rows we select the sources having 4000 rows. We create a datasets Open,High,Low,Close . For instance Open dataset consists of open prices for all the stock sources having 4000 rows, so on for Close, High and Low.

Open

alt text alt text

High

alt text alt text

Low

alt text alt text

Close

alt textalt text

ย 

financial-engineering's People

Contributors

jishu1989 avatar

Watchers

James Cloos 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.