Professional Documents
Culture Documents
Sol. Suppose there be two variables x and y which give us a set of n pairs of values (x1,
y1) (xv, yr). To find an approximate idea about relationship of these two variables, we
plot these n paired points on graph like scatter or dot diagram. From scatter diagram,
we get only non-mathematical relation between two variables. Thus an exact
mathematical relation between two variables is called curve fitting. Curve fitting means
to form an equation of curve from given data. We get a curve of Best fit.
The following methods are used for curve fitting:
1. Graphical method
2. Method of group averages
3. Principle of least squares
4. Method of moments
Q. 4.2. State two differences between curve fitting and Interpolation.
Sol. 1. Curve fitting is an exact relationship between two variables where as
interpolation is process of estimating the value of dependent variable y for a given value
of independent variable x in given range.
2. In curve fitting, we get a curve of best fit. In interpolation, we attempt to find a simple
function say (x) such that f (x) and (x) agrees at set of specified values.
Q. 4.3. Explain method of least squares for curve fitting.
Sol. The principle of least squares provides an elegant procedure of fitting a unique
The- curve of best fit is that for which e. are small i.e. sum of squares of error is
minimum.
From (2)
For E to be minimum
On solving, we get
The equations (3), (4) and (5) are known as normal equations.
3. Solve these normal equations as simultaneous equations for a and b (use Cramers
rule). 4. Substitute value of a and b in y = a + bx, which is required line of best fit.
Applications:
1. It gives best data fit.
2. It is applicable to both linear and non-linear curves.
3. It gives accurate result.
Q. 4.7. Fit a polynomial second degree by using the following data points.
Step 3 Table
On solving
Step 3.
Q. 4.17 For the following for y measured for a set of values of x, fit a second
degree
polynomial: