Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

 Open In Colab

Introduction to Interpolation

Interpolation is a fundamental numerical method for fitting continuous curves to discrete data points. Historically, it was easier to perform locally or iteratively as new information was obtained.

When choosing an interpolation method, we must consider:

  • Build Speed: How fast can we construct the model?

  • Update Speed: How quickly can we add new data?

  • Execution Speed: How fast can we evaluate interpolated values?

  • Generalizability: Does it scale to N-dimensions?

Example: Interpolating a Gaussian Curve

For illustrative purposes, let’s design a toy problem for exploration. We will sample a known Gaussian function, and then attempt to recover it using various interpolation techniques.

Our goal is to use the sampled data (the red points) and recover the ‘true’ underlying function (the blue curve) as faithfully as possible.