Curve Fitting. Least Squares Regression. Linear Regression

Size: px
Start display at page:

Download "Curve Fitting. Least Squares Regression. Linear Regression"

Transcription

1 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 is typically used for experimental data which may have some significant amount of error (e.g. noise in accelerometer data). Therefore, in regression, the function we fit does not have to connect (i.e. pass through) all of the data points. In regression, the fitted curve represents a model that describes the general trend or pattern of the data points as depicted in Figures 1 and 2. It is common for the experimental data to be affected by uncontrolled factors. For example, Figure-1 may describe the performance of an employee where the y-axis corresponds to the number of completed papers and the x-axis corresponds to time. It is logical that as time passes, more papers are completed but keep in mind that there can be some papers which may take more time to complete and the employee mood can change from day to day. Fig. 1 Linear regression Fig. 2 Polynomial regression Interpolation is applied when the data is known to be very precise and we fit a function or a series of functions that connect all of the data points as depicted in Figures 3 and 4. Example: robot motion planning. Fig. 3 Quadratic polynomial interpolation Fig. 4 Spline interpolation. f(x), g(x) and h(x) are three separate functions. Least Squares Regression Linear Regression The aim is to fit a straight line y = a + a x to a data set composed of the data points (x, y ) where i = 1,2,, n. Here, a is the y-intercept, a is the slope and e is the error (or deviation, or residual) of the i th data point. e is simply the vertical distance between the i th data point and the straight line. The fitted straight line is called the regression line. Then, e = y a a x as shown in the below figure. 1

2 We would like to draw a best-fit line that minimises the error (or deviation). When such a best-fit line is determined, the parameters a and a are also found. One can think of several possibilities to minimise the error; these are: a) Minimising the sum of individual errors b) Minimising the sum of absolute values of individual errors c) Minimising the maximum error d) Minimising the sum of squares of individual errors Option (d) is the preferred method and it provides a unique (i.e. single) best-fit line (or regression line). Please read the textbook to see why the other options fail. Minimising the sum of squares of individual errors S = e = (y a a x ) S is the sum of squares the residuals (i.e. errors). We need to find the parameters a and a by minimising S as follows: S = 2 (y a a a x ) = 0 na + x a = y Eqn. 1 S = 2 (y a a a x )x = 0 x a + x a = x y Eqn. 2 Writing the above two equations in matrix form, we get the normal equations as given below. n x x a y a = x x y Solving the above equations for a and a, we get a = n x y x y n x ( x ), a = y a x where y and x are the arithmetic means of y-data and x-data, respectively (see Eqn. 1). 2

3 Dependent and independent variables in Regression In the regression formulas developed in this course, we typically have two variables x and y which are the independent and dependent variables, respectively. Thus, the function or curve that we want to fit is typically expressed as y = f(x). The independent variable x is the input variable which we can control and adjust precisely. The variable x is not random and should not involve any significant error. The variable x can also be a variable which does not depend on anything such as time. The dependent variable y is the output variable which we measure as a result of the experiment. The variable y can be affected by unknown or uncontrollable factors. The variable y can involve measurement errors. Quantification of Error of Linear Regression Definitions: Arithmetic mean of the dependent variable y is given by y as expressed below where n is the number of data points. y = y /n Standard deviation s is a measure of spread about the mean of the data. s = S n 1 where S = (y y) If the individual measurements are distributed widely around the mean, s and S are large. If they are grouped closely, s and S are small. The distribution of the data can also represented by the square of standard deviation, which is called the variance s. s = S n 1 For n = 1, s. So, the distribution of a single data is meaningless, we need at least 2 data points. Coefficient of variation c. v. provides a normalised measure of the distribution relative to the mean y. c. v. = s 100 y Remember that the sum of squares the residuals is given by S. S = (y a a x ) Standard deviation for the regression line is called the "standard error of the estimate" and it is given by s /. s / = S n 2 s / quantifies the spread aroung the regression line. The subscript y/x indicates that the error is for a predicted value of y corresponding to a particular value of x. If the number of data points n is equal to 2, the regression line connects the two data points, then s / becomes indeterminate since S and (n 2) 3

4 become both zero; hence for n = 2 the distribution of data around the straight-line connecting the two datapoints is meaningless. Let's analyse the distribution of the data points (x, y ) where i = 1,2,, n. In Figure 5, the distribution (or spread) of the data points around y (i.e the mean of the dependent variable y) is shown by utilising a bellshaped curve. In Figure 6, the distribution of the data points around the regression line is shown. In comparison to Figure 5, the bell-shaped curve in Figure 6 is thinner indicating that the points are grouped more tightly around the regression line. Then we can define r = S S S where r is called the coefficient of determination and r is called the correlation coefficient. Fig. 5 Spread of data points around the mean of y Fig. 6 Spread of data points around the regression line S S quantifies the improvement or error reduction in representing the data in terms of a straight-line (i.e. regression line) rather than as an average value given by y. Hence, our quality of straight-line fit is with respect to the horizontal line which has a y value of y as shown in Figures 5 and 6. For a perfect fit, S = 0 which means all data points are on the straight-line (i.e. regression line) thus r = r = 1 and there is finite S (see Figure 7). If S = S, then r = r = 0 which means we haven't applied regression at all and we are using the horizontal line (i.e. the mean value of y) to represent the trend of the data; this is a poor approximation as shown in Figure 8. See that S > 0 and S > 0, then since r > 0, we have S > S. It may be said that when r or r is closer to 1, the fit is better but this is not always true. Therefore, we should always plot the data and the regression line to check visually the goodness of fit. Fig. 7 Perfect fit: S = 0 Fig. 8 Poor fit: S = S Linearisation of Nonlinear Behaviour The relationship between the dependent and independent variables in a data-set may not be linear; therefore in such cases it is more suitable to fit a nonlinear curve (or function) to the data. However, upto now we have formulas for linear regression only. Nevertheless, it is sometimes possible to transform the nonlinear 4

