Least squares regression

Size: px
Start display at page:

Download "Least squares regression"

Transcription

1 Curve Fitting Least squares regression Interpolation

2 Two categories of curve fitting. 1. Linear least squares regression, determining the straight line that best fits data points. 2. Interpolation, determining a curved line that goes through a series of points.

3 Linear Least Squares Regression (to find the formula of a straight line that best fits data points) e i The vertical distance, e i, between data point i and a straight line is, e = y a a x i i 0 1 i The goal is to minimize n i= 1 e i

4 Instead of minimizing the sum of the distances, minimizing the sum of the squares of the distances (the residuals) has the sameeffecteffect and is easier mathematically. n n 2 r = i = i 0 1 i i= 1 i= 1 ( ) 2 S e y a a x How can we find the values of a 0 and a 1 to minimize S r?

5 In the case of a function f = f(x), we can find the minimum by setting the derivative of f with respect to x equal to zero, df dx = 0 But S r is a function of two variables, a 0 and a 1, S r (a 0,a 1 ); therefore, S a r Sr = 0& = 0 a 0 1

6 Evaluation of derivatives, S n = 2 y a a x = 0 r ( ) i 0 1 i a 0 i= 1 and n Sr = 2 ( y ) i a0 a1xi xi = 0 a 1 i= 1 y i a 0 a1xi 0 = and yx ax ax 2 i i 0 i 1 i = 0

7 Rearrange, + = na a x y 0 1 i i y a x + a x = y x 2 0 i 1 i i i 2 The values, n, x, y, x, y x i i i i i can be determined dfrom the data.

8 Solve for a 0 and a a n x y x y = ( ) i i i i n xi xi a0 = y a1x where, x y = xi n y i = n

