| PBO | R Documentation |
Estimate probability of backtest overfitting, as described in Bailey et al. 2017
PBO(M, s = 12, fun = colMeans,
threshold = 0, ..., loop.fun = TRUE)
M |
a numeric matrix |
s |
number of submatrices |
fun |
a function |
threshold |
a scalar |
... |
additional arguments passed to |
loop.fun |
logical: if |
fun is called with M as its first argument.
A list:
pbo |
probability |
lambda |
vector of logits |
in.sample |
numeric |
out.of.sample |
numeric |
Enrico Schumann
Bailey, D. H. et al. (2017). The probability of backtest overfitting. Journal of Computational Finance 20 (4), 39–69. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.21314/JCF.2016.322")}
## might run a few seconds
N <- 5000
T <- 480
M <- array(rnorm(N*T, sd = 0.01), dim = c(T, N))
p <- PBO(M, s = 12, fun = colMeans, loop.fun = FALSE)
str(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.