Curve Fitting and Interpolation: Lecture (IV)

Slides:



Advertisements
Similar presentations
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
Advertisements

Regression Analysis Module 3. Regression Regression is the attempt to explain the variation in a dependent variable using the variation in independent.
Probabilistic & Statistical Techniques Eng. Tamer Eshtawi First Semester Eng. Tamer Eshtawi First Semester
Chapter 10 Curve Fitting and Regression Analysis
Chapter 10 Regression. Defining Regression Simple linear regression features one independent variable and one dependent variable, as in correlation the.
P M V Subbarao Professor Mechanical Engineering Department
A Short Introduction to Curve Fitting and Regression by Brad Morantz
Read Chapter 17 of the textbook
Dr. Jie Zou PHY Chapter 2 Solution of Nonlinear Equations: Lecture (III)
Function Approximation
Least Square Regression
Curve-Fitting Regression
Least Square Regression
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 17 Least Square Regression.
Dr. Jie Zou PHY Chapter 3 Solution of Simultaneous Linear Algebraic Equations: Lecture (II) Note: Besides the main textbook, also see Ref: Applied.
Dr. Jie Zou PHY Chapter 9 Ordinary Differential Equations: Initial-Value Problems Lecture (II) 1 1 Besides the main textbook, also see Ref.: “Applied.
Solution of Nonlinear Equations: Lecture (I)
Curve Fitting and Interpolation: Lecture (II)
Engineering Computation Curve Fitting 1 Curve Fitting By Least-Squares Regression and Spline Interpolation Part 7.
Probability & Statistics for Engineers & Scientists, by Walpole, Myers, Myers & Ye ~ Chapter 11 Notes Class notes for ISE 201 San Jose State University.
Numerical Integration Lecture (I)1
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 171 CURVE.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 171 Least.
Calibration & Curve Fitting
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 11 Regression.
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.
Introduction to Linear Regression and Correlation Analysis
CMPS1371 Introduction to Computing for Engineers NUMERICAL METHODS.
Stats for Engineers Lecture 9. Summary From Last Time Confidence Intervals for the mean t-tables Q Student t-distribution.
Curve Fitting and Interpolation: Lecture (I)
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Curve Fitting.
© 2008 Pearson Addison-Wesley. All rights reserved Chapter 1 Section 13-6 Regression and Correlation.
CISE301_Topic41 CISE301: Numerical Methods Topic 4: Least Squares Curve Fitting Lectures 18-19: KFUPM Read Chapter 17 of the textbook.
Linear Regression Least Squares Method: the Meaning of r 2.
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Chapter 8 Curve Fitting.
Curve-Fitting Regression
CHAPTER 3 Model Fitting. Introduction Possible tasks when analyzing a collection of data points: Fitting a selected model type or types to the data Choosing.
Regression Regression relationship = trend + scatter
Transformations.  Although linear regression might produce a ‘good’ fit (high r value) to a set of data, the data set may still be non-linear. To remove.
7-3 Line of Best Fit Objectives
Dr. Jie Zou PHY Chapter 2 Solution of Nonlinear Equations: Lecture (II)
Chapter 13. General Least-Squares and Nonlinear Regression Gab-Byung Chae.
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.
Curve Fitting Introduction Least-Squares Regression Linear Regression Polynomial Regression Multiple Linear Regression Today’s class Numerical Methods.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression.
Simple Linear Regression The Coefficients of Correlation and Determination Two Quantitative Variables x variable – independent variable or explanatory.
Chapter 14 Introduction to Regression Analysis. Objectives Regression Analysis Uses of Regression Analysis Method of Least Squares Difference between.
Correlation and Regression Ch 4. Why Regression and Correlation We need to be able to analyze the relationship between two variables (up to now we have.
Statistics 350 Lecture 2. Today Last Day: Section Today: Section 1.6 Homework #1: Chapter 1 Problems (page 33-38): 2, 5, 6, 7, 22, 26, 33, 34,
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Applied Numerical Methods With MATLAB ® for Engineers.
Part 5 - Chapter
Part 5 - Chapter 17.
CHAPTER 29: Multiple Regression*
Chapter 12 Curve Fitting : Fitting a Straight Line Gab-Byung Chae
Part 5 - Chapter 17.
MATH 2140 Numerical Methods
Linear regression Fitting a straight line to observations.
Major: All Engineering Majors Authors: Autar Kaw, Luke Snyder
M248: Analyzing data Block D UNIT D2 Regression.
Discrete Least Squares Approximation
Industrial Engineering Majors Authors: Autar Kaw, Luke Snyder
Least Square Regression
Mechanical Engineering Majors Authors: Autar Kaw, Luke Snyder
Regression and Correlation of Data
Regression and Correlation of Data
Chemical Engineering Majors Authors: Autar Kaw, Luke Snyder
Presentation transcript:

Curve Fitting and Interpolation: Lecture (IV) Chapter 5 Curve Fitting and Interpolation: Lecture (IV) Dr. Jie Zou PHY 3320

Outline Least-square regression Linear (least-square) regression Introduction-What is regression? When do we use it? Linear (least-square) regression What is linear regression? What is “least-square”? Accuracy of linear regression Dr. Jie Zou PHY 3320

Introduction Regression What is it? - To derive an approximating function or curve that represents the general trend of the data. The curve does not necessarily pass through all the data points. When do we use it? - Usually used when the data appear to have significant error. Linear regression Non-linear regression Dr. Jie Zou PHY 3320

Linear least-square regression Linear regression: Fit a “best” line to the data. Fitting function: y = a0 + a1x Parameters a0 and a1 are to be determined. Residual error: ei = yi – a0 – a1xi, i= 1, 2, … ei: residual error at each data point Least-square criterion for a “best” fit: Minimize with respect to the parameters a0 and a1. Residual error Inadequate criterion: Minimize Dr. Jie Zou PHY 3320

Derivation of the linear least-square regression Best straight line: y = a0 + a1x Determine a0 and a1: Apply the least-square criterion Minimize with respect to a0 and a1 Set Solve the simultaneous linear equations for a0 and a1: Dr. Jie Zou PHY 3320

Example: Linear regression Use least-square regression, fit a straight line to the values in the table below. v (m/s) 10 20 30 40 50 60 70 80 F (N) 25 380 550 610 1220 830 1450 Best fit line: F = -234.2857 + 19.47024 v Dr. Jie Zou PHY 3320

Accuracy of linear regression To quantify the “goodness” of our fit: The residual error before regression: The residual error after regression: The difference between S0 and S provides a measure of the accuracy of regression or the extent of improvement achieved by the least-square fit. Correlation coefficient: A good least-square fit is indicated by a large value or r; rmax = 1.0. Before After Dr. Jie Zou PHY 3320

Example: Correlation coefficient In the previous example on Slide #6, calculate the correlation coefficient r for the best fit line. Answer: r = (0.8805)1/2 = 0.9383 “These results indicate that 88.05% of the original uncertainty has been explained by the linear model” (textbook by Chapra, p. 299). Dr. Jie Zou PHY 3320

Implementation on a computer For the example on Slide #6, write an M-file, Mylinearregression.m, to find the best fit line using the method of least-squares. Plot the original discrete data points (in open circles) and the best fit line on the same figure. Dr. Jie Zou PHY 3320