SlideShare a Scribd company logo
1 of 28
Download to read offline
NUMERICAL METHODS WITH
APPLICATIONS
(MEC500)
Ts.Dr. ZAINOOR HAILMEE SOLIHIN
Faculty of Mechanical Engineering
OUTCOMES OF CHAPTER 4
• To fit curves to data using available techniques.
• To assess the reliability of the answers obtained.
• To choose the preferred method for any particular problem.
LEARNING OUTCOME
• To study different techniques to fit curves or approximating
functions to the set of discrete data and to manipulate these
approximating functions.
• Least-squares regression. Get the ‘best’ straight line to fit
through a set of uncertain data points.
• Interpolation. Estimate intermediate values between precise data
points by deriving polynomials in equation forms. Two methods to
be investigated:
(a) Newton’s interpolating polynomial,
(b) Lagrange interpolating polynomial
CURVE FITTING
INTRODUCTION
• Curve fitting:
• finding a curve (approximation) which has the best fit to a series of
discrete data
• The curve is the estimate of the trend of the dependent variables
• the curve can be used to determine the intermediate estimate of the data.
• Approaches for curve fitting:
1. Least-square regression
• Data with significant error or noise
• Curve doesn’t pass all data points – curve represent general trend of the data
2. Interpolation
• Data is known to be precise
• Curve passes all data point
CURVE FITTING
INTRODUCTION
• Typical data
• is discrete but we are interested to know the intermediate value
• need to estimate these intermediate values
LEAST SQUARE
REGRESSION
INTRODUCTION
Regression?
• modeling of relationship between dependent and independent
variables
• finding a curve which represent the best approximation of a series of
data points
• the curve is the estimate of the trend of dependent variables
• How to find the curve?
• by deriving the function of the curve
• functions can be linear, polynomial & exponential
LEAST SQUARE REGRESSION
INTRODUCTION
•
LINEAR REGRESSION
•
• Ideally, if all the residuals are zero, one may have found an equation in which all the
points lie on the model.
• Thus, minimization of the residual is an objective of obtaining regression coefficients.
LINEAR REGRESSION
•
n = total number of points
This is an inadequate criterion no unique model
LINEAR REGRESSION
• Examples of some criteria for “best fit” that are
inadequate for regression:
a) minimizes the sum of the residuals,
b) minimizes the sum of the absolute values
of the residuals, and
c) minimizes the maximum error of any
individual point.
• However, a more practical criterion for
least-squares approach is to minimize the sum
of the squares of the residuals, that is
LINEAR REGRESSION
• Best strategy! Yields a unique line for a given set of data.
• Using the regression model:
• the slope and intercept producing the best fit can be found using:
EXAMPLE 1 - LINEAR REGRESSION
Fit the best straight line to the following set of x and y values
using the method of least-squares.
Solution:
0 1 2 3 4 5 6
2 5 9 15 17 24 25
0 2 0 0
1 5 1 5
2 9 4 18
3 15 9 45
4 17 16 68
5 24 25 120
6 25 36 150
21 97 91 406
EXAMPLE 1 - LINEAR REGRESSION
Knowing the linear equation and using known value:
21 97 91 406
EXAMPLE 1 - LINEAR REGRESSION
Least-square fit is given by:
ERROR QUANTIFICATION IN
LINEAR REGRESSION
• for a straight line, the sum of the squares of the estimate residuals:
• Standard error of the estimate:
• Quantify the spread of data around the
regression line
• Used to quantify the ‘goodness’ of a fit
ERROR QUANTIFICATION IN
LINEAR REGRESSION
•
ERROR QUANTIFICATION IN
LINEAR REGRESSION
•
EXAMPLE 2 - LINEAR REGRESSION
• Determine the coefficient of correlation for the linear regression
line obtained in the Example 1
0 2
1 5
2 9
3 15
4 17
5 24
6 25
21 97
POLYNOMIAL REGRESSION
NON-LINEAR MODEL
• The linear least-squares regression procedure
can be readily extended to fit data to a
higher-order polynomial.
• Again, the idea is to minimize the sum of the
squares of the estimate residuals.
• The figure shows the same data fit with:
a) A first order polynomial
b) A second order polynomial
• For second order polynomial regression:
POLYNOMIAL REGRESSION
NON-LINEAR MODEL
• For a second order polynomial, the best fit would mean minimizing:
• In general, this would mean minimizing:
• The standard error for fitting an mth
order polynomial to n-data points is:
because the mth
order polynomial has (m+1) coefficients.
• The coefficient of determination r2
is still found using:
POLYNOMIAL REGRESSION
NON-LINEAR MODEL
• To find the constants of the polynomial model, we partially
differentiate it with respect to each of the unknown coefficients and
set them equal to zero.
POLYNOMIAL REGRESSION
NON-LINEAR MODEL
• These equations can be set equal to zero and rearranged to develop
the following set of normal equations:
POLYNOMIAL REGRESSION
NON-LINEAR MODEL
•
EXAMPLE 4
POLYNOMIAL REGRESSION
• Fit a second-order polynomial
0 2.1
1 7.7
2 13.6
3 27.2
4 40.9
5 61.1
QUESTION 1
• Use least-squares regression to fit a straight
line to the respective data.
• Along with the slope and the intercept,
compute the standard error of the estimate
and the correlation coefficient. Plot the data
and the regression line.
• Recompute, but use polynomial regression to
fit a parabola to the data.
• Compare the results.
x y
1 1
2 1.5
3 2
4 3
5 4
6 5
7 8
8 10
9 13
LINEARIZATION OF
NONLINEAR RELATIONSHIP
• Linear regression provides a powerful technique for fitting a best
line to data.
• In some cases, techniques such as polynomial regression, are
appropriate.
• For others, transformations can be used to express the data in a
form that is compatible with linear regression.
LINEARIZATION OF
NONLINEAR RELATIONSHIP
QUESTION 2: EXCEL
EXERCISE
LINEARIZATION OF NONLINEAR RELATIONSHIP
0.75 1.2
2 1.95
3 2
4 2.4
6 2.4
8 2.7
8.5 2.6
Fit the following data with:
a) a saturation-growth-rate model,
b) a power equation, and
c) a parabola.
In each case, plot the data and the
equation.

