General Linear Least-Squares and Nonlinear Regression

Size: px
Start display at page:

Download "General Linear Least-Squares and Nonlinear Regression"

Transcription

1 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 Companies, Inc. Permission required for reproduction or display.

2 Chapter Objectives Knowing how to implement polynomial regression. Knowing how to implement multiple linear regression. Understanding the formulation of the general linear least-squares model. Understanding how the general linear leastsquares model can be solved with MATLAB using either the normal equations or left division. Understanding how to implement nonlinear regression with optimization techniques.

3 Polynomial Regression The least-squares procedure from Chapter 13 can be readily extended to fit data to a higher-order polynomial. Again, the idea is to minimize the sum of the squares of the estimate residuals. The figure shows the same data fit with: a) A first order polynomial b) A second order polynomial

4 Process and Measures of Fit For a second order polynomial, the best fit would mean minimizing: n n S r e i y i a 0 a 1 x i a x i i1 i1 In general, this would mean minimizing: n S r e i n i1 i1 y i a 0 a 1 x i a x m i a m x i The standard error for fitting an m th order polynomial to n data points is: s y/ x S r n m 1 because the m th order polynomial has (m+1) coefficients. The coefficient of determination r is still found using: r S t S r S t

5 Example 14.1 (1/4) Q. Fit a second-order polynomial to the data in the first two columns below. xi y y a a x a x i ( y y) i i 0 1 i i

6 Example (/4) Sr ( yi a0 a1xi axi ) a 0 S a S r 1 xi( yi a0 a1xi axi ) r xi ( yi a0 a1 xi a xi ) a ( na ) 0 xia1xi a yi x a x a x a x y i i i i i x a x a x a x y 3 4 i i i i i a0 i i i a1 i a i i 3 m x x 4 i 15 i 979 n6 y 15.6 x y x.5 x 55 x y y 5.43 x i 5 The simultaneous linear equations are

7 Using MATLAB Example (3/4) >> N=[ ; ; ]; >> N=[ ]; >> a = N\r a = The least-squares quadratic equations for this case is y x1.8607x

8 Example (4/4) The standard error of the estimate based on the regression polynomial is sy/ x The coefficient of determination : r r The correlation coefficient % of the original uncertainty has been explained by the fit (model). -> the equation represents an excellent fit.

9 General Linear Least Squares Linear, polynomial, l and multiple l linear regression all belong to the general linear least-squares squares model: y a 0 z 0 a 1 z 1 a z a m z m e where z 0, z 1,, z m are a set of m+1 basis functions and e is the error of the fit. The basis functions can be any function data but cannot contain any of the coefficients a 0, a 1, etc.

10 Solving General Linear Least Squares Coefficients The equation: y a 0 z 0 a 1 z 1 a z a m z m e can be re-written for each data point as a matrix equation: y Z e a where {y} contains the dependent data, {a} contains the coefficients of the equation, {e} contains the error at each point, and [Z] is: z 01 z 11 z m1 Z z 0n z 1n z mn z 0 z 1 z m with z ji representing the the value of the j th basis function calculated at the i th point.

11 Solving General Linear Least Squares Coefficients Generally, [Z] is not a square matrix, so simple inversion cannot be used to solve for {a}. Instead the sum of the squares of the estimate residuals is n n m minimized: S r e i y i a j z ji i1 1 i1 1 j0 0 This quantity can be minimized by taking its partial derivative with respect to each of the coefficients and setting the resulting equations to zero. The outcome of this minimization yields in the following matrix form: T T Z Z a Z y r y i y i where y 1 1 of S S y y ˆ y y St Sr Sr t t i i y i ˆ yˆ represent the prediction the least - squares fit and. y Z a

12 Example 14.3 (1/3) Q. Use matrix operations o to repeat Ex >> x= [ ]' ; % enter the data to fit >> y= [ ]' ; >> z = [ones(size(x)) x x.^] %[z] matrix z =

13 Example 14.3 (/3) >> z'*z %[ [z] T [z] ans = >> a = (z'*z)\(z *y) *y) % Solve for the coefficients of eq. ans = T Z Z a Z T y

