Related Experiment Video
Updated: Jan 29, 2026

Optical Recording of Suprathreshold Neural Activity with Single-cell and Single-spike Resolution
Published on: September 5, 2012
An O(n) method of calculating Kendall correlations of spike trains
1Dynamical Neuroscience Program, UC Santa Barbara, Santa Barbara, CA, United States of America.
Abstract:
The ability to record from increasingly large numbers of neurons, and the increasing attention being paid to large scale neural network simulations, demands computationally fast algorithms to compute relevant statistical measures. We present an O(n) algorithm for calculating the Kendall correlation of spike trains, a correlation measure that is becoming especially recognized as an important tool in neuroscience. We show that our method is around 50 times faster than the O (n ln n) method which is a current standard for quickly computing the Kendall correlation. In addition to providing a faster algorithm, we emphasize the role that taking the specific nature of spike trains had on reducing the run time. We imagine that there are many other useful algorithms that can be even more significantly sped up when taking this into consideration. A MATLAB function executing the method described here has been made freely available on-line.
Related Concept Videos
Calculating and Interpreting the Linear Correlation Coefficient
Kendall's Tau Test
A τ value of +1 indicates...
Correlations
Kendall's Coefficient of Concordance
Correlation and Causation
Correlation versus Causation
If the dependent variable increases or decreases when the independent variable increases, there is a positive or negative...
Calculating Standard Free Energy Changes

