Tutorials › Statistical Learning (Graduate) › Selecting Resolution: Worked Rate Calculations

Smoothness Classes and Minimax Rates · Tutorial 405 of 989

Selecting Resolution: Worked Rate Calculations

Choose and check a balanced partition resolution by calculating how its approximation and estimation terms depend on sample size, dimension, and smoothness.

Intermediate 11 min read

What You'll Learn

  • Translate a partition resolution into cell width and number of cells.
  • Balance squared approximation error against estimation variance.
  • Calculate balanced resolutions and squared-error rates for specific sample sizes.
  • Check how rounding a theoretical resolution affects a rate calculation.
  • Explain how dimension and smoothness change the balanced resolution.
  • Identify common errors in interpreting rate exponents.

Why Resolution Must Be Chosen

A partition estimator divides the predictor domain into cells and estimates the regression function separately, or locally, within each cell. The resolution controls a basic tradeoff: smaller cells can represent a changing regression function more accurately, but the observations are spread across more cells, making estimation noisier. The practical question is not simply whether to use a fine partition. It is how fine to make it for the available sample size and the smoothness and dimension of the problem.

We will work with a \(d\)-dimensional predictor \(X\) on \([0,1]^d\). Let \(K\) denote the number of subdivisions along each coordinate axis. The cells then have side length \(h=1/K\), and there are \(K^d\) cells in total. For a locally polynomial estimator of adequate degree on a Hölder-smooth regression function, the squared approximation error is of order \(K^{-2\alpha}\), while the estimation term is of order \(K^d/n\). The first term decreases as the cells get finer; the second increases.

These expressions describe the usual integrated squared-error upper bound, under conditions ensuring the partition estimator is well behaved. In particular, take a fixed dimension \(d\), smoothness \(\alpha>0\), a design distribution with a density bounded above and away from zero on the domain, and errors with conditional mean zero and bounded conditional variance. The approximation order also requires a local polynomial degree sufficient for the stated Hölder smoothness. We use positive constants \(A\) and \(B\), independent of \(n\) and \(K\), to write the bound as \(A K^{-2\alpha}+B K^d/n\). The constants can depend on the class and estimator; rate calculations track the powers of \(n\), not those constants.

Definition: The partition resolution \(K\) is the number of equal subdivisions along each coordinate axis. The cell width is \(1/K\), and the total number of cells is \(K^d\). A balanced resolution makes the squared approximation term \(K^{-2\alpha}\) and the estimation term \(K^d/n\) have the same order.

Deriving the Balanced Resolution

First ignore constants and treat \(K\) as a positive real number. The balance equation is

$$ K^{-2\alpha}=\frac{K^d}{n}. $$

Multiplying by \(nK^{2\alpha}\) gives \(n=K^{2\alpha+d}\). Therefore the balanced resolution and its associated rate are

$$ K_{\mathrm{bal}}=n^{1/(2\alpha+d)}, \qquad K_{\mathrm{bal}}^{-2\alpha} =\frac{K_{\mathrm{bal}}^d}{n} =n^{-2\alpha/(2\alpha+d)}. $$

The resolution \(K_{\mathrm{bal}}\) is a number of subdivisions per coordinate, not the total number of cells. At this choice, the total number of cells is \(K_{\mathrm{bal}}^d=n^{d/(2\alpha+d)}\). Confusing these two quantities changes the exponent and leads to an incorrect variance calculation.

Theorem: Suppose the risk of a partition estimator is bounded by \(A K^{-2\alpha}+B K^d/n\), for constants \(A,B>0\). For real-valued \(K\), the choice \(K_{\mathrm{bal}}=n^{1/(2\alpha+d)}\) makes both terms have order \(n^{-2\alpha/(2\alpha+d)}\). For integer \(K\), choosing \(K=\lceil K_{\mathrm{bal}}\rceil\) gives the same rate up to a constant factor, for fixed \(d,\alpha,A,B\) and \(n\geq1\).

Proof. Substituting \(K_{\mathrm{bal}}=n^{1/(2\alpha+d)}\) gives

$$ K_{\mathrm{bal}}^{-2\alpha} =n^{-2\alpha/(2\alpha+d)} $$

and