14 Example 14.3 (3/3) >> Sr = sum((y-z*a).^) % Sr Sr = >> r = 1-Sr/sum((y-mean(y)).^) % r r = >> syx = sqrt(sr/(length(x)-length(a))) % s y/x syx = r ˆ i i St S y y r S r 1 1 s y/ x S S y y t t i i S r n m 1

15 Nonlinear Regression As seen in the previous chapter, not all fits are linear equations of coefficients and basis functions. One method is to perform optimization techniques to directly determine the leastsquares fit. First write a function that returns the sum of the squares of fthe estimate t residuals for a fit and dthen use MATLAB s fminsearch function to find the values of the coefficients where a minimum occurs. (1 ax 1 y a ) ax 1 0 e e f( a0, a1) yi a0(1 e i ) [x, fval] =fminsearch(fun, x0, options, p1, p, ) n i1

16 Nonlinear Regression in MATLAB Example (option) Given dependent d force data F for independent d velocity data v, determine the coefficients for the fit: a 1 F a 0 v First - write a function called fssr.m containing the following: function f = fssr(a, xm, ym) yp = a(1)*xm.^a(); f = sum((ym-yp).^); yp) ); Then, use fminsearch in the command window to obtain the values of a that minimize fssr: a = fminsearch(@fssr, [1, 1], [], v, F) where [1, 1] is an initial guess for the [a0, a1] vector, [] is a placeholder for the options

17 Nonlinear Regression vs. Linear Regression Empolying Transformations Although the model coefficients are different, it is difficult to judge which fit is superior. Nonlinear regression: original i data Linear Regression Empolying Transformations: the transformed data

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University Part 4 Chapter 14 General Linear Least-Squares ares and Nonlinear Regression PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright The McGraw-Hill Companies, Inc. Permission

More information

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University Part 6 Chapter Boundary-Value Problems PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or

More information

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University Part 6 Chapter 20 Initial-Value Problems PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright The McGraw-Hill Companies, Inc. Permission required for reproduction

More information

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University Part 5 Chapter 17 Numerical Integration Formulas PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright The McGraw-Hill Companies, Inc. Permission required for reproduction

More information

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University Part 6 Chapter 20 Initial-Value Problems PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright The McGraw-Hill Companies, Inc. Permission required for reproduction

More information

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University Part 3 Chapter 10 LU Factorization PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

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

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University Part 1 Chapter 4 Roundoff and Truncation Errors PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright The McGraw-Hill Companies, Inc. Permission required for reproduction

More information

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University Part 5 Chapter 19 Numerical Differentiation PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright The McGraw-Hill Companies, Inc. Permission required for reproduction

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

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University Part 5 Chapter 21 Numerical Differentiation PowerPoints organized by Dr. Michael R. Gustafson II, Duke University 1 All images copyright The McGraw-Hill Companies, Inc. Permission required for reproduction

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

Statistics for Managers using Microsoft Excel 6 th Edition

Statistics for Managers using Microsoft Excel 6 th Edition Statistics for Managers using Microsoft Excel 6 th Edition Chapter 13 Simple Linear Regression 13-1 Learning Objectives In this chapter, you learn: How to use regression analysis to predict the value of

More information

A First Course on Kinetics and Reaction Engineering Supplemental Unit S4. Numerically Fitting Models to Data

A First Course on Kinetics and Reaction Engineering Supplemental Unit S4. Numerically Fitting Models to Data Supplemental Unit S4. Numerically Fitting Models to Data Defining the Problem Many software routines for fitting a model to experimental data can only be used when the model is of a pre-defined mathematical

More information

Basic Business Statistics 6 th Edition

Basic Business Statistics 6 th Edition Basic Business Statistics 6 th Edition Chapter 12 Simple Linear Regression Learning Objectives In this chapter, you learn: How to use regression analysis to predict the value of a dependent variable based

More information

Parallel Circuits. Chapter

Parallel Circuits. Chapter Chapter 5 Parallel Circuits Topics Covered in Chapter 5 5-1: The Applied Voltage V A Is the Same Across Parallel Branches 5-2: Each Branch I Equals V A / R 5-3: Kirchhoff s Current Law (KCL) 5-4: Resistance

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

Advanced Engineering Statistics - Section 5 - Jay Liu Dept. Chemical Engineering PKNU

