---
title: Sample Complexity
url: https://www.emergentmind.com/topics/sample-complexity
type: topic
---

# Sample Complexity

Sample complexity quantifies the minimal number of data points, measurements, or trials necessary to achieve a prescribed accuracy in statistical estimation, learning, or control, with high confidence. It is central in statistical learning theory, empirical risk minimization, stochastic optimization, system identification, quantum information theory, and a wide range of applied domains. The optimal scaling of sample complexity is determined by problem structure—such as dimensionality, noise model, hypothesis class complexity, information-theoretic lower bounds, and (where relevant) privacy or computational constraints.

## 1. Core Definitions and General Principles

The sample complexity $n^*(\epsilon, \delta)$ of a learning or estimation task is the smallest $n$ such that, with probability at least $1-\delta$, an estimator trained on $n$ i.i.d. samples outputs a solution achieving target accuracy parameterized by $\epsilon$ (e.g., in mean-square error, probability of misclassification, excess risk, or parameter distance). For example, in PAC learning, the canonical form is $n^*(\epsilon, \delta) = \Theta\left(\frac{d+\log(1/\delta)}{\epsilon}\right)$ for concept classes of VC dimension $d$ in the realizable regime [1507.00473]. In estimation and control problems, sample complexity typically refers to the number of sample points or time steps needed for a learning or identification algorithm to reach accuracy and confidence targets in the PAC or minimax sense [1903.10343].

The central phenomena governing sample complexity include:

- The combinatorial or metric complexity of the function class (e.g., VC dimension, covering numbers, Rademacher complexity, representation dimension).
- Information-theoretic constraints such as Fisher information, minimax risk, and distinguishability under noise or corruption.
- Task structure, e.g., i.i.d. versus dependent samples, convexity, sparsity, privacy or robustness requirements.

## 2. Sample Complexity in Supervised and PAC Learning

