PGE 310: Formulation and Solution in Geosystems Engineering. Dr. Balhoff. Interpolation

Similar documents
Given a table of data poins of an unknown or complicated function f : we want to find a (simpler) function p s.t. px (

Chapter 5. Curve fitting

Taylor s Series and Interpolation. Interpolation & Curve-fitting. CIS Interpolation. Basic Scenario. Taylor Series interpolates at a specific

Analysis of Lagrange Interpolation Formula

ESS Line Fitting

Lecture 12 APPROXIMATION OF FIRST ORDER DERIVATIVES

L5 Polynomial / Spline Curves

Lecture 5: Interpolation. Polynomial interpolation Rational approximation

CS5620 Intro to Computer Graphics

Data Processing Techniques

Cubic Nonpolynomial Spline Approach to the Solution of a Second Order Two-Point Boundary Value Problem

Simple Linear Regression

A Conventional Approach for the Solution of the Fifth Order Boundary Value Problems Using Sixth Degree Spline Functions

1 0, x? x x. 1 Root finding. 1.1 Introduction. Solve[x^2-1 0,x] {{x -1},{x 1}} Plot[x^2-1,{x,-2,2}] 3

Functions of Random Variables

Beam Warming Second-Order Upwind Method

Econometric Methods. Review of Estimation

STA 108 Applied Linear Models: Regression Analysis Spring Solution for Homework #1

Ordinary Least Squares Regression. Simple Regression. Algebra and Assumptions.

UNIT 2 SOLUTION OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS

Derivation of 3-Point Block Method Formula for Solving First Order Stiff Ordinary Differential Equations

Basic Concepts in Numerical Analysis November 6, 2017

Introduction to Numerical Differentiation and Interpolation March 10, !=1 1!=1 2!=2 3!=6 4!=24 5!= 120

Arithmetic Mean and Geometric Mean

Overview of the weighting constants and the points where we evaluate the function for The Gaussian quadrature Project two

CH E 374 Computational Methods in Engineering Fall 2007

Computer Graphics. Geometric Modeling. Geometric Modeling. Page. Copyright Gotsman, Elber, Barequet, Karni, Sheffer Computer Science - Technion

Multiple Choice Test. Chapter Adequacy of Models for Regression

Radial Basis Function Networks

Line Fitting and Regression

Numerical Interpolation with Polynomials Approximation and Curve Fitting, Focus the MATLAB

1. A real number x is represented approximately by , and we are told that the relative error is 0.1 %. What is x? Note: There are two answers.

7.0 Equality Contraints: Lagrange Multipliers

( ) 2 2. Multi-Layer Refraction Problem Rafael Espericueta, Bakersfield College, November, 2006

Chapter 5 Properties of a Random Sample

Linear Regression. Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan

Multiple Regression. More than 2 variables! Grade on Final. Multiple Regression 11/21/2012. Exam 2 Grades. Exam 2 Re-grades

Mean is only appropriate for interval or ratio scales, not ordinal or nominal.

Third handout: On the Gini Index

12.2 Estimating Model parameters Assumptions: ox and y are related according to the simple linear regression model

An Introduction to. Support Vector Machine

EVALUATION OF FUNCTIONAL INTEGRALS BY MEANS OF A SERIES AND THE METHOD OF BOREL TRANSFORM

CHAPTER 4 RADICAL EXPRESSIONS

An Expansion of the Derivation of the Spline Smoothing Theory Alan Kaylor Cline

QR Factorization and Singular Value Decomposition COS 323

ENGI 4430 Numerical Integration Page 5-01

i 2 σ ) i = 1,2,...,n , and = 3.01 = 4.01

5 Short Proofs of Simplified Stirling s Approximation

Example: Multiple linear regression. Least squares regression. Repetition: Simple linear regression. Tron Anders Moger

Linear Regression. Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan

ENGI 4421 Propagation of Error Page 8-01

Objectives of Multiple Regression

: At least two means differ SST

Lecture 3. Sampling, sampling distributions, and parameter estimation

2006 Jamie Trahan, Autar Kaw, Kevin Martin University of South Florida United States of America

COV. Violation of constant variance of ε i s but they are still independent. The error term (ε) is said to be heteroscedastic.

MMJ 1113 FINITE ELEMENT METHOD Introduction to PART I

Lecture Notes Types of economic variables

Multivariate Transformation of Variables and Maximum Likelihood Estimation

x y exp λ'. x exp λ 2. x exp 1.

ENGI 3423 Simple Linear Regression Page 12-01

d dt d d dt dt Also recall that by Taylor series, / 2 (enables use of sin instead of cos-see p.27 of A&F) dsin

