【FinE】Shrape Ratio Significance Testing

Questions

找到一种合适检测夏普比率的方法
s-test

hypothesis testing

Bailey and Marcos Lopez de Prado designed a method do exactly that. They use the fact that Sharpe Ratio's are asymptotically normal distributed, even if the returns are not.

设计关于Sharpe Ratio的检验方法主要基于如下事实,即使收益率序列不满足正态分布,Sharpe Ratio是满足近似正态分布的,且
( S R ^ − S R ) → a N ( 0 , 1 + 1 2 S R 2 − γ 3 S R + γ 4 − 3 4 S R 2 n ) (\widehat{SR}-SR)\xrightarrow{a} \mathcal{N}(0, \frac{1+\frac{1}{2}SR^2-\gamma_3SR+\frac{\gamma_4-3}{4}SR^2}{n}) (SR SR)a N(0,n1+21SR2γ3SR+4γ43SR2)
其中 γ 3 \gamma_3 γ3表示偏度(skewness),即三阶矩信息; γ 4 \gamma_4 γ4表示峰度(kurtosis),即四阶矩信息. 可以推出概率分布
P ( S R ∗ ) = Z [ ( S R ^ − S R ∗ ) n − 1 1 − γ ^ 3 S R ^ + γ ^ 4 − 1 4 S R ^ 2 ] \mathbb{P}(SR^*)=\mathcal{Z}\bigg[\frac{(\widehat{SR}-SR^*)\sqrt{n-1}}{\sqrt{1-\hat{\gamma}_3\widehat{SR}+\frac{\hat{\gamma}_4-1}{4}\widehat{SR}^2}}\bigg] P(SR)=Z[1γ^3SR +4γ^41SR 2 (SR SR)n1 ]
其中 S R ∗ SR^* SR为零假设(null hypothesis)下的Sharpe Ratio, 在5%的显著水平下,当 P > 0.95 \mathbb{P}>0.95 P>0.95那么 S R SR SR的值显著高于 S R ∗ SR^* SR

peer performance analysis in R

function

shrpeTesting(x, y, control=list())

参数含义

argumentsmeanings
xvector (of length T) of returns for the first fund, NA values are allowed.
yvector (of length T) of returns for the second fund, NA values are allowed.
controlcontrol parameters

细节解释

The Sharpe ratio is one industry standard for measuring the absolute risk adjusted performance of hedge funds. This function performs the testing of Sharpe ratio difference for two funds using the approach by Ledoit and Wolf (2002).

在假设检验中,只有两列数据均为非NA值才会被使用,参数control提供了额外的函数信息

valuefunction
typeasymptotic approach (type=1) or studentized circular bootstrap approach(type=2). Default:type=1
ttypetest based on ratio (type=1) or product (type=2). Default type=2
hacheteroscedastic-autocorrection consistent standard errors. Default: hac=FALSE
minObsminimum number of concordant obs. to compute the ratios. Default: minObs=10
nBootnumber of bootstrap replications for computing the p-value. Default: nBoot=499
bBootblock length in the circular bootstrap. Default: bBoot=1, bBoot=0 uses optimal block-length
pBootsymmetric p-value(pBoot=1) or asymmetric p-value(pBoot=2). Default: pBoot=1

返回值

return valuemeanings
nnumber of non-NA concordant obs.
sharpevector (of length 2) of unconditional Sharpe ratios.
dsharpeSharpe ratios difference.
tstatt-stat of Sharpe ratios differences
pvalpvalues of test of Sharpe ratios differences
## demo
library(PeerPerformance)

# Ctrl+L clear the console

# load data (randomized data of monthly hedge fund returns)
data("hfdata")
x=hfdata[, 1]
y=hfdata[, 2]

# Sharpe testing (asymptotic)
ctr = list(type=1) # 设置控制参数
ans = sharpeTesting(x, y, control=ctr)
print(ans)

# Sharpe testing (asymptotic hac)
ctr = list(type=1, hac=TRUE)
ans = sharpeTesting(x, y, control=ctr)
print(ans)

# Sharpe testing (iid bootstrap)
set.seed(1008)
ctr=list(type=1, nBoot=250)
ans = sharpeTesting(x, y, control = ctr)
print(ans)

# Sharpe testing (circular bootstrap)
set.seed(1008)
ctr = list(type=1, nBoot=250, bBoot=5)
ans = sharpeTesting(x, y, control=ctr)
print(ans)

参考资料

R-finance
Testing Sharpe Ratio significance
rdrr.io sharpeTesting
testing equality of modified Sharpe ratios
the peer performance ratios of hedge funds
the sharpe ratio efficient frontier
Robust performance hypothesis testing with the Sharpe ratio

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Quant0xff

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值