pyhctsa.operations.distribution.burstiness¶
- pyhctsa.operations.distribution.burstiness(y)¶
Calculate burstiness statistics of a time series.
Implements both the original Goh & Barabasi burstiness, \(B = (r - 1)/(r + 1)\) with \(r = \sigma/\mu\) the coefficient of variation, and the Kim & Jo version, which corrects it for the finite length of the series.
Burstiness is a statistic of non-negative data (inter-event times, counts), for which \(B\) lies between -1 (regular) and 1 (bursty), with 0 for a Poisson process. Both versions are NaN if any value is negative: \(r\) is then not a relative spread, and \(B\) is unbounded, with a pole at \(\mu = -\sigma\).
Buses the sample standard deviation (divisor \(N - 1\)).B_Kimis Eq. (22) of [2],\[A_N(r) = \frac{\sqrt{N + 1}\, r - \sqrt{N - 1}} {(\sqrt{N + 1} - 2)\, r + \sqrt{N - 1}},\]with \(r\) from the population standard deviation (divisor \(N\)), as Kim & Jo define it. For non-negative data this \(r\) lies between 0 (all values equal) and \(\sqrt{N - 1}\) (a single nonzero value), which \(A_N\) maps to -1 and 1, so
B_Kimlies in [-1, 1] and reaches both bounds. (With the sample standard deviation, a single nonzero value gives \(r = \sqrt{N}\) andB_Kimabove 1, e.g. 1.157 at \(N = 5\).)References