X ε ) = 0, or equivalently, lim

X X X E[ ] E X E X. is the ()m n where the ( i,)th. j element is the mean of the ( i,)th., then

Lecture Notes 2. The ability to manipulate matrices is critical in economics.

Bezier curve and its application

C-1: Aerodynamics of Airfoils 1 C-2: Aerodynamics of Airfoils 2 C-3: Panel Methods C-4: Thin Airfoil Theory

Evaluating Polynomials

CS 1675 Introduction to Machine Learning Lecture 12 Support vector machines

TESTS BASED ON MAXIMUM LIKELIHOOD

Point Estimation: definition of estimators

Block-Based Compact Thermal Modeling of Semiconductor Integrated Circuits

End of Finite Volume Methods Cartesian grids. Solution of the Navier-Stokes Equations. REVIEW Lecture 17: Higher order (interpolation) schemes

On the convergence of derivatives of Bernstein approximation

best estimate (mean) for X uncertainty or error in the measurement (systematic, random or statistical) best

Numerical Analysis Formulae Booklet

Midterm Exam 1, section 2 (Solution) Thursday, February hour, 15 minutes

Johns Hopkins University Department of Biostatistics Math Review for Introductory Courses

Correlation and Regression Analysis

Johns Hopkins University Department of Biostatistics Math Review for Introductory Courses

Chapter Statistics Background of Regression Analysis

Chapter 8: Statistical Analysis of Simulated Data

hp calculators HP 30S Statistics Averages and Standard Deviations Average and Standard Deviation Practice Finding Averages and Standard Deviations

A Method for Damping Estimation Based On Least Square Fit

Spreadsheet Problem Solving

Mu Sequences/Series Solutions National Convention 2014

Maximum Likelihood Estimation

