Quiz: nearest neighbours and empty space

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


Q1. What is G(r), in one sentence? What is its value under CSR?

A cumulative histogram.

The fraction of points whose nearest neighbour is within distance r (the cumulative distribution of nearest-neighbour distances). Under CSR G(r) = 1 - e^{-\rho\pi r^2}.


Q2. How do G and F differ? For a clustered pattern, which one lies above the CSR curve?

G starts at a point, F at a random location.

G measures distances from each point to its nearest other point; F measures distances from random locations to the nearest point. In a clustered pattern points have close neighbours (G above CSR), while random locations often fall in big gaps (F below CSR).


Q3. Why does J(r) need no estimate of the intensity?

What is J for CSR, whatever ρ is?

Under CSR 1 - G = 1 - F = e^{-\rho\pi r^2}, so their ratio is exactly 1 for every ρ. The reference line is the constant 1; no ρ enters.


Q4. All points come in tight pairs 2 µm apart; the pairs are placed at random. Sketch G. What can G not tell you about this pattern?

Only the nearest neighbour counts.

G is 0 below 2 µm and jumps to 1 at 2 µm. It says nothing about larger distances: whether the pairs are random, clustered or regular at 20 µm is invisible to G (but not to K).


Q5. Without a correction, is Ĝ near the border too high or too low? Does the pattern then look clustered or regular?

Some true neighbours are outside the window.

Neighbours outside the window are missed, so observed nearest distances are too long and Ĝ is too low: the pattern looks more regular than it is.


Q6. In which of these is the edge effect largest: (a) 500 cells in a 1 × 1 mm square, (b) 30 cells in a 60 × 60 µm crop, (c) 100 cells along a 20 µm wide strip of epithelium?

What share of the points is within r of the border?

(c), then (b). In the narrow strip almost every point is close to the border; in a small crop many are; in a large square few are.


Q7. The border rule makes Ĝ unbiased. What does it cost?

Which points are used at large r?

Points closer to the border than r are left out, so at large r few points remain and Ĝ becomes noisy (and need not be monotone). In a thin strip it may leave no point at all.


Q8. (math) Show that the mean nearest-neighbour distance under CSR is 1/(2\sqrt\rho). With ρ = 0.01 µm⁻², what is it?

E[D] = \int_0^\infty P(D > r)\,dr and \int_0^\infty e^{-ar^2}dr = \tfrac12\sqrt{\pi/a}.

P(D > r) = e^{-\rho\pi r^2}, so E[D] = \tfrac12\sqrt{\pi/(\rho\pi)} = 1/(2\sqrt\rho). With ρ = 0.01: 5 µm.