9 Example (using MATLAB for calculations) >> x = [ ]; >> y = [ ]; >> sumxy = sum(x.*y) sumxy = 911 >> sumx = sum(x); >> sumy = sum(y); >> sumx2 = sum(x.^2); >> n = size(x,2) n = 10 >> a1 = (n*sumxy sumx*sumy) / (n*sumx2 sumx^2) a1 = >> xmean = sumx/n; >> ymean = sumy/n; >> a0 = ymean a1*xmean a0 = >> xx = linspace(0,20); >> yy = a1*xx + a0; >> plot(xx,yy,x,y,'o )

10 Non linear least squares residuals. Some non linear formulas for y = y(x) can be linearized to linear formulas. β 1 x y = α e ln y = β x+ ln α β2 y x y β x = α ln = β ln + lnα y x 1 β + x β = α 3 = = + β3+ x y α3x α3 x α3

11 Example To Find: Fit an exponential model to, x y Solution: Linearize the exponential equation, β1x y e ln y x = α = β + lnα 1 1 1

12 Calculations using MATLAB β1x y e ln y x = α = β + lnα >> x = [.4 [ ]; 2.3]; >> y = [ ]; >> lny = log(y); >> p = polyfit(x,lny,1); >> beta1 = p(1) beta1 = >> alpha1 = exp(p(2)) alpha1 = >> xx = linspace(.2,2.4); >> yy = alpha1*exp(beta1*xx); >> plot(xx,yy,x,y,'h') >> y = 546.6e 0.819x

13 Using Excel for linear regressions, y = e x R² = y 2000 y 1500 Expon. (y)

14 Interpolation Interpolation with polynomials If n data points are given, a polynomial of degree n 1 can be determined that passes through all the points. >> x = [ ]; >> y = [ ]; >> p = polyfit(x,y,3) p = >> xx = linspace(0,3); >> yy = polyval(p,xx); >> plot(x,y,'o',xx,yy) 3 2 y = x x x

15 If the n data points are know to represent a polynomial, then using polyfit with degree n 1 is suitable for interpolation. If, however, the data points do not come from a polynomial function then higher order polynomials will not, in general, provide a good fit.

16 1 Example using Runge s function f ( x ) = x Data points from Runge s function x y Use the 9 points to create an 8 th degree polynomial and plot both Runge s function and the polynomial. >> x = linspace( 1,1,9); >> y = 1./(1+25*x.^2); >> p = polyfit(x,y,8); (,y,); >> xx = linspace( 1,1); >> yy = 1./(1+25*xx.^2); >> yyp = polyval(p,xx); >> plot(x,y, y'o',xx,yy, 'g',xx,yyp, 'r') >>

17 Interpolation using splines Splines are connected piecewise polynomials (linear, quadratic, cubic, quartic, etc.) that go from one data point to the next. In order to determine the coefficients of the In order to determine the coefficients of the polynomials, point location plus continuity of 1 st, 2 nd, etc. derivatives are used.

18 Consider the splines that connect the points. Spline 1 Point 1 2 Spline 2 Spline 3 Point 2 3 At point 1 2, the location, the slope, and the inflection of both spline 1 and spline 2 must match; likewise, at point 2 3, the same for splines 2 and 3. This information allows the coefficients of the cubic splines to be determined.

19 Usefulness of splines Splines are more versatile than polynomials for interpolating the regions between data points. Example (Runge s function) >> x = linspace( 1,1,9); >> y = 1./(1+25*x.^2); >> xx = linspace( 1,1); >> yy = 1./(1+25*xx.^2); >> yspline = spline(x,y,xx); >> plot(x,y,'o',xx,yy,'r',xx,yspline,'g') N h h i l i i id bl b Note that the interpolation is considerably better than that with the 8 th order polynomial.

20 Eample Example using splines for interpolation Consider data for an exponential curve. x y Determine the y value at x = 0.9 using splines. >> x = linspace(0,1,5); >> y = exp(x.^3); >> yp9 = spline(x,y,0.9) yp9 = >> yactual =exp((0.9)^3) yactual = >>

Curve Fitting and Interpolation

Curve Fitting and Interpolation Chapter 5 Curve Fitting and Interpolation 5.1 Basic Concepts Consider a set of (x, y) data pairs (points) collected during an experiment, Curve fitting: is a procedure to develop or evaluate mathematical

More information

Curve Fitting. Objectives

Curve Fitting. Objectives Curve Fitting Objectives Understanding the difference between regression and interpolation. Knowing how to fit curve of discrete with least-squares regression. Knowing how to compute and understand the

More information

Regression and Nonlinear Axes

Regression and Nonlinear Axes Introduction to Chemical Engineering Calculations Lecture 2. What is regression analysis? A technique for modeling and analyzing the relationship between 2 or more variables. Usually, 1 variable is designated

More information

Exam 2. Average: 85.6 Median: 87.0 Maximum: Minimum: 55.0 Standard Deviation: Numerical Methods Fall 2011 Lecture 20

Exam 2. Average: 85.6 Median: 87.0 Maximum: Minimum: 55.0 Standard Deviation: Numerical Methods Fall 2011 Lecture 20 Exam 2 Average: 85.6 Median: 87.0 Maximum: 100.0 Minimum: 55.0 Standard Deviation: 10.42 Fall 2011 1 Today s class Multiple Variable Linear Regression Polynomial Interpolation Lagrange Interpolation Newton

More information

Curve Fitting. Least Squares Regression. Linear Regression

Curve Fitting. Least Squares Regression. Linear Regression Curve Fitting Curve fitting is expressing or modelling a discrete set of data points as a continuous function. There are two main branches of curve fitting which are regression and interpolation. Regression

More information

Interpolation and Polynomial Approximation I

Interpolation and Polynomial Approximation I Interpolation and Polynomial Approximation I If f (n) (x), n are available, Taylor polynomial is an approximation: f (x) = f (x 0 )+f (x 0 )(x x 0 )+ 1 2! f (x 0 )(x x 0 ) 2 + Example: e x = 1 + x 1! +

More information

Cubic Splines MATH 375. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Cubic Splines

Cubic Splines MATH 375. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Cubic Splines Cubic Splines MATH 375 J. Robert Buchanan Department of Mathematics Fall 2006 Introduction Given data {(x 0, f(x 0 )), (x 1, f(x 1 )),...,(x n, f(x n ))} which we wish to interpolate using a polynomial...

More information

Interpolation (Shape Functions)

Interpolation (Shape Functions) Mètodes Numèrics: A First Course on Finite Elements Interpolation (Shape Functions) Following: Curs d Elements Finits amb Aplicacions (J. Masdemont) http://hdl.handle.net/2099.3/36166 Dept. Matemàtiques

More information

CURVE FITTING LEAST SQUARE LINE. Consider the class of linear function of the form. = Ax+ B...(1)

CURVE FITTING LEAST SQUARE LINE. Consider the class of linear function of the form. = Ax+ B...(1) CURVE FITTIG LEAST SQUARE LIE Consider the class of linear function of the form y = f( x) = B...() In previous chapter we saw how to construct a polynomial that passes through a set of points. If all numerical

More information

Input: A set (x i -yy i ) data. Output: Function value at arbitrary point x. What for x = 1.2?

Input: A set (x i -yy i ) data. Output: Function value at arbitrary point x. What for x = 1.2? Applied Numerical Analysis Interpolation Lecturer: Emad Fatemizadeh Interpolation Input: A set (x i -yy i ) data. Output: Function value at arbitrary point x. 0 1 4 1-3 3 9 What for x = 1.? Interpolation

More information

MATH ASSIGNMENT 07 SOLUTIONS. 8.1 Following is census data showing the population of the US between 1900 and 2000:

MATH ASSIGNMENT 07 SOLUTIONS. 8.1 Following is census data showing the population of the US between 1900 and 2000: MATH4414.01 ASSIGNMENT 07 SOLUTIONS 8.1 Following is census data showing the population of the US between 1900 and 2000: Years after 1900 Population in millions 0 76.0 20 105.7 40 131.7 60 179.3 80 226.5

More information

Salinity Calibration fit with Matlab

Salinity Calibration fit with Matlab Salinity Calibration fit with Matlab ME 121 Notes Gerald Recktenwald Portland State University Department of Mechanical Engineering gerry@pdx.edu ME 121: Salinity calibration fit Overview These slides

More information

Interpolation APPLIED PROBLEMS. Reading Between the Lines FLY ROCKET FLY, FLY ROCKET FLY WHAT IS INTERPOLATION? Figure Interpolation of discrete data.

Interpolation APPLIED PROBLEMS. Reading Between the Lines FLY ROCKET FLY, FLY ROCKET FLY WHAT IS INTERPOLATION? Figure Interpolation of discrete data. WHAT IS INTERPOLATION? Given (x 0,y 0 ), (x,y ), (x n,y n ), find the value of y at a value of x that is not given. Interpolation Reading Between the Lines Figure Interpolation of discrete data. FLY ROCKET

More information

(0, 0), (1, ), (2, ), (3, ), (4, ), (5, ), (6, ).

(0, 0), (1, ), (2, ), (3, ), (4, ), (5, ), (6, ). 1 Interpolation: The method of constructing new data points within the range of a finite set of known data points That is if (x i, y i ), i = 1, N are known, with y i the dependent variable and x i [x

More information

Part I 5. Part II 2. Part III 8. Part IV 10. Part V 5 TOTAL 30

Part I 5. Part II 2. Part III 8. Part IV 10. Part V 5 TOTAL 30 Page 1 of 10 Name/SID SOLUTION UNIVERSITY OF CALIFORNIA, COLLEGE OF ENGINEERING E77: INTRODUCTION TO COMPUTER PROGRAMMINGFOR SCIENTISTS AND ENGINEERS Professor Raja Sengupta Spring 2007 2nd Midterm Exam

More information

Math 307: Problems for section 3.1

Math 307: Problems for section 3.1 Math 307: Problems for section 3.. Show that if P is an orthogonal projection matrix, then P x x for every x. Use this inequality to prove the Cauchy Schwarz inequality x y x y. If P is an orthogonal projection

More information

5.3. Polynomials and Polynomial Functions

5.3. Polynomials and Polynomial Functions 5.3 Polynomials and Polynomial Functions Polynomial Vocabulary Term a number or a product of a number and variables raised to powers Coefficient numerical factor of a term Constant term which is only a

More information

x x2 2 + x3 3 x4 3. Use the divided-difference method to find a polynomial of least degree that fits the values shown: (b)

x x2 2 + x3 3 x4 3. Use the divided-difference method to find a polynomial of least degree that fits the values shown: (b) Numerical Methods - PROBLEMS. The Taylor series, about the origin, for log( + x) is x x2 2 + x3 3 x4 4 + Find an upper bound on the magnitude of the truncation error on the interval x.5 when log( + x)

More information

Q1. Discuss, compare and contrast various curve fitting and interpolation methods

Q1. Discuss, compare and contrast various curve fitting and interpolation methods Q1. Discuss, compare and contrast various curve fitting and interpolation methods McMaster University 1 Curve Fitting Problem statement: Given a set of (n + 1) point-pairs {x i,y i }, i = 0,1,... n, find

More information

Linear Equations. Find the domain and the range of the following set. {(4,5), (7,8), (-1,3), (3,3), (2,-3)}

Linear Equations. Find the domain and the range of the following set. {(4,5), (7,8), (-1,3), (3,3), (2,-3)} Linear Equations Domain and Range Domain refers to the set of possible values of the x-component of a point in the form (x,y). Range refers to the set of possible values of the y-component of a point in

More information

Review of Section 1.1. Mathematical Models. Review of Section 1.1. Review of Section 1.1. Functions. Domain and range. Piecewise functions

Review of Section 1.1. Mathematical Models. Review of Section 1.1. Review of Section 1.1. Functions. Domain and range. Piecewise functions Review of Section 1.1 Functions Mathematical Models Domain and range Piecewise functions January 19, 2017 Even and odd functions Increasing and decreasing functions Mathematical Models January 19, 2017

More information

The highest degree term is x $, therefore the function is degree 4 (quartic) c) What are the x-intercepts?

The highest degree term is x $, therefore the function is degree 4 (quartic) c) What are the x-intercepts? L3 1.3 Factored Form Polynomial Functions Lesson MHF4U Jensen In this section, you will investigate the relationship between the factored form of a polynomial function and the x-intercepts of the corresponding

