Fortune 500: Visualizing stock performance

Posted on Jun 17, 2018

Shiny App:


Introduction.  Stock Explorer is an interactive dashboard that provides an easy interface to visualize Fortune 500 companies’ stock performance over time in relation to major market indicators and indices.  This application uses Yahoo Finance on the back-end to download the up-to date stock price information.  This dashboard is implemented using Shiny in conjunction with dyGraph library.

Functionality.  The Fortune 500 companies are grouped by industrial sectors, such as Energy, Technology, Financials, etc.  The corresponding revenues, assets, income, and shares information for all companies in a given sector can be found by clicking on the Data tab.

Leveraging dyGraph charting library, we can select the time period either by using a Range Selector on the bottom of the graph or by explicitly entering the Date Range on the dashboard’s side bar.  We can also visualize the long-term trends for a given stock by invoking Period Roller and entering the rolling period, for example, if we want to see monthly or annual trends, we would enter 30 or 365 into the rolling period window, respectively.

The major market indicators such as Dow Jones, SP500, and NYA can be plotted with our stock to see the relative performance.  This analysis can be done enhanced by invoking the Period Roller, that would allow to look closer at the comparative analysis period of interest.

Another useful tool for analyzing the stock performance is the Relative Strength Index (RSI).  It is a momentum oscillator that measures the speed and change of stock price movements.  The RSI can take values from 0 to 100.  The rule of thumb is that when the RSI is over 70 the stock is overbought, and oversold when below 30.  By entering the number of RSI periods, we can visualize it on the same graph with the stock Closing price.

Future work.  The dashboard currently provides only descriptive functionality.  However, it can be enhanced by adding a predictive task component.  We can use the stock data to implement ARIMA or ARMA predictive models and place the resulting visualization under the Predictor tab.  The user will be able to interactively enter the prediction time period and model parameters.

About Author

Leave a Comment

No comments found.

View Posts by Categories

Our Recent Popular Posts

View Posts by Tags

#python #trainwithnycdsa 2019 airbnb Alex Baransky alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus API Application artist aws beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep Bundles California Cancer Research capstone Career Career Day citibike clustering Coding Course Demo Course Report D3.js data Data Analyst data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization Deep Learning Demo Day Discount dplyr employer networking feature engineering Finance Financial Data Science Flask gbm Get Hired ggplot2 googleVis Hadoop higgs boson Hiring hiring partner events Hiring Partners Industry Experts Instructor Blog Instructor Interview Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter lasso regression Lead Data Scienctist Lead Data Scientist leaflet linear regression Logistic Regression machine learning Maps matplotlib Medical Research Meet the team meetup Networking neural network Neural networks New Courses nlp NYC NYC Data Science nyc data science academy NYC Open Data NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time Portfolio Development prediction Prework Programming PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn Selenium sentiment analysis Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau team TensorFlow Testimonial tf-idf Top Data Science Bootcamp twitter visualization web scraping Weekend Course What to expect word cloud word2vec XGBoost yelp