EE3561_Unit 4(c)AL-DHAIFALLAH14351 EE 3561 : Computational Methods Unit 4 : Least Squares Curve Fitting Dr. Mujahed Al-Dhaifallah (Term 342) Reading Assignment.

Slides:



Advertisements
Similar presentations
Managerial Economics in a Global Economy
Advertisements

CmpE 104 SOFTWARE STATISTICAL TOOLS & METHODS MEASURING & ESTIMATING SOFTWARE SIZE AND RESOURCE & SCHEDULE ESTIMATING.
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
1 Simple Linear Regression and Correlation The Model Estimating the Coefficients EXAMPLE 1: USED CAR SALES Assessing the model –T-tests –R-square.
Simple Regression. Major Questions Given an economic model involving a relationship between two economic variables, how do we go about specifying the.
Ch11 Curve Fitting Dr. Deshi Ye
ANALYTICAL CHEMISTRY ERT 207
Read Chapter 17 of the textbook
Chapter 12 Simple Regression
Least Square Regression
Curve-Fitting Regression
Statistics for Business and Economics
Least Square Regression
Chapter 13 Introduction to Linear Regression and Correlation Analysis
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 17 Least Square Regression.
The Simple Regression Model
SIMPLE LINEAR REGRESSION
ESTIMATING THE REGRESSION COEFFICIENTS FOR SIMPLE LINEAR REGRESSION.
Chapter Topics Types of Regression Models
Engineering Computation Curve Fitting 1 Curve Fitting By Least-Squares Regression and Spline Interpolation Part 7.
1 Simple Linear Regression Chapter Introduction In this chapter we examine the relationship among interval variables via a mathematical equation.
SIMPLE LINEAR REGRESSION
Mujahed AlDhaifallah (Term 342) Read Chapter 9 of the textbook
Chapter 14 Introduction to Linear Regression and Correlation Analysis
Correlation and Regression Analysis
Introduction to Regression Analysis, Chapter 13,
Simple Linear Regression. Introduction In Chapters 17 to 19, we examine the relationship between interval variables via a mathematical equation. The motivation.
Regression and Correlation Methods Judy Zhong Ph.D.
SIMPLE LINEAR REGRESSION
9 - 1 Intrinsically Linear Regression Chapter Introduction In Chapter 7 we discussed some deviations from the assumptions of the regression model.
Least-Squares Regression
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
3.1 Ch. 3 Simple Linear Regression 1.To estimate relationships among economic variables, such as y = f(x) or c = f(i) 2.To test hypotheses about these.
CPE 619 Simple Linear Regression Models Aleksandar Milenković The LaCASA Laboratory Electrical and Computer Engineering Department The University of Alabama.
Simple Linear Regression Models
Correlation and Regression
Chapter 14 Simple Regression
Statistics for Business and Economics Chapter 10 Simple Linear Regression.
Basic Probability (Chapter 2, W.J.Decoursey, 2003) Objectives: -Define probability and its relationship to relative frequency of an event. -Learn the basic.
Introduction to Linear Regression
Chap 12-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition Chapter 12 Introduction to Linear.
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
EQT 373 Chapter 3 Simple Linear Regression. EQT 373 Learning Objectives In this chapter, you learn: How to use regression analysis to predict the value.
Applied Quantitative Analysis and Practices LECTURE#23 By Dr. Osman Sadiq Paracha.
Production Planning and Control. A correlation is a relationship between two variables. The data can be represented by the ordered pairs (x, y) where.
Curve-Fitting Regression
Business Statistics: A Decision-Making Approach, 6e © 2005 Prentice-Hall, Inc. Chap 13-1 Introduction to Regression Analysis Regression analysis is used.
Statistics for Business and Economics 8 th Edition Chapter 11 Simple Regression Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch.
EE3561_Unit 5(c)AL-DHAIFALLAH14361 EE 3561 : Computational Methods Unit 5 : Interpolation Dr. Mujahed AlDhaifallah (Term 351) Read Chapter 18, Sections.
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.
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.
Linear Regression Linear Regression. Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Purpose Understand Linear Regression. Use R functions.
Lecture 10 Introduction to Linear Regression and Correlation Analysis.
The “Big Picture” (from Heath 1995). Simple Linear Regression.
Bivariate Regression. Bivariate Regression analyzes the relationship between two variables. Bivariate Regression analyzes the relationship between two.
The simple linear regression model and parameter estimation
Chapter 7. Classification and Prediction
CHAPTER 29: Multiple Regression*
Chapter 12 Curve Fitting : Fitting a Straight Line Gab-Byung Chae
LESSON 21: REGRESSION ANALYSIS
Linear regression Fitting a straight line to observations.
Discrete Least Squares Approximation
Introduction to Regression
Presentation transcript:

EE3561_Unit 4(c)AL-DHAIFALLAH14351 EE 3561 : Computational Methods Unit 4 : Least Squares Curve Fitting Dr. Mujahed Al-Dhaifallah (Term 342) Reading Assignment :

