SlideShare a Scribd company logo
2
Most read
4
Most read
11
Most read
BY: SOMYA BAGAI
11CSU148
 A LAW THAT CONNECTSTHETWOVARIABLE OF A
GIVEN DATA IS CALLED EMPIRICAL LAW. SEVERAL
EQUATIONS OF DIFFERENT TYPE CAN BE OBTAINED
TO EXPRESS GIVEN DATA APPROX.
 A CURVE OF “BEST FIT “WHICH CAN PASSTHROUGH
MOST OFTHE POINTS OF GIVEN DATA (OR NEAREST)
IS DRAWN .PROCESS OF FINDING SUCH EQUATION
IS CALLED AS CURVE FITTING .
 THE EQ’N OF THE CURVE IS USED TO FIND
UNKNOWN VALUE.
 To find a relationship b/w the set of paired
observations x and y(say), we plot their
corresponding values on the graph , taking one
of the variables along the x-axis and other along
the y-axis i.e. (x1,y1) (X2,Y2)…..,(xn,yn).
 The resulting diagram showing a collection of
dots is called a scatter diagram. A smooth curve
that approximate the above set of points is
known as the approximate curve
 LET y=f(x) be equation of curve to be fitted to given data
points at the
experimental value of PM is and the corresponding
value of fitting curve is NM i.e .
),)....(2,2(),1,1( ynxnyxyx xix
yi
)1(xf
THIS DIFFERENCE
IS CALLED ERROR.
Similarly we say:
To make all errors
positive ,we square
each of them .
eMINMIPPN 11
)(
)2(22
)1(11
xnfynen
xfye
xfye
2^.........2^32^22^1 eneeeS
THE CURVE OF BEST FIT IS THAT FOR WHICH THE SUM OF
SQUARE OF ERRORS IS MINIMUM .THIS IS CALLED THE
PRINCIPLE OF LEAST SQUARES.
METHOD OF LEAST
SQUARE
bxayLET be the straight line to
given data inputs. (1)
2^.......2^22^1
2)^1(2^1
)(1
111
eneeS
bxaye
bxaye
ytye
2^ei
n
i
bxiayiS
1
2)^(
For S to be minimum
(2)
(3)
On simplification of above 2 equations
(4)
(5)
0)(0)1)((2
1
bxayorbxiayi
a
S
n
i
0)2^(0))((2
1
bxaxyorxibxiayi
b
S
n
i
xbnay
2^xbxaxy
EQUATION (4) &(5) ARE NORMAL EQUATIONS
SOLVINGTHEMWILL GIVE USVALUE OF a,b
To fit the parabola: y=a+bx+cx2 :
 Form the normal equations
 ∑y=na+b∑x+c∑x2 , ∑xy=a∑x+b∑x2 +c∑x3 and
∑x2y=a∑x2 + b∑x3 + c∑x4 .
 Solve these as simultaneous equations for a,b,c.
Substitute the values of a,b,c in y=a+bx+cx2 , which
is the required parabola of the best fit.
 In general, the curve y=a+bx+cx2 +……+kxm-1 can
be fitted to a given data by writing m normal
equations.
x y
2 144
3 172.8
4 207.4
5 248.8
6 298.5
Q.FIT A RELATION OF THE FORM ab^x
xBnAY
xBAY
bxay
xaby
lnlnln
^
2^xBxAxY
x y Y xY X^2
2 144 4.969 9.939 4
3 172.8 5.152 15.45 9
4 207.4 5.3346 21.3385 16
5 248.8 5.5166 27.5832 25
6 298.5 5.698 34.192 36
20 26.6669 108.504 90
26.67=5A +B20, 108.504=20A+90B
A=4.6044 & B=0.1824
Y=4.605 + x(0.182)
ln y =4.605 +x(0.182)
y= e^(4.605).e^(0.182)
 The most important application is in data fitting.
The best fit in the least-squares sense minimizes
the sum of squared residuals, a residual being the
difference between an observed value and the
fitted value provided by a model.
 The graphical method has its drawbacks of being
unable to give a unique curve of fit .It fails to give
us values of unknown constants .principle of least
square provides us with a elegant procedure to do
so.
When the problem has substantial uncertainties in
the independent variable (the 'x' variable), then
simple regression and least squares methods have
problems; in such cases, the methodology required for
fitting errors-in-variables models may be considered
instead of that for least squares.
Method of least square

More Related Content

PPTX
Curve fitting
PPTX
Curve fitting
PPTX
Curve fitting of exponential curve
PPTX
Curve Fitting
PPTX
Least square method
PPT
Least square method
PPTX
Curve fitting
PDF
Curve fitting - Lecture Notes
Curve fitting
Curve fitting
Curve fitting of exponential curve
Curve Fitting
Least square method
Least square method
Curve fitting
Curve fitting - Lecture Notes

What's hot (20)

PPTX
METHOD OF LEAST SQURE
PDF
Simple & Multiple Regression Analysis
PPTX
Regression analysis.
PDF
Least Squares Regression Method | Edureka
PPTX
Regression
PPTX
Curve fitting
PDF
Probability Distributions
PPTX
Correlation
PDF
Regression Analysis
PPTX
Probability ,Binomial distribution, Normal distribution, Poisson’s distributi...
PPT
multiple regression
PPTX
Regression Analysis
PDF
Different types of distributions
PPTX
Regression analysis
PPTX
non parametric statistics
PDF
Correlation and Regression
PPTX
Regression
PDF
Chapter 2 part3-Least-Squares Regression
PPT
Skewness & Kurtosis
METHOD OF LEAST SQURE
Simple & Multiple Regression Analysis
Regression analysis.
Least Squares Regression Method | Edureka
Regression
Curve fitting
Probability Distributions
Correlation
Regression Analysis
Probability ,Binomial distribution, Normal distribution, Poisson’s distributi...
multiple regression
Regression Analysis
Different types of distributions
Regression analysis
non parametric statistics
Correlation and Regression
Regression
Chapter 2 part3-Least-Squares Regression
Skewness & Kurtosis
Ad

Viewers also liked (20)

PDF
The least square method
PPTX
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
DOC
Ordinary least squares linear regression
PDF
Curve fitting
PPTX
Hotspots of biodiversity
PPT
Simple linear regression (final)
PPTX
Evolution & structure of erp
PPT
Regression analysis ppt
DOCX
Application of least square method
PPTX
Random scan displays and raster scan displays
PPT
Regression
PPT
Lesson 8 Linear Correlation And Regression
PPT
Regression analysis
PPS
Correlation and regression
PPTX
Slideshare ppt
DOCX
Simpson’s rule short answer question
PPTX
Least Squares
PDF
Physical and Conceptual Identifier Dispersion: Measures and Relation to Fault...
PDF
A tree kernel based approach for clone detection
The least square method
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Ordinary least squares linear regression
Curve fitting
Hotspots of biodiversity
Simple linear regression (final)
Evolution & structure of erp
Regression analysis ppt
Application of least square method
Random scan displays and raster scan displays
Regression
Lesson 8 Linear Correlation And Regression
Regression analysis
Correlation and regression
Slideshare ppt
Simpson’s rule short answer question
Least Squares
Physical and Conceptual Identifier Dispersion: Measures and Relation to Fault...
A tree kernel based approach for clone detection
Ad

Similar to Method of least square (20)

PPTX
Curve fitting
PDF
Curved fitting by the method of least squar- fitting of straight line.
PDF
Curvefitting
PDF
me310_5_regression.pdf numerical method for engineering
PDF
PPTX
numerical method chapter 5.pptxggggvvgggbg
PDF
Regression Analysis.pdf
PPTX
Least Squares Fitting
DOC
Lesson 8
PPTX
Interpolation.pptx
PDF
CHAPTER 4.1.pdf
PPTX
Extrapolation
PPT
Econometrics ch4
PPTX
Regression
PPTX
Simple linear regression
PDF
Curve Fitting detail explanation stat.pdf
PPTX
Regression.pptx
PDF
Scientific Computing with Python Webinar 9/18/2009:Curve Fitting
PPTX
curve fitting or regression analysis-1.pptx
PDF
The new national curriculum cited quality assurance criteria for quality cont...
Curve fitting
Curved fitting by the method of least squar- fitting of straight line.
Curvefitting
me310_5_regression.pdf numerical method for engineering
numerical method chapter 5.pptxggggvvgggbg
Regression Analysis.pdf
Least Squares Fitting
Lesson 8
Interpolation.pptx
CHAPTER 4.1.pdf
Extrapolation
Econometrics ch4
Regression
Simple linear regression
Curve Fitting detail explanation stat.pdf
Regression.pptx
Scientific Computing with Python Webinar 9/18/2009:Curve Fitting
curve fitting or regression analysis-1.pptx
The new national curriculum cited quality assurance criteria for quality cont...

Recently uploaded (20)

PDF
Electronic commerce courselecture one. Pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Approach and Philosophy of On baking technology
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Big Data Technologies - Introduction.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
cuic standard and advanced reporting.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Cloud computing and distributed systems.
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
Electronic commerce courselecture one. Pdf
Network Security Unit 5.pdf for BCA BBA.
Approach and Philosophy of On baking technology
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Chapter 3 Spatial Domain Image Processing.pdf
Review of recent advances in non-invasive hemoglobin estimation
Mobile App Security Testing_ A Comprehensive Guide.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
NewMind AI Weekly Chronicles - August'25 Week I
Programs and apps: productivity, graphics, security and other tools
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Big Data Technologies - Introduction.pptx
Unlocking AI with Model Context Protocol (MCP)
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
cuic standard and advanced reporting.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Cloud computing and distributed systems.
Digital-Transformation-Roadmap-for-Companies.pptx

Method of least square

  • 2.  A LAW THAT CONNECTSTHETWOVARIABLE OF A GIVEN DATA IS CALLED EMPIRICAL LAW. SEVERAL EQUATIONS OF DIFFERENT TYPE CAN BE OBTAINED TO EXPRESS GIVEN DATA APPROX.  A CURVE OF “BEST FIT “WHICH CAN PASSTHROUGH MOST OFTHE POINTS OF GIVEN DATA (OR NEAREST) IS DRAWN .PROCESS OF FINDING SUCH EQUATION IS CALLED AS CURVE FITTING .  THE EQ’N OF THE CURVE IS USED TO FIND UNKNOWN VALUE.
  • 3.  To find a relationship b/w the set of paired observations x and y(say), we plot their corresponding values on the graph , taking one of the variables along the x-axis and other along the y-axis i.e. (x1,y1) (X2,Y2)…..,(xn,yn).  The resulting diagram showing a collection of dots is called a scatter diagram. A smooth curve that approximate the above set of points is known as the approximate curve
  • 4.  LET y=f(x) be equation of curve to be fitted to given data points at the experimental value of PM is and the corresponding value of fitting curve is NM i.e . ),)....(2,2(),1,1( ynxnyxyx xix yi )1(xf
  • 5. THIS DIFFERENCE IS CALLED ERROR. Similarly we say: To make all errors positive ,we square each of them . eMINMIPPN 11 )( )2(22 )1(11 xnfynen xfye xfye 2^.........2^32^22^1 eneeeS THE CURVE OF BEST FIT IS THAT FOR WHICH THE SUM OF SQUARE OF ERRORS IS MINIMUM .THIS IS CALLED THE PRINCIPLE OF LEAST SQUARES.
  • 6. METHOD OF LEAST SQUARE bxayLET be the straight line to given data inputs. (1) 2^.......2^22^1 2)^1(2^1 )(1 111 eneeS bxaye bxaye ytye 2^ei n i bxiayiS 1 2)^(
  • 7. For S to be minimum (2) (3) On simplification of above 2 equations (4) (5) 0)(0)1)((2 1 bxayorbxiayi a S n i 0)2^(0))((2 1 bxaxyorxibxiayi b S n i xbnay 2^xbxaxy EQUATION (4) &(5) ARE NORMAL EQUATIONS SOLVINGTHEMWILL GIVE USVALUE OF a,b
  • 8. To fit the parabola: y=a+bx+cx2 :  Form the normal equations  ∑y=na+b∑x+c∑x2 , ∑xy=a∑x+b∑x2 +c∑x3 and ∑x2y=a∑x2 + b∑x3 + c∑x4 .  Solve these as simultaneous equations for a,b,c. Substitute the values of a,b,c in y=a+bx+cx2 , which is the required parabola of the best fit.  In general, the curve y=a+bx+cx2 +……+kxm-1 can be fitted to a given data by writing m normal equations.
  • 9. x y 2 144 3 172.8 4 207.4 5 248.8 6 298.5 Q.FIT A RELATION OF THE FORM ab^x xBnAY xBAY bxay xaby lnlnln ^ 2^xBxAxY
  • 10. x y Y xY X^2 2 144 4.969 9.939 4 3 172.8 5.152 15.45 9 4 207.4 5.3346 21.3385 16 5 248.8 5.5166 27.5832 25 6 298.5 5.698 34.192 36 20 26.6669 108.504 90 26.67=5A +B20, 108.504=20A+90B A=4.6044 & B=0.1824 Y=4.605 + x(0.182) ln y =4.605 +x(0.182) y= e^(4.605).e^(0.182)
  • 11.  The most important application is in data fitting. The best fit in the least-squares sense minimizes the sum of squared residuals, a residual being the difference between an observed value and the fitted value provided by a model.  The graphical method has its drawbacks of being unable to give a unique curve of fit .It fails to give us values of unknown constants .principle of least square provides us with a elegant procedure to do so.
  • 12. When the problem has substantial uncertainties in the independent variable (the 'x' variable), then simple regression and least squares methods have problems; in such cases, the methodology required for fitting errors-in-variables models may be considered instead of that for least squares.