- Basic Statistics
Tags
- Data Visualisation
- Import Data
- R Programming
This is the second part of the 4-series articles about Dow Jones Stock Market. To read the first part go to this link. In this part, I am going to analyze the Dow Jones Industrial Average (DJIA) trade volume.
Packages
The packages being used in this post series are herein listed.
1 |
|
Getting Data
We upload the environment status as saved at the end of part 1.
1 |
|
Daily Volume Exploratory Analysis
From the saved environment, we can find back our DJI object. We plot the daily volume.
1 |
|
It is remarkable the level jump at the beginning of 2017, something that we will investigate in part 4.
We transform the volume time series data and timeline index into a dataframe.
1 |
|
Mean
Skewness
Box-plots
The trade volume starts to decrease from 2010 and on 2017 a remarkable increase occurred. Year 2018 volume has been even larger than 2017 and other years as well.
Density plots
1 |
|
Shapiro Tests
1 |
|
QQplots visually confirm the non-normality of daily trade volume distribution.
Daily volume log-ratio Exploratory Analysis
Similarly to log-returns, we can define the trade volume log ratio as.
[v_{t}\ := ln \frac{V_{t}}{V_{t-1}}]We can compute it by CalculateReturns within the PerformanceAnalytics package and plot it.
1 |
|
Mapping the trade volume log-ratio time series data and timeline index into a dataframe.
1 |
|
Mean
Skewness
Box-plots
The most positive extreme values can be spotted on years 2011, 2014 and 2016. The most negative extreme values, on years 2007, 2011, 2012, 2014.
Density plots
1 |
|
Shapiro Tests
1 |
|
Departure from normality can be spotted for all reported years.
Saving the current enviroment for further analysis.
1 |
|
If you have any questions, please feel free to comment below.
References
-
Dow Jones Industrial Average
-
Skewness
-
Kurtosis
-
An introduction to analysis of financial data with R, Wiley, Ruey S. Tsay
-
Time series analysis and its applications, Springer ed., R.H. Shumway, D.S. Stoffer
-
Applied Econometric Time Series, Wiley, W. Enders, 4th ed.
-
Forecasting – Principle and Practice, Texts, R.J. Hyndman
-
Options, Futures and other Derivatives, Pearson ed., J.C. Hull
-
An introduction to rugarch package
-
Applied Econometrics with R, Achim Zeileis, Christian Kleiber – Springer Ed.
-
GARCH modeling: diagnostic tests
Disclaimer
Any securities or databases referred in this post are solely for illustration purposes, and under no regard should the findings presented here be interpreted as investment advice or promotion of any particular security or source.
Related Post
- Dow Jones Stock Market Index (1/4): Log Returns Exploratory Analysis
- Six Sigma DMAIC Series in R – Part4
- NYC buses: company level predictors with R
- Visualizations for correlation matrices in R
- Interpretation of the AUC
Related