$$ \frac{K_{\mathrm{bal}}^d}{n} =\frac{n^{d/(2\alpha+d)}}{n} =n^{(d-(2\alpha+d))/(2\alpha+d)} =n^{-2\alpha/(2\alpha+d)}. $$

Thus both terms have the stated order. For integer resolution, write \(K=\lceil K_{\mathrm{bal}}\rceil\). Since \(K_{\mathrm{bal}}\geq1\), we have \(K_{\mathrm{bal}}\leq K\leq 2K_{\mathrm{bal}}\). Consequently,

$$ K^{-2\alpha}\leq K_{\mathrm{bal}}^{-2\alpha}, \qquad \frac{K^d}{n}\leq 2^d\frac{K_{\mathrm{bal}}^d}{n}. $$

Both terms are therefore bounded by constant multiples of \(n^{-2\alpha/(2\alpha+d)}\), which proves the claim. \(\square\)

This balance also gives a simple justification for the choice. If \(K\leq K_{\mathrm{bal}}\), the approximation term is at least \(K_{\mathrm{bal}}^{-2\alpha}\). If \(K\geq K_{\mathrm{bal}}\), the estimation term is at least \(K_{\mathrm{bal}}^d/n\). Since these two quantities agree, moving to either side of the balance cannot make both terms smaller. This argument concerns the stated upper-bound terms; by itself it does not prove a minimax lower bound.

Worked Rate Calculations

Worked Example: Two-Dimensional Lipschitz Regression

Suppose \(n=4096\), the predictor has dimension \(d=2\), and the regression function has Hölder smoothness \(\alpha=1\). Find the balanced resolution, the cell width, the number of cells, and the two terms in the bound.

The denominator in the resolution exponent is \(2\alpha+d=2+2=4\). Hence

$$ K_{\mathrm{bal}}=4096^{1/4}=8. $$

There are \(8\) subdivisions along each coordinate, so the cell width is \(1/8\) and the total number of cells is \(8^2=64\). The approximation term is

$$ K^{-2\alpha}=8^{-2}=1/64. $$

The estimation term is

$$ \frac{K^d}{n}=\frac{8^2}{4096}=\frac{64}{4096}=\frac{1}{64}. $$

The two terms agree, and the rate is \(n^{-2\alpha/(2\alpha+d)}=4096^{-1/2}=1/64\). The total bound is at most \((A+B)/64\).

Worked Example: Higher Smoothness in Three Dimensions

Let \(n=16384=2^{14}\), \(d=3\), and \(\alpha=2\). The exponent denominator is \(2\alpha+d=4+3=7\), so

$$ K_{\mathrm{bal}}=(2^{14})^{1/7}=2^2=4. $$

The partition has \(4\) subdivisions along each axis, cell width \(1/4\), and \(4^3=64\) cells. The approximation term is

$$ K^{-2\alpha}=4^{-4}=2^{-8}=\frac{1}{256}. $$

The estimation term is

$$ \frac{K^d}{n}=\frac{4^3}{16384} =\frac{64}{2^{14}} =\frac{2^6}{2^{14}} =2^{-8} =\frac{1}{256}. $$

The squared-error rate is \(n^{-4/7}=(2^{14})^{-4/7}=2^{-8}=1/256\), agreeing with both terms. Notice that the dimension enters through \(K^3\), the number of cells, not through a change to the per-axis resolution definition.

Worked Example: Fractional Smoothness and Integer Rounding

Take \(n=1000\), \(d=1\), and \(\alpha=1/2\). The real-valued balanced resolution is

$$ K_{\mathrm{bal}}=1000^{1/(1+1)}=\sqrt{1000}\approx31.62. $$

A partition needs an integer number of subdivisions, so choose \(K=\lceil31.62\rceil=32\). The cell width is \(1/32\). The approximation term is

$$ K^{-2\alpha}=32^{-1}=\frac{1}{32}=0.03125. $$

Since \(d=1\), the estimation term is

$$ \frac{K^d}{n}=\frac{32}{1000}=0.032. $$

The terms are close, as expected after rounding. The rate at the continuous balance is \(n^{-2\alpha/(2\alpha+d)}=1000^{-1/2}\approx0.03162\). The rounded calculation does not make the two terms identical, but each remains of the same order as the rate.

How Dimension and Smoothness Change the Choice

