EGR 102 Introduction to Engineering Modeling. Lab 09B Recap Regression Analysis & Structured Programming

Size: px
Start display at page:

Download "EGR 102 Introduction to Engineering Modeling. Lab 09B Recap Regression Analysis & Structured Programming"

Transcription

1 EGR 102 Introduction to Engineering Modeling Lab 09B Recap Regression Analysis & Structured Programming EGR Fall

2 Overview Data Manipulation find() built-in function Regression in MATLAB using ployfit Conditional Programming Iterative Programming Root finding EGR Fall

3 Data manipulations Indexing Matrices and Vectors M (1,2) V = v (2) 1 M = M (2,:) 9 M (:,1) M (3,3) R = R (2) EGR Fall

4 find() find() returns the index values for where its logic test is true In a vector, it is simply the index/element numbers In an array, there are two outputs being a set of row indices and a set of column indices In red we see the second and fourth values are >3. In blue we see the value at row 2 col 1 is < 3. In green we see the value at row 3 col 3 is < 3. EGR Fall

5 Regression in MATLAB ployfit We have a set of data (X,Y) polyfit allows us to get a polynomial fit to the data. Y predicted = a n X n + a n 1 X n 1 + a n 2 X n a 1 X 1 + a 0 X 0 Coef=ployfit(X,Y,n) Coef is a vector containing all the coefficients (a n, a n 1, a n 2,, a 1, a 0 ) The order on the fit is n EGR Fall

6 Regression in MATLAB ployfit Example : First order fit Coef=ployfit(x,y,1) Coef = a 1 a 0 y predicted = a 1 x + a 0 Ypredicted=ployval([a1,a0],x) Ypredicted=a1*x+a0 EGR Fall

7 Conditional Programming Conditional programming is very similar to a flow chart. Depending on results, only certain paths or branches of the code are executed. This is done by applying logic tests with one or more special statements. EGR Fall

8 Conditional Programming if Statement The syntax and what it effectively does are: if condition end statements The condition is a logic test. The statements are the code that will be run, but only if the condition is true. end closes the if statement; any code after runs as normal. EGR Fall

9 Iterative Programming There two types of iterative programming that will be introduced: for loops, the exact number of repetitions are set by the programmer while loops, the programmer sets a condition and the code repeats as long as it is true This lesson will discuss while loops. Lab 08A discussed for loops. EGR Fall

10 Iterative Programming for Loop The general syntax and structure are: for index = vector_of_values statements end index: variable that defines iterations. Usually i, j, or k vector_of_values : vector containing either the values to be evaluated in the loop or number of desired iterations statements are the commands to be executed with each iteration EGR Fall

11 Iterative Programming while Loop The general syntax and structure are: Initial while logic-condition statements end Initial is a value with the sole purpose of starting the loop by making the condition true. logic-condition is a logical expression that is either true or false. statements are the commands to be repeated. One should be an update for the value tested in the condition. EGR Fall

12 Root Finding 1. Bisection method (Lecture) 2. Newton-Raphson method (Lecture and Lab 09A) EGR Fall

13 Bisection method Pros: Always converge to a root Cons: Requires two initial guesses. Works best after plotting the function first Fails if you don t have a sign change Newton-Raphson Pros: Only require one initial guess Cons: Can be divergent (you may not find a root) EGR Fall

14 Bisection method algorithm 1. Start with two initial guesses: an upper value, x u and a lower value, x l EGR Fall

15 Bisection method algorithm 1. Start with two initial guesses: an upper value, x u and a lower value, x l 2. Take the difference between them and split it in half. This is the estimate of your root, x r EGR Fall

16 Bisection method algorithm 1. Start with two initial guesses: an upper value, x u and a lower value, x l 2. Take the difference between them and split it in half. This is the estimate of your root, x r 3. Determine if the true root is above or below your root estimate If f(x u )*f(x r )<0 then the true root is above the root estimate. If f(x l )*f(x r )<0 then the true root is below the root estimate EGR Fall

17 Bisection method algorithm 1. Start with two initial guesses: an upper value, x u and a lower value, x l 2. Take the difference between them and split it in half. This is the estimate of your root, x r 3. Determine if the true root is above or below your root estimate 4. Adjust the brackets If the true root is above the estimate, x r becomes the new x l value If the true root is below the estimate, x r becomes the new x u value EGR Fall

18 Bisection method algorithm 1. Start with two initial guesses: an upper value, x u and a lower value, x l 2. Take the difference between them and split it in half. This is the estimate of your root, x r 3. Determine if the true root is above or below your root estimate 4. Adjust the brackets If the true root is above the estimate, x r becomes the new x l value If the true root is below the estimate, x r becomes the new x u value EGR Fall

19 Bisection method algorithm 1. Start with two initial guesses: an upper value, x u and a lower value, x l 2. Take the difference between them and split it in half. This is the estimate of your root, x r 3. Determine if the true root is above or below your root estimate 4. Adjust the brackets If the true root is above the estimate, x r becomes the new x l value If the true root is below the estimate, x r becomes the new x u value 5. Calculate the new estimate, x r EGR Fall

20 Bisection method algorithm 1. Start with two initial guesses: an upper value, x u and a lower value, x l 2. Take the difference between them and split it in half. This is the estimate of your root, x r 3. Determine if the true root is above or below your root estimate 4. Adjust the brackets If the true root is above the estimate, x r becomes the new x l value If the true root is below the estimate, x r becomes the new x u value 5. Calculate the new estimate, x r 6. Repeat steps 2-5 until the root converges EGR Fall

