Skip to main content

CURVE FITTING BY LEAST SQARES


                CURVE FITTING BY LEAST SQUARES

    

     INTRODUCTION

           Let us suppose that we wish to approximate (describe) a certain type of function that best expresses that association that exists between variables. A scatter plot of the set of values of the variables makes it possible to visualize a smooth cure that effectively approximates the given data set. A more useful way to represent this sort of approximating curve is by means of an equation or a formula. A term applied to the process of determining the equation and/or estimating the parameters appearing in the equation of approximating curve, is commonly called curve fitting
.

           It is relevant to point out that the relationship between the variables may be functional or regression. In functional relationship, a variable Y, has a true corresponding to each possible value or of another variable X, i.e. there is no question of random variation in the values of Y, and we make no relationship, i.e. problems of approximation and not of regression (already discussed earlier). Such relationships which are common in the natural sciences may be linear or non-linear.

  APPROXIMATING CURES AND THE PRINCIPLE OF LEAST SQUARES

     The data sets encountered in practice greatly vary in nature. It is therefore necessary to decide which type of approximating curve and their equation should be used. For this purpose, some of many common type of approximating curves and their equation are given below:

  1. A straight line or linear curve,                                                 Y= a + bX
  2. A parabola of second degree or quadratic curve,                Y= a + bX + cX2
  3.  A parabola of third degree or cubic curve,                                      Y = a + bX + cX2 + dX3 

    and so on.
        
          In all these equation Y is the dependent and X, the independent variable. In some situation, however, the variable X and Y can be reversed.

         We may approximate a given set of data by drawing a free hand curve, covering most of the points plotted. But it is clear that different individual would draw different curve according to their personal judgment. Therefore this procedure of fitting a curve is not satisfactory.

            The principle of least squares is applicable to curve fitting where the purpose is simply one of smoothing ( or approximation ) of a set of observations. Accordingly, we choose to determine the value of the parameters in the equations of approximating curves so as to make the sum of squares of residuals a minimum. A residual has been defined as the difference between the observed value and the corresponding value of the approximating curve.
         
           

     
    

Comments

Popular posts from this blog

THERMAL PROPERTIES

THERMAL PROPERTIES OF METER  The crocus flower is a natural thermometer. It opens when the temperature is precisely 23 degree centigrade and closes when the temperature drops. Liquid in Glass Thermometer Construction: A liquid in glass thermometer has a bulb whit a log capillary tube of uniform and fine bore. PRINCIPLE      Liquid in glass thermometer is made on he principle of expansion of heating.       A suitable liquid is filed in the bulb. When  we touch the bulb with a hot body, the liquid in it expands and rises in the tube. the glass stem of a thermometer is thick and acts as a cylindrical lens. This makes it easy to see the liquid lever in the glass tube. THE MERCURY IN GLASS THERMOMETERS\ Mercury freezes at -39 degree centigrade and boils at 357 degree centigrade. Mercury has all the thermometer properties. So mercury is one of the most suitable thermometer materials. Murcury in glass thermometer are widely used in laboratories, clinic and house to measure tempertatures in th

TIME SERIES ANALYSIS

Introduction                 A time series consists of numerical data collected observed or recorded at more or less regular intervals of time each hour, day, month, quarter or year, More specifically, it is any set of data in which observation are arranged in a chronological order, Examples of time series are the hourly temperature recorded at a locality for a period of year, the weekly prices of wheat in Lahore, the monthly consumption of electricity in a certain town, the monthly total of passengers carried by rial,the quarterly sales of a certain fertilizer, the annual rainfall at Karachi for a number of year, the enrollment of students in a college or university over a number of year and so forth.               The analysis of a time series is a process by which a set of observation in a time series in analyses.Time series analysis is rather a difficult topic but we shall limit our discussion to the basics of time series analysis          The observation in a time series, d

HEAT AND THERMODYNAMICS

U                        HEAT AND THERMODYNAMICS        Thermodynamics deals with various phenomena of energy and related properties of matter, especially the transformation of heat into other forms of energy. An example of such transformation is the process converting heat into mechanical work. Thermodynamics thus plays central role in technology, since almost all the raw energy available for our use is liberated in the form of heat. in this topic we shall their significance and applications.               KINETIC THEORY OF GASES       The behavior of gases is well accounted for by the kinetic theory based on microscopic approach. Evidence in favor of the theory is exhibited in diffusion of gases and Brownian motion of smoke particles etc.      The following postulates help to formulate a mathematical model of gases.      A finite volume of gas consists of very large number of molecules.      The size of the molecules is much smaller then the separation between molecules.