Quadratic Regression calculation

AI Thread Summary
To calculate quadratic regression by hand, one must minimize the total square errors for a dataset (x,y) using the function f(x)=ax^2+bx+c. This involves deriving the function G(A,B,C) that represents the sum of squared errors and taking partial derivatives with respect to A, B, and C. Setting these derivatives to zero yields a system of simultaneous linear equations. Understanding the transition from linear to quadratic regression requires familiarity with the derivation of linear least squares regression formulas. The process for quadratic regression is analogous, involving three variables instead of two.
pyfgcr
Messages
22
Reaction score
0
Hi, I'm learning statistic. Do you guys know how to calculate quadratic regression by hand, which is: give a data set (x,y), find a parabola f(x)=ax^2+bx+c that minimize the total square errors .
I have known how to calculate linear regression.
Thanks in advanced.
 
Physics news on Phys.org
Write out the function that is to be minimized and then write its derivative. You get a a system of simultaneous linear equations. If you cannot visualize this using the summation notation \Sigma then try making up 4 (x,y) data pairs and doing it.
 
A system of simultaneous linear equation: ax^2 + bx + c , derivative: 2ax + b ?
I don't really understand
 
pyfgcr said:
A system of simultaneous linear equation: ax^2 + bx + c , derivative: 2ax + b ?
I don't really understand

Perhaps you haven't studied how the formulas for linear least squares regression are derived.

In linear regression there are n data points {(x_1,y_2), (x_2,y_2),...(x_n,y_n) }. The function to be minimized is G(A,B) = \sum_{i=1}^n (A x_i + B - y_i)^2 and deriving the formulas involves taking the partial derivatives of G(A,B) with respect to each of A and B and setting them equal to zero to obtain two simultaneous linear equations. Look up how that is done.

The method for the quadratic is similar. It involves minimzing a function of 3 variables G(A,B,C).
 
I was reading documentation about the soundness and completeness of logic formal systems. Consider the following $$\vdash_S \phi$$ where ##S## is the proof-system making part the formal system and ##\phi## is a wff (well formed formula) of the formal language. Note the blank on left of the turnstile symbol ##\vdash_S##, as far as I can tell it actually represents the empty set. So what does it mean ? I guess it actually means ##\phi## is a theorem of the formal system, i.e. there is a...
Back
Top