In binary PAC learning with concept class $C$ of VC-dimension $d$, the sample complexity achieves the classic rate
\[
n^*(\epsilon, \delta) = \Theta\left(\frac{d+\log(1/\delta)}{\epsilon}\right)
\]
for realizable classification [1507.00473]. This rate is optimal up to constant factors. For general loss minimization with bounded loss and finite hypothesis class $|H|$, standard bounds yield
\[
n = O\left(\frac{\log |H| + \log(1/\delta)}{\epsilon^2}\right)
\]
for uniform deviation control (via Hoeffding or Massart's finite class lemma).

Extensions and variants include:

- **Split-sample growth rate**: Instead of worst-case combinatorial measures, one can control sample complexity via the maximum number of distinct ERMs possible on sample subsamples. For example, in auction design, if ERMs only select observed values, this reduces generalization complexity to $\sqrt{(\log m)/m}$ [1704.02598].
- **Distribution-dependent and improper learning**: For differentially-private learning, the representation dimension (RepDim) rather than VC-dimension governs sample complexity, potentially increasing the required number of examples by a logarithmic or worse factor [1402.2224].

## 3. Sample Complexity in Convex and Stochastic Optimization

In stochastic convex optimization (SCO), Feldman and Neeman resolved the fundamental open question of the sample complexity for empirical risk minimization. For losses that are convex, Lipschitz, and bounded over the unit ball in $\mathbb{R}^d$, the optimal rate for all ERMs is
\[
n^*(\epsilon) = \tilde O \left(\frac{d}{\epsilon} + \frac{1}{\epsilon^2}\right)
\]
[2311.05398]. This is strictly better than uniform convergence, which requires $n = \tilde\Theta(d/\epsilon^2)$. Proofs rely on covering-number arguments, Bregman divergence, and separating the complexity of the parameter space from the linear functional class (Rademacher complexity for linear functions).

The rate $\tilde O(d/\epsilon + 1/\epsilon^2)$ arises from the combination of (i) the cost of covering the parameter space to $\epsilon$ accuracy and (ii) controlling variance due to stochasticity. The structure generalizes to symmetric convex bodies, where the linear-function Rademacher complexity may further refine the rate.

## 4. Information-Theoretic, Statistical and Algorithmic Minima

Sample complexity lower bounds are often established via a minimax risk argument, information divergence, or a primal-dual variational characterization. For example, in estimation with sub-Gaussian noise or in system identification, the minimax lower bound is
\[
n \gtrsim \frac{1}{\varepsilon^2}\;\log(1/\delta)
\]
reflecting the information required to confidently distinguish two nearly indistinguishable models [1903.10343]. In parametric models, Fisher information provides the exact scaling: For maximum-likelihood estimation of $\theta\in\mathbb{R}^d$ under differentiable families,
\[
n \gtrsim \max_i [I(\theta)^{-1}]_{ii}\, \frac{1}{\epsilon^2}
\]
where $I(\theta)$ is the Fisher information matrix. This governs both upper and lower bounds in classical and quantum settings [2602.21510].

Algorithmic barriers may arise from statistical correlations, noise, or the absence of entanglement/memory (as in quantum tomography, where sample complexity jumps from polynomial to exponential in $n$ according to the measurement architecture [2602.21510]).

## 5. Sample Complexity in Structured and High-Dimensional Settings

### Dictionary Learning and Sparse Recovery

In Bayesian-optimal dictionary learning under the planted sparse coding model, perfect identification of the overcomplete dictionary $D$ requires only
\[
P_c = O(N) = N\,\frac{\alpha}{\alpha-\rho}
\]
samples, with $\alpha = M/N$ the overcompleteness and $\rho$ the sparsity rate; perfect recovery is possible whenever $\alpha>\rho$ [1301.6199]. A replica method reveals "success," "middle," and "failure" phases, and the linear-in-$N$ rate is both information-theoretically necessary and algorithmically achievable when the Bayes posterior dominates.

### Population Recovery and Distinct Elements

In lossy population recovery (bit-erasure model), the sample complexity transitions from
\[
n^* = \tilde\Theta(\delta^{-2})
\]
for $\epsilon\leq 1/2$ (parametric) to
\[
n^* = \tilde\Theta(\delta^{-2\epsilon/(1-\epsilon)})
\]
for $\epsilon > 1/2$ (nonparametric regime) [1702.05574]. In noisy recovery, the scaling is superpolynomial in $d$, namely
\[
n^* = \exp\left(\Theta\big(d^{1/3} \log^{2/3}(1/\delta)\big)\right)
\]
The phase transition and scaling are provable by duality and primal-dual linear programming techniques.

### High-Dimensional Simplices under Noise

For learning a $K$-simplex in $\mathbb{R}^K$ from $n$ samples with additive Gaussian noise, the sample complexity is
\[
n \geq \left(\frac{K^2}{\epsilon^2}\right) \exp\!\left[\Omega\left(\frac{K}{\mathrm{SNR}^2}\right)\right]
\]
where SNR is the signal-to-noise ratio. When $\mathrm{SNR} \gtrsim \sqrt{K}$, the rate matches the noiseless regime; otherwise, exponentially many samples are needed [2209.05953].

### Nonparametric Estimation with Structure

Dimension-independent rates are achievable for density estimation in multiview (low-rank) or more generally, non-negative Lipschitz spectrum decompositions: the convergence rate depends polynomially only on the decay/growth of the NL-spectrum; worst-case minimax rates for classical histograms remain dominated by the "curse of dimensionality" unless latent structure is exploited [2302.04292].

## 6. Sample Complexity under Constraints: Privacy, Forecasting, and Data Compression

### Differential Privacy

The sample complexity of private learning is characterized by the representation dimension $\mathrm{RepDim}(C)$, which can be much larger than the VC-dimension in some regimes. The best possible rate (for improper PAC learning with privacy $\epsilon$) is
\[
m = O\left(\frac{\mathrm{RepDim}(C)}{\epsilon}\right)
\]
[1402.2224]. For simple classes (e.g., threshold or point functions), improper learners may avoid the exponential price in sample complexity that proper differentially-private learners incur.

### Forecast Aggregation

In Bayesian forecast aggregation from expert predictions, the sample complexity is exponential in $n$ (number of experts), $T_{\text{all}}(\varepsilon) \gtrsim m^{n-2}/\varepsilon$, unless the experts' signals are conditionally independent, in which case the rate drops to $O(1/\varepsilon^2)$, independent of $n$ [2207.13126].

### Lossless Data Compression

The sample complexity of achieving specified excess-rate in lossless compression of a memoryless source is governed, not by Shannon entropy, but by the Rényi entropy of order $1/2$:
\[
n^*(\epsilon) \approx \frac{\ln(1/\epsilon)}{D_{1/2}(P\|U)}
\]
with $D_{1/2}(P\|U)$ the (order-1/2) Rényi divergence to the uniform distribution [2601.06688]. This coincides with the sample complexity for identity testing, establishing a deep link between data compression and hypothesis testing.

## 7. Sample Complexity in Quantum and Dynamical Systems

Quantum parameter and channel identification exhibits sample complexity scaling as $O((\log(1/\delta))/\epsilon^2)$ determined by the inverse Fisher information matrix, provided optimal quantum probe/measurement setups are used. Without entanglement or quantum memory, sample complexity may become exponential in system size, e.g., $M \gtrsim 2^n/\epsilon^2$ for $n$-qubit Pauli channel learning with separable probes [2602.21510].

In dynamical systems identification, the PAC sample complexity for Jacobi matrix estimation, or for nonlinear mappings via Koopman decompositions, universally obeys minimax rates:
\[
T^* = O\left(\frac{d}{\epsilon^2} \log(1/\delta)\right)
\]
with problem-dependent constants set by Gramian, controllability, and dictionary conditioning [1903.10343, 1810.11747].

## 8. Recent Methodological Developments

Methodological innovations in sample complexity analysis include:

- **Replica methods and phase diagrams** (for sparse coding and statistical inference) reveal algorithmic and information-theoretical thresholds [1301.6199].
- **Duality and LP-based minimax lower bounds** (in population recovery, estimation) unify linear estimator construction with complexity lower bounds [1702.05574].
- **Error decomposition and optimization-statistics interaction** (in deep discrete diffusion, conditional stochastic optimization) clarify how estimation error distributes among statistical, optimization, model-misspecification, and discretization components [2510.10854, 1905.11957].
- **Intrinsic covering number and effective dimension** (in entropic OT, density estimation with structure) replace ambient dimension in controlling sample complexity [2510.05685, 2302.04292].

These advances continue to unify sample complexity theory across supervised, unsupervised, and reinforcement learning, estimation, control, and quantum information, with deep connections to combinatorial geometry, optimization, and statistical physics.

Source: https://www.emergentmind.com/topics/sample-complexity