Stable extrapolation of analytic functions

Laurent Demanet, Alex Townsend · DOI

Abstract

Extrapolating functions from noisy, equally spaced data is widely considered an ill-posed and "hopeless" task due to exponential ill-conditioning. This paper demonstrates that stable extrapolation is achievable for analytic functions using low-degree least squares polynomial approximations. By adhering to a specific oversampling condition—where the polynomial degree $M$ scales with the square root of the number of samples $N$—we can obtain an optimal error rate that follows a fractional power of the noise level. This work bridges the gap between super-resolution theory and classical numerical analysis, establishing fundamental limits for stable prediction.

Introduction

In numerical analysis, extrapolation—predicting values outside the measured interval $[-1, 1]$—is a classic example of an ill-posed problem. The standard warning is that even infinitesimal noise in samples can lead to catastrophic errors, especially on uniform grids where "Runge’s phenomenon" causes high-degree interpolants to oscillate wildly.

This research challenges the prevailing notion that such extrapolation is inherently unstable. By shifting from interpolation to low-degree least squares approximation, the authors show that one can stably predict the behavior of smooth (analytic) functions. The key lies in balancing the polynomial degree with the density of the sampling grid to avoid the "curse" of ill-conditioning.

Methodology: Least Squares and the $\sqrt{N}$ Barrier

The proposed method utilizes Least Squares Polynomial Approximation. Instead of forcing a polynomial to pass through every noisy data point, a polynomial of degree $M$ is fitted to $N+1$ samples to minimize the overall squared error.

The Oversampling Condition

Stability is maintained only when the polynomial degree $M$ is small relative to the number of points $N$. Specifically, the authors identify a "safe" regime defined by the condition: $$M \leq \frac{1}{2}\sqrt{N}$$ Within this regime, the condition numbers of the Legendre-Vandermonde and Chebyshev-Vandermonde matrices grow only linearly with $M$, preventing the exponential error amplification typically associated with uniform grids.

Computational Efficiency

To make this approach practical for large datasets, the authors derived a novel $O(M^3 + MN)$ algorithm for constructing the normal equations. By employing the Euler-Maclaurin error formula, the algorithm bypasses expensive direct summations, offering a significant speedup over the standard $O(M^2N)$ approach.

Stability and Error Analysis

A central insight of this work is that the extrapolation error scales as a fractional power of the noise level $\epsilon$. The error bound is characterized by the term $\epsilon^{\alpha(x)}$, where $\alpha(x) \in (0, 1)$ is an exponent determined by the distance of the extrapolation point $x$ from the interval and the function's region of analyticity (defined by Bernstein ellipses).

The fractional power $\alpha(x)$ and the resulting error growth as a function of the extrapolation point $x$.

As illustrated in the figure above, the exponent $\alpha(x)$ decreases as $x$ moves further from the data interval. This decay represents the increasing "cost" of noise, leading to the error growth shown in the adjacent plot. Despite this growth, the method remains stable and achieves minimax optimality—meaning no other method can asymptotically outperform this least squares approach.

Key Results

  • Minimax Optimality: The least squares approach reaches the fundamental "speed limit" for stable extrapolation.
  • Geometric Convergence: For noiseless data, the extrapolant converges geometrically to the true function as $M$ increases, provided $x$ stays within the function's region of analyticity.
  • Stability vs. Accuracy: The paper provides an explicit "recipe" for balancing these two competing factors, showing that the $\sqrt{N}$ condition is the optimal threshold for practical applications.

Conclusion

This work provides a robust theoretical and practical framework for extrapolating analytic functions from noisy, equally spaced samples. While the results are tailored for analytic functions and uniform grids, the underlying principles of stable polynomial approximation in the Chebyshev basis have broad implications for approximation theory and signal processing.

Technical Notation

The following table provides a reference for the mathematical notation and definitions used throughout the paper's analysis.

Summary of notation and definitions used in the paper.

Summary updated

Abstract

This paper examines the problem of extrapolation of an analytic function for $x > 1$ given perturbed samples from an equally spaced grid on $[-1,1]$. Mathematical folklore states that extrapolation is in general hopelessly ill-conditioned, but we show that a more precise statement carries an interesting nuance. For a function $f$ on $[-1,1]$ that is analytic in a Bernstein ellipse with parameter $\rho > 1$, and for a uniform perturbation level $\epsilon$ on the function samples, we construct an asymptotically best extrapolant $e(x)$ as a least squares polynomial approximant of degree $M^*$ given explicitly. We show that the extrapolant $e(x)$ converges to $f(x)$ pointwise in the interval $I_\rho\in[1,(\rho+\rho^{-1})/2)$ as $\epsilon \to 0$, at a rate given by a $x$-dependent fractional power of $\epsilon$. More precisely, for each $x \in I_{\rho}$ we have \[ |f(x) - e(x)| = \mathcal{O}\left( \epsilon^{-\log r(x) / \log\rho} \right), \qquad\qquad r(x) = \frac{x+\sqrt{x^2-1}}{\rho}, \] up to log factors, provided that the oversampling conditioning is satisfied. That is, \[ M^* \leq \frac{1}{2} \sqrt{N}, \] which is known to be needed from approximation theory. In short, extrapolation enjoys a weak form of stability, up to a fraction of the characteristic smoothness length. The number of function samples, $N+1$, does not bear on the size of the extrapolation error provided that it obeys the oversampling condition. We also show that one cannot construct an asymptotically more accurate extrapolant from $N+1$ equally spaced samples than $e(x)$, using any other linear or nonlinear procedure. The proofs involve original statements on the stability of polynomial approximation in the Chebyshev basis from equally spaced samples and these are expected to be of independent interest.
BibTeX
@article{demanet2016stable,
  author = {Laurent Demanet and Alex Townsend},
  title = {{Stable extrapolation of analytic functions}},
  journal = {Found. Comput. Math.},
  year = {2016},
  doi = {10.1007/s10208-018-9384-1},
}
Figure