Curve Fitting. Next: Numerical Differentiation and Integration Up: Numerical Analysis for Chemical Previous: Optimization.

Similar documents
Further Mathematics for Engineering Technicians

3. Interpolation. Closing the Gaps of Discretization... Beyond Polynomials

Computer Networks and Internets, 5e Chapter 6 Information Sources and Signals. Introduction

Numerical Methods for Engineers

Prentice Hall Algebra Correlated to: Colorado P-12 Academic Standards for High School Mathematics, Adopted 12/2009

PRACTICAL GUIDE TO DATA SMOOTHING AND FILTERING

Prentice Hall Mathematics: Algebra Correlated to: Utah Core Curriculum for Math, Intermediate Algebra (Secondary)

South Carolina College- and Career-Ready (SCCCR) Pre-Calculus

MATH BOOK OF PROBLEMS SERIES. New from Pearson Custom Publishing!

Higher Education Math Placement

This unit will lay the groundwork for later units where the students will extend this knowledge to quadratic and exponential functions.

The Fourier Analysis Tool in Microsoft Excel

Mathematics Online Instructional Materials Correlation to the 2009 Algebra I Standards of Learning and Curriculum Framework

NEW YORK STATE TEACHER CERTIFICATION EXAMINATIONS

The continuous and discrete Fourier transforms

Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks

Mathematics (MAT) MAT 061 Basic Euclidean Geometry 3 Hours. MAT 051 Pre-Algebra 4 Hours

Piecewise Cubic Splines

4.3 Lagrange Approximation

Mathematics for Engineering Technicians

Precalculus REVERSE CORRELATION. Content Expectations for. Precalculus. Michigan CONTENT EXPECTATIONS FOR PRECALCULUS CHAPTER/LESSON TITLES

Introduction to Complex Fourier Series

Algebra and Geometry Review (61 topics, no due date)

Numerical Analysis An Introduction

Mean value theorem, Taylors Theorem, Maxima and Minima.

BookTOC.txt. 1. Functions, Graphs, and Models. Algebra Toolbox. Sets. The Real Numbers. Inequalities and Intervals on the Real Number Line

Essential Mathematics for Computer Graphics fast

Algebra Academic Content Standards Grade Eight and Grade Nine Ohio. Grade Eight. Number, Number Sense and Operations Standard

Nonlinear Iterative Partial Least Squares Method

Algebra 1 Course Information

f x a 0 n 1 a 0 a 1 cos x a 2 cos 2x a 3 cos 3x b 1 sin x b 2 sin 2x b 3 sin 3x a n cos nx b n sin nx n 1 f x dx y

Manhattan Center for Science and Math High School Mathematics Department Curriculum

November 16, Interpolation, Extrapolation & Polynomial Approximation

CORRELATED TO THE SOUTH CAROLINA COLLEGE AND CAREER-READY FOUNDATIONS IN ALGEBRA

Algebra I Vocabulary Cards

AN INTRODUCTION TO NUMERICAL METHODS AND ANALYSIS

Review of Fundamental Mathematics

Estimated Pre Calculus Pacing Timeline

Big Ideas in Mathematics

CHAPTER 13 SIMPLE LINEAR REGRESSION. Opening Example. Simple Regression. Linear Regression

Calibration and Linear Regression Analysis: A Self-Guided Tutorial

POLYNOMIAL AND MULTIPLE REGRESSION. Polynomial regression used to fit nonlinear (e.g. curvilinear) data into a least squares linear regression model.

SCHWEITZER ENGINEERING LABORATORIES, COMERCIAL LTDA.

How To Understand And Solve Algebraic Equations

Sequence of Mathematics Courses

SIGNAL PROCESSING & SIMULATION NEWSLETTER

In mathematics, there are four attainment targets: using and applying mathematics; number and algebra; shape, space and measures, and handling data.

Appendix 3 IB Diploma Programme Course Outlines

1) Write the following as an algebraic expression using x as the variable: Triple a number subtracted from the number

SGN-1158 Introduction to Signal Processing Test. Solutions

EECS 556 Image Processing W 09. Interpolation. Interpolation techniques B splines

Vocabulary Words and Definitions for Algebra

Georgia Department of Education Kathy Cox, State Superintendent of Schools 7/19/2005 All Rights Reserved 1

Numerical Analysis Introduction. Student Audience. Prerequisites. Technology.

Biggar High School Mathematics Department. National 5 Learning Intentions & Success Criteria: Assessing My Progress

the points are called control points approximating curve

Creating, Solving, and Graphing Systems of Linear Equations and Linear Inequalities

8 Filtering. 8.1 Mathematical operation

Demand Forecasting When a product is produced for a market, the demand occurs in the future. The production planning cannot be accomplished unless

Operation Count; Numerical Linear Algebra

CHAPTER 6 Frequency Response, Bode Plots, and Resonance

The KaleidaGraph Guide to Curve Fitting

ECE 842 Report Implementation of Elliptic Curve Cryptography

Simple linear regression

