Quiz: endmembers and the geometry of mixtures

Short questions to test your understanding. Try each on paper first, then open the answer. Pixels are points in channel space; non-negative mixtures of the component spectra fill a cone; pixels normalised to sum one fill a simplex whose corners (vertices) are the normalised spectra.


Q1. Without noise, can a pixel lie outside the cone spanned by the component spectra? With noise?

What would a pixel outside the cone need as abundances?

Without noise: no. Every pixel is a non-negative mixture of the spectra, which is exactly the cone (if all components are in the model). With noise: yes, especially dim pixels near the origin, where the noise is as large as the signal. Least squares then reports a negative abundance.


Q2. NNLS gives a pixel the abundances (0.4, 0, 0.7). Geometrically, where does its fit lie, and what does the zero mean?

Which face of the cone is spanned by spectra 1 and 3?

The fit lies on the face of the cone spanned by spectra 1 and 3. The pixel was outside the cone on that side (or exactly on the face); the closest point of the cone is on the face, so component 2 gets exactly zero. It does not mean component 2 is absent for sure, only that adding it makes the fit worse.


Q3. Why does NNLS overestimate the abundance of a component in regions where it is truly absent?

What happens to the noise around a true value of zero?

Around a true zero, the unconstrained estimates scatter symmetrically, half of them negative. NNLS sets the negative ones to zero and keeps the positive ones, so the average is above zero: a positive bias in dim and absent regions.


Q4. A dataset gives singular values 41.2,\ 12.5,\ 6.1,\ 0.42,\ 0.40,\ 0.39,\ 0.37. How many components would you use?

Look for where the values stop dropping and form a floor.

Three: after 6.1 the values drop by a factor of 15 to a nearly flat floor (0.42 to 0.37), the noise. A fourth component would have to stand out above that floor.


Q5. Why are the principal axes of the pixel cloud not the component spectra?

Can a spectrum have negative entries? Are two dye spectra orthogonal?

Principal axes are orthogonal to each other and have negative entries; real spectra are non-negative and usually overlap (not orthogonal). PCA finds the directions of largest spread and the subspace of the data, not its corners. It tells you how many components and where the simplex lies, not the spectra themselves.


Q6. In an image, every pixel contains at least 30 % of each of three dyes. What goes wrong with vertex finding, and does NMF fix it?

Where are the corners of the normalised cloud now?

There are no pure pixels: the cloud’s corners lie well inside the true simplex, so vertex finding returns mixtures as “spectra” (it undershoots). NMF does not need pure pixels, but without them its answer is not unique: any cone that contains the data and stays non-negative fits as well, and different starts give different spectra with the same error. Extra assumptions (known spectra, smallest volume, sparsity) are needed.


Q7. Clustering the pixel colours into three classes and unmixing into three components both give “three things”. What is the difference in what they report for a pixel on the boundary between nucleus and cytoplasm?

One answer is a label, the other a vector.

Clustering gives it one label (nucleus or cytoplasm). Unmixing gives amounts: for example 60 % nucleus dye and 40 % cytoplasm dye. Clustering answers “which?”, unmixing “how much of each?”.


Q8. (math) NNLS returns \hat{\mathbf a} = (0, 0.853) for M = \begin{pmatrix} 1 & 0.3 \\ 0.2 & 1 \end{pmatrix}, \mathbf y = (0.1, 0.9). Check the KKT conditions with \mathbf w = M^\top(\mathbf y - M\hat{\mathbf a}).

M\hat{\mathbf a} = 0.853\,(0.3, 1).

M\hat{\mathbf a} = (0.256, 0.853), residual (-0.156, 0.047). w_1 = 1 \cdot (-0.156) + 0.2 \cdot 0.047 = -0.147 \le 0 with \hat a_1 = 0: fine. w_2 = 0.3 \cdot (-0.156) + 1 \cdot 0.047 = 0.000 with \hat a_2 > 0: fine. Both conditions hold: \hat{\mathbf a} is the NNLS solution.