Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: similarity statistic for heatmaps (or any cartesian plane)

From   Nick Cox <>
Subject   Re: st: similarity statistic for heatmaps (or any cartesian plane)
Date   Tue, 19 Jun 2012 21:43:26 +0100

The latter statement is at best dubious and at worst fallacious.

A Kolmogorov-Smirnov test compares distribution functions and says
nothing whatsoever about spatial distribution, as you can shuffle the
locations and keep the same distribution functions. Indeed it wouldn't
surprise me if it were based on an assumption of independent
measurements likely to be challengeable for most interesting spatial

Similarly, you can compare heatmaps aspatially and spatially:
something like concordance correlation compares element by element but
says nothing about spatial patterns. If I were obliged to choose a
single single-number statistic to compare heatmaps it might be
something like a spatial autocorrelation of differences.

But why choose a single statistic any way? Or rather, a map is a
sample statistic, just map-valued, and the best measure of similarity
of two heatmaps may be a heatmap of the difference between them (or,
e.g. their ratio).


On Tue, Jun 19, 2012 at 9:30 PM, Raymond Lim <> wrote:
> Is there a statistic for computing similarity of two heatmaps (or any
> sort of Cartesian plane)? I know in 1 dimension, you can compared
> distributions using a Kolmogorov-Smirnov test, but not sure about
> 2-dimensions.
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index