Skip to content
BENIBIX Learn

Regression Analysis

General🔢 Math & StatisticsStatistics

Also known as Statistical Regression, Line of Best Fit

Fitting a line through data. It shows how one thing changes when another does.

Think of it like

It is like drawing one straight line through a cloud of dots. The line stays close to all of them.

Example

An estate agent fits a line to 200 flat sales. It shows each extra square metre adds about 4,000 euros to the price. She uses it to price a new flat.

Why it matters

Regression turns a cloud of dots into a rule you can use. Many forecasts and AI models are built on it.

Definition

Regression analysis finds the line or curve that best fits a set of data. It shows how one value tends to change when another one changes. The simplest kind fits a straight line through dots on a chart. The line's slope says how much the result moves for each step of the input. You can then use the line to guess new values.

Example code

excel
=SLOPE(C2:C21, B2:B21)
0.5
Each extra step in column B goes with about half a step more in column C.
The line runs as close to every dot as it can. Its slope is the price of each extra square metre.

Common mistake

Using the line far beyond the data. A trend found on small flats may not hold for mansions.

Key takeaways

  1. 1
    Best fit. The closest line to all the dots.
  2. 2
    Slope is the effect. The change in result per step.
  3. 3
    A guess, not proof. It shows a link, not a cause.

Compare

Learn it properly