More information

CHAPTER Order points and then develop a divided difference table:

CHAPTER Order points and then develop a divided difference table: 1 CHAPTER 17 17.1 Order points and then develop a divided difference table: x y First Second Third Fourth Fifth Sixth 5 5.75 -.45 0.75 -.E-17 1.51788E-18 7.54895E-19 -.5719E-19 1.8 16.415 -.075 0.75-1.7E-17

More information

Polynomial Functions

Polynomial Functions Polynomial Functions Equations and Graphs Characteristics The Factor Theorem The Remainder Theorem http://www.purplemath.com/modules/polyends5.htm 1 A cross-section of a honeycomb has a pattern with one

More information

AMTH142 Lecture 16. Least Squares

AMTH142 Lecture 16. Least Squares AMTH1 Lecture 1 Least Squares April, 7 All the Scilab functions defined in this Lecture can be found in the file l1.sci in the directory for this lecture. Contents 1.1 Least Squares...........................

More information

Lecture 10 Polynomial interpolation

Lecture 10 Polynomial interpolation Lecture 10 Polynomial interpolation Weinan E 1,2 and Tiejun Li 2 1 Department of Mathematics, Princeton University, weinan@princeton.edu 2 School of Mathematical Sciences, Peking University, tieli@pku.edu.cn

More information

Preliminaries Lectures. Dr. Abdulla Eid. Department of Mathematics MATHS 101: Calculus I

Preliminaries Lectures. Dr. Abdulla Eid. Department of Mathematics   MATHS 101: Calculus I Preliminaries 2 1 2 Lectures Department of Mathematics http://www.abdullaeid.net/maths101 MATHS 101: Calculus I (University of Bahrain) Prelim 1 / 35 Pre Calculus MATHS 101: Calculus MATHS 101 is all about