More Related Content

Similar to CHAPTER 4.1.pdf

Unit III_Ch 17_Probablistic Methods.pptx
Unit III_Ch 17_Probablistic Methods.pptxUnit III_Ch 17_Probablistic Methods.pptx
Unit III_Ch 17_Probablistic Methods.pptxsmithashetty24
 
Simple Regression Analysis ch12.pptx
Simple Regression Analysis ch12.pptxSimple Regression Analysis ch12.pptx
Simple Regression Analysis ch12.pptxSoumyaBansal7
 
Gradient descent method
Gradient descent methodGradient descent method
Gradient descent methodSanghyuk Chun
 
dimension reduction.ppt
dimension reduction.pptdimension reduction.ppt
dimension reduction.pptDeadpool120050
 
PR-305: Exploring Simple Siamese Representation Learning
PR-305: Exploring Simple Siamese Representation LearningPR-305: Exploring Simple Siamese Representation Learning
PR-305: Exploring Simple Siamese Representation LearningSungchul Kim
 
604_multiplee.ppt
604_multiplee.ppt604_multiplee.ppt
604_multiplee.pptRufesh
 
Exploring Simple Siamese Representation Learning
Exploring Simple Siamese Representation LearningExploring Simple Siamese Representation Learning
Exploring Simple Siamese Representation LearningSungchul Kim
 
Like-for-Like Comparisons of Machine Learning Algorithms - Dominik Dahlem, Bo...
Like-for-Like Comparisons of Machine Learning Algorithms - Dominik Dahlem, Bo...Like-for-Like Comparisons of Machine Learning Algorithms - Dominik Dahlem, Bo...
Like-for-Like Comparisons of Machine Learning Algorithms - Dominik Dahlem, Bo...WithTheBest
 
Unit-III Correlation and Regression.pptx
Unit-III Correlation and Regression.pptxUnit-III Correlation and Regression.pptx
Unit-III Correlation and Regression.pptxAnusuya123
 
Statr session 23 and 24
Statr session 23 and 24Statr session 23 and 24
Statr session 23 and 24Ruru Chowdhury
 
Polynomial regression
Polynomial regressionPolynomial regression
Polynomial regressionnaveedaliabad
 
ARIMA Model for analysis of time series data.ppt
ARIMA Model for analysis of time series data.pptARIMA Model for analysis of time series data.ppt
ARIMA Model for analysis of time series data.pptREFOTDEBuea
 
Simple & Multiple Regression Analysis
Simple & Multiple Regression AnalysisSimple & Multiple Regression Analysis
Simple & Multiple Regression AnalysisShailendra Tomar
 
Factor analysis ppt
Factor analysis pptFactor analysis ppt
Factor analysis pptMukesh Bisht
 
An Introduction to Factor analysis ppt
An Introduction to Factor analysis pptAn Introduction to Factor analysis ppt
An Introduction to Factor analysis pptMukesh Bisht
 

