Why Uniform Error Matters for Cluster Trees
A density cluster tree records how connected high-density regions grow and merge as the density threshold is lowered. Estimating the density uniformly is useful because it controls every threshold set at once. But a small vertical error in a density estimate does not automatically mean that its tree has exactly the same branches: small perturbations can create short-lived branches or split a merge that was tied in the population tree.
The right first guarantee is quantitative: uniform density error bounds the error in every pairwise merge height. A further condition, separation between distinct population merge levels, can protect the ordering of a finite, identifiable tree structure. We will state carefully which conclusions follow from which conditions.
Because \(X\) is connected and \(f\) is continuous on a compact space, thresholds below \(\min_{x\in X}f(x)\) give \(L_f(\lambda)=X\). Thus the set defining \(m_f(x,y)\) is nonempty and the merge height is finite. For \(x=y\), the merge height is \(f(x)\). For distinct points, it records the highest density threshold at which they are still connected in a single superlevel component.
If \(\hat f\) is another continuous function on the same domain, the uniform error is \(\|\hat f-f\|_\infty=\sup_{x\in X}|\hat f(x)-f(x)|\). The merge-distortion between their trees is the largest discrepancy between corresponding pairwise merge heights: \(\sup_{x,y\in X}|m_{\hat f}(x,y)-m_f(x,y)|\). This compares merge structure without asserting that the two trees have exactly the same branches.
The Superlevel-Set Sandwich
The basic fact is that a uniform error of at most \(\varepsilon\) can shift a density threshold by at most \(\varepsilon\). This set inclusion is the starting point for the tree guarantee.
Proof. If \(x\in L_f(\lambda+\varepsilon)\), then \(f(x)\geq\lambda+\varepsilon\). Since \(\hat f(x)\geq f(x)-\varepsilon\), we have \(\hat f(x)\geq\lambda\), so \(x\in L_{\hat f}(\lambda)\). Conversely, if \(x\in L_{\hat f}(\lambda)\), then \(f(x)\geq\hat f(x)-\varepsilon\geq\lambda-\varepsilon\), so \(x\in L_f(\lambda-\varepsilon)\). This proves both inclusions. \(\square\)
Worked Example: Applying the Sandwich at a Fixed Threshold
Suppose \(f\) is a density on \([0,1]\), \(\|\hat f-f\|_\infty\leq0.01\), and the target threshold is \(\lambda=1\). The lemma gives \(L_f(1.01)\subseteq L_{\hat f}(1)\subseteq L_f(0.99)\).
The first inclusion follows because \(f(x)\geq1.01\) implies \(\hat f(x)\geq f(x)-0.01\geq1\). The second follows because \(\hat f(x)\geq1\) implies \(f(x)\geq\hat f(x)-0.01\geq0.99\). Thus the estimated set at threshold \(1\) cannot extend beyond the true set at threshold \(0.99\), and it contains the true set at threshold \(1.01\). The claim is about set inclusion; it does not say that the components at all three thresholds are identical.
Uniform Error Bounds Every Merge Height
The sandwich has a direct consequence for the tree. A connected set in an estimated superlevel set remains connected when viewed inside the larger true superlevel set supplied by the sandwich. Applying this reasoning in both directions gives a two-sided error bound.
Proof. Fix \(x,y\). Suppose \(x\) and \(y\) lie in one connected component of \(L_{\hat f}(\lambda)\). That component is a connected subset of \(L_f(\lambda-\varepsilon)\), by the sandwich lemma. Any connected subset of a space lies within a single connected component of that space, so \(x\) and \(y\) are in one component of \(L_f(\lambda-\varepsilon)\). It follows that \(m_f(x,y)\geq\lambda-\varepsilon\) for every such \(\lambda\). Taking the supremum over those \(\lambda\) gives \(m_f(x,y)\geq m_{\hat f}(x,y)-\varepsilon\).
For the other direction, if \(x\) and \(y\) lie in one component of \(L_f(\lambda)\), that component is a connected subset of \(L_{\hat f}(\lambda-\varepsilon)\), again by the sandwich lemma. Hence \(m_{\hat f}(x,y)\geq m_f(x,y)-\varepsilon\), by taking the supremum over such \(\lambda\). Combining the two inequalities yields \(|m_{\hat f}(x,y)-m_f(x,y)|\leq\varepsilon\). Since \(x,y\) were arbitrary, the same bound holds for the supremum over all pairs. \(\square\)
Worked Example: A Merge Height for a Two-Peak Density
Consider the piecewise-linear function \(g\) on \([0,1]\) that joins the points \((0,0.5)\), \((0.25,2)\), \((0.5,1)\), \((0.75,1.8)\), and \((1,0.4)\). Its integral is the sum of the four trapezoid areas: \(0.25(0.5+2)/2+0.25(2+1)/2+0.25(1+1.8)/2+0.25(1.8+0.4)/2=0.3125+0.375+0.35+0.275=1.3125=21/16\). Thus \(f=(16/21)g\) is a density.
The two peaks are at \(x=0.25\) and \(y=0.75\). Between them the lowest value of \(f\) is at \(0.5\), where \(f(0.5)=16/21\). At any threshold no greater than \(16/21\), the interval between the peaks is included in the superlevel set, so the two points are connected. At any higher threshold, the point \(0.5\) is excluded, separating the two sides of the interval. Therefore \(m_f(0.25,0.75)=16/21\).
Now set \(\hat f(x)=f(x)+0.01\sin(2\pi x)\). The sine term integrates to zero on \([0,1]\), so \(\hat f\) still integrates to one; it is also nonnegative because \(f(x)\geq0.4(16/21)>0.30\) and the perturbation is at least \(-0.01\). Its uniform error is \(0.01\), since \(|\sin(2\pi x)|\leq1\) and equality occurs. The theorem gives \(16/21-0.01\leq m_{\hat f}(0.25,0.75)\leq16/21+0.01\), or approximately \(0.752\leq m_{\hat f}(0.25,0.75)\leq0.772\).
When Do Merge Levels Protect Tree Structure?
Merge-height consistency is unconditional under the theorem’s assumptions, but exact topology requires more care. Uniform closeness alone does not exclude new tiny branches, nor does it determine how a population merge involving three or more branches will split under perturbation. A useful stronger conclusion is available for a finite, anchored tree with identifiable branches.
The anchor and binary assumptions matter. Anchors specify which branches are being compared, so the claim concerns the tree induced by those anchors, not every possible branch at every location in \(X\). Binary merges are identifiable from the pattern of which pairs merge above which other pairs. A multifurcation does not have a unique binary refinement, so it cannot be promised that a small perturbation preserves its exact branching pattern.
Proof. For any two distinct population critical levels \(\gamma>\gamma'\), their estimated counterparts, say \(\hat\gamma\) and \(\hat\gamma'\), each differ from the population value by at most \(\varepsilon\), by the merge-height theorem. Therefore \(\hat\gamma\geq\gamma-\varepsilon\) and \(\hat\gamma'\leq\gamma'+\varepsilon\). Since \(\gamma-\gamma'\geq\Delta>2\varepsilon\), we have \(\hat\gamma-\hat\gamma'\geq\Delta-2\varepsilon>0\). Thus every strict ordering between distinct population levels is preserved.
To see why this preserves the anchored binary structure, consider an internal node and its two child branches. Every pair of anchors from opposite children has merge height equal to that node’s level. Pairs within a child that merge at a higher internal level remain above that node after perturbation: the population levels differ by at least \(\Delta\), and the preceding inequality preserves their order. Hence the two child groups are still separate above the node’s merge, and join at that merge rather than at a different internal level. Applying this argument at each internal node reconstructs the same binary hierarchy on the anchors. The conclusion does not rule out additional branches that contain no anchor. \(\square\)
Worked Example: Separated Levels Preserve Their Ordering
Suppose an anchored binary tree has two distinct critical merge levels, \(\gamma_1=0.62\) and \(\gamma_2=0.47\). Their separation is \(\Delta=0.62-0.47=0.15\). If the uniform density error is at most \(\varepsilon=0.04\), then \(2\varepsilon=0.08<0.15\).
The estimated level corresponding to \(0.62\) lies in \([0.58,0.66]\), while the one corresponding to \(0.47\) lies in \([0.43,0.51]\). These intervals are disjoint, so the higher merge remains higher. Under the proposition’s finite, anchored, binary assumptions, this ordering preserves the merge structure on the anchors.
The separation condition is substantive. If two population levels are \(0.50\) and \(0.54\), their gap is \(0.04\). With error bound \(0.03\), the intervals \([0.47,0.53]\) and \([0.51,0.57]\) overlap. The uniform bound alone then cannot establish which estimated level is higher.
What Uniform Convergence Does—and Does Not—Guarantee
For a sequence of density estimates \(\hat f_n\), if \(\|\hat f_n-f\|_\infty\xrightarrow{p}0\), the merge-distortion also converges to zero in probability. Indeed, the theorem gives \(\sup_{x,y}|m_{\hat f_n}(x,y)-m_f(x,y)|\leq\|\hat f_n-f\|_\infty\) for every \(n\). For any \(\eta>0\), the probability that the left side exceeds \(\eta\) is therefore no greater than the probability that the uniform error exceeds \(\eta\), which tends to zero. The same implication holds for almost-sure uniform convergence.
If the population has a finite anchored binary structure with a fixed positive separation \(\Delta\), then uniform consistency also gives eventual structure recovery in probability. The event \(\|\hat f_n-f\|_\infty<\Delta/2\) has probability tending to one, and on that event the proposition applies. This is a statement about the specified anchored structure; it is not a guarantee that an unpruned estimated tree has no extra short branches.
Worked Example: Why Separation Is Needed for a Recovery Claim
Suppose two population critical levels are \(0.50\) and \(0.54\). A uniform error bound of \(0.03\) permits estimated levels of \(0.53\) and \(0.51\), respectively: each estimate differs from its population value by exactly \(0.03\), yet their ordering is reversed. Thus the merge-height error bound is satisfied, but the ordering is not preserved.
This calculation does not show that every perturbation reverses the levels. It shows that the error bound alone cannot rule out reversal when the population gap is smaller than \(2\varepsilon=0.06\). A separated-level assumption is what turns numerical merge-height control into an ordering guarantee.
A common mistake is to argue, “The density estimate is uniformly close, so its cluster tree must have the same topology.” The merge-height theorem supports a precise but narrower conclusion: every pairwise merge height is close. Exact topology can still fail to be identifiable if a population merge is tied among several branches, if critical levels are too close to order reliably, or if the estimate creates branches that are not represented by the chosen anchors. Keeping these conclusions separate is essential when interpreting a consistency claim.
Check Your Understanding
Answer these questions using the definitions and results above.
- If \(\|\hat f-f\|_\infty\leq0.02\), what bound does the merge-height theorem give for any fixed pair \(x,y\)?
- Explain why a connected component of \(L_{\hat f}(\lambda)\) lies within one component of \(L_f(\lambda-\varepsilon)\).
- Two distinct population critical levels differ by \(0.12\). What strict upper bound on \(\varepsilon\) ensures their ordering is preserved by the proposition?
- Why does uniform convergence alone not guarantee exact recovery of every branch in an unpruned estimated tree?
- What difficulty does a multifurcation create for a claim of exact binary topology recovery?