Hotmath
数学Homework. Do It Faster, Learn It Better.

Quadratic Regression

Aquadraticregression is the process of finding the equation of theparabolathat best fits a set of data. As a result, we get an equation of the form:

y = a x 2 + b x + c where a 0 .

The best way to find this equation manually is by using the least squares method. That is, we need to find the values of a , b , and c such that the squared vertical distance between each point ( x i , y i ) and the quadratic curve y = a x 2 + b x + c is minimal.

The matrix equation for the quadratic curve is given by:

[ x i 4 x i 3 x i 2 x i 3 x i 2 x i x i 2 x i n ] [ a b c ] = [ x i 2 y i x i y i y i ]

The relative predictive power of a quadratic model is denoted by R 2 .

This can be obtained using the formula:

R 2 = 1 SSE SST where SSE = ( y i a x i 2 b x i c ) 2 and SST = ( y i y ¯ ) 2

The value of R 2 varies between 0 and 1 . The closer the value is to 1 , the more accurate the model is.

But these are very tedious calculations. So, we will use a graphing calculator to automatically calculate the curve.

Example 1:

Consider the set of data. Determine the quadratic regression for the set.

( 3 , 7.5 ) , ( 2 , 3 ) , ( 1 , 0.5 ) , ( 0 , 1 ) , ( 1 , 3 ) , ( 2 , 6 ) , ( 3 , 14 )

Enter the x -coordinates and y -coordinates in your calculator and do a quadratic regression. The equation of the parabola that best approximates the points is

y = 1.1071 x 2 + x + 0.5714

Plot the graph. You should get a graph like this.

You can see that the R 2 value for the data is 0.9942 .