Taking logarithms of the balanced resolution makes its dependencies transparent:

$$ \log K_{\mathrm{bal}}=\frac{\log n}{2\alpha+d}. $$

For fixed \(d\) and \(n>1\), increasing \(\alpha\) increases the denominator, so \(K_{\mathrm{bal}}\) decreases. In other words, greater smoothness calls for a coarser balanced partition. This may seem counterintuitive if one thinks only about approximation: smooth functions can indeed be approximated accurately with relatively wide cells. Fewer cells also reduce estimation variance, and the balance is reached at a smaller resolution.

For fixed \(\alpha\) and \(n>1\), increasing \(d\) also decreases \(K_{\mathrm{bal}}\). Each additional subdivision along every axis multiplies the total cell count by a factor that depends on the dimension: \(K^d\) grows rapidly when \(d\) is large. The balanced choice therefore uses fewer subdivisions per axis to control estimation variance. Larger sample sizes have the opposite effect: increasing \(n\) increases \(K_{\mathrm{bal}}\), allowing a finer partition.

The risk rate improves as smoothness increases, even though the balanced resolution decreases. The exponent \(2\alpha/(2\alpha+d)\) increases with \(\alpha\), so \(n^{-2\alpha/(2\alpha+d)}\) decreases for \(n>1\). Resolution and risk are different quantities: a coarser balanced partition can still yield a faster rate when the underlying function is smoother.

A Reusable Calculation

For a new rate problem, keep the three quantities separate: per-coordinate resolution \(K\), total number of cells \(K^d\), and squared-error rate. The following sequence prevents most exponent errors.

1
Write the two terms.
Use \(K^{-2\alpha}\) for squared approximation error and \(K^d/n\) for estimation variance.
2
Set them equal.
Solve \(K^{-2\alpha}=K^d/n\), giving \(K^{2\alpha+d}=n\).
3
Compute resolution and rate.
Use \(K_{\mathrm{bal}}=n^{1/(2\alpha+d)}\), then substitute into either term to get \(n^{-2\alpha/(2\alpha+d)}\).
4
Check the partition count.
There are \(K^d\) cells, not \(K\). If \(K\) must be an integer, round it and evaluate both terms again.

Common Mistakes

  • Calling \(K\) the total number of cells. Here \(K\) counts subdivisions along each coordinate, so the total is \(K^d\).
  • Using the bias order without squaring it. If the approximation error in norm is of order \(K^{-\alpha}\), its squared-error contribution is of order \(K^{-2\alpha}\).
  • Reversing the smoothness effect on resolution. At fixed \(n>1\) and \(d\), \(K_{\mathrm{bal}}=n^{1/(2\alpha+d)}\) decreases as \(\alpha\) increases. Greater smoothness permits a coarser balanced partition, not a finer one.
  • Reading the risk exponent as the resolution exponent. The resolution exponent is \(1/(2\alpha+d)\); the squared-error rate exponent is \(2\alpha/(2\alpha+d)\).
  • Treating equal-order terms as numerically identical after rounding. Integer rounding can change the two values, but it does not change their rate when the rounded resolution stays within a constant factor of the balanced one.
Key takeaway: Balance squared approximation error \(K^{-2\alpha}\) against estimation variance \(K^d/n\). The resulting per-axis resolution is \(n^{1/(2\alpha+d)}\), and both terms then have squared-error order \(n^{-2\alpha/(2\alpha+d)}\). Higher smoothness and higher dimension lower the balanced resolution; larger samples raise it.

Check Your Understanding

For each calculation, keep the per-axis resolution distinct from the total number of cells.

  1. For \(n=256\), \(d=1\), and \(\alpha=1\), calculate the balanced resolution and the squared-error rate.
  2. If \(K=5\) and \(d=3\), how many cells are in the partition? What is the estimation term when \(n=1000\)?
  3. At fixed \(n>1\) and \(d\), does increasing \(\alpha\) increase or decrease \(K_{\mathrm{bal}}\)? Explain using its formula.
  4. For \(n=10000\), \(d=2\), and \(\alpha=1\), calculate both balanced terms and verify that they agree.
  5. Why can greater smoothness lead to a coarser balanced partition but a faster squared-error rate?
Clinical Biostats