


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Problem: For a given class of functions F and a set of data {(x 1 , y 1 ),... , (xn, yn)} find a (the?) function f of class F which minimizes the sum of squares of errors.
Linear regression is the solution to this problem where F is the class of linear functions.
1
A quadratic function is a function f (x) of the form f (x) = ax^2 + bx + c for fixed constants a, b, and c.
Note that taking a = 0 we see that a linear function is a special case of a quadratic function.
Large An example of quadratic regression
Find a quadratic function f (x) = ax^2 + bx + c minimizing the sum of squares of errors for the data {(โ 1 , 0), (1, 2), (0, โ1), (2, 1)}.
3
S(a, b, c) = (f (โ1) โ 0)^2 + (f (1) โ 2)^2
+(f (0) โ (โ1))^2 + (f (2) โ 1)^2 = (a(โ1)^2 + b(โ1) + c โ 0)^2 + (a(1)^2 + b(1) + c โ 2)^2 +(a(0)^2 + b(0) + c โ (โ1))^2 + (a(2)^2 + b(2) + c โ 1)^2 = (a โ b + c)^2 + (a + b + c โ 2)^2 +(c + 1)^2 + (4a + 2b + c โ 1)^2
Problem: Given a set of data {(x 1 , y 1 , z 1 ),... , (xn, yn, zn)} find a function f (x, y) of two variables (of some specified class) best fitting the data.
When f (x, y) = ax + by + c is taken to be a linear function, then this is the problem of multiple linear regression.