All Exams Test series for 1 year @ ₹349 only
Question

The normal equations for finding a curve of the form y = a + bx + cx2 for 'n' data are

The correct answer is

∑y = na + b ∑x + c ∑x2, ∑xy = a ∑ x + b ∑x2 + c ∑x3, ∑x2y = a ∑x2 + b ∑x3 + c ∑x4

Finding the best-fit curve of a specific form for a set of data points is a common task in data analysis and statistics. When the curve is represented by a polynomial, such as $y = a + bx + cx^2$, and we want to find the coefficients ($a$, $b$, $c$) that best fit the data, we typically use the method of least squares. The method of least squares minimizes the sum of the squares of the differences between the observed y-values and the y-values predicted by the curve.

Understanding the Least Squares Method for Curve Fitting

Let's say we have $n$ data points $(x_i, y_i)$ for $i = 1, 2, \dots, n$. We want to fit a curve of the form $y = a + bx + cx^2$ to these points. For each data point $(x_i, y_i)$, the value predicted by the curve is $\hat{y}_i = a + bx_i + cx_i^2$. The error or residual for the $i$-th point is the difference between the observed value and the predicted value: $e_i = y_i - \hat{y}_i = y_i - (a + bx_i + cx_i^2)$.

The method of least squares aims to minimize the sum of the squares of these errors, denoted by $S$.

The sum of squared errors is:

\begin{equation*} S = \sum_{i=1}^n e_i^2 = \sum_{i=1}^n (y_i - (a + bx_i + cx_i^2))^2 \end{equation*}

To minimize $S$ with respect to the parameters $a$, $b$, and $c$, we take the partial derivative of $S$ with respect to each parameter and set the resulting equations to zero. These equations are called the normal equations.

Deriving the Normal Equations for $y = a + bx + cx^2$

Partial Derivative with Respect to 'a'

Taking the partial derivative of $S$ with respect to $a$:

\begin{equation*} \frac{\partial S}{\partial a} = \frac{\partial}{\partial a} \sum_{i=1}^n (y_i - a - bx_i - cx_i^2)^2 \end{equation*}

Using the chain rule, this becomes:

\begin{equation*} \frac{\partial S}{\partial a} = \sum_{i=1}^n 2(y_i - a - bx_i - cx_i^2) \cdot \frac{\partial}{\partial a}(y_i - a - bx_i - cx_i^2) \end{equation*}

\begin{equation*} \frac{\partial S}{\partial a} = \sum_{i=1}^n 2(y_i - a - bx_i - cx_i^2) \cdot (-1) \end{equation*}

Setting the partial derivative to zero:

\begin{equation*} -2 \sum_{i=1}^n (y_i - a - bx_i - cx_i^2) = 0 \end{equation*}

Dividing by -2 and distributing the summation:

\begin{equation*} \sum_{i=1}^n y_i - \sum_{i=1}^n a - \sum_{i=1}^n bx_i - \sum_{i=1}^n cx_i^2 = 0 \end{equation*}

Since $a$, $b$, and $c$ are constants with respect to the summation over $i$ from 1 to $n$, $\sum a = na$, $\sum bx_i = b \sum x_i$, and $\sum cx_i^2 = c \sum x_i^2$. Thus, the first normal equation is:

\begin{equation*} \sum y_i = na + b \sum x_i + c \sum x_i^2 \end{equation*}

Using the simplified notation where $\sum$ represents summation over all data points (from $i=1$ to $n$), this is:

\begin{equation*} \sum y = na + b \sum x + c \sum x^2 \end{equation*}

Partial Derivative with Respect to 'b'

Taking the partial derivative of $S$ with respect to $b$:

\begin{equation*} \frac{\partial S}{\partial b} = \frac{\partial}{\partial b} \sum_{i=1}^n (y_i - a - bx_i - cx_i^2)^2 \end{equation*}