21 What is root converging We determine when to stop iterating by looking at the difference between one root estimate and the next If the current root estimate is very close to the next estimate, we know we are close to the true root! We calculate the percent error, ε t, between the two root estimates: ε t = x r,new x r,old x r,new 100% A stop condition, ε s, must be defined and when ε s >ε t we have successfully found the root of the function EGR Fall

22 Bisection method algorithm Example f x = e x x EGR Fall

23 Bisection method algorithm Example f x = e x x Compare to the Newton- Raphson Method EGR Fall

24 Newton-Raphson method algorithm 1. Start with an initial guess of the root, x i EGR Fall

25 Newton-Raphson method algorithm 1. Start with an initial guess of the root, x i 2. Calculate the derivative of the function, f (x i ), and the function value, f(x i ), at the current value EGR Fall

26 Newton-Raphson method algorithm 1. Start with an initial guess of the root, x i 2. Calculate the derivative of the function, f (x i ), and the function value, f(x i ), at the current value 3. Calculate the next estimate of the root using the function value and the derivative: x i+1 = x i f x i f x i EGR Fall

27 Newton-Raphson Method Algorithm 1. Start with an initial guess of the root, x i 2. Calculate the derivative of the function, f (x i ), and the function value, f(x i ), at the current value 3. Calculate the next estimate of the root using the function value and the derivative: x i+1 = x i f x i f x i 4. i=i+1 5. Repeat step 2 and 3 until the root converges EGR Fall

28 Summary Data Manipulation find() built-in function Regression in MATLAB using ployfit Conditional Programming Iterative Programming Root finding EGR Fall

CS227-Scientific Computing. Lecture 6: Nonlinear Equations