Similar to CHAPTER 4.1.pdf (20)

Unit III_Ch 17_Probablistic Methods.pptx
Unit III_Ch 17_Probablistic Methods.pptxUnit III_Ch 17_Probablistic Methods.pptx
Unit III_Ch 17_Probablistic Methods.pptx
 
Simple Regression Analysis ch12.pptx
Simple Regression Analysis ch12.pptxSimple Regression Analysis ch12.pptx
Simple Regression Analysis ch12.pptx
 
Gradient descent method
Gradient descent methodGradient descent method
Gradient descent method
 
dimension reduction.ppt
dimension reduction.pptdimension reduction.ppt
dimension reduction.ppt
 
PR-305: Exploring Simple Siamese Representation Learning
PR-305: Exploring Simple Siamese Representation LearningPR-305: Exploring Simple Siamese Representation Learning
PR-305: Exploring Simple Siamese Representation Learning
 
604_multiplee.ppt
604_multiplee.ppt604_multiplee.ppt
604_multiplee.ppt
 
Exploring Simple Siamese Representation Learning
Exploring Simple Siamese Representation LearningExploring Simple Siamese Representation Learning
Exploring Simple Siamese Representation Learning
 
Like-for-Like Comparisons of Machine Learning Algorithms - Dominik Dahlem, Bo...
Like-for-Like Comparisons of Machine Learning Algorithms - Dominik Dahlem, Bo...Like-for-Like Comparisons of Machine Learning Algorithms - Dominik Dahlem, Bo...
Like-for-Like Comparisons of Machine Learning Algorithms - Dominik Dahlem, Bo...
 
Unit-III Correlation and Regression.pptx
Unit-III Correlation and Regression.pptxUnit-III Correlation and Regression.pptx
Unit-III Correlation and Regression.pptx
 
Statr session 23 and 24
Statr session 23 and 24Statr session 23 and 24
Statr session 23 and 24
 
Polynomial regression
Polynomial regressionPolynomial regression
Polynomial regression
 
Anomaly detection
Anomaly detectionAnomaly detection
Anomaly detection
 
ARIMA Model.ppt
ARIMA Model.pptARIMA Model.ppt
ARIMA Model.ppt
 
ARIMA Model for analysis of time series data.ppt
ARIMA Model for analysis of time series data.pptARIMA Model for analysis of time series data.ppt
ARIMA Model for analysis of time series data.ppt
 
ARIMA Model.ppt
ARIMA Model.pptARIMA Model.ppt
ARIMA Model.ppt
 
Simple & Multiple Regression Analysis
Simple & Multiple Regression AnalysisSimple & Multiple Regression Analysis
Simple & Multiple Regression Analysis
 
Data mining model
Data mining modelData mining model
Data mining model
 
Factor analysis ppt
Factor analysis pptFactor analysis ppt
Factor analysis ppt
 
An Introduction to Factor analysis ppt
An Introduction to Factor analysis pptAn Introduction to Factor analysis ppt
An Introduction to Factor analysis ppt
 
Module-2_ML.pdf
Module-2_ML.pdfModule-2_ML.pdf
Module-2_ML.pdf
 

Recently uploaded

Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSISrknatarajan
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...ranjana rawat
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 

Recently uploaded (20)

Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
(TARA) Talegaon Dabhade Call Girls Just Call 7001035870 [ Cash on Delivery ] ...
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 

