Quiz: intensity inside an object

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


Q1. Two nuclei have the same mean DAPI intensity, but one has twice the area. Which one has more DNA, and which column of the table shows it?

Mean is concentration; what is amount?

The larger one: the integrated intensity (sum of the pixel values) is proportional to the amount of dye, here twice as large. The mean is the concentration, the same in both. (Cells in G2 have twice the integrated DAPI of cells in G1.)


Q2. The background offset of a microscope drifts upwards during a long experiment. Which of mean, median, standard deviation, MAD and integrated intensity drift with it?

Which of them depend on differences between pixel values only?

Mean, median (and quartiles) drift by the offset, the integrated intensity by offset × area. Standard deviation and MAD do not change: they are built from differences between values, in which a constant cancels.


Q3. Why does a mask that is two pixels too large lower the mean intensity of a bright cell, while the median hardly moves?

What do the extra pixels contain, and how many are there compared with the whole cell?

The extra ring contains the blurred edge and background: darker pixels that are averaged in, so the mean drops (demo: 110.0 → 104.3). In a large object they are a minority (528 of 7049 pixels), so they only shift the bottom of the sorted list, and the middle value, the median, stays (112.1). In a very small object they could become the majority and move the median too.


Q4. A membrane marker should give a bright rim. Which number from the table would you use to flag rim-stained cells, and what must you do before computing it?

A ratio of two means; what does an offset do to a ratio?

Edge / mean: the mean of the edge band over the mean of the object, above 1 for rim staining (demo: 2.43 against 0.66 for a filled cell). Subtract the background first: an offset pulls every ratio of means towards 1. The mask must also be accurate, since the edge band is only one pixel wide.


Q5. A cell has all its signal in one bright spot at the very centre. What is its mass displacement? And if the spot is near the edge?

Mass displacement compares two centres.

At the centre: about 0, because the intensity-weighted centroid coincides with the geometric centroid. Near the edge: large, about the distance from the centre to the spot (less if there is other signal or background, which pull the weighted centroid back). Mass displacement measures polarisation, not punctateness.


Q6. Why are the radial rings defined by \rho = d_c/(d_c + d_e) instead of by the distance to the centre alone?

Think of an elongated cell.

With the distance to the centre alone, rings are circles: in an elongated cell the outer rings would be cut off at the sides and run outside the cell, and “ring 4” would mean different things in different cells. \rho is 0 at the centre and close to 1 at the edge in every direction, so the rings follow the cell’s shape and are comparable between cells of different size and shape.


Q7. In ring 1 a cell has FracAtD = 0.2, and ring 1 holds 5 % of the cell’s pixels. What is MeanFrac, and what does it mean?

MeanFrac = FracAtD / pixel share.

0.2 / 0.05 = 4: the mean intensity in ring 1 is four times the cell’s mean. The signal is strongly enriched at the centre (for example nuclear localisation).


Q8. Two plates were imaged on different days. On plate 2 every value is about 1.4 times larger plus 20. Does a z-score against each plate’s own controls make the plates comparable? Does it also remove a gradient from the left to the right of a plate?

A z-score is invariant to x \mapsto gx + b. Is a gradient of that form?

Yes for the gain and offset: the median moves to 1.4\,\text{median} + 20 and the MAD scales by 1.4, so the robust z is the same. No for the gradient: it is not the same transformation for every well. It spreads the controls, inflates the scale and hides real effects. Remove it first with a row/column correction (subtract row and column medians), then compute the z-scores.


Q9. (math) Show that the integrated intensity over a mask that is grown by a ring of m background pixels of value b changes by exactly m\,b, and that the mean changes from \mu to (n\mu + m b)/(n + m). When does the mean go down?

Split the new sum into the old object and the ring.

New sum = \sum_\Omega I + \sum_{\text{ring}} b = n\mu + m b over n + m pixels. The new mean is a weighted average of \mu and b, so it goes down exactly when b < \mu, which is the case for background around a bright object. (With a blurred edge the ring values lie between b and \mu; the argument is the same with their mean in place of b.)