Today’s class Multiple Variable Linear Regression

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

Today’s class Romberg integration Gauss quadrature Numerical Methods
Chapter 18 Interpolation The Islamic University of Gaza
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
1 Curve-Fitting Spline Interpolation. 2 Curve Fitting Regression Linear Regression Polynomial Regression Multiple Linear Regression Non-linear Regression.
ES 240: Scientific and Engineering Computation. InterpolationPolynomial  Definition –a function f(x) that can be written as a finite series of power functions.
Curve-Fitting Interpolation
CURVE FITTING ENGR 351 Numerical Methods for Engineers
Curve-Fitting Regression
Least Square Regression
Curve-Fitting Polynomial Interpolation
Curve Fitting and Interpolation: Lecture (II)
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 181 Interpolation Chapter 18 Estimation of intermediate.
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 23 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
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. 1 Interpolation Chapter 18.
Chapter 6 Numerical Interpolation
REGRESSION Predict future scores on Y based on measured scores on X Predictions are based on a correlation from a sample where both X and Y were measured.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. by Lale Yurttas, Texas A&M University Chapter 171 Least.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
CpE- 310B Engineering Computation and Simulation Dr. Manal Al-Bzoor
Today’s class Boundary Value Problems Eigenvalue Problems
Today’s class Numerical Integration Newton-Cotes Numerical Methods
Interpolation. Interpolation is important concept in numerical analysis. Quite often functions may not be available explicitly but only the values of.
Regression analysis Control of built engineering objects, comparing to the plan Surveying observations – position of points Linear regression Regression.
Review Taylor Series and Error Analysis Roots of Equations
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Gu Yuxian Wang Weinan Beijing National Day School.
Today’s class Spline Interpolation Quadratic Spline Cubic Spline Fourier Approximation Numerical Methods Lecture 21 Prof. Jinbo Bi CSE, UConn 1.
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Chapter 8 Curve Fitting.
Numerical Methods For Slides Thanks to Lecture 6 Interpolation
Curve-Fitting Regression
Today’s class Numerical Differentiation Finite Difference Methods Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 1.
Computers in Civil Engineering 53:081 Spring 2003 Lecture #15 Spline Interpolation.
Lecture 16 - Approximation Methods CVEN 302 July 15, 2002.
Today’s class Roots of equation Finish up incremental search
Today’s class Numerical differentiation Roots of equation Bracketing methods Numerical Methods, Lecture 4 1 Prof. Jinbo Bi CSE, UConn.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Chapter 15 General Least Squares and Non- Linear.
Principles of Extrapolation
Curve Fitting Introduction Least-Squares Regression Linear Regression Polynomial Regression Multiple Linear Regression Today’s class Numerical Methods.
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Exam 1 Oct 3, closed book Place ITE 119, Time:12:30-1:45pm One double-sided cheat sheet (8.5in x 11in) allowed Bring your calculator to the exam Chapters.
Environmental Data Analysis with MatLab 2 nd Edition Lecture 22: Linear Approximations and Non Linear Least Squares.
Interpolation - Introduction
Part 5 - Chapter
ECE3340 Numerical Fitting, Interpolation and Approximation
Part 5 - Chapter 17.
Curve-Fitting Spline Interpolation
Interpolation Estimation of intermediate values between precise data points. The most common method is: Although there is one and only one nth-order.
Chapter 18.
Multiple Regression.
Interpolation.
Chapter 18.
Chapter 12 Curve Fitting : Fitting a Straight Line Gab-Byung Chae
Part 5 - Chapter 17.
Chapter 23.
Chapter 27.
MATH 2140 Numerical Methods
Linear regression Fitting a straight line to observations.
Nonlinear regression.
Numerical Integration:
Numerical Analysis Lecture 26.
Least Square Regression
9. Data Fitting Fitting Experimental Spectrum
SKTN 2393 Numerical Methods for Nuclear Engineers
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Multiple linear regression
Theory of Approximation: Interpolation
Presentation transcript:

Today’s class Multiple Variable Linear Regression Polynomial Interpolation Lagrange Interpolation Newton Interpolation Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Mid-term Exam 2 Average = 83, Standard deviation = 27 Max = 100, Min = 60 Numerical Methods Fall 2010 Lecture 21 Prof. Lei Wang ECE, UConn

Multiple Variable Linear Least Square Approximation Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Multiple Linear Regression Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

General Linear Least Squares Simple linear, polynomial, and multiple linear regressions are special cases of the general linear least squares model Linear in ai, but zi may be highly nonlinear Examples: Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

General Linear Least Squares General equation in matrix form Where Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

General Linear Least Squares As usual, take partial derivatives to minimize the square errors Sr This leads to the normal equations Solve this for {a} Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Interpolation & Extrapolation data to be found are within the range of observed data. Extrapolation data to be found are beyond the range of observation data. (may not be reliable) Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Interpolation Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Polynomial Interpolation Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Linear Interpolation Errors are larger when the interval is larger. Smaller interval provides a better estimate. Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Linear Interpolation Quadratic interpolation gives a better estimate than linear interpolation when the change in a function is smooth and slowly. Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Direct Method Solve the system of equations for the coefficients. It is time consuming and the coefficient matrix may be ill-conditioned. Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Newton (divided difference) Interpolation polynomials Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Newton (divided difference) Interpolation polynomials x2-x0 Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

General Scheme for Divided Difference Coefficients Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

General Scheme for Divided Difference Coefficients Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Example Estimate ln2 with data points at (1,0) and (4,1.386294) Linear interpolation Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Example Estimate ln2 with data points at (1,0), (4,1.386294), and (5,1.609438) Quadratic interpolation Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Example Estimate ln2 with data points at (1,0), (4,1.386294), (5,1.609438), (6,1.791759) Cubic interpolation Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Newton’s Interpolating Polynomial Error Similar to Taylor series remainder Proportional to n+1th finite divided difference Also proportional to the distance of the data points from x Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Lagrange Interpolation Polynomials Nth order polynomial: interpolate n+1 points The Lagrangian coefficient, Li(x) will be 1 at x=xi and 0 at all other data points Thus, fn(xi)=f(xi) for all i, meaning that the Lagrangian polynomial passes through all the data points as expected. Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Lagrange Interpolating Polynomials Linear polynomial: interpolate 2 points 2nd order polynomial: interpolate 3 points Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Lagrange Interpolating Polynomials Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Example Estimate ln2 with data points at (1,0), (4,1.386294), (5,1.609438) 2nd order Lagrangian interpolation Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Lagrange & Newton Interpolation The forms of the Lagrangian and Newton polynomials look different, but they are actually equivalent if the data points are the same The Lagrangian coefficients are easier to calculate since the divided difference computation is not required However, if you are adding new data points, the Newton method is more efficient since the earlier coefficients remain the same Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn

Next class Spline Interpolation Fourier Approximation HW8 due Dec 8 Numerical Methods Lecture 20 Prof. Jinbo Bi CSE, UConn