More information

Math 1311 Section 5.5 Polynomials and Rational Functions

Math 1311 Section 5.5 Polynomials and Rational Functions Math 1311 Section 5.5 Polynomials and Rational Functions In addition to linear, exponential, logarithmic, and power functions, many other types of functions occur in mathematics and its applications. In

More information

General Linear Least-Squares and Nonlinear Regression

General Linear Least-Squares and Nonlinear Regression Part 4 Chapter 14 General Linear Least-Squares and Nonlinear Regression PowerPoints organized by Dr. Michael R. Gustafson II, Duke University Revised by Prof. Jang, CAU All images copyright The McGraw-Hill

More information

Least Squares Regression

Least Squares Regression Least Squares Regression Chemical Engineering 2450 - Numerical Methods Given N data points x i, y i, i 1 N, and a function that we wish to fit to these data points, fx, we define S as the sum of the squared

More information

Quantitative Techniques (Finance) 203. Polynomial Functions

Quantitative Techniques (Finance) 203. Polynomial Functions Quantitative Techniques (Finance) 03 Polynomial Functions Felix Chan October 006 Introduction This topic discusses the properties and the applications of polynomial functions, specifically, linear and

More information

Q 0 x if x 0 x x 1. S 1 x if x 1 x x 2. i 0,1,...,n 1, and L x L n 1 x if x n 1 x x n

Q 0 x if x 0 x x 1. S 1 x if x 1 x x 2. i 0,1,...,n 1, and L x L n 1 x if x n 1 x x n . - Piecewise Linear-Quadratic Interpolation Piecewise-polynomial Approximation: Problem: Givenn pairs of data points x i, y i, i,,...,n, find a piecewise-polynomial Sx S x if x x x Sx S x if x x x 2 :

More information

ERASMUS UNIVERSITY ROTTERDAM Information concerning the Entrance examination Mathematics level 2 for International Business Administration (IBA)

ERASMUS UNIVERSITY ROTTERDAM Information concerning the Entrance examination Mathematics level 2 for International Business Administration (IBA) ERASMUS UNIVERSITY ROTTERDAM Information concerning the Entrance examination Mathematics level 2 for International Business Administration (IBA) General information Availale time: 2.5 hours (150 minutes).

More information

POLYNOMIAL FUNCTIONS. Chapter 5

POLYNOMIAL FUNCTIONS. Chapter 5 POLYNOMIAL FUNCTIONS Chapter 5 5.1 EXPLORING THE GRAPHS OF POLYNOMIAL FUNCTIONS 5.2 CHARACTERISTICS OF THE EQUATIONS OF POLYNOMIAL FUNCTIONS Chapter 5 POLYNOMIAL FUNCTIONS What s a polynomial? A polynomial

More information

Chapter 1 Numerical approximation of data : interpolation, least squares method

Chapter 1 Numerical approximation of data : interpolation, least squares method Chapter 1 Numerical approximation of data : interpolation, least squares method I. Motivation 1 Approximation of functions Evaluation of a function Which functions (f : R R) can be effectively evaluated

More information

Functions: Polynomial, Rational, Exponential

Functions: Polynomial, Rational, Exponential Functions: Polynomial, Rational, Exponential MATH 151 Calculus for Management J. Robert Buchanan Department of Mathematics Spring 2014 Objectives In this lesson we will learn to: identify polynomial expressions,

More information

Newton s Method and Linear Approximations

Newton s Method and Linear Approximations Newton s Method and Linear Approximations Curves are tricky. Lines aren t. Newton s Method and Linear Approximations Newton s Method for finding roots Goal: Where is f (x) = 0? f (x) = x 7 + 3x 3 + 7x

More information

Steps for Regression. Simple Linear Regression. Data. Example. Residuals vs. X. Scatterplot. Make a Scatter plot Does it make sense to plot a line?

Steps for Regression. Simple Linear Regression. Data. Example. Residuals vs. X. Scatterplot. Make a Scatter plot Does it make sense to plot a line? Steps for Regression Simple Linear Regression Make a Scatter plot Does it make sense to plot a line? Check Residual Plot (Residuals vs. X) Are there any patterns? Check Histogram of Residuals Is it Normal?

More information

Non-Linear Regression

Non-Linear Regression Non-Linear Regression Recall that linear regression is a technique for finding the equation of the line of best fit (LOBF) when two variables have a linear association (i.e. changes in one variable tend

More information

Engineering 7: Introduction to computer programming for scientists and engineers

Engineering 7: Introduction to computer programming for scientists and engineers Engineering 7: Introduction to computer programming for scientists and engineers Interpolation Recap Polynomial interpolation Spline interpolation Regression and Interpolation: learning functions from

More information

6x 2 8x + 5 ) = 12x 8. f (x) ) = d (12x 8) = 12

6x 2 8x + 5 ) = 12x 8. f (x) ) = d (12x 8) = 12 AMS/ECON 11A Class Notes 11/6/17 UCSC *) Higher order derivatives Example. If f = x 3 x + 5x + 1, then f = 6x 8x + 5 Observation: f is also a differentiable function... d f ) = d 6x 8x + 5 ) = 1x 8 dx

More information

SPLINE INTERPOLATION

