Curve Fitting Introduction Least-Squares Regression Linear Regression Polynomial Regression Multiple Linear Regression Today’s class Numerical Methods.

Slides:



Advertisements
Similar presentations
Kin 304 Regression Linear Regression Least Sum of Squares
Advertisements

Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
Chapter 10 Curve Fitting and Regression Analysis
Ch11 Curve Fitting Dr. Deshi Ye
Lecture (14,15) More than one Variable, Curve Fitting, and Method of Least Squares.
Today’s class Romberg integration Gauss quadrature Numerical Methods
A Short Introduction to Curve Fitting and Regression by Brad Morantz
Curve Fitting and Interpolation: Lecture (IV)
Function Approximation
Least Square Regression
Curve-Fitting Regression
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 26 Regression Analysis-Chapter 17.
Least Square Regression
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 25 Regression Analysis-Chapter 17.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 17 Least Square Regression.
Part 4 Chapter 13 Linear Regression
Probability & Statistics for Engineers & Scientists, by Walpole, Myers, Myers & Ye ~ Chapter 11 Notes Class notes for ISE 201 San Jose State University.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 24 Regression Analysis-Chapter 17.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 171 CURVE.
Least-Squares Regression
CpE- 310B Engineering Computation and Simulation Dr. Manal Al-Bzoor
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
Regression Analysis Regression analysis is a statistical technique that is very useful for exploring the relationships between two or more variables (one.
Today’s class Boundary Value Problems Eigenvalue Problems
Stats for Engineers Lecture 9. Summary From Last Time Confidence Intervals for the mean t-tables Q Student t-distribution.
Unit 4: Modeling Topic 6: Least Squares Method April 1, 2003.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Curve Fitting.
CISE301_Topic41 CISE301: Numerical Methods Topic 4: Least Squares Curve Fitting Lectures 18-19: KFUPM Read Chapter 17 of the textbook.
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
MTH 161: Introduction To Statistics
Applied Quantitative Analysis and Practices LECTURE#23 By Dr. Osman Sadiq Paracha.
Ch4 Describing Relationships Between Variables. Section 4.1: Fitting a Line by Least Squares Often we want to fit a straight line to data. For example.
Today’s class Spline Interpolation Quadratic Spline Cubic Spline Fourier Approximation Numerical Methods Lecture 21 Prof. Jinbo Bi CSE, UConn 1.
Chapter 8 Curve Fitting.
ES 240: Scientific and Engineering Computation. Chapter 13: Linear Regression 13. 1: Statistical Review Uchechukwu Ofoegbu Temple University.
Curve-Fitting Regression
Regression Regression relationship = trend + scatter
1 Multiple Regression A single numerical response variable, Y. Multiple numerical explanatory variables, X 1, X 2,…, X k.
Chapter 11 Correlation and Simple Linear Regression Statistics for Business (Econ) 1.
LECTURE 3: ANALYSIS OF EXPERIMENTAL DATA
Lecture 16 - Approximation Methods CVEN 302 July 15, 2002.
Ch14: Linear Least Squares 14.1: INTRO: Fitting a pth-order polynomial will require finding (p+1) coefficients from the data. Thus, a straight line (p=1)
Correlation – Recap Correlation provides an estimate of how well change in ‘ x ’ causes change in ‘ y ’. The relationship has a magnitude (the r value)
Math 4030 – 11b Method of Least Squares. Model: Dependent (response) Variable Independent (control) Variable Random Error Objectives: Find (estimated)
Curve Fitting Pertemuan 10 Matakuliah: S0262-Analisis Numerik Tahun: 2010.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Chapter 15 General Least Squares and Non- Linear.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
1 Simple Linear Regression and Correlation Least Squares Method The Model Estimating the Coefficients EXAMPLE 1: USED CAR SALES.
Method 3: Least squares regression. Another method for finding the equation of a straight line which is fitted to data is known as the method of least-squares.
STA302/1001 week 11 Regression Models - Introduction In regression models, two types of variables that are studied:  A dependent variable, Y, also called.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Applied Numerical Methods With MATLAB ® for Engineers.
Regression and Correlation of Data Summary
Chapter 4 Basic Estimation Techniques
Part 5 - Chapter
Part 5 - Chapter 17.
Kin 304 Regression Linear Regression Least Sum of Squares
BPK 304W Regression Linear Regression Least Sum of Squares
CHAPTER 29: Multiple Regression*
Chapter 12 Curve Fitting : Fitting a Straight Line Gab-Byung Chae
Part 5 - Chapter 17.
Linear Regression.
Today’s class Multiple Variable Linear Regression
MATH 2140 Numerical Methods
Linear regression Fitting a straight line to observations.
Nonlinear Fitting.
Least Square Regression
SKTN 2393 Numerical Methods for Nuclear Engineers
Regression and Correlation of Data
Regression and Correlation of Data
Presentation transcript:

Curve Fitting Introduction Least-Squares Regression Linear Regression Polynomial Regression Multiple Linear Regression Today’s class Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 1

Curve Fitting Given a set of discrete points how do you fill in the points in between to form a continuum? Approximation or regression Find a simple function that represents the trend of the curve given that the data may have measurement error or “noise” Interpolation The data is exact, so you need to find a function that passes through all the given points Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 2

Curve Fitting Least-Squares Regression Linear Interpolation Curvilinear Interpolation Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 3

Review of Basic Statistics Given a set of data, say, y 1, y 2,……….y N. Arithmetic Mean: Standard Deviation: Variance: Coefficient of Variance: Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 4

Basic Statistics Measured data Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 5

Basic Statistics Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 6

Coefficient of Thermal Expansion Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 7

Histogram A histogram used to depict the distribution of data For large data set, the histogram often approaches the normal distribution Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 8

Linear Least-Squares Approximation Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 9

Linear Least-Squares Approximation The goal is to come up with a linear function that comes close to fitting the given data points The closeness is determined by the error or residual Criteria for a best fit Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 10

Least-Squares Regression Minimize sum of all residual errors Positive and negative errors can cancel out Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 11

Least-Squares Regression Minimize sum of absolute value of residual errors May not get a unique solution Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 12

Least-Squares Regression Minimize the maximum residual error May be overly influenced by outliers Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 13

Least-Squares Regression The best idea is to minimize the sum of the squares of the differences between the measured value and the value calculated by the linear model Advantages Positive errors do not cancel out negative errors Large errors are magnified Unique solution Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 14

Linear Least-Squares Regression Minimize the sum of squares of errors 2 equations, 2 unknowns Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 15

Linear Least-Squares Regression normal equations solutions Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 16

Linear Least Squares Approximation Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 17

The Standard Error of Estimate & Correlation Coefficient Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 18

Standard Deviation for Regression Line Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 19

Example: Linear Regression Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 20

Example: Linear Regression Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 21

Linearization of Nonlinear Relationships Linear regression is based on the fact that the relationship between dependent and independent variables is linear If the function is not linear, you will need polynomial regression techniques or other nonlinear techniques For certain classes of functions, you can linearize the data and still use linear regression Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 22

Linearization of Nonlinear Relationships Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 23

Linearization of Nonlinear Relationships Exponential equation Power equation Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 24

Linearization of Nonlinear Relationships Saturation-growth-rate equation Rational function Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 25

Linearization of Nonlinear Relationships Summary of steps Translate a non-polynomial relation to a linear relation (translate data set accordingly) Linear regression of the translated data set Translate linear relation back to original relation Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 26

Nonlinear Regression Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 27

Quadratic Least Square Approximations Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 28

Polynomial Regression Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 29

Quadratic Least Squares Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 30

Example Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 31

Example Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 32

Standard Error of Estimation & Correlation Coefficient In using quadratic square approximation, S y/x is estimated by The correlation coefficient is calculated by, Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 33

Example Standard Error of Estimation Correlation coefficient Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 34

Cubic Least Square Approximations Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 35

Formulation for Cubic Least Square Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 36

Standard Error of Estimation & Correlation Coefficient In using cubic square approximation, S y/x is estimated by The correlation coefficient is calculated by, Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 37

Polynomial Regression An mth order polynomial will require that you solve a system of m+1 linear equations Standard error Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 38

Next class Multiple Linear Regression Linear Interpolation Fourier Approximation Numerical Methods Lecture 19 Prof. Jinbo Bi CSE, UConn 39