Advanced Engineering Statistics - Section 5 - Jay Liu Dept. Chemical Engineering PKNU Advanced Engineering Statistics - Section 5 - Jay Liu Dept. Chemical Engineering PKNU Least squares regression What we will cover Box, G.E.P., Use and abuse of regression, Technometrics, 8 (4), 625-629,

More information

Minimizing & Maximizing Functions

Minimizing & Maximizing Functions Minimizing & Maximizing Functions Nonlinear functions may have zero to many minima and maxima. Example: find the minimum of y = 3x 2 2x + 1 Minima & maxima occur in functions where the slope changes sign

More information

Section 7.2 Solving Linear Recurrence Relations

Section 7.2 Solving Linear Recurrence Relations Section 7.2 Solving Linear Recurrence Relations If a g(n) = f (a g(0),a g(1),..., a g(n 1) ) find a closed form or an expression for a g(n). Recall: nth degree polynomials have n roots: a n x n + a n 1

More information

Regression Models. Chapter 4

Regression Models. Chapter 4 Chapter 4 Regression Models To accompany Quantitative Analysis for Management, Eleventh Edition, by Render, Stair, and Hanna Power Point slides created by Brian Peterson Introduction Regression analysis

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

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

Correlation Analysis

Correlation Analysis Simple Regression Correlation Analysis Correlation analysis is used to measure strength of the association (linear relationship) between two variables Correlation is only concerned with strength of the

More information

Chapter 4 Mathematics of Cryptography

Chapter 4 Mathematics of Cryptography Chapter 4 Mathematics of Cryptography Part II: Algebraic Structures Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 4.1 Chapter 4 Objectives To review the concept

More information

Contents 16. Higher Degree Equations

Contents 16. Higher Degree Equations Contents 16. Higher Degree Equations 2 16.3 Finding Roots of Higher Degree Equations................. 2 Example 16.15............................... 2 Example 16.16............................... 2 Example

More information

Exponential Regression. Suppose we have paired sample data {{ x 1, y 1 }, { x 2, y 2 },..., { x n, y n }}, with all x i > 0,

Exponential Regression. Suppose we have paired sample data {{ x 1, y 1 }, { x 2, y 2 },..., { x n, y n }}, with all x i > 0, MATH 482 More Regression Dr. Neal, WKU The least-squares regression technique for linear data can be adjusted to paired data that appears to be non-linear but instead exponential, logarithmic, or power-based.

More information

Math 2142 Homework 5 Part 1 Solutions

Math 2142 Homework 5 Part 1 Solutions Math 2142 Homework 5 Part 1 Solutions Problem 1. For the following homogeneous second order differential equations, give the general solution and the particular solution satisfying the given initial conditions.

More information

Higher-Degree Polynomial Functions. Polynomials. Polynomials

Higher-Degree Polynomial Functions. Polynomials. Polynomials Higher-Degree Polynomial Functions 1 Polynomials A polynomial is an expression that is constructed from one or more variables and constants, using only the operations of addition, subtraction, multiplication,

More information

Chapter 2 Prerequisite Skills BLM Evaluate Functions 1. Given P(x) = x 4 3x 2 + 5x 11, evaluate.