5 function into a linear form so that we can use the formulas developed for linear regression. Here are some examples in which Y and X are the dependent and independent variables, respectively: 1) Exponential equation: Y = A e This equation can be linearised by taking the natural logarithm of both sides of the equation as given below. Then, y = ln(y), a = ln (A ), a = B, x = X ln(y) = ln (A ) + B X y = a + a x Linearisation 2) Power equation: Y = A X This equation can be linearised by taking the base-10 logarithm of both sides of the equation as given below. log (Y) = log (A ) + B log (X) y = a + a x Then, y = log (Y), a = log (A ), a = B, x = log (X) Linearisation 3) Saturation-growth rate equation: Y = A X/(B + X) This equation can be linearised by inverting it as follows. 1 Y = 1 A + B A 1 X Then, y = 1/Y, a = 1/A, a = B /A, x = 1/X y = a + a x Linearisation 5

6 Once we obtain the linearised equation by using any linearisation procedure, we will apply least-squares regression to the linearised equation. However, we should keep in mind that linearisation as such, in some cases, does not really mean that we are applying least-squares regression to the original nonlinear equation. Polynomial Regression We can also fit polynomials to a given data if the distribution of the data resembles the shape of a polynomial. An m th degree polynomial can be written as y = a + a x + a x + + a x Considering that the number of data points is n, we can write S = e = (y a a x a x a x ) See that we have (m + 1) unknown coefficients a, a, a,, a and we need to write (m + 1) equations to find them. These (m + 1) equations are written by setting S /a = 0 for each j = 0,1,2,, m thus S a = 0, S a = 0, S a = 0,, S a = 0 The standard error of the estimate s / and the coefficient of determination r are given as S s / = n (m + 1), r = S S S, S = (y y) Looking at s /, we can identify three cases as given below: i) s / is defined if n > (m + 1) i.e. n (m + 2). In this case, we have a typical and well-defined leastsquares regression problem hence it is possible to find a unique solution for the unknown coefficients of the polynomial. In other words, it is possible to determine uniquely the polynomial to be fitted to the given data points. ii) If n = (m + 1), then it can be proven that the polynomial that we fit, connects all the data points. In other words, the data points are exactly on the polynomial that we fit. Thus, e = 0 for i = 0,1,2,, n and S = 0. Consequently, s / becomes indeterminate since we don't see or get any distribution of the data points around the polynomial. This case is called interpolation which we will study in the next chapter. iii) If n < (m + 1), then it can be shown that there is no unique solution for the unknown coefficients of the polynomial. In other words if m n, we cannot find a unique polynomial. In this case, if you use the Matlab function polyfit to perform polynomial regression, Matlab gives a warning and returns a particular solution to this problem by setting a number of coefficients to zero without changing the degree of the polynomial (See Example 3). Example1: Consider the following data where y is the measured variable which depends on x. Fit a 2 nd order (or degree) polynomial y = a + a x + a x to the data using least-squares regression. x=0:5; y=[ ]; Solution1: You can use Matlab s function polyfit. See that n = 6 and m = 2 thus n > (m + 1). >> p=polyfit(x,y,2) p = % p gives the coefficients of the polynomial ordered in descending powers. 6

7 Therefore, a = p(3), a = p(2), a = p(1) % Read the help files of the functions polyfit and polyval. % To plot the data together with the fitted polynomial, define >> xx=0:0.01:5; >> plot(x,y,'o',xx,polyval(p,xx)) % Alternatively, you can solve this problem using the Basic Fitting tool of Matlab. You just need to plot the data first by typing plot(x,y,'o'). A figure window then opens and in this window, select the Tools menu to access the Basic Fitting tool. Example2: Consider the data set given in Example-1 but this time select 3 data-points out of this set as given below. Again fit a 2 nd order (or degree) polynomial to the selected data-points given below using leastsquares regression. See that n = 3 and m = 2 thus n = (m + 1). Solution2: x=[1 2 4]'; y=[ ]'; >> p=polyfit(x,y,2); xx=0:0.01:5; plot(x,y,'o',xx,polyval(p,xx)) >> xlabel('x'), ylabel('y'), legend('data points','fitted polynomial','location','best') Let's evaluate the residuals (or errors) of the data-points. Remember that the errors correspond to the vertical distances between the data points and the fitted curve. >> y-polyval(p,x) 7

8 ans = 1.0e-14 * See that the errors are almost zero for all the data-points. Theoretically, all of the errors must be exactly zero. Since there is round-off error, we didn't get exactly zero errors. Example3: Consider the data set given in Example-2 but this time fit a 3 rd order (or degree) polynomial to the data-points using least-squares regression. See that n = 3 and m = 3 thus n < (m + 1). Solution3: >> x=[1 2 4]'; y=[ ]'; >> p=polyfit(x,y,3), xx=0:0.01:5; plot(x,y,'o',xx,polyval(p,xx)) Warning: Polynomial is not unique; degree >= number of data points. p = >> xlabel('x'), ylabel('y'), legend('data points','fitted polynomial','location','best') Since the solution is not unique, the polyfit function finds a particular solution to this problem by setting one of the coefficients to zero. The residuals (or errors) given below indicate that Matlab has chosen a 3 rd order polynomial which passes through (or connects) all the data points. >> y-polyval(p,x) ans = 1.0e-14 * Fitting a regression line with zero intercept The function to be fitted is y = a x. S = (y a x ) S = 2 [(y a a x )x ] = 0 x y = a x ) Finally, a = ( x y )/( x 8

