View source: R/CrossSampleEntropy.R
CrossSampleEntropy | R Documentation |
Calculates the cross sample entropy between two track records of various assets/strategies.
CrossSampleEntropy(returns_matrix, m = 2, r = 0.2)
returns_matrix |
a matrix containing the track records of the underlying assets/strategies. These will be normalized during the algorithm |
m |
an integer value defining the embedding dimension , default value is 2 |
r |
a double value defining the tolerance, default value is 0.2 |
The value of cross sample entropy
Tasos Grivas <tasos@openriskcalculator.com>
https://physoc.onlinelibrary.wiley.com/doi/epdf/10.1113/expphysiol.2007.037150
## calling CrossSampleEntropy() without an argument loads the historical edhec data
## for the "Short Selling" and "Convertible Arbitrage" strategies
returns_matrix = PerformanceAnalytics::edhec[,c("Short Selling","Convertible Arbitrage")]
Cross_Sample_Entropy = CrossSampleEntropy(returns_matrix,m=2,r=0.2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.