Supplementary Figure 3: Calculating the Kullback-Leibler divergence (DKL). | Nature Neuroscience

Supplementary Figure 3: Calculating the Kullback-Leibler divergence (DKL).

From: Patterns across multiple memories are identified over time

Supplementary Figure 3

The platform distribution (Pplatform) was a kernel density estimate based on the training platform locations with a bandwidth selected by a likelihood cross-validation optimization algorithm. The search distributions, Psearch, were estimated via a kernel density estimate using the mouse's location in the pool at each time step with a 5 cm bandwidth. To calculate the DKL between Pplatform and Psearch the natural logarithm of the ratio between the two distributions was taken and multiplied by Pplatform at each location across the pool. The sum across the pool then gave the DKL value in nats. Two example paths and the resulting DKL values are shown here.

Back to article page