SlideShare a Scribd company logo
1 of 13
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

What's hot

Least square method
Least square methodLeast square method
Least square methodPandidurai P
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis pptElkana Rorio
 
Regression analysis.
Regression analysis.Regression analysis.
Regression analysis.sonia gupta
 
Regression analysis
Regression analysisRegression analysis
Regression analysisbijuhari
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression AnalysisASAD ALI
 
Basics of Regression analysis
 Basics of Regression analysis Basics of Regression analysis
Basics of Regression analysisMahak Vijayvargiya
 
Correlation and regression analysis
Correlation and regression analysisCorrelation and regression analysis
Correlation and regression analysis_pem
 
Karl pearson's correlation
Karl pearson's correlationKarl pearson's correlation
Karl pearson's correlationfairoos1
 
Multiple Correlation - Thiyagu
Multiple Correlation - ThiyaguMultiple Correlation - Thiyagu
Multiple Correlation - ThiyaguThiyagu K
 
Principle of Least Square, its Properties, Regression line and standard error...
Principle of Least Square, its Properties, Regression line and standard error...Principle of Least Square, its Properties, Regression line and standard error...
Principle of Least Square, its Properties, Regression line and standard error...Ali Lodhra
 
Regression
Regression Regression
Regression Ali Raza
 
Linear regression
Linear regressionLinear regression
Linear regressionTech_MX
 
Mpc 006 - 02-03 partial and multiple correlation
Mpc 006 - 02-03 partial and multiple correlationMpc 006 - 02-03 partial and multiple correlation
Mpc 006 - 02-03 partial and multiple correlationVasant Kothari
 
Simple & Multiple Regression Analysis
Simple & Multiple Regression AnalysisSimple & Multiple Regression Analysis
Simple & Multiple Regression AnalysisShailendra Tomar
 

What's hot (20)

Curve fitting
Curve fittingCurve fitting
Curve fitting
 
Least square method
Least square methodLeast square method
Least square method
 
Regression analysis ppt
Regression analysis pptRegression analysis ppt
Regression analysis ppt
 
Regression analysis.
Regression analysis.Regression analysis.
Regression analysis.
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Basics of Regression analysis
 Basics of Regression analysis Basics of Regression analysis
Basics of Regression analysis
 
Correlation and regression analysis
Correlation and regression analysisCorrelation and regression analysis
Correlation and regression analysis
 
Karl pearson's correlation
Karl pearson's correlationKarl pearson's correlation
Karl pearson's correlation
 
Multiple Correlation - Thiyagu
Multiple Correlation - ThiyaguMultiple Correlation - Thiyagu
Multiple Correlation - Thiyagu
 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
 
Principle of Least Square, its Properties, Regression line and standard error...
Principle of Least Square, its Properties, Regression line and standard error...Principle of Least Square, its Properties, Regression line and standard error...
Principle of Least Square, its Properties, Regression line and standard error...
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Regression
RegressionRegression
Regression
 
Correlation Analysis
Correlation AnalysisCorrelation Analysis
Correlation Analysis
 
Regression
Regression Regression
Regression
 
Linear regression
Linear regressionLinear regression
Linear regression
 
Mpc 006 - 02-03 partial and multiple correlation
Mpc 006 - 02-03 partial and multiple correlationMpc 006 - 02-03 partial and multiple correlation
Mpc 006 - 02-03 partial and multiple correlation
 
Simple & Multiple Regression Analysis
Simple & Multiple Regression AnalysisSimple & Multiple Regression Analysis
Simple & Multiple Regression Analysis
 
Linear regression
Linear regressionLinear regression
Linear regression
 

Viewers also liked

The least square method
The least square methodThe least square method
The least square methodkevinlefol
 
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, InterpolationApplied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, InterpolationBrian Erandio
 
Curve fitting - Lecture Notes
Curve fitting - Lecture NotesCurve fitting - Lecture Notes
Curve fitting - Lecture NotesDr. Nirav Vyas
 
Ordinary least squares linear regression
Ordinary least squares linear regressionOrdinary least squares linear regression
Ordinary least squares linear regressionElkana Rorio
 
Hotspots of biodiversity
Hotspots of biodiversityHotspots of biodiversity
Hotspots of biodiversitySomya Bagai
 
