In words
What it is, why it matters, and what it is like.
Why am I learning this?
You have spent years fitting lines and curves to find a single 'best' answer for a trend. Gaussian process regression changes the goal from finding one perfect shape to mapping out an entire landscape of possibilities. It answers two questions at once: what is the most likely value here, and how much should you trust that number? This dual output is critical when predictions carry real-world weight. For instance, if you are using a model to estimate the cost of a new chemical compound in a lab where each experiment costs $5,000, you need to know not just the predicted price, but whether the model is guessing based on solid evidence or empty air. This method powers Bayesian optimisation (a smart way to tune expensive computer models) and active learning (where a system asks humans to label only the most confusing data points). It ensures that automated decisions are made with eyes open to their own ignorance.
The idea, in plain terms
Imagine you have recorded the price of houses sold in your city, plotted by their square footage. You want to guess the price of a house that hasn't been sold yet, specifically one that is 1,500 square feet. A standard linear regression would draw a single straight line through all your data and spit out one number: say, $300,000. It tells you nothing about whether that number is precise or a lucky guess.
Gaussian process regression takes a different approach. Instead of picking one line, it imagines thousands of wiggly curves that could possibly fit the existing house data. Think of these as 'plausible realities.'
1. In the middle of your data (e.g., houses between 1,000 and 2,000 sq ft), most of these curves look very similar because they must pass near the known sold prices. Since they agree closely on the value at 1,500 sq ft, the model says: 'The price is likely $300,000, and I am very confident about this.'
2. Far away from your data (e.g., a tiny shed of 100 sq ft or a massive warehouse of 10,000 sq ft), the curves diverge wildly. Some shoot up, some crash down, some stay flat. Because these plausible realities disagree so much at that specific point, the model says: 'The average prediction might still be $300,000, but I have almost no idea if that is true.'
The 'mean' of all these curves gives the prediction. The 'spread' or disagreement among them gives the uncertainty. This means the model naturally knows less about areas where you have never seen data before, and more about areas where you have observed many points.
An analogy
Picture a surveyor trying to map the height of a rolling hillside. They cannot see the whole hill at once; they can only take measurements at a few specific stakes they drive into the ground. Let’s say they measure exactly 50 feet high at stake A, and 52 feet high at stake B, located 100 feet away.
To visualize the entire hill, the surveyor generates countless possible surface maps that pass exactly through those two points. Some maps rise sharply between A and B; others stay flat. However, because hills are generally smooth things in nature (you don't typically find a cliff face dropping vertically within 10 feet without warning), the surveyor biases their generated maps toward gentle slopes rather than jagged spikes. This bias toward 'smoothness' is governed by a parameter called the kernel. The kernel essentially asks: 'If I move just one step to the right from a known point, how much should I expect the height to change?' A kernel that allows large changes creates jagged maps; a strict kernel creates gentle waves.
At stake A and B, all maps agree on the height because they must hit those points. Halfway between them, the maps start to drift apart slightly based on their assumed smoothness. At a location 1 mile away where there are no stakes, every possible map looks like a different random shape. The surveyor reports the average height of all maps as the prediction and the wide variety of heights as the uncertainty.
The limitation of this analogy: a real hill has physical constraints (gravity, rock layers) that make some shapes impossible. A Gaussian process only cares about statistical smoothness; without encoding those physical rules into the kernel, it might predict an impossibly steep cliff just because the math allows it.
Definition
Gaussian process regression is a statistical technique that models a function not as a single fixed formula, but as a distribution over many possible curves; it uses observed data to narrow down which curves are plausible, thereby providing both a predicted value and a quantified measure of confidence for any new input.
Where this sits
This builds directly on your understanding of scatterplots and curve fitting. Where standard regression fits one specific curve (like a least-squares line) and ignores the noise around it, Gaussian process regression treats the noise and the uncertainty as primary outputs alongside the fit itself. It also connects to Bayesian inference, which is the framework of updating beliefs with new evidence; here, the 'prior belief' is about how smooth the function should be (encoded in the kernel), and the 'updated belief' is the set of plausible curves after seeing the data.