Statistics · Concept

Linear vs Nonlinear Regression Explained

When a straight line is the right model, when it isn't, and how a calculator fits curved models just as easily.

fx-991ES Web TeamUpdated 23 June 20267 min read

The choice between linear and nonlinear regression is really a question about the shape of your data. Get it right and the fit is excellent; force a line onto a curve and even a powerful regression calculator will give you a poor model.

On this page

  1. What linear regression assumes
  2. When you need a curve
  3. How to tell the difference
  4. How a calculator fits curves
  5. FAQ

What linear regression assumes

Linear regression fits y = A + Bx: a constant rate of change B. Every one-unit increase in x changes y by the same amount. That's perfect for relationships like cost = fixed + (rate × quantity).

Data (1,3), (2,5), (3,7) fits y = 2x + 1 with r = 1 — a flawless straight line.

When you need a curve

Many real relationships bend. The STAT mode offers several nonlinear shapes:

ModelBehaviourTypical data
QuadraticRises then falls (or vice versa)Projectile height, optimisation
LogarithmicFast then flatteningDiminishing returns
ExponentialConstant percentage growthPopulations, compound interest
PowerScaling lawArea vs length, physics laws
InverseDecays toward an asymptoteSpeed vs time for fixed distance

How to tell the difference

How a calculator fits curves

Exponential, power and logarithmic models are linearizable — taking logs turns them into straight lines — so the calculator fits them with the same least-squares machinery and reports A, B and r. Switch to STAT mode, choose the model, and enter your paired data. Comparing fits is covered in choosing the right regression model, and the full STAT workflow is in the statistics calculator pillar guide.

Frequently asked questions

Linear vs nonlinear — what's the difference?

Linear fits a straight line with constant slope; nonlinear fits a curve whose rate of change varies.

How do I know my data is nonlinear?

Plot it; a bend, low linear r, or a patterned residual plot all point to a curve.

Can a calculator fit nonlinear models?

Yes — exponential, power and log models are linearizable and fit directly in STAT mode.

Fit your data both ways

Try a linear and a nonlinear model in STAT mode and compare the r values.

Open the regression calculator →