CS227-Scientific Computing. Lecture 6: Nonlinear Equations CS227-Scientific Computing Lecture 6: Nonlinear Equations A Financial Problem You invest $100 a month in an interest-bearing account. You make 60 deposits, and one month after the last deposit (5 years

More information

Numerical Analysis Math 370 Spring 2009 MWF 11:30am - 12:25pm Fowler 110 c 2009 Ron Buckmire

Numerical Analysis Math 370 Spring 2009 MWF 11:30am - 12:25pm Fowler 110 c 2009 Ron Buckmire Numerical Analysis Math 37 Spring 9 MWF 11:3am - 1:pm Fowler 11 c 9 Ron Buckmire http://faculty.oxy.edu/ron/math/37/9/ Worksheet 9 SUMMARY Other Root-finding Methods (False Position, Newton s and Secant)

More information

V(0.1) V( 0.5) 0.6 V(0.5) V( 0.5)

V(0.1) V( 0.5) 0.6 V(0.5) V( 0.5) In-class exams are closed book, no calculators, except for one 8.5"x11" page, written in any density (student may bring a magnifier). Students are bound by the University of Florida honor code. Exam papers

More information

Finding Roots by "Closed" Methods

Finding Roots by Closed Methods Finding Roots by "Closed" Methods One general approach to finding roots is via so-called "closed" methods. Closed methods A closed method is one which starts with an interval, inside of which you know

More information

February 2 Math 2335 sec 51 Spring 2016

February 2 Math 2335 sec 51 Spring 2016 February 2 Math 2335 sec 51 Spring 2016 Section 3.1: Root Finding, Bisection Method Many problems in the sciences, business, manufacturing, etc. can be framed in the form: Given a function f (x), find

More information

Solutions of Equations in One Variable. Secant & Regula Falsi Methods

Solutions of Equations in One Variable. Secant & Regula Falsi Methods Solutions of Equations in One Variable Secant & Regula Falsi Methods Numerical Analysis (9th Edition) R L Burden & J D Faires Beamer Presentation Slides prepared by John Carroll Dublin City University

More information

Feb. 4 Math 2335 sec 001 Spring 2014

Feb. 4 Math 2335 sec 001 Spring 2014 Feb. 4 Math 2335 sec 001 Spring 2014 Propagated Error in Function Evaluation Let f (x) be some differentiable function. Suppose x A is an approximation to x T, and we wish to determine the function value

More information

Golden-Section Search for Optimization in One Dimension

Golden-Section Search for Optimization in One Dimension Golden-Section Search for Optimization in One Dimension Golden-section search for maximization (or minimization) is similar to the bisection method for root finding. That is, it does not use the derivatives

More information

Makinde, V. 1,. Akinboro, F.G 1., Okeyode, I.C. 1, Mustapha, A.O. 1., Coker, J.O. 2., and Adesina, O.S. 1.

Makinde, V. 1,. Akinboro, F.G 1., Okeyode, I.C. 1, Mustapha, A.O. 1., Coker, J.O. 2., and Adesina, O.S. 1. Implementation of the False Position (Regula Falsi) as a Computational Physics Method for the Determination of Roots of Non-Linear Equations Using Java Makinde, V. 1,. Akinboro, F.G 1., Okeyode, I.C. 1,

More information

69

69 Implementation of the False Position (Regula Falsi) as a Computational Physics Method for the Determination of Roots of Non-Linear Equations using Java 1.* Makinde, V., 1. Akinboro, F.G., 1. Okeyode, I.C.,

More information

Figure (1) The approximation can be substituted into equation (1) to yield the following iterative equation:

Figure (1) The approximation can be substituted into equation (1) to yield the following iterative equation: Computers & Softw are Eng. Dep. The Secant Method: A potential problem in implementing the Newton - Raphson method is the evolution o f the derivative. Although this is not inconvenient for polynomials

More information

The method of false position is also an Enclosure or bracketing method. For this method we will be able to remedy some of the minuses of bisection.

The method of false position is also an Enclosure or bracketing method. For this method we will be able to remedy some of the minuses of bisection. Section 2.2 The Method of False Position Features of BISECTION: Plusses: Easy to implement Almost idiot proof o If f(x) is continuous & changes sign on [a, b], then it is GUARANTEED to converge. Requires

More information

Decomposition Methods

Decomposition Methods Decomposition Methods separable problems, complicating variables primal decomposition dual decomposition complicating constraints general decomposition structures Prof. S. Boyd, EE364b, Stanford University

More information

Introduction to Numerical Methods (Algorithm)

Introduction to Numerical Methods (Algorithm) Introduction to Numerical Methods (Algorithm) 1 2 Example: Find the internal rate of return (IRR) Consider an investor who pays CF 0 to buy a bond that will pay coupon interest CF 1 after one year and

More information

CS 3331 Numerical Methods Lecture 2: Functions of One Variable. Cherung Lee

CS 3331 Numerical Methods Lecture 2: Functions of One Variable. Cherung Lee CS 3331 Numerical Methods Lecture 2: Functions of One Variable Cherung Lee Outline Introduction Solving nonlinear equations: find x such that f(x ) = 0. Binary search methods: (Bisection, regula falsi)

More information

Sensitivity Analysis with Data Tables. 10% annual interest now =$110 one year later. 10% annual interest now =$121 one year later

Sensitivity Analysis with Data Tables. 10% annual interest now =$110 one year later. 10% annual interest now =$121 one year later Sensitivity Analysis with Data Tables Time Value of Money: A Special kind of Trade-Off: $100 @ 10% annual interest now =$110 one year later $110 @ 10% annual interest now =$121 one year later $100 @ 10%

More information

This method uses not only values of a function f(x), but also values of its derivative f'(x). If you don't know the derivative, you can't use it.

This method uses not only values of a function f(x), but also values of its derivative f'(x). If you don't know the derivative, you can't use it. Finding Roots by "Open" Methods The differences between "open" and "closed" methods The differences between "open" and "closed" methods are closed open ----------------- --------------------- uses a bounded

More information

Maximum Likelihood Estimation

Maximum Likelihood Estimation Maximum Likelihood Estimation EPSY 905: Fundamentals of Multivariate Modeling Online Lecture #6 EPSY 905: Maximum Likelihood In This Lecture The basics of maximum likelihood estimation Ø The engine that

More information

Problem Set 1 Due in class, week 1

Problem Set 1 Due in class, week 1 Business 35150 John H. Cochrane Problem Set 1 Due in class, week 1 Do the readings, as specified in the syllabus. Answer the following problems. Note: in this and following problem sets, make sure to answer

More information

1 Overview. 2 The Gradient Descent Algorithm. AM 221: Advanced Optimization Spring 2016

1 Overview. 2 The Gradient Descent Algorithm. AM 221: Advanced Optimization Spring 2016 AM 22: Advanced Optimization Spring 206 Prof. Yaron Singer Lecture 9 February 24th Overview In the previous lecture we reviewed results from multivariate calculus in preparation for our journey into convex

More information

Factoring completely is factoring a product down to a product of prime factors. 24 (2)(12) (2)(2)(6) (2)(2)(2)(3)

Factoring completely is factoring a product down to a product of prime factors. 24 (2)(12) (2)(2)(6) (2)(2)(2)(3) Factoring Contents Introduction... 2 Factoring Polynomials... 4 Greatest Common Factor... 4 Factoring by Grouping... 5 Factoring a Trinomial with a Table... 5 Factoring a Trinomial with a Leading Coefficient

More information

The Impact of Computational Error on the Volatility Smile

The Impact of Computational Error on the Volatility Smile The Impact of Computational Error on the Volatility Smile Don M. Chance Louisiana State University Thomas A. Hanson Kent State University Weiping Li Oklahoma State University Jayaram Muthuswamy Kent State

More information

Lecture 3: Review of Probability, MATLAB, Histograms

Lecture 3: Review of Probability, MATLAB, Histograms CS 4980/6980: Introduction to Data Science c Spring 2018 Lecture 3: Review of Probability, MATLAB, Histograms Instructor: Daniel L. Pimentel-Alarcón Scribed and Ken Varghese This is preliminary work and

More information

Econ 582 Nonlinear Regression

Econ 582 Nonlinear Regression Econ 582 Nonlinear Regression Eric Zivot June 3, 2013 Nonlinear Regression In linear regression models = x 0 β (1 )( 1) + [ x ]=0 [ x = x] =x 0 β = [ x = x] [ x = x] x = β it is assumed that the regression

More information

Tree Diagram. Splitting Criterion. Splitting Criterion. Introduction. Building a Decision Tree. MS4424 Data Mining & Modelling Decision Tree

Tree Diagram. Splitting Criterion. Splitting Criterion. Introduction. Building a Decision Tree. MS4424 Data Mining & Modelling Decision Tree Introduction MS4424 Data Mining & Modelling Decision Tree Lecturer : Dr Iris Yeung Room No : P7509 Tel No : 2788 8566 Email : msiris@cityu.edu.hk decision tree is a set of rules represented in a tree structure

More information

MAS115: R programming Lecture 3: Some more pseudo-code and Monte Carlo estimation Lab Class: for and if statements, input

MAS115: R programming Lecture 3: Some more pseudo-code and Monte Carlo estimation Lab Class: for and if statements, input MAS115: R programming Lecture 3: Some more pseudo-code and Monte Carlo estimation Lab Class: for and if statements, input The University of Sheffield School of Mathematics and Statistics Aims Introduce

More information

Iteration. The Cake Eating Problem. Discount Factors

Iteration. The Cake Eating Problem. Discount Factors 18 Value Function Iteration Lab Objective: Many questions have optimal answers that change over time. Sequential decision making problems are among this classification. In this lab you we learn how to

More information

Lecture Quantitative Finance Spring Term 2015

Lecture Quantitative Finance Spring Term 2015 implied Lecture Quantitative Finance Spring Term 2015 : May 7, 2015 1 / 28 implied 1 implied 2 / 28 Motivation and setup implied the goal of this chapter is to treat the implied which requires an algorithm

More information

Direct Methods for linear systems Ax = b basic point: easy to solve triangular systems

Direct Methods for linear systems Ax = b basic point: easy to solve triangular systems NLA p.1/13 Direct Methods for linear systems Ax = b basic point: easy to solve triangular systems... 0 0 0 etc. a n 1,n 1 x n 1 = b n 1 a n 1,n x n solve a n,n x n = b n then back substitution: takes n

More information

Final Projects Introduction to Numerical Analysis Professor: Paul J. Atzberger

Final Projects Introduction to Numerical Analysis Professor: Paul J. Atzberger Final Projects Introduction to Numerical Analysis Professor: Paul J. Atzberger Due Date: Friday, December 12th Instructions: In the final project you are to apply the numerical methods developed in the

More information

Chapter 7 One-Dimensional Search Methods

Chapter 7 One-Dimensional Search Methods Chapter 7 One-Dimensional Search Methods An Introduction to Optimization Spring, 2014 1 Wei-Ta Chu Golden Section Search! Determine the minimizer of a function over a closed interval, say. The only assumption

More information

Decision Trees: Booths

Decision Trees: Booths DECISION ANALYSIS Decision Trees: Booths Terri Donovan recorded: January, 2010 Hi. Tony has given you a challenge of setting up a spreadsheet, so you can really understand whether it s wiser to play in

More information

Pricing Options Using Trinomial Trees

Pricing Options Using Trinomial Trees Pricing Options Using Trinomial Trees Paul Clifford Yan Wang Oleg Zaboronski 30.12.2009 1 Introduction One of the first computational models used in the financial mathematics community was the binomial

More information

White-Box Testing Techniques I

White-Box Testing Techniques I White-Box Testing Techniques I Software Testing and Verification Lecture 7 Prepared by Stephen M. Thebaut, Ph.D. University of Florida Definition of White-Box Testing Testing based on analysis of internal

More information

PRMIA Exam 8002 PRM Certification - Exam II: Mathematical Foundations of Risk Measurement Version: 6.0 [ Total Questions: 132 ]

PRMIA Exam 8002 PRM Certification - Exam II: Mathematical Foundations of Risk Measurement Version: 6.0 [ Total Questions: 132 ] s@lm@n PRMIA Exam 8002 PRM Certification - Exam II: Mathematical Foundations of Risk Measurement Version: 6.0 [ Total Questions: 132 ] Question No : 1 A 2-step binomial tree is used to value an American

More information

Definition 4.1. In a stochastic process T is called a stopping time if you can tell when it happens.

Definition 4.1. In a stochastic process T is called a stopping time if you can tell when it happens. 102 OPTIMAL STOPPING TIME 4. Optimal Stopping Time 4.1. Definitions. On the first day I explained the basic problem using one example in the book. On the second day I explained how the solution to the

More information

lecture 31: The Secant Method: Prototypical Quasi-Newton Method

lecture 31: The Secant Method: Prototypical Quasi-Newton Method 169 lecture 31: The Secant Method: Prototypical Quasi-Newton Method Newton s method is fast if one has a good initial guess x 0 Even then, it can be inconvenient and expensive to compute the derivatives

More information

Non-Deterministic Search

Non-Deterministic Search Non-Deterministic Search MDP s 1 Non-Deterministic Search How do you plan (search) when your actions might fail? In general case, how do you plan, when the actions have multiple possible outcomes? 2 Example:

More information

Maximum Likelihood Estimation Richard Williams, University of Notre Dame, https://www3.nd.edu/~rwilliam/ Last revised January 13, 2018

Maximum Likelihood Estimation Richard Williams, University of Notre Dame, https://www3.nd.edu/~rwilliam/ Last revised January 13, 2018 Maximum Likelihood Estimation Richard Williams, University of otre Dame, https://www3.nd.edu/~rwilliam/ Last revised January 3, 208 [This handout draws very heavily from Regression Models for Categorical

More information

Deep RL and Controls Homework 1 Spring 2017

Deep RL and Controls Homework 1 Spring 2017 10-703 Deep RL and Controls Homework 1 Spring 2017 February 1, 2017 Due February 17, 2017 Instructions You have 15 days from the release of the assignment until it is due. Refer to gradescope for the exact

More information

Math Lab 5 Assignment

Math Lab 5 Assignment Math 340 - Lab 5 Assignment Dylan L. Renaud February 22nd, 2017 Introduction In this lab, we approximate the roots of various functions using the Bisection, Newton, Secant, and Regula Falsi methods. The

More information

Boise State University GEOS 397 Fall 2016

Boise State University GEOS 397 Fall 2016 Homework #3: Hill-slope evolution and plotting Due: 5:00 PM 09/16/16 Please read the following questions carefully and make sure to answer the problems completely. In your MATLAB script(s), please include

More information

Computing and Data Analysis with Excel

Computing and Data Analysis with Excel Main Examination period 2018 MTH4114 Computing and Data Analysis with Excel Duration: 2 hours Apart from this page, you are not permitted to read the contents of this question paper until instructed to

More information

Demographics and the behavior of interest rates

Demographics and the behavior of interest rates Demographics and the behavior of interest rates (C. Favero, A. Gozluklu and H. Yang) Discussion by Michele Lenza European Central Bank and ECARES-ULB Firenze 18-19 June 2015 Rubric Persistence in interest

More information

Kostas Kyriakoulis ECG 790: Topics in Advanced Econometrics Fall Matlab Handout # 5. Two step and iterative GMM Estimation

Kostas Kyriakoulis ECG 790: Topics in Advanced Econometrics Fall Matlab Handout # 5. Two step and iterative GMM Estimation Kostas Kyriakoulis ECG 790: Topics in Advanced Econometrics Fall 2004 Matlab Handout # 5 Two step and iterative GMM Estimation The purpose of this handout is to describe the computation of the two-step

More information

Principles of Financial Computing

Principles of Financial Computing Principles of Financial Computing Prof. Yuh-Dauh Lyuu Dept. Computer Science & Information Engineering and Department of Finance National Taiwan University c 2008 Prof. Yuh-Dauh Lyuu, National Taiwan University

More information

Optimization for Chemical Engineers, 4G3. Written midterm, 23 February 2015

Optimization for Chemical Engineers, 4G3. Written midterm, 23 February 2015 Optimization for Chemical Engineers, 4G3 Written midterm, 23 February 2015 Kevin Dunn, kevin.dunn@mcmaster.ca McMaster University Note: No papers, other than this test and the answer booklet are allowed

More information

MATHEMATICS FRIDAY 23 MAY 2008 ADVANCED SUBSIDIARY GCE 4732/01. Probability & Statistics 1. Morning Time: 1 hour 30 minutes

MATHEMATICS FRIDAY 23 MAY 2008 ADVANCED SUBSIDIARY GCE 4732/01. Probability & Statistics 1. Morning Time: 1 hour 30 minutes ADVANCED SUBSIDIARY GCE 4732/01 MATHEMATICS Probability & Statistics 1 FRIDAY 23 MAY 2008 Additional materials (enclosed): Additional materials (required): Answer Booklet (8 pages) List of Formulae (MF1)

More information

1. better to stick. 2. better to switch. 3. or does your second choice make no difference?

1. better to stick. 2. better to switch. 3. or does your second choice make no difference? The Monty Hall game Game show host Monty Hall asks you to choose one of three doors. Behind one of the doors is a new Porsche. Behind the other two doors there are goats. Monty knows what is behind each

More information

A CONTROL PERSPECTIVE TO ADAPTIVE TIME STEPPING IN RESERVOIR SIMULATION. A Thesis DANY ELOM AKAKPO

A CONTROL PERSPECTIVE TO ADAPTIVE TIME STEPPING IN RESERVOIR SIMULATION. A Thesis DANY ELOM AKAKPO A CONTROL PERSPECTIVE TO ADAPTIVE TIME STEPPING IN RESERVOIR SIMULATION A Thesis by DANY ELOM AKAKPO Submitted to the Office of Graduate and Professional Studies of Texas A&M University in partial fulfillment

More information

CONSTRUCTING NO-ARBITRAGE VOLATILITY CURVES IN LIQUID AND ILLIQUID COMMODITY MARKETS

CONSTRUCTING NO-ARBITRAGE VOLATILITY CURVES IN LIQUID AND ILLIQUID COMMODITY MARKETS CONSTRUCTING NO-ARBITRAGE VOLATILITY CURVES IN LIQUID AND ILLIQUID COMMODITY MARKETS Financial Mathematics Modeling for Graduate Students-Workshop January 6 January 15, 2011 MENTOR: CHRIS PROUTY (Cargill)

More information

Math 229 FINAL EXAM Review: Fall Final Exam Monday December 11 ALL Projects Due By Monday December 11

Math 229 FINAL EXAM Review: Fall Final Exam Monday December 11 ALL Projects Due By Monday December 11 Math 229 FINAL EXAM Review: Fall 2018 1 Final Exam Monday December 11 ALL Projects Due By Monday December 11 1. Problem 1: (a) Write a MatLab function m-file to evaluate the following function: f(x) =

More information

CS 343: Artificial Intelligence

CS 343: Artificial Intelligence CS 343: Artificial Intelligence Markov Decision Processes II Prof. Scott Niekum The University of Texas at Austin [These slides based on those of Dan Klein and Pieter Abbeel for CS188 Intro to AI at UC

More information

MAE384 HW1 Discussion

MAE384 HW1 Discussion MAE384 HW1 Discussion Prob. 1 We have already discussed this problem in some detail in class. The only point of note is that chopping, instead of rounding, should be applied to every step of the calculation

More information

Introduction to Basic Excel Functions and Formulae Note: Basic Functions Note: Function Key(s)/Input Description 1. Sum 2. Product

Introduction to Basic Excel Functions and Formulae Note: Basic Functions Note: Function Key(s)/Input Description 1. Sum 2. Product Introduction to Basic Excel Functions and Formulae Excel has some very useful functions that you can use when working with formulae. This worksheet has been designed using Excel 2010 however the basic

More information

Graduate Macro Theory II: Notes on Value Function Iteration

Graduate Macro Theory II: Notes on Value Function Iteration Graduate Macro Theory II: Notes on Value Function Iteration Eric Sims University of Notre Dame Spring 07 Introduction These notes discuss how to solve dynamic economic models using value function iteration.

More information

Machine Learning (CSE 446): Pratical issues: optimization and learning

Machine Learning (CSE 446): Pratical issues: optimization and learning Machine Learning (CSE 446): Pratical issues: optimization and learning John Thickstun guest lecture c 2018 University of Washington cse446-staff@cs.washington.edu 1 / 10 Review 1 / 10 Our running example

More information

User Guide of GARCH-MIDAS and DCC-MIDAS MATLAB Programs

User Guide of GARCH-MIDAS and DCC-MIDAS MATLAB Programs User Guide of GARCH-MIDAS and DCC-MIDAS MATLAB Programs 1. Introduction The GARCH-MIDAS model decomposes the conditional variance into the short-run and long-run components. The former is a mean-reverting

More information

Maximum Likelihood Estimation Richard Williams, University of Notre Dame, https://www3.nd.edu/~rwilliam/ Last revised January 10, 2017

Maximum Likelihood Estimation Richard Williams, University of Notre Dame, https://www3.nd.edu/~rwilliam/ Last revised January 10, 2017 Maximum Likelihood Estimation Richard Williams, University of otre Dame, https://www3.nd.edu/~rwilliam/ Last revised January 0, 207 [This handout draws very heavily from Regression Models for Categorical

More information

Lecture 4: Divide and Conquer

Lecture 4: Divide and Conquer Lecture 4: Divide and Conquer Divide and Conquer Merge sort is an example of a divide-and-conquer algorithm Recall the three steps (at each level to solve a divideand-conquer problem recursively Divide

More information

Bidding Decision Example

Bidding Decision Example Bidding Decision Example SUPERTREE EXAMPLE In this chapter, we demonstrate Supertree using the simple bidding problem portrayed by the decision tree in Figure 5.1. The situation: Your company is bidding

More information

Computational Finance Least Squares Monte Carlo

Computational Finance Least Squares Monte Carlo Computational Finance Least Squares Monte Carlo School of Mathematics 2019 Monte Carlo and Binomial Methods In the last two lectures we discussed the binomial tree method and convergence problems. One

More information

Computer Exercise 2 Simulation

Computer Exercise 2 Simulation Lund University with Lund Institute of Technology Valuation of Derivative Assets Centre for Mathematical Sciences, Mathematical Statistics Fall 2017 Computer Exercise 2 Simulation This lab deals with pricing

More information

Interpolation. 1 What is interpolation? 2 Why are we interested in this?

Interpolation. 1 What is interpolation? 2 Why are we interested in this? Interpolation 1 What is interpolation? For a certain function f (x we know only the values y 1 = f (x 1,,y n = f (x n For a point x different from x 1,,x n we would then like to approximate f ( x using

More information

Solution of Equations

Solution of Equations Solution of Equations Outline Bisection Method Secant Method Regula Falsi Method Newton s Method Nonlinear Equations This module focuses on finding roots on nonlinear equations of the form f()=0. Due to

More information

Extend the ideas of Kan and Zhou paper on Optimal Portfolio Construction under parameter uncertainty

Extend the ideas of Kan and Zhou paper on Optimal Portfolio Construction under parameter uncertainty Extend the ideas of Kan and Zhou paper on Optimal Portfolio Construction under parameter uncertainty George Photiou Lincoln College University of Oxford A dissertation submitted in partial fulfilment for

More information

Westfield Boulevard Alternative

Westfield Boulevard Alternative Westfield Boulevard Alternative Supplemental Concept-Level Economic Analysis 1 - Introduction and Alternative Description This document presents results of a concept-level 1 incremental analysis of the

More information

Online Appendix. Manisha Goel. April 2016

Online Appendix. Manisha Goel. April 2016 Online Appendix Manisha Goel April 2016 Appendix A Appendix A.1 Empirical Appendix Data Sources U.S. Imports and Exports Data The imports data for the United States are obtained from the Center for International

More information

Package jrvfinance. R topics documented: August 29, 2016

Package jrvfinance. R topics documented: August 29, 2016 Package jrvfinance August 29, 2016 Title Basic Finance; NPV/IRR/Annuities/Bond-Pricing; Black Scholes Version 1.03 Implements the basic financial analysis functions similar to (but not identical to) what

More information

White-Box Testing Techniques I

White-Box Testing Techniques I White-Box Testing Techniques I Software Testing and Verification Lecture 7 Prepared by Stephen M. Thebaut, Ph.D. University of Florida Definition of White-Box Testing Testing based on analysis of internal

More information

Programming Mathematics as an Advanced Math Course

Programming Mathematics as an Advanced Math Course Programming Mathematics as an Advanced Math Course Lisa Oberbroeckling loberbro@loyola.edu MAA Mathfest Portland, OR L. Oberbroeckling (Loyola U MD) MATLAB Course Mathfest, 9 Aug 214 1 / 16 Course Motivation

More information

Section 7.1 Common Factors in Polynomials

Section 7.1 Common Factors in Polynomials Chapter 7 Factoring How Does GPS Work? 7.1 Common Factors in Polynomials 7.2 Difference of Two Squares 7.3 Perfect Trinomial Squares 7.4 Factoring Trinomials: (x 2 + bx + c) 7.5 Factoring Trinomials: (ax

More information

Regression Review and Robust Regression. Slides prepared by Elizabeth Newton (MIT)

Regression Review and Robust Regression. Slides prepared by Elizabeth Newton (MIT) Regression Review and Robust Regression Slides prepared by Elizabeth Newton (MIT) S-Plus Oil City Data Frame Monthly Excess Returns of Oil City Petroleum, Inc. Stocks and the Market SUMMARY: The oilcity

More information

a*(variable) 2 + b*(variable) + c

a*(variable) 2 + b*(variable) + c CH. 8. Factoring polynomials of the form: a*(variable) + b*(variable) + c Factor: 6x + 11x + 4 STEP 1: Is there a GCF of all terms? NO STEP : How many terms are there? Is it of degree? YES * Is it in the

More information

1 Explicit Euler Scheme (or Euler Forward Scheme )

1 Explicit Euler Scheme (or Euler Forward Scheme ) Numerical methods for PDE in Finance - M2MO - Paris Diderot American options January 2018 Files: https://ljll.math.upmc.fr/bokanowski/enseignement/2017/m2mo/m2mo.html We look for a numerical approximation

More information

Trust Region Methods for Unconstrained Optimisation

Trust Region Methods for Unconstrained Optimisation Trust Region Methods for Unconstrained Optimisation Lecture 9, Numerical Linear Algebra and Optimisation Oxford University Computing Laboratory, MT 2007 Dr Raphael Hauser (hauser@comlab.ox.ac.uk) The Trust

More information

(8m 2 5m + 2) - (-10m 2 +7m 6) (8m 2 5m + 2) + (+10m 2-7m + 6)

(8m 2 5m + 2) - (-10m 2 +7m 6) (8m 2 5m + 2) + (+10m 2-7m + 6) Adding Polynomials Adding & Subtracting Polynomials (Combining Like Terms) Subtracting Polynomials (if your nd polynomial is inside a set of parentheses). (x 8x + ) + (-x -x 7) FIRST, Identify the like

More information

Problem Set 3 Due by Sat 12:00, week 3

Problem Set 3 Due by Sat 12:00, week 3 Business 35150 John H. Cochrane Problem Set 3 Due by Sat 12:00, week 3 Part I. Reading questions: These refer to the reading assignment in the syllabus. Please hand in short answers. Where appropriate,

More information

The Agent-Environment Interface Goals, Rewards, Returns The Markov Property The Markov Decision Process Value Functions Optimal Value Functions

The Agent-Environment Interface Goals, Rewards, Returns The Markov Property The Markov Decision Process Value Functions Optimal Value Functions The Agent-Environment Interface Goals, Rewards, Returns The Markov Property The Markov Decision Process Value Functions Optimal Value Functions Optimality and Approximation Finite MDP: {S, A, R, p, γ}

More information

Structure of the Code

Structure of the Code NSCool User s guide Structure of the Code Dany Page Instituto de Astronomía Universidad Nacional Autónoma de México 1 The problem to be solved The equations to be solved are described in the NSCool_Guide_1

More information

X 410 Business Applications of Calculus

X 410 Business Applications of Calculus X 410 Business Applications of Calculus PROBLEM SET 1 [100 points] PART I As manager of a particular product line, you have data available for the past 11 sales periods. This data associates your product

More information

A Statistical Model for Estimating Provision for Doubtful Debts

A Statistical Model for Estimating Provision for Doubtful Debts The Journal of Nepalese Bussiness Studies Vol. X No. 1 December 2017 ISSN:2350-8795 78 A Statistical Model for Estimating Provision for Doubtful Debts Dhruba Kumar Budhathoki ABSTRACT This paper attempts

More information

Logistic Regression Analysis

Logistic Regression Analysis Revised July 2018 Logistic Regression Analysis This set of notes shows how to use Stata to estimate a logistic regression equation. It assumes that you have set Stata up on your computer (see the Getting

More information

(And getting familiar with R) Jan. 8th, School of Information, University of Michigan. SI 544 Descriptive Statistics

(And getting familiar with R) Jan. 8th, School of Information, University of Michigan. SI 544 Descriptive Statistics (And getting familiar with R) School of Information, University of Michigan Jan. 8th, 2007 last lecture In this course: descriptive simply quantitatively and visually analyze data inferential try to reach

More information

Web Appendix. Are the effects of monetary policy shocks big or small? Olivier Coibion

Web Appendix. Are the effects of monetary policy shocks big or small? Olivier Coibion Web Appendix Are the effects of monetary policy shocks big or small? Olivier Coibion Appendix 1: Description of the Model-Averaging Procedure This section describes the model-averaging procedure used in

More information

Factoring. Difference of Two Perfect Squares (DOTS) Greatest Common Factor (GCF) Factoring Completely Trinomials. Factor Trinomials by Grouping

Factoring. Difference of Two Perfect Squares (DOTS) Greatest Common Factor (GCF) Factoring Completely Trinomials. Factor Trinomials by Grouping Unit 6 Name Factoring Day 1 Difference of Two Perfect Squares (DOTS) Day Greatest Common Factor (GCF) Day 3 Factoring Completely Binomials Day 4 QUIZ Day 5 Factor by Grouping Day 6 Factor Trinomials by

More information

EE/AA 578 Univ. of Washington, Fall Homework 8

EE/AA 578 Univ. of Washington, Fall Homework 8 EE/AA 578 Univ. of Washington, Fall 2016 Homework 8 1. Multi-label SVM. The basic Support Vector Machine (SVM) described in the lecture (and textbook) is used for classification of data with two labels.

More information

Business Process Management

Business Process Management Business Process Management Paolo Bottoni Lecture 5: AdvancedBPM Adapted from the slides for the book : Dumas, La Rosa, Mendling & Reijers: Fundamentals of Business Process Management, Springer 2013 http://courses.cs.ut.ee/2013/bpm/uploads/main/itlecture3.ppt

More information

6.825 Homework 3: Solutions

6.825 Homework 3: Solutions 6.825 Homework 3: Solutions 1 Easy EM You are given the network structure shown in Figure 1 and the data in the following table, with actual observed values for A, B, and C, and expected counts for D.

More information

Research Methodology and Statistic Chapter 9: Data processing (Scilab) Dr. Supakit Nootyaskool IT-KMITL

Research Methodology and Statistic Chapter 9: Data processing (Scilab) Dr. Supakit Nootyaskool IT-KMITL 9 Research Methodology and Statistic Chapter 9: Data processing (Scilab) Dr. Supakit Nootyaskool IT-KMITL supakitnootyaskool@gmail.com Topics Introducing Scilab variables, vector, matrix arithmetic and

More information

First Midterm Examination Econ 103, Statistics for Economists February 16th, 2016

First Midterm Examination Econ 103, Statistics for Economists February 16th, 2016 First Midterm Examination Econ 103, Statistics for Economists February 16th, 2016 You will have 70 minutes to complete this exam. Graphing calculators, notes, and textbooks are not permitted. I pledge

More information

CS 188: Artificial Intelligence Fall 2011

CS 188: Artificial Intelligence Fall 2011 CS 188: Artificial Intelligence Fall 2011 Lecture 9: MDPs 9/22/2011 Dan Klein UC Berkeley Many slides over the course adapted from either Stuart Russell or Andrew Moore 2 Grid World The agent lives in

More information

Step one is identifying the GCF, and step two is dividing it out.

Step one is identifying the GCF, and step two is dividing it out. Throughout this course we will be looking at how to undo different operations in algebra. When covering exponents we showed how ( 3) 3 = 27, then when covering radicals we saw how to get back to the original

More information

Lecture 14: Basic Fixpoint Theorems (cont.)

Lecture 14: Basic Fixpoint Theorems (cont.) Lecture 14: Basic Fixpoint Theorems (cont) Predicate Transformers Monotonicity and Continuity Existence of Fixpoints Computing Fixpoints Fixpoint Characterization of CTL Operators 1 2 E M Clarke and E

More information

Market Risk Analysis Volume I

Market Risk Analysis Volume I Market Risk Analysis Volume I Quantitative Methods in Finance Carol Alexander John Wiley & Sons, Ltd List of Figures List of Tables List of Examples Foreword Preface to Volume I xiii xvi xvii xix xxiii

More information

Contents Critique 26. portfolio optimization 32

Contents Critique 26. portfolio optimization 32 Contents Preface vii 1 Financial problems and numerical methods 3 1.1 MATLAB environment 4 1.1.1 Why MATLAB? 5 1.2 Fixed-income securities: analysis and portfolio immunization 6 1.2.1 Basic valuation of

More information

Markov Decision Process

Markov Decision Process Markov Decision Process Human-aware Robotics 2018/02/13 Chapter 17.3 in R&N 3rd Ø Announcement: q Slides for this lecture are here: http://www.public.asu.edu/~yzhan442/teaching/cse471/lectures/mdp-ii.pdf

More information

Key Features Asset allocation, cash flow analysis, object-oriented portfolio optimization, and risk analysis

Key Features Asset allocation, cash flow analysis, object-oriented portfolio optimization, and risk analysis Financial Toolbox Analyze financial data and develop financial algorithms Financial Toolbox provides functions for mathematical modeling and statistical analysis of financial data. You can optimize portfolios

More information

Project exam for STK Computational statistics

Project exam for STK Computational statistics Project exam for STK4051 - Computational statistics Fall 2017 Part 1 (of 2) This is the first part of the exam project set for STK4051/9051, fall semester 2017. It is made available on the course website

More information

Lecture 9: Classification and Regression Trees

Lecture 9: Classification and Regression Trees Lecture 9: Classification and Regression Trees Advanced Applied Multivariate Analysis STAT 2221, Spring 2015 Sungkyu Jung Department of Statistics, University of Pittsburgh Xingye Qiao Department of Mathematical

More information