Quiz: Ripley’s K, the L function and the pair correlation

Short questions to test your understanding. Try each on paper first, then open the answer.


Q1. In words: what does \rho K(r) count? What is K(r) under CSR?

A disc around a typical point.

The expected number of other points within distance r of a typical point. Under CSR it is \rho\pi r^2, so K(r) = \pi r^2.


Q2. Why plot L(r) - r instead of K(r)?

What does CSR look like in each plot?

K of CSR is a parabola, and departures are hard to see on it. L = \sqrt{K/\pi} is the straight line r for CSR, so L - r is 0: above means clustered, below regular, in units of µm. The square root also makes the variance more even across r.


Q3. A pattern has small tight clusters (diameter 5 µm) scattered at random. Sketch L - r and g from 0 to 40 µm.

Cumulative vs local.

g is far above 1 below about 5 µm and 1 beyond. L - r rises steeply up to about 5 µm and then decays only slowly: it stays positive at 40 µm, because K still contains all the close pairs (“K remembers”).


Q4. g(r) = 0 for r < 8 µm, then a bump to 1.2 near 9 µm, then 1. What kind of pattern is it?

Which distances never occur?

A hard-core pattern: no two points closer than 8 µm (objects of about 8 µm diameter), random beyond. The bump is packing: neighbours pile up just outside the forbidden distance.


Q5. Cells in colonies of about 20 µm, cell diameter 6 µm. Describe g. Which of quadrat VMR, G and g sees both effects?

Two scales.

g = 0 below 6 µm, above 1 between 6 and about 20 µm, 1 beyond. G sees the hard core and the close neighbours but not the colony size; a VMR sees one scale per quadrat size. Only g (or K, less clearly) shows both.


Q6. Without an edge correction, is \hat K too large or too small? Which way does the error push the conclusion?

Neighbours outside the window are never counted.

Too small: neighbours outside W are missed, more at large r. The pattern looks regular (about −8 % at a tenth of the window side and −20 % at a quarter, for 100 random points).


Q7. What does the translation weight of a pair measure? Why is it larger for long pairs?

Where could the first point be so that both lie in W?

|W| divided by the area where a pair with this difference vector could have been placed with both points inside W (the overlap of W with its shifted copy). Long pairs fit in fewer places, so they are seen less often and get more weight.


Q8. (math) Show that g = K'/(2\pi r) equals 1 for CSR. What is \hat K in µm² for 5 points in a 100 µm² window with 8 ordered pairs closer than r?

\hat K = |W|/(n(n-1)) \cdot (number of ordered pairs).

K = \pi r^2, K' = 2\pi r, g = 1. \hat K = 100/20 \cdot 8 = 40 µm².