I factored out pieces of code that I always found myself using so that it would all live in one spot (here).
This package has
- Static rolling functions
applyrollingandmakekernelusing StaticKernels.jl. For small window sizes, this is probably the fastest existing way to do rolling means, sums, etc. - Variance ratios
varianceratio - SIMD
skewandkurtfunctions that are faster and more forgiving thanStatsBase.skewnessandStatsBase.kurtosis - Autocorrelation function
autocorrelatebecauseStatsBase.autocorwas too annoying when you only want the first one, and this is faster. Plus I allow for transformations likeautocorrelate(abs,x)if you want the autocorrelation of absolutex. you can replicateStatsBase.autocorviaautocorrelate.(Ref(x),0:L)whereLare your desired lags. correlogram(x,y;leadlags::Int=10)for cross-correlationsnantomissing!for DataFrames- Conditional correlations
conditionalcor(f,x,y)spawningdownsidecorandupsidecor(eventually will live in AsymmetricRisk.jl when I give it more love) loggrowth(x,n)for computing log growth rates over different horizonssimiteratorandperioditeratorfor labelling observations in simulations.yrqtrfunandmonthtoquarterDate-like helper functions