Introduction to Complex Numbers in Physics/Engineering

We can display an object on a monitor screen in three different computer-model forms: Wireframe model Surface Model Solid model

DRAFT. Algebra 1 EOC Item Specifications

Analog and Digital Signals, Time and Frequency Representation of Signals

Simple Predictive Analytics Curtis Seare

Math 1. Month Essential Questions Concepts/Skills/Standards Content Assessment Areas of Interaction

PCHS ALGEBRA PLACEMENT TEST

South Carolina College- and Career-Ready (SCCCR) Algebra 1

SOLVING TRIGONOMETRIC EQUATIONS

The Method of Least Squares. Lectures INF2320 p. 1/80

ANALYSIS OF TREND CHAPTER 5

Expression. Variable Equation Polynomial Monomial Add. Area. Volume Surface Space Length Width. Probability. Chance Random Likely Possibility Odds

Overview. Essential Questions. Precalculus, Quarter 4, Unit 4.5 Build Arithmetic and Geometric Sequences and Series

3.2 Sources, Sinks, Saddles, and Spirals

Diablo Valley College Catalog

PRE-CALCULUS GRADE 12

X On record with the USOE.

Indiana State Core Curriculum Standards updated 2009 Algebra I

The Calculation of G rms

AP CALCULUS BC 2008 SCORING GUIDELINES

ANALYTICAL METHODS FOR ENGINEERS

Pearson Algebra 1 Common Core 2015

X X X a) perfect linear correlation b) no correlation c) positive correlation (r = 1) (r = 0) (0 < r < 1)

Understanding Poles and Zeros

TMA4213/4215 Matematikk 4M/N Vår 2013

Numerical Methods. Numerical Methods. for Engineers. for Engineers. Steven C. Chapra Raymond P. Canale. Chapra Canale. Sixth Edition.

Exercise 1.12 (Pg )

(Refer Slide Time: 01:11-01:27)

TCOM 370 NOTES 99-4 BANDWIDTH, FREQUENCY RESPONSE, AND CAPACITY OF COMMUNICATION LINKS

Module 3: Correlation and Covariance

Step Response of RC Circuits

1 Review of Least Squares Solutions to Overdetermined Systems

Florida Math for College Readiness

Note on growth and growth accounting

Transcription:

Next: Numerical Differentiation and Integration Up: Numerical Analysis for Chemical Previous: Optimization Subsections Least-Squares Regression Linear Regression General Linear Least-Squares Nonlinear Regression Interpolation Newton's Divided-Difference Interpolating Polynomials Lagrange Interpolating Polynomial Spline Interpolation Fourier Approximation Curve Fitting with Sinusoidal Functions Fourier Integral and Transform Discrete Fourier Transform (DFT) Fast Fourier Transform (FFT) The Power Spectrum Curve Fitting with Libraries and Packagies Engineering Applications: Curve Fitting Curve Fitting Figure 5.1: Three attempts to fit a best curve. The simplest method for fitting a curve to data is to plot the points and then sketch a line (a) Characterize the general upward trend of the data with a straight line (b) Use straight-line segment or linear interpolation (c) Use curves to try to captuer the meanderings Simple statistics Arithmetic mean Standard deviation : the measure of spread of a sample

where is the total sum of the squares of the residual between the data points and the mean, or Variance : The square of the standard deviation Coefficient of variation (c.v.) : The spread of data Least-Squares Regression Lest-squares regression is drived from a curve that minimized the discrepancy between the data points and the curve. Linear Regression A least-squares approximation is fitting a straight line to a set of paired observation. The mathematical expression for the straight line is (5.1) The error, or residual, is the discrepancy between the true value of and the approximate value, and that is (5.2) The criterion for least-squares regression is (5.3) To determine values of and, differentiate (5.3) (5.4) (5.5) And setting these derivatives equal to zero, we get the so-called normal equations

0 (5.6) 0 (5.7) The coefficients of a straight line are (5.8) (5.9) Quantification of error of linear regression The sum of the square of the residual A sampled data system A linear regressioned system Standard deviation A sampled data system quantifies the spread around mean. A linear regressioned system quantifies the spread around the regression line. The goodness of a fit where is called the coefficient of determination and is the correlation coefficient. See the figure 17.4 in the textbook

General Linear Least-Squares The general linear least-square model: Figure 5.2: The residual in linear regression (5.15) In matrix notation (5.16) Note that Z is not a square matrix but we want to know about. (5.17) Now A is (5.18) Nonlinear Regression Gauss-Newton method 1. Use a Taylor series to linearize a nonlinear function 2. Apply least-square theorie to obtain new estimate of the parameters that move in the direction of minimizing the residual. Interpolation Newton's Divided-Difference Interpolating Polynomials Linear interpolation : connect two data points with a straight line (5.19)

