# EXPLORATORY DATA ANALYSIS This menu aims to perform exploratory data analysis on a pre-loaded stock, and the usage of the following commands along with an example will be exploited below. * [summary](#summary) * brief summary statistics * [hist](#hist) * histogram with density plot * [cdf](#cdf) * cumulative distribution function * [bwy](#bwy) * box and whisker yearly plot * [bwm](#bwm) * box and whisker monthly plot * [rolling](#rolling) * rolling mean and std deviation * [decompose](#decompose) * decomposition in cyclic-trend, season, and residuald * [cusum](#cusum) * detects abrupt changes using cumulative sum algorithm * [acf](#acf) * (partial) auto-correlation function differentials ## summary ```text usage: summary ``` Summary statistics summary ## hist ```text usage: hist ``` Plot histogram and density ![hist](https://user-images.githubusercontent.com/25267873/112729911-75a1cf80-8f26-11eb-925c-252a90657128.png) ## cdf ```text usage: cdf ``` Plot cumulative distribution function ![cdf](https://user-images.githubusercontent.com/25267873/112729910-75a1cf80-8f26-11eb-801a-2b44b193022b.png) ## bwy ```text usage: bwy ``` Box and Whisker plot yearly ![bwy](https://user-images.githubusercontent.com/25267873/112729912-763a6600-8f26-11eb-81b6-3df0b632b3af.png) ## bwm ```text usage: bwm ``` Box and Whisker plot monthly ![bwm](https://user-images.githubusercontent.com/25267873/112729913-76d2fc80-8f26-11eb-8338-448147ed5703.png) ## rolling ```text usage: rolling [-w ROLLING_WINDOW] ``` Rolling mean and std deviation * -w : rolling window. Default 100. ![rolling](https://user-images.githubusercontent.com/25267873/112729908-75093900-8f26-11eb-9056-16bac2f54386.png) ## decompose ```text usage: decompose [-m] ``` Decompose time series as: - Additive Time Series = Level + CyclicTrend + Residual + Seasonality - Multiplicative Time Series = Level * CyclicTrend * Residual * Seasonality * -m : multiplicative model. Default additive. ![decompose](https://user-images.githubusercontent.com/25267873/112729282-4c337480-8f23-11eb-913c-f30e5c0ef459.png) Captura de ecrã 2021-03-27, às 17 32 05 ## cusum ```text usage: cusum [-t THRESHOLD] [-d DRIFT] ``` Cumulative sum algorithm (CUSUM) to detect abrupt changes in data * -t : threshold. Default (MAX-min)/40. * -d : drift. Default (MAX-min)/80. ![cusum](https://user-images.githubusercontent.com/25267873/112729206-ef37be80-8f22-11eb-9a53-8e8e55c4caf0.png) ## acf ```text usage: acf [-l LAGS] ``` Auto-Correlation and Partial Auto-Correlation Functions for diff and diff diff stock data * -l : maximum lags to display in plots. Default 40. ![acf](https://user-images.githubusercontent.com/25267873/112733336-637c5d00-8f37-11eb-9aae-38e75dff9ad2.png)