Read Chapter 17 of the textbook

Slides:



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

Chapter 12 Simple Linear Regression
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
CmpE 104 SOFTWARE STATISTICAL TOOLS & METHODS MEASURING & ESTIMATING SOFTWARE SIZE AND RESOURCE & SCHEDULE ESTIMATING.
FTP Biostatistics II Model parameter estimations: Confronting models with measurements.
6-1 Introduction To Empirical Models 6-1 Introduction To Empirical Models.
Regression Analysis Module 3. Regression Regression is the attempt to explain the variation in a dependent variable using the variation in independent.
Chapter 10 Curve Fitting and Regression Analysis
Linear regression models
Ch11 Curve Fitting Dr. Deshi Ye
Definition  Regression Model  Regression Equation Y i =  0 +  1 X i ^ Given a collection of paired data, the regression equation algebraically describes.
Excel Part III Curve-Fitting, Regression Section 8 Fall 2013 EGR 105 Foundations of Engineering I.
Curve Fitting and Interpolation: Lecture (IV)
Least Square Regression
Curve-Fitting Regression
Least Square Regression
EGR 105 Foundations of Engineering I Fall 2007 – week 7 Excel part 3 - regression.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 17 Least Square Regression.
Lesson #32 Simple Linear Regression. Regression is used to model and/or predict a variable; called the dependent variable, Y; based on one or more independent.
EGR 105 Foundations of Engineering I Fall 2007 – week 7 Excel part 3 - regression.
SIMPLE LINEAR REGRESSION
Engineering Computation Curve Fitting 1 Curve Fitting By Least-Squares Regression and Spline Interpolation Part 7.
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.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 171 Least.
Introduction to Regression Analysis, Chapter 13,
Chapter 6 (cont.) Regression Estimation. Simple Linear Regression: review of least squares procedure 2.
1 1 Slide Simple Linear Regression Chapter 14 BA 303 – Spring 2011.
Regression and Correlation Methods Judy Zhong Ph.D.
Least-Squares Regression
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
Statistics for Business and Economics Chapter 10 Simple Linear Regression.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
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
Applied Quantitative Analysis and Practices LECTURE#23 By Dr. Osman Sadiq Paracha.
Chapter 8 Curve Fitting.
Curve-Fitting Regression
Regression Regression relationship = trend + scatter
Simple Linear Regression. The term linear regression implies that  Y|x is linearly related to x by the population regression equation  Y|x =  +  x.
EE3561_Unit 4(c)AL-DHAIFALLAH14351 EE 3561 : Computational Methods Unit 4 : Least Squares Curve Fitting Dr. Mujahed Al-Dhaifallah (Term 342) Reading Assignment.
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)
Chapter 8: Simple Linear Regression Yang Zhenlin.
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.
© 2001 Prentice-Hall, Inc.Chap 13-1 BA 201 Lecture 18 Introduction to Simple Linear Regression (Data)Data.
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.
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,
The “Big Picture” (from Heath 1995). Simple Linear Regression.
Lecture Slides Elementary Statistics Twelfth Edition
The simple linear regression model and parameter estimation
Part 5 - Chapter
Part 5 - Chapter 17.
Linear Regression Special Topics.
CHAPTER 29: Multiple Regression*
Chapter 12 Curve Fitting : Fitting a Straight Line Gab-Byung Chae
Part 5 - Chapter 17.
Linear regression Fitting a straight line to observations.
Major: All Engineering Majors Authors: Autar Kaw, Luke Snyder
Least-Squares Regression
Discrete Least Squares Approximation
Least Square Regression
Correlation and Regression
SKTN 2393 Numerical Methods for Nuclear Engineers
Algebra Review The equation of a straight line y = mx + b
Ch 9.
Presentation transcript:

Read Chapter 17 of the textbook SE301: Numerical Methods Topic 4: Least Squares Curve Fitting Lectures 18-19: KFUPM Read Chapter 17 of the textbook CISE301_Topic4 KFUPM

Lecture 18 Introduction to Least Squares CISE301_Topic4 KFUPM