SPLINE INTERPOLATION Spline Background SPLINE INTERPOLATION Problem: high degree interpolating polynomials often have extra oscillations. Example: Runge function f(x = 1 1+4x 2, x [ 1, 1]. 1 1/(1+4x 2 and P 8 (x and P 16 (x

More information

Statistics 3657 : Moment Approximations

Statistics 3657 : Moment Approximations Statistics 3657 : Moment Approximations Preliminaries Suppose that we have a r.v. and that we wish to calculate the expectation of g) for some function g. Of course we could calculate it as Eg)) by the

More information

Ordinary Differential Equations (ode)

Ordinary Differential Equations (ode) Ordinary Differential Equations (ode) Numerical Methods for Solving Initial condition (ic) problems and Boundary value problems (bvp) What is an ODE? =,,...,, yx, dx dx dx dx n n 1 n d y d y d y In general,

More information

BSM510 Numerical Analysis

BSM510 Numerical Analysis BSM510 Numerical Analysis Polynomial Interpolation Prof. Manar Mohaisen Department of EEC Engineering Review of Precedent Lecture Polynomial Regression Multiple Linear Regression Nonlinear Regression Lecture

More information

Evaluate and Graph Polynomial Functions

Evaluate and Graph Polynomial Functions Evaluate and Graph Polynomial Functions Section 2.2 How do you identify and evaluate polynomial functions? What is synthetic substitution? How do you graph polynomial functions? Polynomial Function f(x)

More information

6x 2 8x + 5 ) = 12x 8

6x 2 8x + 5 ) = 12x 8 Example. If f(x) = x 3 4x + 5x + 1, then f (x) = 6x 8x + 5 Observation: f (x) is also a differentiable function... d dx ( f (x) ) = d dx ( 6x 8x + 5 ) = 1x 8 The derivative of f (x) is called the second

More information

MA3457/CS4033: Numerical Methods for Calculus and Differential Equations

MA3457/CS4033: Numerical Methods for Calculus and Differential Equations MA3457/CS4033: Numerical Methods for Calculus and Differential Equations Course Materials P A R T II B 14 2014-2015 1 2. APPROXIMATION CLASS 9 Approximation Key Idea Function approximation is closely related

More information

Histogram of Residuals. Residual Normal Probability Plot. Reg. Analysis Check Model Utility. (con t) Check Model Utility. Inference.

Histogram of Residuals. Residual Normal Probability Plot. Reg. Analysis Check Model Utility. (con t) Check Model Utility. Inference. Steps for Regression Simple Linear Regression Make a Scatter plot Does it make sense to plot a line? Check Residual Plot (Residuals vs. X) Are there any patterns? Check Histogram of Residuals Is it Normal?

More information

Simple Linear Regression. Steps for Regression. Example. Make a Scatter plot. Check Residual Plot (Residuals vs. X)

Simple Linear Regression. Steps for Regression. Example. Make a Scatter plot. Check Residual Plot (Residuals vs. X) Simple Linear Regression 1 Steps for Regression Make a Scatter plot Does it make sense to plot a line? Check Residual Plot (Residuals vs. X) Are there any patterns? Check Histogram of Residuals Is it Normal?

More information

Matrix Theory and Differential Equations Homework 2 Solutions, due 9/7/6

Matrix Theory and Differential Equations Homework 2 Solutions, due 9/7/6 Matrix Theory and Differential Equations Homework Solutions, due 9/7/6 Question 1 Consider the differential equation = x y +. Plot the slope field for the differential equation. In particular plot all

More information

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science EAD 115 Numerical Solution of Engineering and Scientific Problems David M. Rocke Department of Applied Science Multidimensional Unconstrained Optimization Suppose we have a function f() of more than one

More information

Newton s Method and Linear Approximations

Newton s Method and Linear Approximations Newton s Method and Linear Approximations Newton s Method for finding roots Goal: Where is f (x) =0? f (x) =x 7 +3x 3 +7x 2 1 2-1 -0.5 0.5-2 Newton s Method for finding roots Goal: Where is f (x) =0? f

More information

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. C) x 8. C) y = x + 3 2

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. C) x 8. C) y = x + 3 2 Precalculus Fall Final Exam Review Name Date Period MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Simplify the expression. Assume that the variables

More information

a factors The exponential 0 is a special case. If b is any nonzero real number, then

a factors The exponential 0 is a special case. If b is any nonzero real number, then 0.1 Exponents The expression x a is an exponential expression with base x and exponent a. If the exponent a is a positive integer, then the expression is simply notation that counts how many times the

More information

A monomial or sum of monomials

A monomial or sum of monomials Polynomial: A monomial or sum of monomials Polynomial in x is an expression of the form a n x n + a n 1 x n 1 + a n 2 x n 2 +. a 1 x 1 + a 0 where n is a positive integer and a n 0 Example: 6x 3 + 2x 8x

More information

Logarithmic Functions

Logarithmic Functions Name Student ID Number Group Name Group Members Logarithmic Functions 1. Solve the equations below. xx = xx = 5. Were you able solve both equations above? If so, was one of the equations easier to solve

More information

Computational Physics

Computational Physics Interpolation, Extrapolation & Polynomial Approximation Lectures based on course notes by Pablo Laguna and Kostas Kokkotas revamped by Deirdre Shoemaker Spring 2014 Introduction In many cases, a function

More information

Interpolation Theory

