Skip to content
Vladislav Pyatnitskiy edited this page Sep 5, 2023 · 33 revisions

Welcome to the stockanalytics wiki!

Descriptive Statistics

Mean

  • Default R script: mean()

Median

  • Default R script: median()

Skewness

Comparing to previous statistical measures, skewness can be applied to only one set at the time. However, this functional limitation is possible to overcome without any libraries using apply(). Otherwise, try library timeSeries with colSkewness.

  • Default R script: apply(x,2, function(col) skewness(col))

Kurtosis

Same story as with Skewness.

  • Default R script: apply(x,2, function(col) kurtosis(col))

Correlation

R code: cor()

Regression

R code: summary(lm(formula = ~)

Beta

Normality test

Jacque-Bera test

Shapiro test

Kolmogorov test

Stock Performance Assessment

l

Clone this wiki locally