Motivation Given a set of experimental data: x 1 2 3 y 5.1 5.9 6.3 The relationship between x and y may not be clear. We want to find an expression for f(x). 1 2 3 CISE301_Topic4 KFUPM

Motivation - Model Building In engineering, two types of applications are encountered: Trend analysis: Predicting values of dependent variable, may include extrapolation beyond data points or interpolation between data points. Hypothesis testing: Comparing existing mathematical model with measured data. What is the best mathematical model (function f , y) that represents the dataset yi? What is the best criterion to assess the fitting of the function y to the data? CISE301_Topic4 KFUPM

Motivation - Curve Fitting Given a set of tabulated data, find a curve or a function that best represents the data. Given: The tabulated data The form of the function The curve fitting criteria Find the unknown coefficients CISE301_Topic4 KFUPM

Least Squares Regression Linear Regression ‌Fitting a straight line to a set of paired observations: (x1, y1), (x2, y2),…,(xn, yn). y=a0+a1x+e a1-slope. a0-intercept. e-error, or residual, between the model and the observations. CISE301_Topic4 KFUPM

Selection of the Functions CISE301_Topic4 KFUPM

Decide on the Criterion Chapter 17 Chapter 18 CISE301_Topic4 KFUPM

Least Squares xi x1 x2 …. xn yi y1 y2 yn Given: The form of the function is assumed to be known but the coefficients are unknown. The difference is assumed to be the result of experimental error. CISE301_Topic4 KFUPM

Determine the Unknowns CISE301_Topic4 KFUPM

Determine the Unknowns CISE301_Topic4 KFUPM

Example 1 x 1 2 3 y 5.1 5.9 6.3 CISE301_Topic4 KFUPM

Remember CISE301_Topic4 KFUPM

Example 1 CISE301_Topic4 KFUPM

Example 1 CISE301_Topic4 KFUPM

Example 1 i 1 2 3 sum xi 6 yi 5.1 5.9 6.3 17.3 xi2 4 9 14 xi yi 11.8 18.9 35.8 CISE301_Topic4 KFUPM

Example 1 CISE301_Topic4 KFUPM

Example 2 - Fitting with Nonlinear Functions - 0.24 0.65 0.95 1.24 1.73 2.01 2.23 2.52 y 0.23 -0.23 -1.1 -0.45 0.27 0.1 -0.29 CISE301_Topic4 KFUPM

Example 2 CISE301_Topic4 KFUPM

Example 2 CISE301_Topic4 KFUPM

How Do You Judge Performance? CISE301_Topic4 KFUPM

Multiple Regression Example: Given the following data: It is required to determine a function of two variables: f(x,t) = a + b x + c t to explain the data that is best in the least square sense. t 1 2 3 x 0.1 0.4 0.2 f(x,t) CISE301_Topic4 KFUPM

Solution of Multiple Regression 1 2 3 x 0.1 0.4 0.2 f(x,t) Construct , the sum of the square of the error and derive the necessary conditions by equating the partial derivatives with respect to the unknown parameters to zero, then solve the equations. CISE301_Topic4 KFUPM

Solution of Multiple Regression CISE301_Topic4 KFUPM

Lecture 19 Nonlinear Least Squares Problems + More Examples of Nonlinear Least Squares Solution of Inconsistent Equations Continuous Least Square Problems CISE301_Topic4 KFUPM

Nonlinear Problem x 1 2 3 y 2.4 5 9 Given: CISE301_Topic4 KFUPM

Alternative Solution (Linearization Method) x 1 2 3 y 2.4 5 9 Given: CISE301_Topic4 KFUPM

Example (Linearization Method) 1 2 3 y 0.23 .2 .14 Given: CISE301_Topic4 KFUPM

Inconsistent System of Equations CISE301_Topic4 KFUPM

Inconsistent System of Equations - Reasons - Inconsistent equations may occur because of: Errors in formulating the problem, Errors in collecting the data, or Computational errors. Solution exists if all lines intersect at one point. CISE301_Topic4 KFUPM

Inconsistent System of Equations - Formulation as a Least Squares Problem - CISE301_Topic4 KFUPM

Solution CISE301_Topic4 KFUPM

Solution CISE301_Topic4 KFUPM