Quadratic interpolation : connect three data points with a second-order polynomial (5.20) where Newton's interpolating polynomial : connect data with th-order polynomial (5.21) where the coefficients are where the bracket function evaluations are finite divided differences. th finite divided difference is (5.22) Newton's divided-difference interpolating polynomial is (5.23) Lagrange Interpolating Polynomial The Lagrange interpolating polynomial is simply a reformulation of the Newton polynomial that avoids the computation of divided differences. (5.24) where

(5.25) where designates the ``product of.'' Spline Interpolation Spline interpolation is an alternative approach that lower-order polynomial is applied to subsets of data point. Especially, when third-order curves are employed to connect each pair of data points, it is called cubic spline. Linear splines : the simplest connection between two points is a straight line. where is the slope of the straight line (5.26) Quadratic splines : connect three points with second-order polynomials. The function values of adjacent polynomials must be equal at the interior knots. The first and last functions must pass through the end points. The first derivatives at the interior knots must be equal. Assume that the second derivative is zero at the first point. Cubic splines : derive a third-order polynomial for each interval between knots (5.27) Fourier Approximation In early 1800s, the French mathematician Fourier proposed that ``any function can be represented by an infinite sum of sine and cosine terms.'' There are functions that do not have a representation as a Fourier series, however, most functions can be so represented. Fourier approximation is another representation of a function with trigonometric series. Trigonometric identities Fourier series

Assume that is a periodic function of period and is integrable over a period. (5.28) : integrating on both sides of (5.28) from to. The last two integrations of trigonometric terms are equal to zero. Hence : multiply both sides of (5.28) by and integrate The only nonzero term on the right is when in the first summation : multiply both sides of (5.28) by and integrate The only nonzero term on the right is when in the second summation Fourier series for any period Consider the function whose period is.

(5.33) where the Fourier coefficients of are given by the Euler formulas (5.34) Fourier series for even and odd functions Even function: And integral value of a even function is Odd function: And integral value of a even function is Fourier cosine series: the Fourier series of an even function of period. Fourier sine series: the Fourier series of an odd function of period. Complex form of Fourier series : Real sines and cosines can be expressed in terms of complex exponentials by the formulas (5.41)

From this (5.42) (5.43) (5.44) With the above equation (5.45) where This is the so-called complex form of the Fourier series, or complex Fourier series of. Sinusoidal function : represent any waveform with a sine or cosine (5.46) where is the mean value, is the amplitude, is the angular frequency, and is the phase angle or phase shift. The angular frequency is related to frequency (in cycles/time) (5.47) and frequency is (5.48) The trigonometric identity gives (5.49) where,

Curve Fitting with Sinusoidal Functions Least-squares fit of a sinusoidal function is to determine coefficient values that minimize (5.50) (5.51) For equispaced system (5.52) where. These relationhips give (5.53) or (5.54) (5.55) (5.56) The above equations are similar with the determination of Fourier series.

Fourier Integral and Transform Some of phenomenon does not occured repeatedly or it will be a long time until it occurs again. In this case we use Fourier integral that can be used to represent nonperiodic functions, for example a single voltage pulse not repeated, or a flash of light, or a sound which is not repeated. The transition from a periodic to a nonperiodic function can be effected by allowing the period to approach infinity. In other words, as becomes infinite, the function never repeats itself and thus becomes aperiodic. From Fourier series to the Fourier intergral Figure 5.3: The Fourier series approximation of the square wave. Consider any periodic function of period (5.57) where. Insert and which are given by the Euler formulas. Now set (5.58) Then, and

Let and assume a periodic function to be a aperiodic function. (5.59) Then and the first term of function approaches zero. (5.60) results in and the sum of infinite series become an integral from 0 to. (5.61) Introduce and as (5.62) Finally Fourier series for an aperiodic equation become (5.63) This is called a representation of by a Fourier integral. Alternatively, the Fourier integral can be written as complex Fourier series. (5.64) (5.65) Use (5.66) (5.67)

where (5.68) If goes to zero, a limit of a sum becomes an integral (5.69) (5.70) Define by (5.71) Then (5.72) Fourier Transform (5.73) and are called a pair of Fourier transforms. Usually, is called the Fourier transform of, and is called the inverse Fourier transform of. Discrete Fourier Transform (DFT) In engineering, functions are often represented by finite sets of discrete values and data is often collected in or converted to such a discrete format. For the discrete time system, a discrete Fourier transform can be written as (5.74) and the inverse Fourier transform as

(5.75) where. Fast Fourier Transform (FFT) The fast Fourier transform (FFT) is an algorithm that has been developed to compute the DFT in an extremely economical fashion. The Power Spectrum A power spectrum is developed from the Fourier transform and it is derived from the analysis of the power output of electrical systems. The power of a periodic signal can be defined as (5.76) A power spectrum can be calculated by the power associated with each frequency component. Curve Fitting with Libraries and Packagies Matlab: polyfit polyval poly2sym interp1 spline fft IMSL: various routines are exist to solve curve fitting and fft problems Engineering Applications: Curve Fitting See the textbook Next: Numerical Differentiation and Integration Up: Numerical Analysis for Chemical Previous: Optimization Taechul Lee 2001-11-29