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 timeSeries library 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

  • R script: jarqueberaTest or jbTest

Shapiro test

  • R script: shapiroTest

Kolmogorov-Smirnov test

  • R script: ksnormTest

Stock Performance Assessment

l

Clone this wiki locally