Simple linear regression (final)
Simple linear regression (final)Simple linear regression (final)
Simple linear regression (final)Harsh Upadhyay
 
Evolution & structure of erp
Evolution & structure of erpEvolution & structure of erp
Evolution & structure of erpSomya Bagai
 
Application of least square method
Application of least square methodApplication of least square method
Application of least square methodare you
 
Random scan displays and raster scan displays
Random scan displays and raster scan displaysRandom scan displays and raster scan displays
Random scan displays and raster scan displaysSomya Bagai
 
Lesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And RegressionLesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And RegressionSumit Prajapati
 
Regression analysis
Regression analysisRegression analysis
Regression analysisRavi shankar
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regressionKhalid Aziz
 
Physical and Conceptual Identifier Dispersion: Measures and Relation to Fault...
Physical and Conceptual Identifier Dispersion: Measures and Relation to Fault...Physical and Conceptual Identifier Dispersion: Measures and Relation to Fault...
Physical and Conceptual Identifier Dispersion: Measures and Relation to Fault...ICSM 2010
 
A tree kernel based approach for clone detection
A tree kernel based approach for clone detectionA tree kernel based approach for clone detection
A tree kernel based approach for clone detectionICSM 2010
 

Viewers also liked (20)

The least square method
The least square methodThe least square method
The least square method
 
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, InterpolationApplied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
Applied Numerical Methods Curve Fitting: Least Squares Regression, Interpolation
 
Curve fitting - Lecture Notes
Curve fitting - Lecture NotesCurve fitting - Lecture Notes
Curve fitting - Lecture Notes
 
Ordinary least squares linear regression
Ordinary least squares linear regressionOrdinary least squares linear regression
Ordinary least squares linear regression
 
Curve fitting
Curve fittingCurve fitting
Curve fitting
 
Hotspots of biodiversity
Hotspots of biodiversityHotspots of biodiversity
Hotspots of biodiversity
 
Simple linear regression (final)
Simple linear regression (final)Simple linear regression (final)
Simple linear regression (final)
 
Evolution & structure of erp
Evolution & structure of erpEvolution & structure of erp
Evolution & structure of erp
 
Application of least square method
Application of least square methodApplication of least square method
Application of least square method
 
Random scan displays and raster scan displays
Random scan displays and raster scan displaysRandom scan displays and raster scan displays
Random scan displays and raster scan displays
 
Regression
RegressionRegression
Regression
 
Lesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And RegressionLesson 8 Linear Correlation And Regression
Lesson 8 Linear Correlation And Regression
 
Regression analysis
Regression analysisRegression analysis
Regression analysis
 
Correlation and regression
Correlation and regressionCorrelation and regression
Correlation and regression
 
Slideshare ppt
Slideshare pptSlideshare ppt
Slideshare ppt
 
Simpson’s rule short answer question
Simpson’s rule short answer questionSimpson’s rule short answer question
Simpson’s rule short answer question
 
Least Squares
Least SquaresLeast Squares
Least Squares
 
Romberg
RombergRomberg
Romberg
 
Physical and Conceptual Identifier Dispersion: Measures and Relation to Fault...
Physical and Conceptual Identifier Dispersion: Measures and Relation to Fault...Physical and Conceptual Identifier Dispersion: Measures and Relation to Fault...
Physical and Conceptual Identifier Dispersion: Measures and Relation to Fault...
 
A tree kernel based approach for clone detection
A tree kernel based approach for clone detectionA tree kernel based approach for clone detection
A tree kernel based approach for clone detection
 

Similar to Method of least square

02.21.2020 Algebra I Quadraic Functions.ppt
02.21.2020  Algebra I Quadraic Functions.ppt02.21.2020  Algebra I Quadraic Functions.ppt
02.21.2020 Algebra I Quadraic Functions.pptjannelewlawas
 
4 pages from matlab an introduction with app.-2
4 pages from matlab an introduction with app.-24 pages from matlab an introduction with app.-2
4 pages from matlab an introduction with app.-2Malika khalil
 
Simple Linear Regression
Simple Linear RegressionSimple Linear Regression
Simple Linear RegressionSharlaine Ruth
 