\begin{equation*} \frac{\partial S}{\partial b} = \sum_{i=1}^n 2(y_i - a - bx_i - cx_i^2) \cdot \frac{\partial}{\partial b}(y_i - a - bx_i - cx_i^2) \end{equation*}

\begin{equation*} \frac{\partial S}{\partial b} = \sum_{i=1}^n 2(y_i - a - bx_i - cx_i^2) \cdot (-x_i) \end{equation*}

Setting the partial derivative to zero:

\begin{equation*} -2 \sum_{i=1}^n x_i(y_i - a - bx_i - cx_i^2) = 0 \end{equation*}

Dividing by -2 and distributing $x_i$ and the summation:

\begin{equation*} \sum_{i=1}^n (x_i y_i - a x_i - b x_i^2 - c x_i^3) = 0 \end{equation*}

\begin{equation*} \sum_{i=1}^n x_i y_i - \sum_{i=1}^n a x_i - \sum_{i=1}^n b x_i^2 - \sum_{i=1}^n c x_i^3 = 0 \end{equation*}

Extracting constants from the summations:

\begin{equation*} \sum_{i=1}^n x_i y_i - a \sum_{i=1}^n x_i - b \sum_{i=1}^n x_i^2 - c \sum_{i=1}^n x_i^3 = 0 \end{equation*}

Rearranging the terms, the second normal equation is:

\begin{equation*} \sum x_i y_i = a \sum x_i + b \sum x_i^2 + c \sum x_i^3 \end{equation*}

Using simplified notation:

\begin{equation*} \sum xy = a \sum x + b \sum x^2 + c \sum x^3 \end{equation*}

Partial Derivative with Respect to 'c'

Taking the partial derivative of $S$ with respect to $c$:

\begin{equation*} \frac{\partial S}{\partial c} = \frac{\partial}{\partial c} \sum_{i=1}^n (y_i - a - bx_i - cx_i^2)^2 \end{equation*}

\begin{equation*} \frac{\partial S}{\partial c} = \sum_{i=1}^n 2(y_i - a - bx_i - cx_i^2) \cdot \frac{\partial}{\partial c}(y_i - a - bx_i - cx_i^2) \end{equation*}

\begin{equation*} \frac{\partial S}{\partial c} = \sum_{i=1}^n 2(y_i - a - bx_i - cx_i^2) \cdot (-x_i^2) \end{equation*}

Setting the partial derivative to zero:

\begin{equation*} -2 \sum_{i=1}^n x_i^2(y_i - a - bx_i - cx_i^2) = 0 \end{equation*}

Dividing by -2 and distributing $x_i^2$ and the summation:

\begin{equation*} \sum_{i=1}^n (x_i^2 y_i - a x_i^2 - b x_i^3 - c x_i^4) = 0 \end{equation*}

\begin{equation*} \sum_{i=1}^n x_i^2 y_i - \sum_{i=1}^n a x_i^2 - \sum_{i=1}^n b x_i^3 - \sum_{i=1}^n c x_i^4 = 0 \end{equation*}

Extracting constants from the summations:

\begin{equation*} \sum_{i=1}^n x_i^2 y_i - a \sum_{i=1}^n x_i^2 - b \sum_{i=1}^n x_i^3 - c \sum_{i=1}^n x_i^4 = 0 \end{equation*}

Rearranging the terms, the third normal equation is:

\begin{equation*} \sum x_i^2 y_i = a \sum x_i^2 + b \sum x_i^3 + c \sum x_i^4 \end{equation*}

Using simplified notation:

\begin{equation*} \sum x^2y = a \sum x^2 + b \sum x^3 + c \sum x^4 \end{equation*}

The Complete Set of Normal Equations

Combining the three derived equations, the normal equations for fitting a curve of the form $y = a + bx + cx^2$ to $n$ data points are:

\begin{align*} \sum y &= na + b \sum x + c \sum x^2 \\ \sum xy &= a \sum x + b \sum x^2 + c \sum x^3 \\ \sum x^2y &= a \sum x^2 + b \sum x^3 + c \sum x^4 \end{align*}

