Skip to main content

Regression line

Computes the line that best fits the given data.

Syntax

regression_line(Paired_data)
regression_line(Statistics_data, Statistics_data)

Description

Given a paired data X={(xi,yi)}i=1...n, finds a line of the form y=mx+b that best fits it. You can also extract the corresponding coefficients through the slope() and intersect() commands.

statistics.regression_line1.calc.png
statistics.regression_line1.plotter0.calc.png

Given two sample data X={x1,...,xn} and Y={y1,...,yn}, finds a line of the form y=mx+b that best fits it.

statistics.regression_line2.calc.png
statistics.regression_line2.plotter0.calc.png