Open KudraVello opened 5 years ago
Solved by:
Std.Deviation - used http://mathjs.org/docs/reference/functions/std.html
Skewness - used https://github.com/maxto/ubique (NOT found correct online calculator that finds exact number)
example:
https://ncalculators.com/statistics/skewness-calculator.htm // 0.617481
https://ncalculators.com/statistics/skewness-calculator.htm // 0.5858
https://www.socscistatistics.com/tests/skewness/Default.aspx // 0.73
conclusion: online calculators are not correct
Kurtosis - used https://github.com/maxto/ubique
https://www.easycalculation.com/statistics/kurtosis.php // 3.03758113489
https://github.com/maxto/ubique/blob/master/lib/stats/kurtosis.js // 3.037581
As a user, When I to analytics / volatility, I want to see a graph which shows me the St. Dev, Skewness and Kurtosis for each individual asset I currently own.
The number needs to be calculated separately for each of the assets and then displayed in a bar chart.![image](https://user-images.githubusercontent.com/35256279/49279871-8dfd9e80-f480-11e8-9135-afaafa8df8e1.png)
Standard deviation is calculated as follows:
Skewness is calculated as follows: Skewness numer = Mean ^ 3 divided by (2 * (standard deviation ^ 3))
Kurtosis is calculated as follows: m4 = (sum of ([all deviations from the mean] ^ 4) divided by size of sample) m2 = (sum of ([all deviations from the mean] ^ 2) divided by size of sample) Kurtosis = m4 divided by m2 ^ 2