Linear Regression


A Visualization of Linear Regression.

Simply insert data into the form or click the button 'Example Data'. Enter the degree (max = 4). After this click the button 'Calculate'.



Increase the degree to see the fitting.

degree
x1; y1;
x2; y2;
x3; y3;
x4; y4;
x5; y5;

Polynomial Definition

A polynomial of degree n is defined as fitting curve:

f(x) = a₀ + a₁·x + a₂·x² + a₃·x³ + a₄·x⁴
    

Valid polynomial degrees: 0 to 4.

Wikipedia: Linear Regression

To calculate the fitting curve QR-Decomposition is used.

Wikipedia: QR-Decomposition