These three linear equations involve the unknowns $a$, $b$, and $c$. The values of $\sum x$, $\sum y$, $\sum x^2$, $\sum xy$, $\sum x^3$, $\sum x^2y$, and $\sum x^4$ are calculated from the given data points $(x_i, y_i)$. Once these sums are computed, the system of linear equations can be solved simultaneously to find the values of $a$, $b$, and $c$ that minimize the sum of squared errors and thus provide the best-fit quadratic curve.

Equation Derivation Basis Simplified Form
1 $\frac{\partial S}{\partial a} = 0$ $\sum y = na + b \sum x + c \sum x^2$
2 $\frac{\partial S}{\partial b} = 0$ $\sum xy = a \sum x + b \sum x^2 + c \sum x^3$
3 $\frac{\partial S}{\partial c} = 0$ $\sum x^2y = a \sum x^2 + b \sum x^3 + c \sum x^4$

Revision Table: Key Concepts for Normal Equations

Concept Description
Curve Fitting The process of constructing a curve or mathematical function that has the best fit to a series of data points.
Method of Least Squares A standard approach in regression analysis to approximate the solution of overdetermined systems by minimizing the sum of the squares of the residuals (the differences between the observed and predicted values).
Normal Equations A set of linear equations obtained by setting the partial derivatives of the sum of squared errors with respect to the model parameters equal to zero. Solving these equations gives the parameter values that minimize the sum of squared errors.
Quadratic Curve A curve represented by a second-degree polynomial equation, $y = a + bx + cx^2$.

Additional Information: Related Curve Fitting Concepts

Linear Regression: The simplest form of least squares fitting is linear regression, which fits a straight line $y = a + bx$. The normal equations for linear regression are $\sum y = na + b \sum x$ and $\sum xy = a \sum x + b \sum x^2$. This is a special case of polynomial regression where $c=0$.

Polynomial Regression: Fitting a polynomial of degree $m$, $y = a_0 + a_1 x + a_2 x^2 + \dots + a_m x^m$, involves minimizing the sum of squared errors with respect to the coefficients $a_0, a_1, \dots, a_m$. This leads to a system of $m+1$ normal equations, similar in structure to the ones derived for the quadratic case ($m=2$).

Matrix Form of Normal Equations: The system of normal equations can be conveniently expressed in matrix form. For the quadratic case $y = a + bx + cx^2$, the system can be written as:

\begin{equation*} \begin{pmatrix} n & \sum x & \sum x^2 \\ \sum x & \sum x^2 & \sum x^3 \\ \sum x^2 & \sum x^3 & \sum x^4 \end{pmatrix} \begin{pmatrix} a \\ b \\ c \end{pmatrix} = \begin{pmatrix} \sum y \\ \sum xy \\ \sum x^2y \end{pmatrix} \end{equation*}

Solving this matrix equation for the vector of coefficients $(a, b, c)^T$ provides the best-fit parameters.

Was this answer helpful?

Important Questions from Parabola

  1. In the parabola \(y^2 = 8x\), the focal distance of a point \(P\) lying on it is \(8\) units. Which of the following statements is/are correct?
    1. The coordinates of \(P\) can be \((6, 4\sqrt{3})\).
    2. The perpendicular distance of \(P\) from the directrix of parabola is \(8\) units.
    Select the correct answer using the code given below :
  2. The vertex of the parabola whose focus is (-1, 1) and directrix is 4x + 3y - 24 = 0 is

  3. An equilateral triangle is inscribed in the parabola y2 = 4ax, such that one of the vertices of the triangle coincides with the vertex of the parabola. The length of the side of the triangle is:

  4. What is the equation of the parabola with focus (-3, 0) and directrix x - 3 = 0 ?

  5. In the parabola y 2= x, what is the length of the chord passing through the vertex and inclined to the x-axis at an angle θ?

Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App