-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the stockanalytics wiki!
- Default R script:
mean()
- Default R script:
median()
Rarely used in Finance, but can be referred as the 'height' of distribution, representing the most frequent observation value.
- Default R script:
mode()
- Default R script:
sd()
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))
Same story as with Skewness.
- Default R script:
apply(x,2, function(col) kurtosis(col))
R code: cor()
R code: summary(lm(formula = ~)
- R script: https://github.com/vladislavpyatnitskiy/stockanalytics/blob/main/Beta%20calculation.R
Mostly used by economists.
- R script:
jarqueberaTest()
orjbTest()
- R script:
shapiroTest()
Often used in Life Sciences.
- R script:
ksnormTest()
Here are represented scripts to calculate ratios that enable to assess performance of the financial instruments.
The most popular ratio to assess asset and portfolio performance. It is a ratio of market premium (Rp - Rf, difference between asset/portfolio return and risk free rate) and standard deviation of the asset/portfolio. The higher Sharpe, the better the performance has been for the selected period.
Alternative to Sharpe ratio, where denominator is beta of the asset/portfolio.
The least popular ratio due to its complexity to calculate.
l