Linear Regression

line(vx, vy) Returns a vector containing the coefficients a and b for a line of the form a + b·x that best approximates the data in vectors vx and vy in the least-squares sense. If you want the coefficients independently, use:

slope(vx, vy) Returns the slope of line that best fits data in vx and vy.

intercept(vx, vy) Returns the intercept of line that best fits data in vx and vy.

medfit(vx, vy) Returns a vector containing the coefficients a and b for a line of the form a + b·x that best approximates the data in vectors vx and vy using median-median regression.

Arguments:

Notes:

QuickSheet

Related Topics