9 Remember that the functions y = a x and y = a x/(b + x) also have zero intercept. Functions with zero intercepts cross the origin of the coordinate system. 2nd order polynomial regression with zero intercept The function to be fitted is y = a x+a x. S = (y a x a x ) S = 2 (y a a x a x ) x = 0 a x + a x = x y S = 2 (y a a x a x ) x = 0 a x + a x = x y Solve for a and a. Multiple Linear Regression The function to be fitted has a dependent variable y which is a linear function of two or more independent variables as given below. y = a + a x + a x + + a x In the above equation (or function), there are m independent variables x, x,..., x and the number of data is n. Then we can write S s / = n (m + 1), r = S S S, S = (y y) S = (y a a x a x a x ) Show that when y = a + a x + a x, the coefficients a, a, a are found by solving the following system of linear equations. n x x x x x x x x x x a a = a y x y x y Remember from Calculus that the equation y = a + a x + a x represents a plane therefore we have a regression plane here which follow the general trend of the data points as shown in Figure 9. 9

10 Fig. 9 Regression plane and the data-points If the function to be fitted is of the form y = a x x x, then multiple linear regression can still be applied by performing linearisation as follows: log(y) = log(a ) + a log(x ) + a log(x ) + + a log(x ) 10

Skill 6 Exponential and Logarithmic Functions

Skill 6 Exponential and Logarithmic Functions Skill 6 Exponential and Logarithmic Functions Skill 6a: Graphs of Exponential Functions Skill 6b: Solving Exponential Equations (not requiring logarithms) Skill 6c: Definition of Logarithms Skill 6d: Graphs

More information

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

Use a graphing utility to approximate the real solutions, if any, of the equation rounded to two decimal places. 4) x3-6x + 3 = 0 (-5,5) 4)

Use a graphing utility to approximate the real solutions, if any, of the equation rounded to two decimal places. 4) x3-6x + 3 = 0 (-5,5) 4) Advanced College Prep Pre-Calculus Midyear Exam Review Name Date Per List the intercepts for the graph of the equation. 1) x2 + y - 81 = 0 1) Graph the equation by plotting points. 2) y = -x2 + 9 2) List

More information

Skill 6 Exponential and Logarithmic Functions

Skill 6 Exponential and Logarithmic Functions Skill 6 Exponential and Logarithmic Functions Skill 6a: Graphs of Exponential Functions Skill 6b: Solving Exponential Equations (not requiring logarithms) Skill 6c: Definition of Logarithms Skill 6d: Graphs

More information

Week 8 Exponential Functions

Week 8 Exponential Functions Week 8 Exponential Functions Many images below are excerpts from the multimedia textbook. You can find them there and in your textbook in sections 4.1 and 4.2. With the beginning of the new chapter we

More information

Fault Tolerant Computing CS 530DL

Fault Tolerant Computing CS 530DL Fault Tolerant Computing CS 530DL Additional Lecture Notes Modeling Yashwant K. Malaiya Colorado State University March 8, 2017 1 Quantitative models Derived from first principles: Arguments are actual

More information

Least squares regression

Least squares regression Curve Fitting Least squares regression Interpolation Two categories of curve fitting. 1. Linear least squares regression, determining the straight line that best fits data points. 2. Interpolation, determining

More information

SECTION 7: CURVE FITTING. MAE 4020/5020 Numerical Methods with MATLAB

SECTION 7: CURVE FITTING. MAE 4020/5020 Numerical Methods with MATLAB SECTION 7: CURVE FITTING MAE 4020/5020 Numerical Methods with MATLAB 2 Introduction Curve Fitting 3 Often have data,, that is a function of some independent variable,, but the underlying relationship is

More information

Math 1101 Test 2 Practice Problems

Math 1101 Test 2 Practice Problems Math 1101 Test 2 Practice Problems These problems are not intended to cover all possible test topics. These problems should serve as on activity in preparing for your test, but other study is required

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

A factor times a logarithm can be re-written as the argument of the logarithm raised to the power of that factor

A factor times a logarithm can be re-written as the argument of the logarithm raised to the power of that factor In this section we will be working with Properties of Logarithms in an attempt to take equations with more than one logarithm and condense them down into just a single logarithm. Properties of Logarithms:

More information

AP Calculus BC Summer Assignment

AP Calculus BC Summer Assignment AP Calculus BC Summer Assignment Attached is an assignment for students entering AP Calculus BC in the fall. Next year we will focus more on concepts and thinking outside of the box. We will not have time

More information

5.6 Logarithmic and Exponential Equations

5.6 Logarithmic and Exponential Equations SECTION 5.6 Logarithmic and Exponential Equations 305 5.6 Logarithmic and Exponential Equations PREPARING FOR THIS SECTION Before getting started, review the following: Solving Equations Using a Graphing

More information

Exp, Log, Poly Functions Quarter 3 Review Name

Exp, Log, Poly Functions Quarter 3 Review Name Exp, Log, Poly Functions Quarter 3 Review Name Textbook problems for practice: p. 285-293; p. 293 #9-14, p. 294-5 #1-34, 49-52, 55,56, 57; p. 297-321 logs; p. 280-1 #11-84 *Blood Alcohol, Bungee-from binder