Elementary Statistics  A statistical sample is a fraction or a portion of the whole (population) that is studied.  For example Consider Table 1 which contains 14 measurements of the concentration of sodium chlorate produced in a chemical reactor operated at a pH of 7.0. EE3561_Unit 4(c)AL-DHAIFALLAH14352

Elementary Statistics  One of the measures of the spread of the data is the range of the data. The range is defined as the difference between the maximum and minimum value of the data as R  However, range may not give a good idea of the spread of the data as some data points may be far away from most other data points (such data points are called outliers). EE3561_Unit 4(c)AL-DHAIFALLAH14353

Elementary Statistics  That is why the sum of the square of the differences is considered a better measure. The sum of the squares of the differences, also called summed squared error (SSE), S t, is given by  Since the magnitude of the summed squared error is dependent on the number of data points, an average value of the summed squared error is defined as the variance, σ 2 EE3561_Unit 4(c)AL-DHAIFALLAH14354

Elementary Statistics  To bring the variation back to the same level of units as the original data, a new term called standard deviation, σ, is defined as  Furthermore, the ratio of the standard deviation to the mean, known as the coefficient of variation is also used to normalize the spread of a sample. EE3561_Unit 4(c)AL-DHAIFALLAH14355

Example EE3561_Unit 46

Example EE3561_Unit 4(c)AL-DHAIFALLAH14357

EE3561_Unit 4(c)AL-DHAIFALLAH14358 Motivation Given a set of experimental data x123 y The relationship between x and y may not be clear we want to find an expression for f(x) 1 2 3

EE3561_Unit 4(c)AL-DHAIFALLAH14359 Curve Fitting Given a set of tabulated data, find a curve or a function that best represents the data. Given: 1. The tabulated data 2. The form of the function 3. The curve fitting criteria Find the unknown coefficients

EE3561_Unit 4(c)AL-DHAIFALLAH Selection of the functions

EE3561_Unit 4(c)AL-DHAIFALLAH Decide on the criterion Chapter 17 Chapter 18

EE3561_Unit 4(c)AL-DHAIFALLAH Least Squares xixi x1x1 x2x2 ….xnxn yiyi y1y1 y2y2 ynyn 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

EE3561_Unit 4(c)AL-DHAIFALLAH Determine the Unknowns

EE3561_Unit 4(c)AL-DHAIFALLAH Determine the Unknowns

EE3561_Unit 4(c)AL-DHAIFALLAH Example 1 x123 y

EE3561_Unit 4(c)AL-DHAIFALLAH Remember

EE3561_Unit 4(c)AL-DHAIFALLAH Example 1

EE3561_Unit 4(c)AL-DHAIFALLAH Example 1

EE3561_Unit 4(c)AL-DHAIFALLAH Example 1 i123sum xixi 1236 yiyi xi2xi x i y i

EE3561_Unit 4(c)AL-DHAIFALLAH Example 1

EE3561_Unit 4(c)AL-DHAIFALLAH Example 2 x y

EE3561_Unit 4(c)AL-DHAIFALLAH Example 2

EE3561_Unit 4(c)AL-DHAIFALLAH Example 2

EE3561_Unit 4(c)AL-DHAIFALLAH i sum xixi yiyi ln(x i ) cos(x i ) e xi (ln(x i )) ln(x)cos(x) ln(x i ) e xi ln(x i ) y i (cos(x i )) cos(x i )e xi cos(x i )y i (e xi ) e xi y i

Example 2 EE3561_Unit 4(c)AL-DHAIFALLAH Solve to get

EE3561_Unit 4(c)AL-DHAIFALLAH How do you judge performance?

EE3561_Unit 4(c)AL-DHAIFALLAH 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. t0123 x f(x,t)3212

EE3561_Unit 4(c)AL-DHAIFALLAH Solution of Multiple Regression 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. t0123 x f(x,t)3212

EE3561_Unit 4(c)AL-DHAIFALLAH Solution of Multiple Regression

EE3561_Unit 4(c)AL-DHAIFALLAH Nonlinear least squares problems + More  Examples of nonlinear least squares  Solution of inconsistent equations  Continuous least square problems

EE3561_Unit 4(c)AL-DHAIFALLAH Nonlinear Problem Given x123 y2.45.9

EE3561_Unit 4(c)AL-DHAIFALLAH Alternative Solution (Linearization Method) Given x123 y2.45.9

EE3561_Unit 4(c)AL-DHAIFALLAH Inconsistent System of Equations

EE3561_Unit 4(c)AL-DHAIFALLAH Inconsistent System of Equations Reasons Inconsistent equations may occur because of presence of noise in input or output data, or modeling error, etc. Solution if all lines intersect at one point

EE3561_Unit 4(c)AL-DHAIFALLAH Inconsistent System of Equations Formulation as a least squares problem

EE3561_Unit 4(c)AL-DHAIFALLAH Solution

EE3561_Unit 4(c)AL-DHAIFALLAH Solution

EE3561_Unit 4(c)AL-DHAIFALLAH Examples (Linearization Method) Given x123 y

Exercise EE3561_Unit 4(c)AL-DHAIFALLAH143539