Interpolation Theory Numerical Analysis Massoud Malek Interpolation Theory The concept of interpolation is to select a function P (x) from a given class of functions in such a way that the graph of y P (x) passes through the

More information

Copula Regression RAHUL A. PARSA DRAKE UNIVERSITY & STUART A. KLUGMAN SOCIETY OF ACTUARIES CASUALTY ACTUARIAL SOCIETY MAY 18,2011

Copula Regression RAHUL A. PARSA DRAKE UNIVERSITY & STUART A. KLUGMAN SOCIETY OF ACTUARIES CASUALTY ACTUARIAL SOCIETY MAY 18,2011 Copula Regression RAHUL A. PARSA DRAKE UNIVERSITY & STUART A. KLUGMAN SOCIETY OF ACTUARIES CASUALTY ACTUARIAL SOCIETY MAY 18,2011 Outline Ordinary Least Squares (OLS) Regression Generalized Linear Models

More information

Newton s Method and Linear Approximations 10/19/2011

Newton s Method and Linear Approximations 10/19/2011 Newton s Method and Linear Approximations 10/19/2011 Curves are tricky. Lines aren t. Newton s Method and Linear Approximations 10/19/2011 Newton s Method Goal: Where is f (x) =0? f (x) =x 7 +3x 3 +7x

More information

1 Piecewise Cubic Interpolation

1 Piecewise Cubic Interpolation Piecewise Cubic Interpolation Typically the problem with piecewise linear interpolation is the interpolant is not differentiable as the interpolation points (it has a kinks at every interpolation point)

More information

Math Numerical Analysis Mid-Term Test Solutions

Math Numerical Analysis Mid-Term Test Solutions Math 400 - Numerical Analysis Mid-Term Test Solutions. Short Answers (a) A sufficient and necessary condition for the bisection method to find a root of f(x) on the interval [a,b] is f(a)f(b) < 0 or f(a)

More information

Numerical interpolation, extrapolation and fi tting of data

Numerical interpolation, extrapolation and fi tting of data Chapter 6 Numerical interpolation, extrapolation and fi tting of data 6.1 Introduction Numerical interpolation and extrapolation is perhaps one of the most used tools in numerical applications to physics.

More information

Applied Numerical Analysis Homework #3

Applied Numerical Analysis Homework #3 Applied Numerical Analysis Homework #3 Interpolation: Splines, Multiple dimensions, Radial Bases, Least-Squares Splines Question Consider a cubic spline interpolation of a set of data points, and derivatives

More information

Wed. Sept 28th: 1.3 New Functions from Old Functions: o vertical and horizontal shifts o vertical and horizontal stretching and reflecting o

Wed. Sept 28th: 1.3 New Functions from Old Functions: o vertical and horizontal shifts o vertical and horizontal stretching and reflecting o Homework: Appendix A: 1, 2, 3, 5, 6, 7, 8, 11, 13-33(odd), 34, 37, 38, 44, 45, 49, 51, 56. Appendix B: 3, 6, 7, 9, 11, 14, 16-21, 24, 29, 33, 36, 37, 42. Appendix D: 1, 2, 4, 9, 11-20, 23, 26, 28, 29,

More information

Taylor Series and Numerical Approximations

Taylor Series and Numerical Approximations Taylor Series and Numerical Approximations Hilary Weller h.weller@reading.ac.uk August 7, 05 An introduction to the concept of a Taylor series and how these are used in numerical analysis to find numerical

More information

polynomial function polynomial function of degree n leading coefficient leading-term test quartic function turning point

polynomial function polynomial function of degree n leading coefficient leading-term test quartic function turning point polynomial function polynomial function of degree n leading coefficient leading-term test quartic function turning point quadratic form repeated zero multiplicity Graph Transformations of Monomial Functions

More information

A Library of Functions

A Library of Functions LibraryofFunctions.nb 1 A Library of Functions Any study of calculus must start with the study of functions. Functions are fundamental to mathematics. In its everyday use the word function conveys to us

More information

Practice Calculus Test without Trig

Practice Calculus Test without Trig Practice Calculus Test without Trig The problems here are similar to those on the practice test Slight changes have been made 1 What is the domain of the function f (x) = 3x 1? Express the answer in interval

More information

MA.8.1 Students will apply properties of the real number system to simplify algebraic expressions and solve linear equations.

MA.8.1 Students will apply properties of the real number system to simplify algebraic expressions and solve linear equations. Focus Statement: Students will solve multi-step linear, quadratic, and compound equations and inequalities using the algebraic properties of the real number system. They will also graph linear and quadratic

More information

INTERPOLATION. and y i = cos x i, i = 0, 1, 2 This gives us the three points. Now find a quadratic polynomial. p(x) = a 0 + a 1 x + a 2 x 2.

INTERPOLATION. and y i = cos x i, i = 0, 1, 2 This gives us the three points. Now find a quadratic polynomial. p(x) = a 0 + a 1 x + a 2 x 2. INTERPOLATION Interpolation is a process of finding a formula (often a polynomial) whose graph will pass through a given set of points (x, y). As an example, consider defining and x 0 = 0, x 1 = π/4, x

More information

Observations Homework Checkpoint quizzes Chapter assessments (Possibly Projects) Blocks of Algebra