6. 1 graphing quadratics
6. 1 graphing quadratics6. 1 graphing quadratics
6. 1 graphing quadraticsJessica Garcia
 
4.2 stem parabolas revisited
4.2 stem parabolas revisited4.2 stem parabolas revisited
4.2 stem parabolas revisitedmath123c
 
Linear equation in two variables
Linear equation in two variablesLinear equation in two variables
Linear equation in two variablesMRXNOOBGAMING
 
Families of curves
Families of curvesFamilies of curves
Families of curvesTarun Gehlot
 
Pptpersamaankuadrat 150205080445-conversion-gate02
Pptpersamaankuadrat 150205080445-conversion-gate02Pptpersamaankuadrat 150205080445-conversion-gate02
Pptpersamaankuadrat 150205080445-conversion-gate02MasfuahFuah
 
Comparison Results of Trapezoidal, Simpson’s 13 rule, Simpson’s 38 rule, and ...
Comparison Results of Trapezoidal, Simpson’s 13 rule, Simpson’s 38 rule, and ...Comparison Results of Trapezoidal, Simpson’s 13 rule, Simpson’s 38 rule, and ...
Comparison Results of Trapezoidal, Simpson’s 13 rule, Simpson’s 38 rule, and ...BRNSS Publication Hub
 

Similar to Method of least square (20)

02.21.2020 Algebra I Quadraic Functions.ppt
02.21.2020  Algebra I Quadraic Functions.ppt02.21.2020  Algebra I Quadraic Functions.ppt
02.21.2020 Algebra I Quadraic Functions.ppt
 
Unit v
Unit vUnit v
Unit v
 
4 pages from matlab an introduction with app.-2
4 pages from matlab an introduction with app.-24 pages from matlab an introduction with app.-2
4 pages from matlab an introduction with app.-2
 
Simple Linear Regression
Simple Linear RegressionSimple Linear Regression
Simple Linear Regression
 
6. 1 graphing quadratics
6. 1 graphing quadratics6. 1 graphing quadratics
6. 1 graphing quadratics
 
4.2 stem parabolas revisited
4.2 stem parabolas revisited4.2 stem parabolas revisited
4.2 stem parabolas revisited
 
Lesson 8
Lesson 8Lesson 8
Lesson 8
 
maths convergence.pdf
maths convergence.pdfmaths convergence.pdf
maths convergence.pdf
 
1525 equations of lines in space
1525 equations of lines in space1525 equations of lines in space
1525 equations of lines in space
 
Grph quad fncts
Grph quad fnctsGrph quad fncts
Grph quad fncts
 
Linear equation in two variables
Linear equation in two variablesLinear equation in two variables
Linear equation in two variables
 
Regression Analysis.pdf
Regression Analysis.pdfRegression Analysis.pdf
Regression Analysis.pdf
 
Families of curves
Families of curvesFamilies of curves
Families of curves
 
Quadratic equations
Quadratic equationsQuadratic equations
Quadratic equations
 
Curve fitting
Curve fittingCurve fitting
Curve fitting
 
Pptpersamaankuadrat 150205080445-conversion-gate02
Pptpersamaankuadrat 150205080445-conversion-gate02Pptpersamaankuadrat 150205080445-conversion-gate02
Pptpersamaankuadrat 150205080445-conversion-gate02
 
Calc 7.1b
Calc 7.1bCalc 7.1b
Calc 7.1b
 
Interpolation.pptx
Interpolation.pptxInterpolation.pptx
Interpolation.pptx
 
Comparison Results of Trapezoidal, Simpson’s 13 rule, Simpson’s 38 rule, and ...
Comparison Results of Trapezoidal, Simpson’s 13 rule, Simpson’s 38 rule, and ...Comparison Results of Trapezoidal, Simpson’s 13 rule, Simpson’s 38 rule, and ...
Comparison Results of Trapezoidal, Simpson’s 13 rule, Simpson’s 38 rule, and ...
 
Math project
Math projectMath project
Math project
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGSujit Pal
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 

Recently uploaded (20)

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Google AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAGGoogle AI Hackathon: LLM based Evaluator for RAG
Google AI Hackathon: LLM based Evaluator for RAG
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.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.