More information

Topics Covered in Math 115

Topics Covered in Math 115 Topics Covered in Math 115 Basic Concepts Integer Exponents Use bases and exponents. Evaluate exponential expressions. Apply the product, quotient, and power rules. Polynomial Expressions Perform addition

More information

Section 6.1: Composite Functions

Section 6.1: Composite Functions Section 6.1: Composite Functions Def: Given two function f and g, the composite function, which we denote by f g and read as f composed with g, is defined by (f g)(x) = f(g(x)). In other words, the function

More information

Bishop Kelley High School Summer Math Program Course: Honors Pre-Calculus

Bishop Kelley High School Summer Math Program Course: Honors Pre-Calculus 017 018 Summer Math Program Course: Honors Pre-Calculus NAME: DIRECTIONS: Show all work in the packet. Make sure you are aware of the calculator policy for this course. No matter when you have math, this

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

AP Calculus Summer Prep

AP Calculus Summer Prep AP Calculus Summer Prep Topics from Algebra and Pre-Calculus (Solutions are on the Answer Key on the Last Pages) The purpose of this packet is to give you a review of basic skills. You are asked to have

More information

4.4 Graphs of Logarithmic Functions

4.4 Graphs of Logarithmic Functions 590 Chapter 4 Exponential and Logarithmic Functions 4.4 Graphs of Logarithmic Functions In this section, you will: Learning Objectives 4.4.1 Identify the domain of a logarithmic function. 4.4.2 Graph logarithmic

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

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

Parabolas and lines

Parabolas and lines Parabolas and lines Study the diagram at the right. I have drawn the graph y = x. The vertical line x = 1 is drawn and a number of secants to the parabola are drawn, all centred at x=1. By this I mean

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

3.1 Derivative Formulas for Powers and Polynomials

3.1 Derivative Formulas for Powers and Polynomials 3.1 Derivative Formulas for Powers and Polynomials First, recall that a derivative is a function. We worked very hard in 2.2 to interpret the derivative of a function visually. We made the link, in Ex.

More information

Logarithms Dr. Laura J. Pyzdrowski

Logarithms Dr. Laura J. Pyzdrowski 1 Names: (8 communication points) About this Laboratory An exponential function of the form f(x) = a x, where a is a positive real number not equal to 1, is an example of a one-to-one function. This means

More information

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Calculus I - Homework Chapter 2 Name MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Determine whether the graph is the graph of a function. 1) 1)

More information

PRINTABLE VERSION. Practice Final. Question 1. Find the coordinates of the y-intercept for 5x 9y + 6 = 0. 2 (0, ) 3 3 (0, ) 2 2 (0, ) 3 6 (0, ) 5

PRINTABLE VERSION. Practice Final. Question 1. Find the coordinates of the y-intercept for 5x 9y + 6 = 0. 2 (0, ) 3 3 (0, ) 2 2 (0, ) 3 6 (0, ) 5 PRINTABLE VERSION Practice Final Question Find the coordinates of the y-intercept for 5x 9y + 6 = 0. (0, ) (0, ) (0, ) 6 (0, ) 5 6 (0, ) 5 Question Find the slope of the line: 7x 4y = 0 7 4 4 4 7 7 4 4

More information

Logarithmic Functions and Their Graphs

Logarithmic Functions and Their Graphs Section 3. Logarithmic Functions and Their Graphs Look at the graph of f(x) = x Does this graph pass the Horizontal Line Test? es What does this mean? that its inverse is a function Find the inverse of

More information

Multiplication of Polynomials

Multiplication of Polynomials Summary 391 Chapter 5 SUMMARY Section 5.1 A polynomial in x is defined by a finite sum of terms of the form ax n, where a is a real number and n is a whole number. a is the coefficient of the term. n is

More information

Intermediate Algebra Chapter 12 Review

Intermediate Algebra Chapter 12 Review Intermediate Algebra Chapter 1 Review Set up a Table of Coordinates and graph the given functions. Find the y-intercept. Label at least three points on the graph. Your graph must have the correct shape.

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

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

Table 2.1 presents examples and explains how the proper results should be written. Table 2.1: Writing Your Results When Adding or Subtracting

Table 2.1 presents examples and explains how the proper results should be written. Table 2.1: Writing Your Results When Adding or Subtracting When you complete a laboratory investigation, it is important to make sense of your data by summarizing it, describing the distributions, and clarifying messy data. Analyzing your data will allow you to

More information

GOOD LUCK! 2. a b c d e 12. a b c d e. 3. a b c d e 13. a b c d e. 4. a b c d e 14. a b c d e. 5. a b c d e 15. a b c d e. 6. a b c d e 16.

GOOD LUCK! 2. a b c d e 12. a b c d e. 3. a b c d e 13. a b c d e. 4. a b c d e 14. a b c d e. 5. a b c d e 15. a b c d e. 6. a b c d e 16. MA109 College Algebra Fall 2018 Practice Final Exam 2018-12-12 Name: Sec.: Do not remove this answer page you will turn in the entire exam. You have two hours to do this exam. No books or notes may be

More information

Section 5.1 Determine if a function is a polynomial function. State the degree of a polynomial function.

Section 5.1 Determine if a function is a polynomial function. State the degree of a polynomial function. Test Instructions Objectives Section 5.1 Section 5.1 Determine if a function is a polynomial function. State the degree of a polynomial function. Form a polynomial whose zeros and degree are given. Graph

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

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

College Algebra Through Problem Solving (2018 Edition)