Observations Homework Checkpoint quizzes Chapter assessments (Possibly Projects) Blocks of Algebra September The Building Blocks of Algebra Rates, Patterns and Problem Solving Variables and Expressions The Commutative and Associative Properties The Distributive Property Equivalent Expressions Seeing

More information

AP Physics C Mechanics Calculus Basics

AP Physics C Mechanics Calculus Basics AP Physics C Mechanics Calculus Basics Among other things, calculus involves studying analytic geometry (analyzing graphs). The above graph should be familiar to anyone who has studied elementary algebra.

More information

Cubic Splines; Bézier Curves

Cubic Splines; Bézier Curves Cubic Splines; Bézier Curves 1 Cubic Splines piecewise approximation with cubic polynomials conditions on the coefficients of the splines 2 Bézier Curves computer-aided design and manufacturing MCS 471

More information

Lesson 6 Maximum Likelihood: Part III. (plus a quick bestiary of models)

Lesson 6 Maximum Likelihood: Part III. (plus a quick bestiary of models) Lesson 6 Maximum Likelihood: Part III (plus a quick bestiary of models) Homework You want to know the density of fish in a set of experimental ponds You observe the following counts in ten ponds: 5,6,7,3,6,5,8,4,4,3

More information

Lecture 5 - Logarithms, Slope of a Function, Derivatives

Lecture 5 - Logarithms, Slope of a Function, Derivatives Lecture 5 - Logarithms, Slope of a Function, Derivatives 5. Logarithms Note the graph of e x This graph passes the horizontal line test, so f(x) = e x is one-to-one and therefore has an inverse function.

More information

CCSS TRADITIONAL PATHWAY ALGEBRA I CONTENT MAP

CCSS TRADITIONAL PATHWAY ALGEBRA I CONTENT MAP Unit 1: Relationships Between Quantities and Reasoning with Equations 1 CCSS TRADITIONAL PATHWAY ALGEBRA I CONTENT MAP Interpreting Structure in Expressions 1.1.1 Identifying Terms, Factors, and Coefficients

More information

Polynomial Functions. x n 2 a n. x n a 1. f x = a o. x n 1 a 2. x 0, , a 1

Polynomial Functions. x n 2 a n. x n a 1. f x = a o. x n 1 a 2. x 0, , a 1 Polynomial Functions A polynomial function is a sum of multiples of an independent variable raised to various integer powers. The general form of a polynomial function is f x = a o x n a 1 x n 1 a 2 x

More information

Review for Mastery. Integer Exponents. Zero Exponents Negative Exponents Negative Exponents in the Denominator. Definition.

Review for Mastery. Integer Exponents. Zero Exponents Negative Exponents Negative Exponents in the Denominator. Definition. LESSON 6- Review for Mastery Integer Exponents Remember that means 8. The base is, the exponent is positive. Exponents can also be 0 or negative. Zero Exponents Negative Exponents Negative Exponents in

More information

Algebra III Chapter 2 Note Packet. Section 2.1: Polynomial Functions

Algebra III Chapter 2 Note Packet. Section 2.1: Polynomial Functions Algebra III Chapter 2 Note Packet Name Essential Question: Section 2.1: Polynomial Functions Polynomials -Have nonnegative exponents -Variables ONLY in -General Form n ax + a x +... + ax + ax+ a n n 1

More information

'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. EGR 53L Fall Test III. Rebecca A. Simmons & Michael R. Gustafson II

'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. EGR 53L Fall Test III. Rebecca A. Simmons & Michael R. Gustafson II 'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ EGR 53L Fall 2008 Test III Rebecca A. Simmons & Michael R. Gustafson II Name (please print) In keeping with the Community Standard, I have neither provided

More information

Lecture Note 3: Interpolation and Polynomial Approximation. Xiaoqun Zhang Shanghai Jiao Tong University

Lecture Note 3: Interpolation and Polynomial Approximation. Xiaoqun Zhang Shanghai Jiao Tong University Lecture Note 3: Interpolation and Polynomial Approximation Xiaoqun Zhang Shanghai Jiao Tong University Last updated: October 10, 2015 2 Contents 1.1 Introduction................................ 3 1.1.1

More information

Summer Packet for Students Taking Introduction to Calculus in the Fall

Summer Packet for Students Taking Introduction to Calculus in the Fall Summer Packet for Students Taking Introduction to Calculus in the Fall Algebra 2 Topics Needed for Introduction to Calculus Need to know: à Solve Equations Linear Quadratic Absolute Value Polynomial Rational

More information

f(x) = 2x + 5 3x 1. f 1 (x) = x + 5 3x 2. f(x) = 102x x