2SLS Estimates ECON In this case, begin with the assumption that E[ i

ECON 482 / WH Hong The Simple Regression Model 1. Definition of the Simple Regression Model

F. Inequalities. HKAL Pure Mathematics. 進佳數學團隊 Dr. Herbert Lam 林康榮博士. [Solution] Example Basic properties

ECE 595, Section 10 Numerical Simulations Lecture 19: FEM for Electronic Transport. Prof. Peter Bermel February 22, 2013

( ) = ( ) ( ) Chapter 13 Asymptotic Theory and Stochastic Regressors. Stochastic regressors model

Fractional Order Finite Difference Scheme For Soil Moisture Diffusion Equation And Its Applications

Midterm Exam 1, section 1 (Solution) Thursday, February hour, 15 minutes

Transforming Numerical Methods Education for the STEM Undergraduate Torque (N-m)

Applied Fitting Theory VII. Building Virtual Particles

Generalized Linear Regression with Regularization

n data points is solved: This approach is based on Weierstrass approximation theorem [9-11], which stipulates that any segment a,

STK3100 and STK4100 Autumn 2018

Lecture 1: Introduction to Regression

Transcription:

PGE 30: Formulato ad Soluto Geosystems Egeerg Dr. Balhoff Iterpolato Numercal Methods wth MATLAB, Recktewald, Chapter 0 ad Numercal Methods for Egeers, Chapra ad Caale, 5 th Ed., Part Fve, Chapter 8 ad Appled Numercal Methods wth MATLAB, Chapra, d Ed., Part Four, Chapters 5 ad 6 How Fast are you gog? What tme s t?

Basc Ideas of Iterpolato Mathematcal equvalet of readg betwee the les Data - dscrete samples of some fucto, f() Uses a terpolatg fucto betwee pots Data mght Est as a epermet Aalytc fucto that s dffcult to evaluate 3 Iterpolato versus Curve Fttg (Regresso) Iterpolato Data assumed eact Iterpolatg fucto betwee pots Curve passes EXACTLY through the data pots Curve Fttg Ucertaty data Uses a regresso curve to ft data Curve passes ear the pots 4

Types of Iterpolato Sgle Polyomal Dvded Dfferece Lagrage Idetcal Multple polyomals Hermte Lagrage 5 Newto s Dvded-Dfferece s a Useful Form For pots, I ca always ft a - degree polyomal Le b/w pots Parabola b/w 3 pots 5 th order polyomal b/w 6 pots Fd coeffcets of polyomal Stadard Form P( ) a a a a 0 Newto s Dvded Dfferece P ( ) bb b( ) ( ) 6

Lear Iterpolato (Smplest Dvded-Dfferece) Newto-Form: P( ) b b Image Smlar Tragles: f ( ) f ( ) f ( ) f ( ) f( ) f() f( ) f( ) f ( ) f( ) f( ) 7 Geeral Form- Newto s Iterpolatg Polyomals P( ) bb b( ) ( ) Where the b s are: b f( ) b f[, ] b f,, 3 3 b f,,,, The dvded dffereces are: f ( ) f( j) f, j j f [, j] f[ j, k] f, j, k,,, f k f [,, ] f[,,, ] 8

Lear Iterpolato for f()=l() 9 Quadratc Iterpolato eample 0

Hgher Order Estmate Lagrage Iterpolatg Polyomals Stadard Form: Newto s Form: P( ) a a a a 0 P ( ) bb b( ) ( ) Lagrage s smply a reformulato of the Newto polyomal!!!! Avods computato of Dvded Dffereces P ( ) L ( ) f( ) Lj ( ) j j j k k j k k j Lagrage Form: P( ) L f( ) L f( ) L f( ) 3 L 3

Problems wth Sgle Polyomal Iterpolato N- Order polyomal through N pots Forces oscllatos whch probably do t est aturally Addg More pots ca make t worse How do we f the problem? Coect a seres of terpolatg fuctos 3 Revew Ulke Curve Fttg, Iterpolato goes eactly through the data pots Iterpolatg Polyomals: ft - order polyomal to data pots Newto Dvded Dfferece P ( ) bb b( ) ( ) Lagrage Polyomals P ( ) Lf( ) Lf( ) Lf( ) L ( ) j k k j k k j Dvde Dfferece ad Lagrage are equvalet! 4

Pecewse Polyomals Not always a good dea to ft a sgle polyomal to data pots Especally whe gets really bg (lke 0 or so) Lots of oscllatos ca result error Coect together a seres of pecewse polyomals Sples A few dfferet types of sples Lear fuctos match at kot pots Quadratc dervatves ALSO match at kot pots Cubc st ad d dervatves match at kot pots 5 Pecewse Polyomal Iterpolato Practcal soluto to hgh-degree polyomal terpolato Use set of lower degree terpolats Each defed o sub-terval of doma Used stead of sgle fucto appromato Relatoshp b/w adjacet pecewse fuctos s of fudametal mportace Shape s affected by costrats o cotuty 6

Pecewse Lear Iterpolato Smplest scheme uses lear terpolats Cotuty I fucto at breakpots But NOT the dervatves Calculate lear terpolats usg Lagrage ) ( y y y L y L f Lear Lagrage polyomal For each (-) sub-secto,,..., ) ( y y f 7 Cubc Sple 8

Cubc Sple Iterpolato Stadard Form: Lagrage Form: f ( ) a 3 We wll derve. b c d Fd the coeffcets for each - polyomals Basc Idea: Force cotuty st ad d dervatves at kots (-) sples & 4 coeffcets each = 4*(-) ukows. (-) kow fucto values. - dervatves must be equal at INTERIOR kots 3. - secod dervatves must be equal at INTERIOR kots 4-6 costrats, but 4-4 ukows eed more costrats! 9 Optos for Addtoal Costrats o Ed Pots?. Fed-slope ed codtos costra the frst dervatve o the ed pots. Not-a-kot ed codtos requres cotuty thrd dervatve at frst teral kot. Most accurate codto 3. Natural sple ed codto force secod dervatve equal to zero (We ll use ths oe) f "( ) 0 ad f "( ) 0 (These are the last two costrats I eed!) 0

Cubc Sple Dervato Forcg cotuty d dervatve gves: f f f " " "( ) ( ) ( ) Itegratg equato twce gves cubc sple formula f ( ) f ( ) f " " 3 3 ( ) 6( ) 6( ) " f ( ) f ( )( ) 6 " f ( ) f ( ) ( ) 6 Ca plug s ad f( ) s, but stll do t kow the d dervatves Calculate Secod Dervatves for Cubc Sple But Frst dervates must be equal at the teral kots f ( ) f ( ) ' ' Dfferetate the cubc sple equato ad equate: ( ) f ( ) ( ) f "( ) ( ) f "( ) " 6 6 [ f( ) f( )] f( ) f( ) Wrte the above equato for each teral kot ad substtute secod dervatve = 0 for ed pots (atural ed codto) results as may equatos as ukows. Solvg for secod dervatves, I ca the plug back to cubc sple equato

Cocluso Curve Fttg: Best Ft curve to data Iterpolato: Fucto passes THROUGH all the data Newto/Lagrage: - order polyomal for pots Hermte ad Sple: Pecewse polyomals Cubc Sple Does ot requre kowledge of dervatves a pror Forces cotuty of frst ad secod dervatve 3