College Algebra Through Problem Solving (2018 Edition) City University of New York (CUNY) CUNY Academic Works Open Educational Resources Queensborough Community College Winter 1-25-2018 College Algebra Through Problem Solving (2018 Edition) Danielle Cifone

More information

UNIT 5: DERIVATIVES OF EXPONENTIAL AND TRIGONOMETRIC FUNCTIONS. Qu: What do you remember about exponential and logarithmic functions?

UNIT 5: DERIVATIVES OF EXPONENTIAL AND TRIGONOMETRIC FUNCTIONS. Qu: What do you remember about exponential and logarithmic functions? UNIT 5: DERIVATIVES OF EXPONENTIAL AND TRIGONOMETRIC FUNCTIONS 5.1 DERIVATIVES OF EXPONENTIAL FUNCTIONS, y = e X Qu: What do you remember about exponential and logarithmic functions? e, called Euler s

More information

AP Calculus Summer Homework

AP Calculus Summer Homework Class: Date: AP Calculus Summer Homework Show your work. Place a circle around your final answer. 1. Use the properties of logarithms to find the exact value of the expression. Do not use a calculator.

More information

Chapter 4E - Combinations of Functions

Chapter 4E - Combinations of Functions Fry Texas A&M University!! Math 150!! Chapter 4E!! Fall 2015! 121 Chapter 4E - Combinations of Functions 1. Let f (x) = 3 x and g(x) = 3+ x a) What is the domain of f (x)? b) What is the domain of g(x)?

More information

Algebra 1 Khan Academy Video Correlations By SpringBoard Activity and Learning Target

Algebra 1 Khan Academy Video Correlations By SpringBoard Activity and Learning Target Algebra 1 Khan Academy Video Correlations By SpringBoard Activity and Learning Target SB Activity Activity 1 Investigating Patterns 1-1 Learning Targets: Identify patterns in data. Use tables, graphs,

More information

Worksheet Topic 1 Order of operations, combining like terms 2 Solving linear equations 3 Finding slope between two points 4 Solving linear equations

Worksheet Topic 1 Order of operations, combining like terms 2 Solving linear equations 3 Finding slope between two points 4 Solving linear equations Worksheet Topic 1 Order of operations, combining like terms 2 Solving linear equations 3 Finding slope between two points 4 Solving linear equations 5 Multiplying binomials 6 Practice with exponents 7

More information

Chapter 12 - Part I: Correlation Analysis

Chapter 12 - Part I: Correlation Analysis ST coursework due Friday, April - Chapter - Part I: Correlation Analysis Textbook Assignment Page - # Page - #, Page - # Lab Assignment # (available on ST webpage) GOALS When you have completed this lecture,

More information

Part I: Multiple Choice Questions

Part I: Multiple Choice Questions Name: Part I: Multiple Choice Questions. What is the slope of the line y=3 A) 0 B) -3 ) C) 3 D) Undefined. What is the slope of the line perpendicular to the line x + 4y = 3 A) -/ B) / ) C) - D) 3. Find

More information

To get horizontal and slant asymptotes algebraically we need to know about end behaviour for rational functions.

To get horizontal and slant asymptotes algebraically we need to know about end behaviour for rational functions. Concepts: Horizontal Asymptotes, Vertical Asymptotes, Slant (Oblique) Asymptotes, Transforming Reciprocal Function, Sketching Rational Functions, Solving Inequalities using Sign Charts. Rational Function

More information

Algebra III. Mathematics Curriculum Framework. Revised 2004

Algebra III. Mathematics Curriculum Framework. Revised 2004 Algebra III Mathematics Curriculum Framework Revised 2004 Title: Algebra III (Fourth-year Course) Course/Unit Credit: 1 Course Number: Teacher Licensure: Secondary Mathematics Pre-requisite: Algebra II

More information

AP Calculus Summer Homework MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

AP Calculus Summer Homework MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. AP Calculus Summer Homework 2015-2016 Part 2 Name Score MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. Find the distance d(p1, P2) between the points

More information

ES-2 Lecture: More Least-squares Fitting. Spring 2017