f(x) = 2x + 5 3x 1. f 1 (x) = x + 5 3x 2. f(x) = 102x x 1. Let f(x) = x 3 + 7x 2 x 2. Use the fact that f( 1) = 0 to factor f completely. (2x-1)(3x+2)(x+1). 2. Find x if log 2 x = 5. x = 1/32 3. Find the vertex of the parabola given by f(x) = 2x 2 + 3x 4. (Give

More information

Quartic Equation. By CH vd Westhuizen A unique Solution assuming Complex roots. Ax^4 + Bx^3 + Cx^2 + Dx + E = 0

Quartic Equation. By CH vd Westhuizen A unique Solution assuming Complex roots. Ax^4 + Bx^3 + Cx^2 + Dx + E = 0 Quartic Equation By CH vd Westhuizen A unique Solution assuming Complex roots The general Quartic is given by Ax^4 + Bx^3 + Cx^ + Dx + E = 0 As in the third order polynomial we are first going to reduce

More information

Math 120 Winter Handout 3: Finding a Formula for a Polynomial Using Roots and Multiplicities

Math 120 Winter Handout 3: Finding a Formula for a Polynomial Using Roots and Multiplicities Math 120 Winter 2009 Handout 3: Finding a Formula for a Polynomial Using Roots and Multiplicities 1 A polynomial function is any function of the form: y = c 0 + c 1 x + c 2 x 2 +... + c n x n where the

More information

CURVE FITTING LEAST SQUARE LINE. Consider the class of linear function of the form

CURVE FITTING LEAST SQUARE LINE. Consider the class of linear function of the form CURVE FITTIG LEAST SQUARE LIE Consider the class of linear function of the form f ( x) B...() In previous chapter we saw how to construct a polnomial that passes through a set of points. If all numerical

More information

A Story of Functions Curriculum Overview

A Story of Functions Curriculum Overview Rationale for Module Sequence in Algebra I Module 1: By the end of eighth grade, students have learned to solve linear equations in one variable and have applied graphical and algebraic methods to analyze

More information

ALGEBRA 1 PACING GUIDE

ALGEBRA 1 PACING GUIDE Unit 8 Graphing Quadratic Functions F-BF.3 F-IF.2 F-IF.4 F-IF.7a F-BF.1 Identify the effect on the graph of replacing f(x) by f(x) + k, k f(x), f(kx), and f(x + k) for specific values of k (both positive

More information

ERASMUS UNIVERSITY ROTTERDAM

ERASMUS UNIVERSITY ROTTERDAM Information concerning Colloquium doctum Mathematics level 2 for International Business Administration (IBA) and International Bachelor Economics & Business Economics (IBEB) General information ERASMUS

More information

AP Calculus AB. Review for Test: Applications of Integration

AP Calculus AB. Review for Test: Applications of Integration Name Review for Test: Applications of Integration AP Calculus AB Test Topics: Mean Value Theorem for Integrals (section 4.4) Average Value of a Function (manipulation of MVT for Integrals) (section 4.4)

More information

Announcements. Topics: Homework: - sections , 6.1 (extreme values) * Read these sections and study solved examples in your textbook!

Announcements. Topics: Homework: - sections , 6.1 (extreme values) * Read these sections and study solved examples in your textbook! Announcements Topics: - sections 5.2 5.7, 6.1 (extreme values) * Read these sections and study solved examples in your textbook! Homework: - review lecture notes thoroughly - work on practice problems

More information

UP AND UP DOWN AND DOWN DOWN AND UP UP AND DOWN

UP AND UP DOWN AND DOWN DOWN AND UP UP AND DOWN 1. IDENTIFY END BEHAVIOR OF A POLYNOMIAL FROM A GRAPH End behavior is the direction of the graph at the left and the right. There are four options for end behavior: up and up, down and down, down and up,

More information

Global polynomial interpolants suffer from the Runge Phenomenon if the data sites (nodes) are not chosen correctly.

Global polynomial interpolants suffer from the Runge Phenomenon if the data sites (nodes) are not chosen correctly. Piecewise polynomial interpolation Global polynomial interpolants suffer from the Runge Phenomenon if the data sites (nodes) are not chosen correctly. In many applications, one does not have the freedom

More information

Test #1 Polynomial Functions Mr. Oldridge MHF4U [Created Summer 2011]

Test #1 Polynomial Functions Mr. Oldridge MHF4U [Created Summer 2011] Test #1 Polynomial Functions Mr. Oldridge MHF4U [Created Summer 2011] 1. Graph the function y= 0.0004( x+4)( x) 3 ( x 4)( x 8) 2. Show all of your work. 2. Find the equation of the following polynomial

More information

The Laplace Transform. Background: Improper Integrals

The Laplace Transform. Background: Improper Integrals The Laplace Transform Background: Improper Integrals Recall: Definite Integral: a, b real numbers, a b; f continuous on [a, b] b a f(x) dx 1 Improper integrals: Type I Infinite interval of integration

More information

Cubic Spline. s(x) = s j (x) = a j + b j (x x j ) + c j (x x j ) 2 + d j (x x j ) 3, j = 0,... n 1 (1)

Cubic Spline. s(x) = s j (x) = a j + b j (x x j ) + c j (x x j ) 2 + d j (x x j ) 3, j = 0,... n 1 (1) Cubic Spline Suppose we are given a set of interpolating points (x i, y i ) for i = 0, 1, 2, n We seek to construct a piecewise cubic function s(x) that has the for x [[x j, x j+1 ] we have: s(x) = s j

More information

Solutions to Problems and

Solutions to Problems and Solutions to Problems 1.2.24 and 1.2.27 Will Johnson September 6, 2014 Since people asked me about these problems, I said I d write up some solutions. (27) A general power function looks like f(x) = cx

More information

Calculus I Homework: The Derivatives of Polynomials and Exponential Functions Page 1

Calculus I Homework: The Derivatives of Polynomials and Exponential Functions Page 1 Calculus I Homework: The Derivatives of Polynomials and Exponential Functions Page 1 Questions Example Differentiate the function y = ae v + b v + c v 2. Example Differentiate the function y = A + B x

More information