2D Optimization: Finding the Best Line

Now with two parameters: intercept (β₀) and slope (β₁)

Linear Regression: y = β₀ + β₁x

Data + Current Fit

Log-Likelihood Contour Surface

Find the Peak!

Adjust both sliders to find the maximum likelihood. Or click directly on the contour plot.

0.0
0.00

Tip: Watch both the regression line and the likelihood surface. The red dot should climb toward the peak!

Adjustments made: 0
Intercept (β₀)
--
Slope (β₁)
--
Log-Likelihood
--
Iterations
0

What's Different in 2D?

With two parameters, the likelihood surface becomes a 2D landscape shown as contour lines:

Notice how the regression line changes as you move across the likelihood surface. Finding the best fit means climbing to the highest point!