ES-2 Lecture: More Least-squares Fitting. Spring 2017 ES-2 Lecture: More Least-squares Fitting Spring 2017 Outline Quick review of least-squares line fitting (also called `linear regression ) How can we find the best-fit line? (Brute-force method is not efficient)

More information

Calculus I Sample Exam #01

Calculus I Sample Exam #01 Calculus I Sample Exam #01 1. Sketch the graph of the function and define the domain and range. 1 a) f( x) 3 b) g( x) x 1 x c) hx ( ) x x 1 5x6 d) jx ( ) x x x 3 6 . Evaluate the following. a) 5 sin 6

More information

Plan for Beginning of Year 2: Summer assignment (summative) Cumulative Test Topics 1-4 (IB questions only/no retakes) IA!!

Plan for Beginning of Year 2: Summer assignment (summative) Cumulative Test Topics 1-4 (IB questions only/no retakes) IA!! Summer Assignment 018 The IB Math SL class covers six different mathematical topics (Algebra, Functions, Trigonometry, Vectors, Probability and Statistics, and Calculus). In an effort to best prepare you

More information

a x a y = a x+y a x a = y ax y (a x ) r = a rx and log a (xy) = log a (x) + log a (y) log a ( x y ) = log a(x) log a (y) log a (x r ) = r log a (x).

a x a y = a x+y a x a = y ax y (a x ) r = a rx and log a (xy) = log a (x) + log a (y) log a ( x y ) = log a(x) log a (y) log a (x r ) = r log a (x). You should prepare the following topics for our final exam. () Pre-calculus. (2) Inverses. (3) Algebra of Limits. (4) Derivative Formulas and Rules. (5) Graphing Techniques. (6) Optimization (Maxima and

More information

Example. Determine the inverse of the given function (if it exists). f(x) = 3

Example. Determine the inverse of the given function (if it exists). f(x) = 3 Example. Determine the inverse of the given function (if it exists). f(x) = g(x) = p x + x We know want to look at two di erent types of functions, called logarithmic functions and exponential functions.

More information

Biostatistics and Design of Experiments Prof. Mukesh Doble Department of Biotechnology Indian Institute of Technology, Madras

Biostatistics and Design of Experiments Prof. Mukesh Doble Department of Biotechnology Indian Institute of Technology, Madras Biostatistics and Design of Experiments Prof. Mukesh Doble Department of Biotechnology Indian Institute of Technology, Madras Lecture - 39 Regression Analysis Hello and welcome to the course on Biostatistics

More information

SOLUTIONS FOR PROBLEMS 1-30

SOLUTIONS FOR PROBLEMS 1-30 . Answer: 5 Evaluate x x + 9 for x SOLUTIONS FOR PROBLEMS - 0 When substituting x in x be sure to do the exponent before the multiplication by to get (). + 9 5 + When multiplying ( ) so that ( 7) ( ).

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

SUMMER REVIEW PACKET. Name:

SUMMER REVIEW PACKET. Name: Wylie East HIGH SCHOOL SUMMER REVIEW PACKET For students entering Regular PRECALCULUS Name: Welcome to Pre-Calculus. The following packet needs to be finished and ready to be turned the first week of the

More information

Announcements. Topics: Homework:

Announcements. Topics: Homework: Topics: Announcements - section 2.6 (limits at infinity [skip Precise Definitions (middle of pg. 134 end of section)]) - sections 2.1 and 2.7 (rates of change, the derivative) - section 2.8 (the derivative

More information

Final Exam A Name. 20 i C) Solve the equation by factoring. 4) x2 = x + 30 A) {-5, 6} B) {5, 6} C) {1, 30} D) {-5, -6} -9 ± i 3 14

Final Exam A Name. 20 i C) Solve the equation by factoring. 4) x2 = x + 30 A) {-5, 6} B) {5, 6} C) {1, 30} D) {-5, -6} -9 ± i 3 14 Final Exam A Name First, write the value(s) that make the denominator(s) zero. Then solve the equation. 1 1) x + 3 + 5 x - 3 = 30 (x + 3)(x - 3) 1) A) x -3, 3; B) x -3, 3; {4} C) No restrictions; {3} D)

More information

COLLEGE ALGEBRA FINAL REVIEW 9) 4 = 7. 13) 3log(4x 4) + 8 = ) Write as the sum of difference of logarithms; express powers as factors.

COLLEGE ALGEBRA FINAL REVIEW 9) 4 = 7. 13) 3log(4x 4) + 8 = ) Write as the sum of difference of logarithms; express powers as factors. Solve. 1) x 1 8 ) ( x ) x x 9 ) x 1 x 4) x + x 0 ) x + 9y 6) t t 4 7) y 8 4 x COLLEGE ALGEBRA FINAL REVIEW x 8) 81 x + 9) 4 7.07 x 10) 10 + 1e 10 11) solve for L P R K M + K L T 1) a) log x log( x+ 6)

More information

f (x) = x 2 Chapter 2 Polynomial Functions Section 4 Polynomial and Rational Functions Shapes of Polynomials Graphs of Polynomials the form n

f (x) = x 2 Chapter 2 Polynomial Functions Section 4 Polynomial and Rational Functions Shapes of Polynomials Graphs of Polynomials the form n Chapter 2 Functions and Graphs Section 4 Polynomial and Rational Functions Polynomial Functions A polynomial function is a function that can be written in the form a n n 1 n x + an 1x + + a1x + a0 for

More information

Do not copy, post, or distribute

Do not copy, post, or distribute 14 CORRELATION ANALYSIS AND LINEAR REGRESSION Assessing the Covariability of Two Quantitative Properties 14.0 LEARNING OBJECTIVES In this chapter, we discuss two related techniques for assessing a possible

More information

Topics from Algebra and Pre-Calculus. (Key contains solved problems)

Topics from Algebra and Pre-Calculus. (Key contains solved problems) Topics from Algebra and Pre-Calculus (Key contains solved problems) Note: The purpose of this packet is to give you a review of basic skills. You are asked not to use the calculator, except on p. (8) and

More information

36-309/749 Math Review 2014

36-309/749 Math Review 2014 36-309/749 Math Review 2014 The math content of 36-309 is not high. We will use algebra, including logs. We will not use calculus or matrix algebra. This optional handout is intended to help those students

More information

7) (2 + 3i) + (9 + 4i) 8) (3 + 4i) + (7 2i) 9) (9 + 2i) (12 i) 14) 2 + 3i 15) 5 2i

7) (2 + 3i) + (9 + 4i) 8) (3 + 4i) + (7 2i) 9) (9 + 2i) (12 i) 14) 2 + 3i 15) 5 2i Advanced Algebra EOC Study Guide Unit 1: Quadratics Revisited Simplify each of the following expressions. 1) i 45 ) i 7 3) i 130 4) i 453 5) i 480 6) i 141 7) ( + 3i) + (9 + 4i) 8) (3 + 4i) + (7 i) 9)

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

8 + 6) x 2 ) y = h(x)

8 + 6) x 2 ) y = h(x) . a. Horizontal shift 6 left and vertical shift up. Notice B' is ( 6, ) and B is (0, 0). b. h(x) = 0.5(x + 6) + (Enter in a grapher to check.) c. Use the graph. Notice A' to see h(x) crosses the x-axis

More information

Rational Functions. Elementary Functions. Algebra with mixed fractions. Algebra with mixed fractions

Rational Functions. Elementary Functions. Algebra with mixed fractions. Algebra with mixed fractions Rational Functions A rational function f (x) is a function which is the ratio of two polynomials, that is, Part 2, Polynomials Lecture 26a, Rational Functions f (x) = where and are polynomials Dr Ken W

More information

( 3) ( ) ( ) ( ) ( ) ( )

( 3) ( ) ( ) ( ) ( ) ( ) 81 Instruction: Determining the Possible Rational Roots using the Rational Root Theorem Consider the theorem stated below. Rational Root Theorem: If the rational number b / c, in lowest terms, is a root

More information

Section 5.8 Regression/Least Squares Approximation

Section 5.8 Regression/Least Squares Approximation Section 5.8 Regression/Least Squares Approximation Key terms Interpolation via linear systems Regression Over determine linear system Closest vector to a column space Linear regression; least squares line

More information

x is also called the abscissa y is also called the ordinate "If you can create a t-table, you can graph anything!"

x is also called the abscissa y is also called the ordinate If you can create a t-table, you can graph anything! Senior Math Section 6-1 Notes Rectangular Coordinates and Lines Label the following 1. quadrant 1 2. quadrant 2 3. quadrant 3 4. quadrant 4 5. origin 6. x-axis 7. y-axis 8. Ordered Pair (x, y) at (2, 1)

More information

Trendlines Simple Linear Regression Multiple Linear Regression Systematic Model Building Practical Issues

Trendlines Simple Linear Regression Multiple Linear Regression Systematic Model Building Practical Issues Trendlines Simple Linear Regression Multiple Linear Regression Systematic Model Building Practical Issues Overfitting Categorical Variables Interaction Terms Non-linear Terms Linear Logarithmic y = a +

More information

Algebra I Vocabulary Cards

Algebra I Vocabulary Cards Algebra I Vocabulary Cards Table of Contents Expressions and Operations Natural Numbers Whole Numbers Integers Rational Numbers Irrational Numbers Real Numbers Order of Operations Expression Variable Coefficient

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

80 Wyner PreCalculus Spring 2017

80 Wyner PreCalculus Spring 2017 80 Wyner PreCalculus Spring 2017 CHAPTER NINE: DERIVATIVES Review May 16 Test May 23 Calculus begins with the study of rates of change, called derivatives. For example, the derivative of velocity is acceleration

More information

Pre-Calculus Final Exam Review Units 1-3

Pre-Calculus Final Exam Review Units 1-3 Pre-Calculus Final Exam Review Units 1-3 Multiple Choice Identify the choice that best completes the statement or answers the question. 1. Find the value for the function. Find f(x - 1) when f(x) = 3x

More information

AP CALCULUS AB Study Guide for Midterm Exam 2017

AP CALCULUS AB Study Guide for Midterm Exam 2017 AP CALCULUS AB Study Guide for Midterm Exam 2017 CHAPTER 1: PRECALCULUS REVIEW 1.1 Real Numbers, Functions and Graphs - Write absolute value as a piece-wise function - Write and interpret open and closed

More information

Intermediate Algebra Study Guide

Intermediate Algebra Study Guide Chapter 1 Intermediate Algebra Study Guide 1. Simplify the following. (a) ( 6) + ( 4) ( 9) (b) ( 7) ( 6)( )( ) (c) 8 5 9 (d) 6x(xy x ) x (y 6x ) (e) 7x {6 [8 (x ) (6 x)]} (f) Evaluate x y for x =, y =.

More information

General Form: y = a n x n + a n 1 x n a 2 x 2 + a 1 x + a 0

General Form: y = a n x n + a n 1 x n a 2 x 2 + a 1 x + a 0 Families of Functions Prepared by: Sa diyya Hendrickson Name: Date: Definition: function A function f is a rule that relates two sets by assigning to some element (e.g. x) in a set A exactly one element

More information

Chapter 13 - Inverse Functions

Chapter 13 - Inverse Functions Chapter 13 - Inverse Functions In the second part of this book on Calculus, we shall be devoting our study to another type of function, the exponential function and its close relative the Sine function.

More information

How to use these notes

How to use these notes Chapter How to use these notes These notes were prepared for the University of Utah s Math 00 refresher course. They asssume that the user has had the Math 00 course Intermediate Algebra or its equivalent

More information

4x 2-5x+3. 7x-1 HOMEWORK 1-1

4x 2-5x+3. 7x-1 HOMEWORK 1-1 HOMEWORK 1-1 As it is always the case that correct answers without sufficient mathematical justification may not receive full credit, make sure that you show all your work. Please circle, draw a box around,

More information

Predicted Y Scores. The symbol stands for a predicted Y score

Predicted Y Scores. The symbol stands for a predicted Y score REGRESSION 1 Linear Regression Linear regression is a statistical procedure that uses relationships to predict unknown Y scores based on the X scores from a correlated variable. 2 Predicted Y Scores Y

More information

Algebra II Notes Quadratic Functions Unit Applying Quadratic Functions. Math Background

Algebra II Notes Quadratic Functions Unit Applying Quadratic Functions. Math Background Applying Quadratic Functions Math Background Previously, you Graphed and solved quadratic functions. Solved literal equations for a given variable. Found the inverse for a linear function. Verified by

More information

d. What are the steps for finding the y intercepts algebraically?(hint: what is equal to 0?)

d. What are the steps for finding the y intercepts algebraically?(hint: what is equal to 0?) st Semester Pre Calculus Exam Review You will not receive hints on your exam. Make certain you know how to answer each of the following questions. This is a test grade. Your WORK and EXPLANATIONS are graded

More information

4 Exponential and Logarithmic Functions

4 Exponential and Logarithmic Functions 4 Exponential and Logarithmic Functions 4.1 Exponential Functions Definition 4.1 If a > 0 and a 1, then the exponential function with base a is given by fx) = a x. Examples: fx) = x, gx) = 10 x, hx) =

More information

Limits at Infinity. Use algebraic techniques to help with indeterminate forms of ± Use substitutions to evaluate limits of compositions of functions.

Limits at Infinity. Use algebraic techniques to help with indeterminate forms of ± Use substitutions to evaluate limits of compositions of functions. SUGGESTED REFERENCE MATERIAL: Limits at Infinity As you work through the problems listed below, you should reference Chapter. of the recommended textbook (or the equivalent chapter in your alternative

More information

EC5555 Economics Masters Refresher Course in Mathematics September 2013

EC5555 Economics Masters Refresher Course in Mathematics September 2013 EC5555 Economics Masters Refresher Course in Mathematics September 013 Lecture 3 Differentiation Francesco Feri Rationale for Differentiation Much of economics is concerned with optimisation (maximise

More information

MAT 107 College Algebra Fall 2013 Name. Final Exam, Version X

MAT 107 College Algebra Fall 2013 Name. Final Exam, Version X MAT 107 College Algebra Fall 013 Name Final Exam, Version X EKU ID Instructor Part 1: No calculators are allowed on this section. Show all work on your paper. Circle your answer. Each question is worth

More information

Reference Material /Formulas for Pre-Calculus CP/ H Summer Packet

Reference Material /Formulas for Pre-Calculus CP/ H Summer Packet Reference Material /Formulas for Pre-Calculus CP/ H Summer Packet Week # 1 Order of Operations Step 1 Evaluate expressions inside grouping symbols. Order of Step 2 Evaluate all powers. Operations Step

More information

STANDARDS OF LEARNING CONTENT REVIEW NOTES ALGEBRA II. 2 nd Nine Weeks,

STANDARDS OF LEARNING CONTENT REVIEW NOTES ALGEBRA II. 2 nd Nine Weeks, STANDARDS OF LEARNING CONTENT REVIEW NOTES ALGEBRA II 2 nd Nine Weeks, 2016-2017 1 OVERVIEW Algebra II Content Review Notes are designed by the High School Mathematics Steering Committee as a resource

More information

f(x 0 + h) f(x 0 ) h slope of secant line = m sec

f(x 0 + h) f(x 0 ) h slope of secant line = m sec Derivatives Using limits, we can define the slope of a tangent line to a function. When given a function f(x), and given a point P (x 0, f(x 0 )) on f, if we want to find the slope of the tangent line

More information

1) Find the equations of lines (in point-slope form) passing through (-1,4) having the given characteristics:

1) Find the equations of lines (in point-slope form) passing through (-1,4) having the given characteristics: AP Calculus AB Summer Worksheet Name 10 This worksheet is due at the beginning of class on the first day of school. It will be graded on accuracy. You must show all work to earn credit. You may work together

More information

Calculus (Math 1A) Lecture 4

Calculus (Math 1A) Lecture 4 Calculus (Math 1A) Lecture 4 Vivek Shende August 31, 2017 Hello and welcome to class! Last time We discussed shifting, stretching, and composition. Today We finish discussing composition, then discuss

More information

Business Statistics. Lecture 9: Simple Regression

Business Statistics. Lecture 9: Simple Regression Business Statistics Lecture 9: Simple Regression 1 On to Model Building! Up to now, class was about descriptive and inferential statistics Numerical and graphical summaries of data Confidence intervals

More information

( ) - 4(x -3) ( ) 3 (2x -3) - (2x +12) ( x -1) 2 x -1) 2 (3x -1) - 2(x -1) Section 1: Algebra Review. Welcome to AP Calculus!

( ) - 4(x -3) ( ) 3 (2x -3) - (2x +12) ( x -1) 2 x -1) 2 (3x -1) - 2(x -1) Section 1: Algebra Review. Welcome to AP Calculus! Welcome to AP Calculus! Successful Calculus students must have a strong foundation in algebra and trigonometry. The following packet was designed to help you review your algebra skills in preparation for

More information

Inferences for Regression

Inferences for Regression Inferences for Regression An Example: Body Fat and Waist Size Looking at the relationship between % body fat and waist size (in inches). Here is a scatterplot of our data set: Remembering Regression In

More information

Taylor series. Chapter Introduction From geometric series to Taylor polynomials

Taylor series. Chapter Introduction From geometric series to Taylor polynomials Chapter 2 Taylor series 2. Introduction The topic of this chapter is find approximations of functions in terms of power series, also called Taylor series. Such series can be described informally as infinite

More information

Regression with Nonlinear Transformations

Regression with Nonlinear Transformations Regression with Nonlinear Transformations Joel S Steele Portland State University Abstract Gaussian Likelihood When data are drawn from a Normal distribution, N (µ, σ 2 ), we can use the Gaussian distribution

More information