Chapter 2 Prerequisite Skills BLM Evaluate Functions 1. Given P(x) = x 4 3x 2 + 5x 11, evaluate. Chapter Prerequisite Skills BLM 1.. Evaluate Functions 1. Given P(x) = x 4 x + 5x 11, evaluate. a) P( ) b) P() c) P( 1) 1 d) P 4 Simplify Expressions. Expand and simplify. a) (x x x + 4)(x 1) + b) (x +

More information

MATH 1314 Test 2 Review

MATH 1314 Test 2 Review Name: Class: Date: MATH 1314 Test 2 Review Multiple Choice Identify the choice that best completes the statement or answers the question. 1. Find ( f + g)(x). f ( x) = 2x 2 2x + 7 g ( x) = 4x 2 2x + 9

More information

LOWELL. MICHIGAN. WEDNESDAY, FEBRUARY NUMllEE 33, Chicago. >::»«ad 0:30am, " 16.n«l w 00 ptn Jaekten,.'''4snd4:4(>a tii, ijilwopa

LOWELL. MICHIGAN. WEDNESDAY, FEBRUARY NUMllEE 33, Chicago. >::»«ad 0:30am,  16.n«l w 00 ptn Jaekten,.'''4snd4:4(>a tii, ijilwopa 4/X6 X 896 & # 98 # 4 $2 q $ 8 8 $ 8 6 8 2 8 8 2 2 4 2 4 X q q!< Q 48 8 8 X 4 # 8 & q 4 ) / X & & & Q!! & & )! 2 ) & / / ;) Q & & 8 )

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

CM2104: Computational Mathematics General Maths: 2. Algebra - Factorisation

CM2104: Computational Mathematics General Maths: 2. Algebra - Factorisation CM204: Computational Mathematics General Maths: 2. Algebra - Factorisation Prof. David Marshall School of Computer Science & Informatics Factorisation Factorisation is a way of simplifying algebraic expressions.

More information

USE OF MATLAB TO UNDERSTAND BASIC MATHEMATICS

USE OF MATLAB TO UNDERSTAND BASIC MATHEMATICS USE OF MATLAB TO UNDERSTAND BASIC MATHEMATICS Sanjay Gupta P. G. Department of Mathematics, Dev Samaj College For Women, Punjab ( India ) ABSTRACT In this paper, we talk about the ways in which computer

More information

CHAPTER 5 LINEAR REGRESSION AND CORRELATION

CHAPTER 5 LINEAR REGRESSION AND CORRELATION CHAPTER 5 LINEAR REGRESSION AND CORRELATION Expected Outcomes Able to use simple and multiple linear regression analysis, and correlation. Able to conduct hypothesis testing for simple and multiple linear

More information

Computer Algebra Systems Activity: Developing the Quadratic Formula

Computer Algebra Systems Activity: Developing the Quadratic Formula Computer Algebra Systems Activity: Developing the Quadratic Formula Topic: Developing the Quadratic Formula R. Meisel, Feb 19, 2005 rollym@vaxxine.com Ontario Expectations: (To be added when finalized

More information

AFM Review Test Review

AFM Review Test Review Name: Class: Date: AFM Review Test Review Multiple Choice Identify the choice that best completes the statement or answers the question. What are the solutions of the inequality?. q + (q ) > 0 q < 3 q

More information

Linear Inverse Problems. A MATLAB Tutorial Presented by Johnny Samuels

Linear Inverse Problems. A MATLAB Tutorial Presented by Johnny Samuels Linear Inverse Problems A MATLAB Tutorial Presented by Johnny Samuels What do we want to do? We want to develop a method to determine the best fit to a set of data: e.g. The Plan Review pertinent linear

More information

An introduction to plotting data

An introduction to plotting data An introduction to plotting data Eric D. Black California Institute of Technology v2.0 1 Introduction Plotting data is one of the essential skills every scientist must have. We use it on a near-daily basis

More information

DonnishJournals

DonnishJournals DonnishJournals 204-89 Donnish Journal of Educational Research and Reviews. Vol 2() pp. 008-07 January, 205. http:///djerr Copyright 205 Donnish Journals Original Research Paper Solution of Linear Systems

More information

Chapter 9 Mathematics of Cryptography Part III: Primes and Related Congruence Equations

Chapter 9 Mathematics of Cryptography Part III: Primes and Related Congruence Equations Chapter 9 Mathematics of Cryptography Part III: Primes and Related Congruence Equations Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 9.1 Chapter 9 Objectives

More information

Fitting. PHY 688: Numerical Methods for (Astro)Physics

Fitting. PHY 688: Numerical Methods for (Astro)Physics Fitting Fitting Data We get experimental/observational data as a sequence of times (or positions) and associate values N points: (x i, y i ) Often we have errors in our measurements at each of these values:

More information

MATLAB BASICS. Instructor: Prof. Shahrouk Ahmadi. TA: Kartik Bulusu

MATLAB BASICS. Instructor: Prof. Shahrouk Ahmadi. TA: Kartik Bulusu MATLAB BASICS Instructor: Prof. Shahrouk Ahmadi 1. What are M-files TA: Kartik Bulusu M-files are files that contain a collection of MATLAB commands or are used to define new MATLAB functions. For the

More information

Chapter 5 Friday, May 21st

Chapter 5 Friday, May 21st Chapter 5 Friday, May 21 st Overview In this Chapter we will see three different methods we can use to describe a relationship between two quantitative variables. These methods are: Scatterplot Correlation

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

r/lt.i Ml s." ifcr ' W ATI II. The fnncrnl.icniccs of Mr*. John We mil uppn our tcpiiblicnn rcprc Died.

r/lt.i Ml s. ifcr ' W ATI II. The fnncrnl.icniccs of Mr*. John We mil uppn our tcpiiblicnn rcprc Died. $ / / - (\ \ - ) # -/ ( - ( [ & - - - - \ - - ( - - - - & - ( ( / - ( \) Q & - - { Q ( - & - ( & q \ ( - ) Q - - # & - - - & - - - $ - 6 - & # - - - & -- - - - & 9 & q - / \ / - - - -)- - ( - - 9 - - -

More information

CS 221 Lecture 9. Tuesday, 1 November 2011

CS 221 Lecture 9. Tuesday, 1 November 2011 CS 221 Lecture 9 Tuesday, 1 November 2011 Some slides in this lecture are from the publisher s slides for Engineering Computation: An Introduction Using MATLAB and Excel 2009 McGraw-Hill Today s Agenda

More information

Mass Relationships in Chemical Reactions

Mass Relationships in Chemical Reactions Mass Relationships in Chemical Reactions Chapter 3 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Micro World atoms & molecules Macro World grams Atomic mass

More information

From Practical Data Analysis with JMP, Second Edition. Full book available for purchase here. About This Book... xiii About The Author...

From Practical Data Analysis with JMP, Second Edition. Full book available for purchase here. About This Book... xiii About The Author... From Practical Data Analysis with JMP, Second Edition. Full book available for purchase here. Contents About This Book... xiii About The Author... xxiii Chapter 1 Getting Started: Data Analysis with JMP...

More information

Analysis of Performance of Packed Columns

Analysis of Performance of Packed Columns Analysis of Performance of Packed Columns There are two packed column experiments in the Unit Operations lab: Liquid-Liquid Extraction (LLE) and Gas Absorption (GA). In both of these experiments, a solute

More information

Polynomial Form. Factored Form. Perfect Squares

Polynomial Form. Factored Form. Perfect Squares We ve seen how to solve quadratic equations (ax 2 + bx + c = 0) by factoring and by extracting square roots, but what if neither of those methods are an option? What do we do with a quadratic equation

More information

Periodic Relationships Among the Elements

Periodic Relationships Among the Elements When the Elements Were Discovered Periodic Relationships Among the Elements Chapter 8 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 2 ns 1 Ground State Electron

More information

Mass Relationships in Chemical Reactions

Mass Relationships in Chemical Reactions Mass Relationships in Chemical Reactions Chapter 3 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Micro World atoms & molecules Macro World grams Atomic mass

More information

4.1 Least Squares Prediction 4.2 Measuring Goodness-of-Fit. 4.3 Modeling Issues. 4.4 Log-Linear Models

4.1 Least Squares Prediction 4.2 Measuring Goodness-of-Fit. 4.3 Modeling Issues. 4.4 Log-Linear Models 4.1 Least Squares Prediction 4. Measuring Goodness-of-Fit 4.3 Modeling Issues 4.4 Log-Linear Models y = β + β x + e 0 1 0 0 ( ) E y where e 0 is a random error. We assume that and E( e 0 ) = 0 var ( e

More information

Appendix F. + 1 Ma 1. 2 Ma Ma Ma ln + K = 0 (4-173)

Appendix F. + 1 Ma 1. 2 Ma Ma Ma ln + K = 0 (4-173) 5:39p.m. Page:949 Trimsize:8.5in 11in Appendix F F.1 MICROSOFT EXCEL SOLVER FOR NON-LINEAR EQUATIONS The Solver is an optimization package that finds a maximum, minimum, or specified value of a target

More information

Chapter 8 Linear Algebraic Equations

Chapter 8 Linear Algebraic Equations PowerPoint to accompany Introduction to MATLAB for Engineers, Third Edition William J. Palm III Chapter 8 Linear Algebraic Equations Copyright 2010. The McGraw-Hill Companies, Inc. This work is only for

More information

Summer Review for Students Entering AP Calculus AB

Summer Review for Students Entering AP Calculus AB Summer Review for Students Entering AP Calculus AB Class: Date: AP Calculus AB Summer Packet Please show all work in the spaces provided The answers are provided at the end of the packet Algebraic Manipulation

More information

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Civil and Environmental Engineering

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Civil and Environmental Engineering MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Civil and Environmental Engineering 1.017/1.010 Computing and Data Analysis for Environmental Applications / Uncertainty in Engineering Problem Set 9:

More information

Chapter 2 The Simple Linear Regression Model: Specification and Estimation

Chapter 2 The Simple Linear Regression Model: Specification and Estimation Chapter The Simple Linear Regression Model: Specification and Estimation Page 1 Chapter Contents.1 An Economic Model. An Econometric Model.3 Estimating the Regression Parameters.4 Assessing the Least Squares

More information

Chapter 4 ENERGY ANALYSIS OF CLOSED SYSTEMS

Chapter 4 ENERGY ANALYSIS OF CLOSED SYSTEMS Thermodynamics: An Engineering Approach Seventh Edition in SI Units Yunus A. Cengel, Michael A. Boles McGraw-Hill, 2011 Chapter 4 ENERGY ANALYSIS OF CLOSED SYSTEMS Copyright The McGraw-Hill Companies,

More information

Companion. Jeffrey E. Jones

Companion. Jeffrey E. Jones MATLAB7 Companion 1O11OO1O1O1OOOO1O1OO1111O1O1OO 1O1O1OO1OO1O11OOO1O111O1O1O1O1 O11O1O1O11O1O1O1O1OO1O11O1O1O1 O1O1O1111O11O1O1OO1O1O1O1OOOOO O1111O1O1O1O1O1O1OO1OO1OO1OOO1 O1O11111O1O1O1O1O Jeffrey E.

More information

SKMM 3023 Applied Numerical Methods

SKMM 3023 Applied Numerical Methods UNIVERSITI TEKNOLOGI MALAYSIA SKMM 3023 Applied Numerical Methods Numerical Differentiation ibn Abdullah Faculty of Mechanical Engineering Òº ÙÐÐ ÚºÒÙÐÐ ¾¼½ SKMM 3023 Applied Numerical Methods Numerical

More information

The roots are found with the following two statements. We have denoted the polynomial as p1, and the roots as roots_ p1.

The roots are found with the following two statements. We have denoted the polynomial as p1, and the roots as roots_ p1. Part II Lesson 10 Numerical Analysis Finding roots of a polynomial In MATLAB, a polynomial is expressed as a row vector of the form [an an 1 a2 a1 a0]. The elements ai of this vector are the coefficients

More information

Preliminary Examination in Numerical Analysis

Preliminary Examination in Numerical Analysis Department of Applied Mathematics Preliminary Examination in Numerical Analysis August 7, 06, 0 am pm. Submit solutions to four (and no more) of the following six problems. Show all your work, and justify

More information

Least Squares. Ken Kreutz-Delgado (Nuno Vasconcelos) ECE 175A Winter UCSD

Least Squares. Ken Kreutz-Delgado (Nuno Vasconcelos) ECE 175A Winter UCSD Least Squares Ken Kreutz-Delgado (Nuno Vasconcelos) ECE 75A Winter 0 - UCSD (Unweighted) Least Squares Assume linearity in the unnown, deterministic model parameters Scalar, additive noise model: y f (

More information

Chapter 8 Heteroskedasticity

Chapter 8 Heteroskedasticity Chapter 8 Walter R. Paczkowski Rutgers University Page 1 Chapter Contents 8.1 The Nature of 8. Detecting 8.3 -Consistent Standard Errors 8.4 Generalized Least Squares: Known Form of Variance 8.5 Generalized

More information

Inference for the Regression Coefficient

Inference for the Regression Coefficient Inference for the Regression Coefficient Recall, b 0 and b 1 are the estimates of the slope β 1 and intercept β 0 of population regression line. We can shows that b 0 and b 1 are the unbiased estimates

More information

Lecture 1 Linear Regression with One Predictor Variable.p2

Lecture 1 Linear Regression with One Predictor Variable.p2 Lecture Linear Regression with One Predictor Variablep - Basics - Meaning of regression parameters p - β - the slope of the regression line -it indicates the change in mean of the probability distn of

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

A Method of Computing Eigenvectors and Eigenvalues on an. Analog Computer. By Lucien Neustadt*

A Method of Computing Eigenvectors and Eigenvalues on an. Analog Computer. By Lucien Neustadt* A Method of Computing Eigenvectors and Eigenvalues on an Analog Computer By Lucien Neustadt* 1. Introduction. Many papers have been written in recent years describing methods for finding the eigenvalues

More information

ON DIVISION ALGEBRAS*

ON DIVISION ALGEBRAS* ON DIVISION ALGEBRAS* BY J. H. M. WEDDERBURN 1. The object of this paper is to develop some of the simpler properties of division algebras, that is to say, linear associative algebras in which division

More information

'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. EGR 103L Fall Test 2 Solutions. Michael R. Gustafson II

'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ. EGR 103L Fall Test 2 Solutions. Michael R. Gustafson II 'XNH8QLYHUVLW\ (GPXQG73UDWW-U6FKRRORI(QJLQHHULQJ EGR 103L Fall 2017 Test 2 Solutions Michael R. Gustafson II Name (please print) NET ID (please print): In keeping with the Community Standard, I have neither

More information

STATS24x7.com 2010 ADI NV, INC.

STATS24x7.com 2010 ADI NV, INC. TIME SERIES SIMPLE EXPONENTIAL SMOOTHING If the mean of y t remains constant over n time, each observation gets equal weight: y ˆ t1 yt 0 et, 0 y n t 1 If the mean of y t changes slowly over time, recent

More information

Physics of Everyday Phenomena. Chapter 2

Physics of Everyday Phenomena. Chapter 2 Physics of Everyday Phenomena W. Thomas Griffith Juliet W. Brosing Chapter 2 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Question 2.1 Ben leaves his home

More information

Linear Matrix Inequality Approach

Linear Matrix Inequality Approach 1 MEM800-007 Chapter 4a Linear Matrix Inequality Approach Reference: Linear matrix inequalities in system and control theory, Stephen Boyd et al. SIAM 1994. Linear Matrix Inequality (LMI) approach have

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

WRT in 2D: Poisson Example

WRT in 2D: Poisson Example WRT in 2D: Poisson Example Consider 2 u f on [, L x [, L y with u. WRT: For all v X N, find u X N a(v, u) such that v u dv v f dv. Follows from strong form plus integration by parts: ( ) 2 u v + 2 u dx

More information

Chapter 2. Review of Mathematics. 2.1 Exponents

Chapter 2. Review of Mathematics. 2.1 Exponents Chapter 2 Review of Mathematics In this chapter, we will briefly review some of the mathematical concepts used in this textbook. Knowing these concepts will make it much easier to understand the mathematical

More information

Math 1302 Notes 2. How many solutions? What type of solution in the real number system? What kind of equation is it?

Math 1302 Notes 2. How many solutions? What type of solution in the real number system? What kind of equation is it? Math 1302 Notes 2 We know that x 2 + 4 = 0 has How many solutions? What type of solution in the real number system? What kind of equation is it? What happens if we enlarge our current system? Remember

More information

Coverage: through class #7 material (updated June 14, 2017) Terminology/miscellaneous. for a linear instrument:

Coverage: through class #7 material (updated June 14, 2017) Terminology/miscellaneous. for a linear instrument: Boston University ME 310: Summer 017 Course otes to-date Prof. C. Farny DISCLAIMER: This document is meant to serve as a reference and an overview, and not an exclusive study guide for the course. Coverage:

More information

STK4900/ Lecture 3. Program

STK4900/ Lecture 3. Program STK4900/9900 - Lecture 3 Program 1. Multiple regression: Data structure and basic questions 2. The multiple linear regression model 3. Categorical predictors 4. Planned experiments and observational studies

More information

Lecture 3: Inference in SLR

Lecture 3: Inference in SLR Lecture 3: Inference in SLR STAT 51 Spring 011 Background Reading KNNL:.1.6 3-1 Topic Overview This topic will cover: Review of hypothesis testing Inference about 1 Inference about 0 Confidence Intervals

More information

Section 5.2 Solving Recurrence Relations

Section 5.2 Solving Recurrence Relations Section 5.2 Solving Recurrence Relations If a g(n) = f (a g(0),a g(1),..., a g(n 1) ) find a closed form or an expression for a g(n). Recall: nth degree polynomials have n roots: a n x n + a n 1 x n 1

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

Mathematics Textbook Correlation to the 2016 Algebra I Standards of Learning and Curriculum Framework

Mathematics Textbook Correlation to the 2016 Algebra I Standards of Learning and Curriculum Framework and Curriculum Framework Publisher: McGraw-Hill School Education Text: Algebra 1 Copyright date 2018 A.1 The student will a) represent verbal quantitative situations algebraically; and TE: 5-9, 23-29,

More information

Midterm Review. Name: Class: Date: ID: A. Short Answer. 1. For each graph, write the equation of a radical function of the form y = a b(x h) + k.

Midterm Review. Name: Class: Date: ID: A. Short Answer. 1. For each graph, write the equation of a radical function of the form y = a b(x h) + k. Name: Class: Date: ID: A Midterm Review Short Answer 1. For each graph, write the equation of a radical function of the form y = a b(x h) + k. a) b) c) 2. Determine the domain and range of each function.

More information

13. Nonlinear least squares

13. Nonlinear least squares L. Vandenberghe ECE133A (Fall 2018) 13. Nonlinear least squares definition and examples derivatives and optimality condition Gauss Newton method Levenberg Marquardt method 13.1 Nonlinear least squares

More information

Correlation: basic properties.

Correlation: basic properties. Correlation: basic properties. 1 r xy 1 for all sets of paired data. The closer r xy is to ±1, the stronger the linear relationship between the x-data and y-data. If r xy = ±1 then there is a perfect linear

More information

Statistical View of Least Squares

Statistical View of Least Squares Basic Ideas Some Examples Least Squares May 22, 2007 Basic Ideas Simple Linear Regression Basic Ideas Some Examples Least Squares Suppose we have two variables x and y Basic Ideas Simple Linear Regression

More information

Polynomial Form. Factored Form. Perfect Squares

Polynomial Form. Factored Form. Perfect Squares We ve seen how to solve quadratic equations (ax 2 + bx + c = 0) by factoring and by extracting square roots, but what if neither of those methods are an option? What do we do with a quadratic equation

More information

Lecture 20 - Plotting and Nonlinear Equations

Lecture 20 - Plotting and Nonlinear Equations Lecture 2 - Plotting and Nonlinear Equations Outline Prayer/Spiritual Thought Announcements 3. 4. Plotting Plotting Roots of Polynomials Single Nonlinear Equations Systems of Nonlinear Equations Plots

More information

Introduction to Data Analysis

Introduction to Data Analysis Introduction to Data Analysis Analysis of Experimental Errors How to Report and Use Experimental Errors Statistical Analysis of Data Simple statistics of data Plotting and displaying the data Summary Errors

More information

CS545 Contents XVI. Adaptive Control. Reading Assignment for Next Class. u Model Reference Adaptive Control. u Self-Tuning Regulators

CS545 Contents XVI. Adaptive Control. Reading Assignment for Next Class. u Model Reference Adaptive Control. u Self-Tuning Regulators CS545 Contents XVI Adaptive Control u Model Reference Adaptive Control u Self-Tuning Regulators u Linear Regression u Recursive Least Squares u Gradient Descent u Feedback-Error Learning Reading Assignment

More information

Chapter 4. Regression Models. Learning Objectives

Chapter 4. Regression Models. Learning Objectives Chapter 4 Regression Models To accompany Quantitative Analysis for Management, Eleventh Edition, by Render, Stair, and Hanna Power Point slides created by Brian Peterson Learning Objectives After completing

More information

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 15. SPATIAL INTERPOLATION 15.1 Elements of Spatial Interpolation 15.1.1 Control Points 15.1.2 Type of Spatial Interpolation 15.2 Global Methods 15.2.1 Trend Surface Models Box 15.1 A Worked Example

More information

Mass Relationships in Chemical Reactions

Mass Relationships in Chemical Reactions Mass Relationships in Chemical Reactions Chapter 3 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Micro World atoms & molecules Macro World grams Atomic mass

More information