@@ -119,11 +119,11 @@ def get_beta(
119
119
120
120
The formula is as follows:
121
121
122
- Beta = Covariance of Asset Returns and Benchmark Returns / Variance of Benchmark Returns
122
+ - Beta = Covariance of Asset Returns and Benchmark Returns / Variance of Benchmark Returns
123
123
124
124
For a given period, for example monthly, this translates into the following:
125
125
126
- Beta = Monthly Covariance of Asset Returns and Benchmark Returns
126
+ - Beta = Monthly Covariance of Asset Returns and Benchmark Returns
127
127
/ Monthly Variance of Benchmark Returns
128
128
129
129
See definition: https://en.wikipedia.org/wiki/Beta_(finance)
@@ -326,7 +326,7 @@ def get_alpha(
326
326
327
327
The formula is as follows:
328
328
329
- Alpha = Asset's Actual Return - Benchmark's Actual Return
329
+ - Alpha = Asset's Actual Return - Benchmark's Actual Return
330
330
331
331
See definition: https://en.wikipedia.org/wiki/Alpha_(finance)
332
332
@@ -405,7 +405,7 @@ def get_jensens_alpha(
405
405
406
406
The formula for Jensen's Alpha is as follows:
407
407
408
- Jensen's Alpha = Asset's Actual Return - [Risk-Free Rate + Beta * (Benchmark Return - Risk-Free Rate)]
408
+ - Jensen's Alpha = Asset's Actual Return - [Risk-Free Rate + Beta * (Benchmark Return - Risk-Free Rate)]
409
409
410
410
See definition: https://en.wikipedia.org/wiki/Jensen%27s_alpha
411
411
@@ -496,7 +496,7 @@ def get_treynor_ratio(
496
496
497
497
The formula is as follows:
498
498
499
- Treynor Ratio = (Portfolio's Return - Risk-Free Rate) / Portfolio Beta
499
+ - Treynor Ratio = (Portfolio's Return - Risk-Free Rate) / Portfolio Beta
500
500
501
501
See definition: https://en.wikipedia.org/wiki/Treynor_ratio
502
502
@@ -586,15 +586,15 @@ def get_sharpe_ratio(
586
586
587
587
The formula is as follows:
588
588
589
- Sharpe Ratio = Excess Return / Excess Standard Deviation
589
+ - Sharpe Ratio = Excess Return / Excess Standard Deviation
590
590
591
591
For a given period, for example monthly, this translates into the following:
592
592
593
- Sharpe Ratio = Average Monthly Excess Return / Standard Deviation of Monthly Excess Returns
593
+ - Sharpe Ratio = Average Monthly Excess Return / Standard Deviation of Monthly Excess Returns
594
594
595
595
For a rolling period, this translates into the following:
596
596
597
- Sharpe Ratio = Average Rolling Excess Return / Standard Deviation of Rolling Excess Returns
597
+ - Sharpe Ratio = Average Rolling Excess Return / Standard Deviation of Rolling Excess Returns
598
598
599
599
Note that this is explicitly already subtracts the Risk Free Rate.
600
600
@@ -680,15 +680,15 @@ def get_sortino_ratio(
680
680
681
681
The formula is as follows:
682
682
683
- Sortino Ratio = Excess Return / Excess Downside Risk
683
+ - Sortino Ratio = Excess Return / Excess Downside Risk
684
684
685
685
For a given period, for example monthly, this translates into the following:
686
686
687
- Sortino Ratio = Average Monthly Excess Return / Average Monthly Excess Downside Risk
687
+ - Sortino Ratio = Average Monthly Excess Return / Average Monthly Excess Downside Risk
688
688
689
689
For a rolling period, this translates into the following:
690
690
691
- Sortino Ratio = Average Rolling Excess Return / Rolling Downside Risk
691
+ - Sortino Ratio = Average Rolling Excess Return / Rolling Downside Risk
692
692
693
693
Note that this is explicitly already subtracts the Risk Free Rate.
694
694
@@ -839,7 +839,7 @@ def get_m2_ratio(
839
839
840
840
The formula is as follows:
841
841
842
- M2 Ratio = (Portfolio's Return - Risk-Free Rate) / Portfolio Standard Deviation
842
+ - M2 Ratio = (Portfolio's Return - Risk-Free Rate) / Portfolio Standard Deviation
843
843
844
844
See definition: https://en.wikipedia.org/wiki/Modigliani_risk-adjusted_performance
845
845
@@ -924,7 +924,7 @@ def get_tracking_error(
924
924
925
925
The formula is as follows:
926
926
927
- Tracking Error (TE) = Standard Deviation of (Portfolio Returns - Benchmark Returns)
927
+ - Tracking Error (TE) = Standard Deviation of (Portfolio Returns - Benchmark Returns)
928
928
929
929
See definition: https://en.wikipedia.org/wiki/Tracking_error
930
930
@@ -1011,7 +1011,7 @@ def get_information_ratio(
1011
1011
1012
1012
The formula is as follows:
1013
1013
1014
- Information Ratio (IR) = (Portfolio's Excess Return - Benchmark's Excess Return) / Tracking Error
1014
+ - Information Ratio (IR) = (Portfolio's Excess Return - Benchmark's Excess Return) / Tracking Error
1015
1015
1016
1016
See definition: https://en.wikipedia.org/wiki/Information_ratio
1017
1017
0 commit comments