CHAPTER 4.1.pdf

  • 1. NUMERICAL METHODS WITH APPLICATIONS (MEC500) Ts.Dr. ZAINOOR HAILMEE SOLIHIN Faculty of Mechanical Engineering
  • 2. OUTCOMES OF CHAPTER 4 • To fit curves to data using available techniques. • To assess the reliability of the answers obtained. • To choose the preferred method for any particular problem.
  • 3. LEARNING OUTCOME • To study different techniques to fit curves or approximating functions to the set of discrete data and to manipulate these approximating functions. • Least-squares regression. Get the ‘best’ straight line to fit through a set of uncertain data points. • Interpolation. Estimate intermediate values between precise data points by deriving polynomials in equation forms. Two methods to be investigated: (a) Newton’s interpolating polynomial, (b) Lagrange interpolating polynomial
  • 4. CURVE FITTING INTRODUCTION • Curve fitting: • finding a curve (approximation) which has the best fit to a series of discrete data • The curve is the estimate of the trend of the dependent variables • the curve can be used to determine the intermediate estimate of the data. • Approaches for curve fitting: 1. Least-square regression • Data with significant error or noise • Curve doesn’t pass all data points – curve represent general trend of the data 2. Interpolation • Data is known to be precise • Curve passes all data point
  • 5. CURVE FITTING INTRODUCTION • Typical data • is discrete but we are interested to know the intermediate value • need to estimate these intermediate values
  • 6. LEAST SQUARE REGRESSION INTRODUCTION Regression? • modeling of relationship between dependent and independent variables • finding a curve which represent the best approximation of a series of data points • the curve is the estimate of the trend of dependent variables • How to find the curve? • by deriving the function of the curve • functions can be linear, polynomial & exponential
  • 8. LINEAR REGRESSION • • Ideally, if all the residuals are zero, one may have found an equation in which all the points lie on the model. • Thus, minimization of the residual is an objective of obtaining regression coefficients.
  • 9. LINEAR REGRESSION • n = total number of points This is an inadequate criterion no unique model
  • 10. LINEAR REGRESSION • Examples of some criteria for “best fit” that are inadequate for regression: a) minimizes the sum of the residuals, b) minimizes the sum of the absolute values of the residuals, and c) minimizes the maximum error of any individual point. • However, a more practical criterion for least-squares approach is to minimize the sum of the squares of the residuals, that is
  • 11. LINEAR REGRESSION • Best strategy! Yields a unique line for a given set of data. • Using the regression model: • the slope and intercept producing the best fit can be found using:
  • 12. EXAMPLE 1 - LINEAR REGRESSION Fit the best straight line to the following set of x and y values using the method of least-squares. Solution: 0 1 2 3 4 5 6 2 5 9 15 17 24 25 0 2 0 0 1 5 1 5 2 9 4 18 3 15 9 45 4 17 16 68 5 24 25 120 6 25 36 150 21 97 91 406
  • 13. EXAMPLE 1 - LINEAR REGRESSION Knowing the linear equation and using known value: 21 97 91 406
  • 14. EXAMPLE 1 - LINEAR REGRESSION Least-square fit is given by:
  • 15. ERROR QUANTIFICATION IN LINEAR REGRESSION • for a straight line, the sum of the squares of the estimate residuals: • Standard error of the estimate: • Quantify the spread of data around the regression line • Used to quantify the ‘goodness’ of a fit
  • 18. EXAMPLE 2 - LINEAR REGRESSION • Determine the coefficient of correlation for the linear regression line obtained in the Example 1 0 2 1 5 2 9 3 15 4 17 5 24 6 25 21 97
  • 19. POLYNOMIAL REGRESSION NON-LINEAR MODEL • The linear least-squares regression procedure can be readily extended to fit data to a higher-order polynomial. • Again, the idea is to minimize the sum of the squares of the estimate residuals. • The figure shows the same data fit with: a) A first order polynomial b) A second order polynomial • For second order polynomial regression:
  • 20. POLYNOMIAL REGRESSION NON-LINEAR MODEL • For a second order polynomial, the best fit would mean minimizing: • In general, this would mean minimizing: • The standard error for fitting an mth order polynomial to n-data points is: because the mth order polynomial has (m+1) coefficients. • The coefficient of determination r2 is still found using:
  • 21. POLYNOMIAL REGRESSION NON-LINEAR MODEL • To find the constants of the polynomial model, we partially differentiate it with respect to each of the unknown coefficients and set them equal to zero.
  • 22. POLYNOMIAL REGRESSION NON-LINEAR MODEL • These equations can be set equal to zero and rearranged to develop the following set of normal equations:
  • 24. EXAMPLE 4 POLYNOMIAL REGRESSION • Fit a second-order polynomial 0 2.1 1 7.7 2 13.6 3 27.2 4 40.9 5 61.1
  • 25. QUESTION 1 • Use least-squares regression to fit a straight line to the respective data. • Along with the slope and the intercept, compute the standard error of the estimate and the correlation coefficient. Plot the data and the regression line. • Recompute, but use polynomial regression to fit a parabola to the data. • Compare the results. x y 1 1 2 1.5 3 2 4 3 5 4 6 5 7 8 8 10 9 13
  • 26. LINEARIZATION OF NONLINEAR RELATIONSHIP • Linear regression provides a powerful technique for fitting a best line to data. • In some cases, techniques such as polynomial regression, are appropriate. • For others, transformations can be used to express the data in a form that is compatible with linear regression.
  • 28. QUESTION 2: EXCEL EXERCISE LINEARIZATION OF NONLINEAR RELATIONSHIP 0.75 1.2 2 1.95 3 2 4 2.4 6 2.4 8 2.7 8.5 2.6 Fit the following data with: a) a saturation-growth-rate model, b) a power equation, and c) a parabola. In each case, plot the data and the equation.