Docsity

Section 7.6: Nonlinear regression, Exams of Statistics

Toggle sidebar
bg1
Section 7.6: Nonlinear regression
Problem: For a given class of functions Fand a set of data
{(x1, y1), . . . , (xn, yn)}find a (the?) function fof class Fwhich
minimizes the sum of squares of errors.
Linear regression is the solution to this problem where Fis the
class of linear functions.
1
Quadratic regression
Aquadratic function is a function f(x) of the form
f(x) = ax2+bx +cfor 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.
2
pf3
pf4

Partial preview of the text

Download Section 7.6: Nonlinear regression and more Exams Statistics in PDF only on Docsity!

Section 7.6: Nonlinear regression

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

Quadratic regression

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

Solution

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

Multiple regression

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.