View source: R/overlapping_data.R
When overlapped data is used, the sample variance and standard deviation are biased.
This function calculates a factor that corrects for the bias in the sample standard deviation.
It assumes Bessel's correction
has already been applied in the calculation of the sample
standard deviation and removes this to avoid double-counting.
In practice this means this factor can be applied to the results of
The number of overlapped data points.
There will be
The extent of the overlap, e.g. 12 means annual overlaps from monthly data. 1 means no overlap.
The factor is derived in a
2009 Risk.net article
by Sun, Nelken et al. Where
noverlap == 1 the factor is 1 and has no numerical effect.
A factor to multiply the sample standard deviation by to give an unbiased estimate.
calc_sd_ol_bias_fac(c(24, 60, 120, 180, 240), 12)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.