Appendix G: Numerical Solution to ODEs

Size: px
Start display at page:

Download "Appendix G: Numerical Solution to ODEs"

Transcription

1 Appendix G: Numerical Solution to ODEs The numerical solution to any transient problem begins with the derivation of the governing differential equation, which allows the calculation of the rate of change of the dependent parameter to be computed as a function of the value of the dependent parameter and time. The solution to the problem is therefore a matter of integrating the governing differential equation forward in time. There are a number of techniques available for numerical integration, each with its own characteristic level of accuracy, stability, and complexity. These numerical integration techniques are introduced and discussed in this appendix and revisited throughout the text in order to solve thermonamics problems. In this text we will exclusively use the EES Integral command to numerically solve ordinary differential equations. The EES Integral command automatically implements a sophisticated, adaptive step-size integration technique and is described in Section G.5. Readers interested in only in the implementation details associated with the Integral command in EES should skip directly to Section G.5. Sections G.1 through G.4 provide an overview of the theory behind numerical integration and some of the most common techniques. The governing differential equation that provides the rate of change of a variable (or several variables) given its own value (or values) is sometimes referred to as the state equation for the namic system. State equations characterize the transient behavior of problems in many areas including controls, namics, kinematics, fluids, heat transfer, and electrical circuits. Therefore, the numerical solution techniques provided in this section are relevant to a wide range of engineering problems. In this section, a very simple ODE is solved numerically: 4ty 2t (G-1) with initial condition y = 0 at t = 0. This ODE is relatively simple and therefore an analytical solution can be determined and used as the basis for evaluating the accuracy of the numerical solutions that are derived in this section. Equation (G-1) can be separated: 2 4 y t (G-2) and integrated: y 0 0 t t 2 4y (G-3) The variable w is defined as: w 2 4y (G-4)

2 The differential of w is: dw 4 (G-5) Substituting Eqs. (G-4) and (G-5) into Eq. (G-3) provides: 24y 2 0 t dw t 4 w (G-6) Carrying out the integration in Eq. (G-6) provides: y t ln (G-7) Equation (G-7) is solved for y: The analytical solution is entered in EES: y 1 1 exp 2t (G-8) y = -1/2+exp(-2*t^2)/2 "analytical solution" and used to generate Figure G-1. 0 Dependent variable, y Independent variable, t Figure G-1: Analytical solution. The solution to this problem can also be obtained numerically using one of several available numerical integration techniques. Each numerical technique requires that the total simulation time (t sim ) be broken into small time steps. The simplest possibility uses equal-sized steps, each with duration t:

3 t t sim M 1 (G-9) where M is the number of times at which the solution will be evaluated. The solution at each time step (y j ) is computed by the numerical model, where j indicates the time step (y 1 is the initial condition at t 1 = 0). The time corresponding to each time step is therefore: j 1 tj tsim for j 1.. M M 1 (G-10) G.1 Euler's Method The solution at the end of each time step is computed based on the value at the beginning of the time step and the governing differential equation. The simplest (and generally the least efficient) technique for numerical integration is Euler s method. Euler s method approximates the rate of change within the time step as being constant and equal to its value at the beginning of the time step. Therefore, for any time step j: yj 1 yj t (G-11) yyj, ttj Because the value of the solution at the end of the time step (y j+1 ) can be calculated explicitly using information at the beginning of the time step (y j ), Euler s method is referred to as an explicit numerical technique. The solution at the end of the first time step (y 2 ) is given by: y y t (G-12) 2 1 yy1, t0 where y y 1, t 0 is computed using the governing differential equation. Equation (G-12) is written for every time step, resulting in a set of explicit equations that can be solved sequentially for y at each discrete time. As an example, we can solve Eq. (G-1) with y 1 = 0 at t 1 = 0. The time step duration and array of times for which the solution will be computed is specified using Eqs. (G-9) and (G-10): t_sim=2.5 "time to be simulated" M=21 "number of time steps" Dt=t_sim/(M-1) "time step duration" duplicate j=1,m t[j]=(j-1)*dt "time at each time step" end The initial value of the variable y is specified as the first element in the array y.

4 y[1]=0 "initial value" It is often useful to carry out a single step in a numerical solution before simulating all of the steps. The value of the time rate of change of y at y = y 1 and t = t 1 is determined using Eq. (G-1) and substituted into Eq. (G-12): "take the first step" [1]+4*t[1]*y[1]=-2*t[1] y[2]=y[1]+[1]*dt Once we have established that it is possible to take one step it is easy to take all of the steps. Comment out the code used to take a single step: {"take the first step" [1]+4*t[1]*y[1]=-2*t[1] y[2]=y[1]+[1]*dt} and setup a duplicate loop that goes from j = 1 to j = (M - 1). Copy the code to take one step and place it inside the duplicate loop. Change the element index 1 to j and the element index 2 to j +1. "take all of the steps" duplicate j=1,(m-1) [j]+4*t[j]*y[j]=-2*t[j] y[j+1]=y[j]+[j]*dt end Solving the EES code results in a solution for y at every value of t in the Arrays table. The numerical solution is overlaid onto the analytical solution in Figure G-2. Clearly the numerical solution is approximate. However, the approximation improves as the number of time steps used in the simulation increases (i.e., the duration of the time step is reduced). Figure G-2 shows that numerical simulation more closely approaches the analytical solution if the time step duration is reduced from t = s to t = 0.05 s. Dependent variable, y numerical solution Dt = s numerical solution Dt = 0.05 s analytical solution Independent variable, t Figure G-2: Euler solution with t = s and t = 0.05 s overlaid onto the analytical solution.

5 The analytical solution allows us to compute the error associated with the numerical solution based on the discrepancy between the numerical and analytical solutions at each value of time. The maximum error at any time step, sometimes referred to as the global error, is computed using the Max function. duplicate j=1,m y_an[j] = -1/2+exp(-2*t[j]^2)/2 err[j]=abs(y_an[j]-y[j]) end error=max(err[1..m]) "analytical solution" "error" "maximum or global error" Figure G-3 illustrates the global error associated with Euler's technique as a function of the time step duration Euler's technique Global error Heun's technique Time step Figure G-3: Global error as a function of the time step duration for the Euler technique. Figure G-3 shows that the global error is proportional to the duration of the time step to the first power and therefore Euler's technique is referred to as a first order technique. This characteristic of the solution can be inferred by examination of Eq. (G-12), which is essentially the first two terms of a Taylor series expansion of the function y about time t = 0: d y t d y t y2 y1 t yy1, t0 2! 3! yy1, t0 yy1, t0 Euler's approximation local err neglected terms (G-13) Examination of Eq. (G-13) shows that the local error associated with each time step corresponds to the neglected terms in the Taylor s series and is therefore approximately proportional to t 2 (neglecting the smaller, higher order terms). The local error accumulates during a simulation and becomes the global error. Assuming that the accumulation of local error results in an error that is proportional to the product of the number of time steps and the local error provides:

6 2 global error M t (G-14) The number of time steps is given by: M t sim t (G-15) Substituting Eq. (G-15) into Eq. (G-14) provides: global error t (G-16) which agrees with the error characteristic observed in Figure G-3. Most numerical techniques that are commonly used have higher order and therefore achieve higher accuracy. The other drawback of Euler s technique (and any explicit numerical technique) is that it may become unstable if the duration of the time step becomes too large. For our example, if the time step duration is increased above approximately 0.6 s then the numerical solution becomes unstable, as shown in Figure G Dependent variable, y analytical solution -2 Euler solution with t = s Independent variable, t Figure G-4: Analytical and numerical solution with t = s. G.2 Heun's Method Euler s method is the simplest example of a numerical integration technique; it is an explicit technique with first order accuracy. In this section, Heun s method is presented. Heun's method is an explicit technique with second order accuracy (but with the same stability characteristics as Euler's method). Heun s method is an example of a predictor-corrector technique. In order to simulate any time step j, Heun s method begins with an Euler step to obtain an initial prediction for the solution at

7 the conclusion of the time step ( yˆ j 1 ). This first step in the solution is referred to as the predictor step and the details are essentially identical to Euler s method: yˆ j1 yj t (G-17) yyj, ttj However, Heun s method uses the results of the predictor step to carry out a corrector step. The solution predicted at the end of the time step ( yˆ j 1 ) is used to predict the rate of change at the end of the time step ( ). The corrector step predicts the solution at the end of the time yyˆ j1, ttj1 step (y j+1 ) based on the average of the time rates of change at the beginning and end of the time step. y j1 t yj yy, ˆ 1, 2 j tt j yyj ttj1 (G-18) Heun s method is illustrated in the context of the simple problem discussed previously. The process of moving through the first time step begins with the predictor step: yˆ y t (G-19) 2 1 yy1, tt1 where Eq. (G-1) is used to evaluate y y1, tt1. "take the first step" [1]+4*t[1]*y[1]=-2*t[1] y_hat[2]=y[1]+[1]*dt "time rate of change at t[1]" "predictor step" The corrector step follows: y t y yy1, tt 1 yyˆ 2, tt (G-20) where Eq. (G-1) is also used to evaluate yyˆ 2, tt2. _hat[2]+4*t[2]*y_hat[2]=-2*t[2] y[2]=y[1]+([1]+_hat[2])*dt/2 "time rate of change at t[2] based on y_hat[2]" "corrector step" Once we have established that it is possible to take one step, it is easy to take all of the steps. Comment out the code used to take a single step:

8 {"take the first step" [1]+4*t[1]*y[1]=-2*t[1] y_hat[2]=y[1]+[1]*dt _hat[2]+4*t[2]*y_hat[2]=-2*t[2] y[2]=y[1]+([1]+_hat[2])*dt/2 "time rate of change at t[1]" "predictor step" "time rate of change at t[2] based on y_hat[2]" "corrector step"} and setup a duplicate loop that goes from j = 1 to j = (M - 1). Copy the code to take one step and place it inside the duplicate loop. Change the element index 1 to j and the element index 2 to j +1. "take all of the steps" duplicate j=1,(m-1) [j]+4*t[j]*y[j]=-2*t[j] y_hat[j+1]=y[j]+[j]*dt _hat[j+1]+4*t[j+1]*y_hat[j+1]=-2*t[j+1] y[j+1]=y[j]+([j]+_hat[j+1])*dt/2 end "time rate of change at t[j]" "predictor step" "time rate of change at t[j+1] based on y_hat[j+1]" "corrector step" Figure G-5 illustrates the analytical solution as well as the Euler's solution and Heun's solution with t = s. Notice the improvement in accuracy associated with the use of Heun's technique for the same time step. Figure G-3 illustrates the global error for Heun's technique as a function of the time step and shows more clearly the improvement in accuracy. Notice that the global error is proportional to the time step to the second power; Heun's technique is second order with respect to global error. Dependent variable, y Euler solution Dt = s Heun's solution Dt = s analytical solution Independent variable, t Figure G-5: Analytical and numerical solutions with Euler's and Heun's technique for t = s. Heun s method is a two-step predictor/corrector technique that improves the order of accuracy by one (i.e., the order of Heun s method is two whereas the order of Euler s method is one). It is possible to carry out additional predictor/corrector steps and further improve the accuracy of the numerical solution. One of the most popular higher order techniques is the fourth order Runge- Kutta method (which involves four predictor/corrector steps and is therefore fifth order accurate).

9 G.3 Fully Implicit Method The methods discussed thus far are explicit; they all therefore share the characteristic of becoming unstable when the time step exceeds a critical value. An implicit technique avoids this problem. The fully implicit method is similar to Euler s method in that the time rate of change is assumed to be constant throughout the time step. However, the time rate of change is computed at the end of the time step rather than the beginning. Therefore, for any time step j: y y t (G-21) j1 j yyj1, ttj1 The time rate of change at the end of the time step depends on the solution at the end of the time step (y j+1 ). Therefore, y j+1 cannot be calculated explicitly using information at the beginning of the time step (y j ) and instead an implicit equation is obtained for y j+1. Because EES solves implicit equations, it is easy to implement the fully implicit technique. "Fully implicit technique" duplicate j=1,(m-1) [j+1]+4*t[j+1]*y[j+1]=-2*t[j+1] y[j+1]=y[j]+[j+1]*dt end "time rate of change at t[j+1] and y[j+1]" "fully implicit solution" The fully implicit solution does not become unstable even when the duration of the time step is greater than the critical time step. Figure G-6 illustrates the analytical solution as well as the Euler and fully implicit solution with t = s. Notice that the fully implicit solution remains stable while the Euler's solution does not. Dependent variable, y analytical solution Euler solution with t = s -2 Fully implicit solution with t = s Independent variable, t Figure G-6: Euler's technique and fully implicit technique with t = s.

10 G.4 Crank-Nicolson Method The Crank-Nicolson method is second order and implicit. The time rate of change for the time step is estimated based on the average of its values at the beginning and end of the time step. Therefore, for any time step j: y j1 t yj yy, 1, 2 j tt j yyj ttj1 (G-22) Notice that the Crank-Nicolson is an implicit method because the solution for y j+1 involves a time rate of change that must be evaluated based on y j+1. Therefore, the technique will have the stability characteristics of the fully implicit method. The solution also involves two estimates for the time rate of change and will therefore be second order accurate with respect to the global error. Because EES solves implicit equations, it is relatively easy to implement a Crank- Nicolson solution using EES. "Crank-Nicolson technique" duplicate j=1,m [j]+4*t[j]*y[j]=-2*t[j] end duplicate j=1,(m-1) y[j+1]=y[j]+([j]+[j+1])*dt/2 end "time rate of change at t[j] and y[j]" "Crank-Nicolson solution" The Crank-Nicolson method is a popular choice because it combines high accuracy with stability. G.5 EES' Integral Command The implementation of the techniques discussed thus far has used a fixed duration time step for the entire simulation. This approach is often not efficient because there are regions of time during the simulation where the solution is not changing substantially and therefore large time steps could be taken with little loss of accuracy. Adaptive step-size solutions adjust the size of the time step used based on the local characteristics of the state equation. Typically, the absolute value of the local time rate of change or the second derivative of the time rate of change is used to establish a step-size that is as large as possible but guarantees a certain level of accuracy. For the current example, shown in Figure G-1, smaller time steps would be used near t = 0 s because the solution is changing quickly at this time. Later in the simulation, for t > 2 s, the solution is not changing substantially and therefore large time steps could be used. The implementation of adaptive step size solutions is beyond the scope of this appendix. However, an iterative, second order numerical integration routine that optionally uses an adaptive step-size is provided with EES and can be accessed using the Integral command. EES Integral command requires four arguments and allows an optional fifth argument: F = Integral(Integrand,VarName,LowerLimit,UpperLimit,StepSize)

11 where Integrand is the EES variable or expression that must be integrated, VarName is the integration variable, LowerLimit and UpperLimit define the limits of integration, and StepSize provides the duration of the time step. When using the Integral technique (or indeed any numerical integration technique) it is useful to first verify that, given the integration variable and time, the EES code is capable of computing the time rate of change of the variable. Therefore, the first step is to implement Eq. (G-1) for arbitrary (but reasonable) values of t and y: "Integral Solution" y=0 "arbitrary value of y" t=0 "arbitrary value of t" +4*t*y=-2*t "state equation" which leads to = 0. The next step is to comment out the arbitrary values of y and t that are used to test the computation of the state equation and instead let EES' Integral function control these variables for the numerical integration. The solution is given by: t sim y yini (G-23) 0 where y ini = 0 is the initial condition. Therefore, the solution to our example problem is obtained by calling the Integral function; Integrand is replaced with the variable, VarName with t, LowerLimit with 0, UpperLimit with the variable t_sim, and StepSize with DELTAt, the specified duration of the time step. "Integral Solution" {y=0 "arbitrary value of y" t=0 "arbitrary value of t"} +4*t*y=-2*t "state equation" t_sim=2.5 Dt=0.1 y=integral(,t,0,t_sim,dt) "simulation time" "time step duration" "solution obtained using the integral command" Note that array variables and duplicate loops are not needed to solve an ordinary differential equation when the EES Integral function is used. The elimination of array variables allows much larger problems to be solved and improves the computational speed. In order to accomplish the numerical integration, EES will adjust the value of variable t from 0 to t_sim in increments of Dt. At each value of time, EES will iteratively solve all of the equations in the Equations window that depend on t. For the example above, this process will result in the variable y being evaluated at each value t. When the solution converges, the value of the variable t is incremented and the process is repeated until time is equal to t_sim. The results shown in the Solution window will provide the temperature at the end of the process (i.e., the result of the integration which is y at t = t sim ).

12 Often it is most interesting to know the variation of the solution with time during the process. This information can be provided by including the $IntegralTable directive in the file. The format of the $IntegralTable directive is: $IntegralTable VarName: Step, x,y,z where VarName is the integration variable; the first column in the Integral table will display values of this variable. The colon followed by the parameter Step (which can either be a number or a variable name) and list of variables (x, y, z) are optional. If these values are provided, then the value of Step will be used as the output step size and the integration variables will be reported in the Integral table at the specified output step size. The output step size may be a variable name, rather than a number, provided that the variable has been set to a constant value preceding the $IntegralTable directive. The step size that is used to report integration results is totally independent of the duration of the time step that is used in the numerical integration. If the numerical integration step size and output step size are not the same, then linear interpolation is used to determine the integrated quantities at the specified output steps. If an output step size is not specified, then EES will output all specified variables at every time step. The variables x, y, z... must correspond to variables in the EES program. Algebraic equations involving variables are not accepted within the $Integral directive. A separate column will be created in the Integral table for each specified variable. The variables must be separated by a space or list delimiter (comma or semicolon). Solving the EES code will result in the generation of an Integral table that is filled with intermediate values resulting from the numerical integration. The values in the Integral table can be plotted, printed, saved, and copied in exactly the same manner as for other tables. The Integral table is saved when the EES file is saved and the table is restored when the EES file is loaded. If an Integral table exists when calculations are initiated, it will be deleted if a new Integral table is created. Use the EES code below to generate an Integral Table containing the results of the numerical simulation and the analytical solution. $IntegralTable t, y After running the code with a time step duration of 0.1 s, the Integral table shown in Error! Reference source not found. G-7 will be generated.

13 Figure G-7: Integral Table generated by EES. The results of the integration can be plotted by selecting the Integral table as the source of the data to plot. The StepSize input to the Integral command is optional. If the parameter StepSize is not included or if it is set to a value of 0, then EES will use an adaptive step-size algorithm that maintains accuracy while maximizing computational speed. The parameters used to control the adaptive step-size algorithm can be accessed and adjusted by selecting Preferences from the Options menu and selecting the Integration tab, Figure G-8. The settings can also be provided with a $IntegralAutoStep directive. Figure G-8: Integration preferences dialog. The user can specify how often the step interval will be examined and adjusted as well as the absolute minimum and maximum number of integration steps that will be allowed. The relative error criteria used to either reduce or increase the step size can also be specified. It is advisable to use the $UnitSystem directive to set the unit system so that your code produces consistent results across various computers and is as transparent as possible. For the same reason, it is advisable to use the $IntegralAutoStep directive to set the parameters that govern the numerical integration. For example, the code: $IntegralAutoStep Vary=1 Min=5 Max=2000 Reduce=1e-1 Increase=1e-3

14 specifies these parameters. The integration step size is varied after each step (Vary=1) and the number of steps must be greater than 5 (Min=5) and less than 2000 (Max=2000). The integration step will be reduced if the relative error is larger than 1x10-1 (Reduce=1e-1) and increased if the relative error is less than 1x10-3 (Increase=1e-3). Remove the specified time step from the Integral command and include the $IntegralAutoStep directive: $IntegralAutoStep Vary=1 Min=5 Max=2000 Reduce=1e-1 Increase=1e-3 "Integral Solution" {y=0 "arbitrary value of y" t=0 "arbitrary value of t"} +4*t*y=-2*t "state equation" t_sim=2.5 y=integral(,t,0,t_sim) $IntegralTable t, y "simulation time" "solution obtained using the integral command" "save results in an Integral table" in order to generate the numerical solution shown in Figure G-9. Notice the non-uniform time step duration selected to maintain accuracy while maximizing the computational speed. 0 Dependent variable, y Independent variable, t Figure G-9: Numerical solution obtained with EES' Integral command.

5 Error Control. 5.1 The Milne Device and Predictor-Corrector Methods

5 Error Control. 5.1 The Milne Device and Predictor-Corrector Methods 5 Error Control 5. The Milne Device and Predictor-Corrector Methods We already discussed the basic idea of the predictor-corrector approach in Section 2. In particular, there we gave the following algorithm

More information

Numerical Methods in Option Pricing (Part III)

Numerical Methods in Option Pricing (Part III) Numerical Methods in Option Pricing (Part III) E. Explicit Finite Differences. Use of the Forward, Central, and Symmetric Central a. In order to obtain an explicit solution for the price of the derivative,

More information

Conover Test of Variances (Simulation)

Conover Test of Variances (Simulation) Chapter 561 Conover Test of Variances (Simulation) Introduction This procedure analyzes the power and significance level of the Conover homogeneity test. This test is used to test whether two or more population

More information

Chapter DIFFERENTIAL EQUATIONS: PHASE SPACE, NUMERICAL SOLUTIONS

Chapter DIFFERENTIAL EQUATIONS: PHASE SPACE, NUMERICAL SOLUTIONS Chapter 10 10. DIFFERENTIAL EQUATIONS: PHASE SPACE, NUMERICAL SOLUTIONS Abstract Solving differential equations analytically is not always the easiest strategy or even possible. In these cases one may

More information

Project 1: Double Pendulum

Project 1: Double Pendulum Final Projects Introduction to Numerical Analysis II http://www.math.ucsb.edu/ atzberg/winter2009numericalanalysis/index.html Professor: Paul J. Atzberger Due: Friday, March 20th Turn in to TA s Mailbox:

More information

DECISION SUPPORT Risk handout. Simulating Spreadsheet models

DECISION SUPPORT Risk handout. Simulating Spreadsheet models DECISION SUPPORT MODELS @ Risk handout Simulating Spreadsheet models using @RISK 1. Step 1 1.1. Open Excel and @RISK enabling any macros if prompted 1.2. There are four on-line help options available.

More information

Group-Sequential Tests for Two Proportions

Group-Sequential Tests for Two Proportions Chapter 220 Group-Sequential Tests for Two Proportions Introduction Clinical trials are longitudinal. They accumulate data sequentially through time. The participants cannot be enrolled and randomized

More information

Numerical schemes for SDEs

Numerical schemes for SDEs Lecture 5 Numerical schemes for SDEs Lecture Notes by Jan Palczewski Computational Finance p. 1 A Stochastic Differential Equation (SDE) is an object of the following type dx t = a(t,x t )dt + b(t,x t

More information

Confidence Intervals for the Difference Between Two Means with Tolerance Probability

Confidence Intervals for the Difference Between Two Means with Tolerance Probability Chapter 47 Confidence Intervals for the Difference Between Two Means with Tolerance Probability Introduction This procedure calculates the sample size necessary to achieve a specified distance from 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

Sterman, J.D Business dynamics systems thinking and modeling for a complex world. Boston: Irwin McGraw Hill

Sterman, J.D Business dynamics systems thinking and modeling for a complex world. Boston: Irwin McGraw Hill Sterman,J.D.2000.Businessdynamics systemsthinkingandmodelingfora complexworld.boston:irwinmcgrawhill Chapter7:Dynamicsofstocksandflows(p.231241) 7 Dynamics of Stocks and Flows Nature laughs at the of integration.

More information

Expected Return Methodologies in Morningstar Direct Asset Allocation

Expected Return Methodologies in Morningstar Direct Asset Allocation Expected Return Methodologies in Morningstar Direct Asset Allocation I. Introduction to expected return II. The short version III. Detailed methodologies 1. Building Blocks methodology i. Methodology ii.

More information

Formulating Models of Simple Systems using VENSIM PLE

Formulating Models of Simple Systems using VENSIM PLE Formulating Models of Simple Systems using VENSIM PLE Professor Nelson Repenning System Dynamics Group MIT Sloan School of Management Cambridge, MA O2142 Edited by Laura Black, Lucia Breierova, and Leslie

More information

Reasoning with Uncertainty

Reasoning with Uncertainty Reasoning with Uncertainty Markov Decision Models Manfred Huber 2015 1 Markov Decision Process Models Markov models represent the behavior of a random process, including its internal state and the externally

More information

ELEMENTS OF MONTE CARLO SIMULATION

ELEMENTS OF MONTE CARLO SIMULATION APPENDIX B ELEMENTS OF MONTE CARLO SIMULATION B. GENERAL CONCEPT The basic idea of Monte Carlo simulation is to create a series of experimental samples using a random number sequence. According to the

More information

(Refer Slide Time: 01:17)

(Refer Slide Time: 01:17) Computational Electromagnetics and Applications Professor Krish Sankaran Indian Institute of Technology Bombay Lecture 06/Exercise 03 Finite Difference Methods 1 The Example which we are going to look

More information

1 The Solow Growth Model

1 The Solow Growth Model 1 The Solow Growth Model The Solow growth model is constructed around 3 building blocks: 1. The aggregate production function: = ( ()) which it is assumed to satisfy a series of technical conditions: (a)

More information

MAFS Computational Methods for Pricing Structured Products

MAFS Computational Methods for Pricing Structured Products MAFS550 - Computational Methods for Pricing Structured Products Solution to Homework Two Course instructor: Prof YK Kwok 1 Expand f(x 0 ) and f(x 0 x) at x 0 into Taylor series, where f(x 0 ) = f(x 0 )

More information

Systems of Ordinary Differential Equations. Lectures INF2320 p. 1/48

Systems of Ordinary Differential Equations. Lectures INF2320 p. 1/48 Systems of Ordinary Differential Equations Lectures INF2320 p. 1/48 Lectures INF2320 p. 2/48 ystems of ordinary differential equations Last two lectures we have studied models of the form y (t) = F(y),

More information

A distributed Laplace transform algorithm for European options

A distributed Laplace transform algorithm for European options A distributed Laplace transform algorithm for European options 1 1 A. J. Davies, M. E. Honnor, C.-H. Lai, A. K. Parrott & S. Rout 1 Department of Physics, Astronomy and Mathematics, University of Hertfordshire,

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 2017 Files: https://ljll.math.upmc.fr/bokanowski/enseignement/2016/m2mo/m2mo.html We look for a numerical approximation

More information

1 Answers to the Sept 08 macro prelim - Long Questions

1 Answers to the Sept 08 macro prelim - Long Questions Answers to the Sept 08 macro prelim - Long Questions. Suppose that a representative consumer receives an endowment of a non-storable consumption good. The endowment evolves exogenously according to ln

More information

Gamma Distribution Fitting

Gamma Distribution Fitting Chapter 552 Gamma Distribution Fitting Introduction This module fits the gamma probability distributions to a complete or censored set of individual or grouped data values. It outputs various statistics

More information

yuimagui: A graphical user interface for the yuima package. User Guide yuimagui v1.0

yuimagui: A graphical user interface for the yuima package. User Guide yuimagui v1.0 yuimagui: A graphical user interface for the yuima package. User Guide yuimagui v1.0 Emanuele Guidotti, Stefano M. Iacus and Lorenzo Mercuri February 21, 2017 Contents 1 yuimagui: Home 3 2 yuimagui: Data

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

Chapter 4: Commonly Used Distributions. Statistics for Engineers and Scientists Fourth Edition William Navidi

Chapter 4: Commonly Used Distributions. Statistics for Engineers and Scientists Fourth Edition William Navidi Chapter 4: Commonly Used Distributions Statistics for Engineers and Scientists Fourth Edition William Navidi 2014 by Education. This is proprietary material solely for authorized instructor use. Not authorized

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

Exam in TFY4275/FY8907 CLASSICAL TRANSPORT THEORY Feb 14, 2014

Exam in TFY4275/FY8907 CLASSICAL TRANSPORT THEORY Feb 14, 2014 NTNU Page 1 of 5 Institutt for fysikk Contact during the exam: Professor Ingve Simonsen Exam in TFY4275/FY8907 CLASSICAL TRANSPORT THEORY Feb 14, 2014 Allowed help: Alternativ D All written material This

More information

Martingale Pricing Theory in Discrete-Time and Discrete-Space Models

Martingale Pricing Theory in Discrete-Time and Discrete-Space Models IEOR E4707: Foundations of Financial Engineering c 206 by Martin Haugh Martingale Pricing Theory in Discrete-Time and Discrete-Space Models These notes develop the theory of martingale pricing in a discrete-time,

More information

Tests for Two Variances

Tests for Two Variances Chapter 655 Tests for Two Variances Introduction Occasionally, researchers are interested in comparing the variances (or standard deviations) of two groups rather than their means. This module calculates

More information

Interest-Sensitive Financial Instruments

Interest-Sensitive Financial Instruments Interest-Sensitive Financial Instruments Valuing fixed cash flows Two basic rules: - Value additivity: Find the portfolio of zero-coupon bonds which replicates the cash flows of the security, the price

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

NUMERICAL AND SIMULATION TECHNIQUES IN FINANCE

NUMERICAL AND SIMULATION TECHNIQUES IN FINANCE NUMERICAL AND SIMULATION TECHNIQUES IN FINANCE Edward D. Weinberger, Ph.D., F.R.M Adjunct Assoc. Professor Dept. of Finance and Risk Engineering edw2026@nyu.edu Office Hours by appointment This half-semester

More information

1.1 Some Apparently Simple Questions 0:2. q =p :

1.1 Some Apparently Simple Questions 0:2. q =p : Chapter 1 Introduction 1.1 Some Apparently Simple Questions Consider the constant elasticity demand function 0:2 q =p : This is a function because for each price p there is an unique quantity demanded

More information

A Note on Ramsey, Harrod-Domar, Solow, and a Closed Form

A Note on Ramsey, Harrod-Domar, Solow, and a Closed Form A Note on Ramsey, Harrod-Domar, Solow, and a Closed Form Saddle Path Halvor Mehlum Abstract Following up a 50 year old suggestion due to Solow, I show that by including a Ramsey consumer in the Harrod-Domar

More information

Intro to Economic analysis

Intro to Economic analysis Intro to Economic analysis Alberto Bisin - NYU 1 The Consumer Problem Consider an agent choosing her consumption of goods 1 and 2 for a given budget. This is the workhorse of microeconomic theory. (Notice

More information

Jacob: The illustrative worksheet shows the values of the simulation parameters in the upper left section (Cells D5:F10). Is this for documentation?

Jacob: The illustrative worksheet shows the values of the simulation parameters in the upper left section (Cells D5:F10). Is this for documentation? PROJECT TEMPLATE: DISCRETE CHANGE IN THE INFLATION RATE (The attached PDF file has better formatting.) {This posting explains how to simulate a discrete change in a parameter and how to use dummy variables

More information

Chapter 2 Uncertainty Analysis and Sampling Techniques

Chapter 2 Uncertainty Analysis and Sampling Techniques Chapter 2 Uncertainty Analysis and Sampling Techniques The probabilistic or stochastic modeling (Fig. 2.) iterative loop in the stochastic optimization procedure (Fig..4 in Chap. ) involves:. Specifying

More information

1. MAPLE. Objective: After reading this chapter, you will solve mathematical problems using Maple

1. MAPLE. Objective: After reading this chapter, you will solve mathematical problems using Maple 1. MAPLE Objective: After reading this chapter, you will solve mathematical problems using Maple 1.1 Maple Maple is an extremely powerful program, which can be used to work out many different types of

More information

IEOR E4703: Monte-Carlo Simulation

IEOR E4703: Monte-Carlo Simulation IEOR E4703: Monte-Carlo Simulation Other Miscellaneous Topics and Applications of Monte-Carlo Martin Haugh Department of Industrial Engineering and Operations Research Columbia University Email: martin.b.haugh@gmail.com

More information

On the use of time step prediction

On the use of time step prediction On the use of time step prediction CODE_BRIGHT TEAM Sebastià Olivella Contents 1 Introduction... 3 Convergence failure or large variations of unknowns... 3 Other aspects... 3 Model to use as test case...

More information

Tests for the Difference Between Two Linear Regression Intercepts

Tests for the Difference Between Two Linear Regression Intercepts Chapter 853 Tests for the Difference Between Two Linear Regression Intercepts Introduction Linear regression is a commonly used procedure in statistical analysis. One of the main objectives in linear regression

More information

Chapter 5 Finite Difference Methods. Math6911 W07, HM Zhu

Chapter 5 Finite Difference Methods. Math6911 W07, HM Zhu Chapter 5 Finite Difference Methods Math69 W07, HM Zhu References. Chapters 5 and 9, Brandimarte. Section 7.8, Hull 3. Chapter 7, Numerical analysis, Burden and Faires Outline Finite difference (FD) approximation

More information

Gamma. The finite-difference formula for gamma is

Gamma. The finite-difference formula for gamma is Gamma The finite-difference formula for gamma is [ P (S + ɛ) 2 P (S) + P (S ɛ) e rτ E ɛ 2 ]. For a correlation option with multiple underlying assets, the finite-difference formula for the cross gammas

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

Math 250A (Fall 2008) - Lab II (SOLUTIONS)

Math 250A (Fall 2008) - Lab II (SOLUTIONS) Math 25A (Fall 28) - Lab II (SOLUTIONS) Part I Consider the differential equation d d = 2 + () Solve this equation analticall to obtain an epression for (). Your answer should contain an arbitrar constant.

More information

Lecture Note 8 of Bus 41202, Spring 2017: Stochastic Diffusion Equation & Option Pricing

Lecture Note 8 of Bus 41202, Spring 2017: Stochastic Diffusion Equation & Option Pricing Lecture Note 8 of Bus 41202, Spring 2017: Stochastic Diffusion Equation & Option Pricing We shall go over this note quickly due to time constraints. Key concept: Ito s lemma Stock Options: A contract giving

More information

APPM 2360 Project 1. Due: Friday October 6 BEFORE 5 P.M.

APPM 2360 Project 1. Due: Friday October 6 BEFORE 5 P.M. APPM 2360 Project 1 Due: Friday October 6 BEFORE 5 P.M. 1 Introduction A pair of close friends are currently on the market to buy a house in Boulder. Both have obtained engineering degrees from CU and

More information

Market interest-rate models

Market interest-rate models Market interest-rate models Marco Marchioro www.marchioro.org November 24 th, 2012 Market interest-rate models 1 Lecture Summary No-arbitrage models Detailed example: Hull-White Monte Carlo simulations

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

Discrete models in microeconomics and difference equations

Discrete models in microeconomics and difference equations Discrete models in microeconomics and difference equations Jan Coufal, Soukromá vysoká škola ekonomických studií Praha The behavior of consumers and entrepreneurs has been analyzed on the assumption that

More information

Today. Solving linear DEs: y =ay+b. Note: office hour today is either in my office 12-1 pm or in MATX 1102 from 12:30-1:30 pm due to construction.

Today. Solving linear DEs: y =ay+b. Note: office hour today is either in my office 12-1 pm or in MATX 1102 from 12:30-1:30 pm due to construction. Today Solving linear DEs: y =ay+b. Note: office hour today is either in my office 12-1 pm or in MATX 1102 from 12:30-1:30 pm due to construction. Solution method analogy Document camera Solution method

More information

Econ 101A Final exam May 14, 2013.

Econ 101A Final exam May 14, 2013. Econ 101A Final exam May 14, 2013. Do not turn the page until instructed to. Do not forget to write Problems 1 in the first Blue Book and Problems 2, 3 and 4 in the second Blue Book. 1 Econ 101A Final

More information

Tests for Two ROC Curves

Tests for Two ROC Curves Chapter 65 Tests for Two ROC Curves Introduction Receiver operating characteristic (ROC) curves are used to summarize the accuracy of diagnostic tests. The technique is used when a criterion variable is

More information

Module 4: Monte Carlo path simulation

Module 4: Monte Carlo path simulation Module 4: Monte Carlo path simulation Prof. Mike Giles mike.giles@maths.ox.ac.uk Oxford University Mathematical Institute Module 4: Monte Carlo p. 1 SDE Path Simulation In Module 2, looked at the case

More information

Small Sample Bias Using Maximum Likelihood versus. Moments: The Case of a Simple Search Model of the Labor. Market

Small Sample Bias Using Maximum Likelihood versus. Moments: The Case of a Simple Search Model of the Labor. Market Small Sample Bias Using Maximum Likelihood versus Moments: The Case of a Simple Search Model of the Labor Market Alice Schoonbroodt University of Minnesota, MN March 12, 2004 Abstract I investigate the

More information

Superiority by a Margin Tests for the Ratio of Two Proportions

Superiority by a Margin Tests for the Ratio of Two Proportions Chapter 06 Superiority by a Margin Tests for the Ratio of Two Proportions Introduction This module computes power and sample size for hypothesis tests for superiority of the ratio of two independent proportions.

More information

Online Appendix for Variable Rare Disasters: An Exactly Solved Framework for Ten Puzzles in Macro-Finance. Theory Complements

Online Appendix for Variable Rare Disasters: An Exactly Solved Framework for Ten Puzzles in Macro-Finance. Theory Complements Online Appendix for Variable Rare Disasters: An Exactly Solved Framework for Ten Puzzles in Macro-Finance Xavier Gabaix November 4 011 This online appendix contains some complements to the paper: extension

More information

Laboratory I.9 Applications of the Derivative

Laboratory I.9 Applications of the Derivative Laboratory I.9 Applications of the Derivative Goals The student will determine intervals where a function is increasing or decreasing using the first derivative. The student will find local minima and

More information

Partial Fractions. A rational function is a fraction in which both the numerator and denominator are polynomials. For example, f ( x) = 4, g( x) =

Partial Fractions. A rational function is a fraction in which both the numerator and denominator are polynomials. For example, f ( x) = 4, g( x) = Partial Fractions A rational function is a fraction in which both the numerator and denominator are polynomials. For example, f ( x) = 4, g( x) = 3 x 2 x + 5, and h( x) = x + 26 x 2 are rational functions.

More information

The Expenditure-Output

The Expenditure-Output The Expenditure-Output Model By: OpenStaxCollege (This appendix should be consulted after first reading The Aggregate Demand/ Aggregate Supply Model and The Keynesian Perspective.) The fundamental ideas

More information

Monte Carlo Methods. Prof. Mike Giles. Oxford University Mathematical Institute. Lecture 1 p. 1.

Monte Carlo Methods. Prof. Mike Giles. Oxford University Mathematical Institute. Lecture 1 p. 1. Monte Carlo Methods Prof. Mike Giles mike.giles@maths.ox.ac.uk Oxford University Mathematical Institute Lecture 1 p. 1 Geometric Brownian Motion In the case of Geometric Brownian Motion ds t = rs t dt+σs

More information

2. ANALYTICAL TOOLS. E(X) = P i X i = X (2.1) i=1

2. ANALYTICAL TOOLS. E(X) = P i X i = X (2.1) i=1 2. ANALYTICAL TOOLS Goals: After reading this chapter, you will 1. Know the basic concepts of statistics: expected value, standard deviation, variance, covariance, and coefficient of correlation. 2. Use

More information

1. 2 marks each True/False: briefly explain (no formal proofs/derivations are required for full mark).

1. 2 marks each True/False: briefly explain (no formal proofs/derivations are required for full mark). The University of Toronto ACT460/STA2502 Stochastic Methods for Actuarial Science Fall 2016 Midterm Test You must show your steps or no marks will be awarded 1 Name Student # 1. 2 marks each True/False:

More information

Problem Set #2. Intermediate Macroeconomics 101 Due 20/8/12

Problem Set #2. Intermediate Macroeconomics 101 Due 20/8/12 Problem Set #2 Intermediate Macroeconomics 101 Due 20/8/12 Question 1. (Ch3. Q9) The paradox of saving revisited You should be able to complete this question without doing any algebra, although you may

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

Finite Element Method

Finite Element Method In Finite Difference Methods: the solution domain is divided into a grid of discrete points or nodes the PDE is then written for each node and its derivatives replaced by finite-divided differences In

More information

Calculating VaR. There are several approaches for calculating the Value at Risk figure. The most popular are the

Calculating VaR. There are several approaches for calculating the Value at Risk figure. The most popular are the VaR Pro and Contra Pro: Easy to calculate and to understand. It is a common language of communication within the organizations as well as outside (e.g. regulators, auditors, shareholders). It is not really

More information

The method of Maximum Likelihood.

The method of Maximum Likelihood. Maximum Likelihood The method of Maximum Likelihood. In developing the least squares estimator - no mention of probabilities. Minimize the distance between the predicted linear regression and the observed

More information

MFE Course Details. Financial Mathematics & Statistics

MFE Course Details. Financial Mathematics & Statistics MFE Course Details Financial Mathematics & Statistics Calculus & Linear Algebra This course covers mathematical tools and concepts for solving problems in financial engineering. It will also help to satisfy

More information

Knock-in American options

Knock-in American options Knock-in American options Min Dai Yue Kuen Kwok A knock-in American option under a trigger clause is an option contractinwhichtheoptionholderreceivesanamericanoptionconditional on the underlying stock

More information

Point-Biserial and Biserial Correlations

Point-Biserial and Biserial Correlations Chapter 302 Point-Biserial and Biserial Correlations Introduction This procedure calculates estimates, confidence intervals, and hypothesis tests for both the point-biserial and the biserial correlations.

More information

Equivalence Tests for One Proportion

Equivalence Tests for One Proportion Chapter 110 Equivalence Tests for One Proportion Introduction This module provides power analysis and sample size calculation for equivalence tests in one-sample designs in which the outcome is binary.

More information

The Cagan Model. Lecture 15 by John Kennes March 25

The Cagan Model. Lecture 15 by John Kennes March 25 The Cagan Model Lecture 15 by John Kennes March 25 The Cagan Model Let M denote a country s money supply and P its price level. Higher expected inflation lowers the demand for real balances M/P by raising

More information

Tests for One Variance

Tests for One Variance Chapter 65 Introduction Occasionally, researchers are interested in the estimation of the variance (or standard deviation) rather than the mean. This module calculates the sample size and performs power

More information

Extensions to the Black Scholes Model

Extensions to the Black Scholes Model Lecture 16 Extensions to the Black Scholes Model 16.1 Dividends Dividend is a sum of money paid regularly (typically annually) by a company to its shareholders out of its profits (or reserves). In this

More information

Eco504 Spring 2010 C. Sims FINAL EXAM. β t 1 2 φτ2 t subject to (1)

Eco504 Spring 2010 C. Sims FINAL EXAM. β t 1 2 φτ2 t subject to (1) Eco54 Spring 21 C. Sims FINAL EXAM There are three questions that will be equally weighted in grading. Since you may find some questions take longer to answer than others, and partial credit will be given

More information

Theory and practice of option pricing

Theory and practice of option pricing Theory and practice of option pricing Juliusz Jabłecki Department of Quantitative Finance Faculty of Economic Sciences University of Warsaw jjablecki@wne.uw.edu.pl and Head of Monetary Policy Analysis

More information

Short-time-to-expiry expansion for a digital European put option under the CEV model. November 1, 2017

Short-time-to-expiry expansion for a digital European put option under the CEV model. November 1, 2017 Short-time-to-expiry expansion for a digital European put option under the CEV model November 1, 2017 Abstract In this paper I present a short-time-to-expiry asymptotic series expansion for a digital European

More information

WinTen² Budget Management

WinTen² Budget Management Budget Management Preliminary User Manual User Manual Edition: 4/13/2005 Your inside track for making your job easier! Tenmast Software 132 Venture Court, Suite 1 Lexington, KY 40511 www.tenmast.com Support:

More information

Mutual Fund & Stock Basis Keeper

Mutual Fund & Stock Basis Keeper A Guide To Mutual Fund & Stock Basis Keeper By Denver Tax Software, Inc. Copyright 1995-2006 Denver Tax Software, Inc. Denver Tax Software, Inc. P.O. Box 5308 Denver, CO 80217-5308 Telephone (voice): Toll-Free:

More information

Macroeconomics and finance

Macroeconomics and finance Macroeconomics and finance 1 1. Temporary equilibrium and the price level [Lectures 11 and 12] 2. Overlapping generations and learning [Lectures 13 and 14] 2.1 The overlapping generations model 2.2 Expectations

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 Spring 2010 Computer Exercise 2 Simulation This lab deals with

More information

Mendelian Randomization with a Binary Outcome

Mendelian Randomization with a Binary Outcome Chapter 851 Mendelian Randomization with a Binary Outcome Introduction This module computes the sample size and power of the causal effect in Mendelian randomization studies with a binary outcome. This

More information

Practical example of an Economic Scenario Generator

Practical example of an Economic Scenario Generator Practical example of an Economic Scenario Generator Martin Schenk Actuarial & Insurance Solutions SAV 7 March 2014 Agenda Introduction Deterministic vs. stochastic approach Mathematical model Application

More information

Binomial model: numerical algorithm

Binomial model: numerical algorithm Binomial model: numerical algorithm S / 0 C \ 0 S0 u / C \ 1,1 S0 d / S u 0 /, S u 3 0 / 3,3 C \ S0 u d /,1 S u 5 0 4 0 / C 5 5,5 max X S0 u,0 S u C \ 4 4,4 C \ 3 S u d / 0 3, C \ S u d 0 S u d 0 / C 4

More information

Advanced Operations Research Prof. G. Srinivasan Dept of Management Studies Indian Institute of Technology, Madras

Advanced Operations Research Prof. G. Srinivasan Dept of Management Studies Indian Institute of Technology, Madras Advanced Operations Research Prof. G. Srinivasan Dept of Management Studies Indian Institute of Technology, Madras Lecture 23 Minimum Cost Flow Problem In this lecture, we will discuss the minimum cost

More information

9. Real business cycles in a two period economy

9. Real business cycles in a two period economy 9. Real business cycles in a two period economy Index: 9. Real business cycles in a two period economy... 9. Introduction... 9. The Representative Agent Two Period Production Economy... 9.. The representative

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

EE266 Homework 5 Solutions

EE266 Homework 5 Solutions EE, Spring 15-1 Professor S. Lall EE Homework 5 Solutions 1. A refined inventory model. In this problem we consider an inventory model that is more refined than the one you ve seen in the lectures. The

More information

Formalization of Laplace Transform using the Multivariable Calculus Theory of HOL-Light

Formalization of Laplace Transform using the Multivariable Calculus Theory of HOL-Light Formalization of Laplace Transform using the Multivariable Calculus Theory of HOL-Light Hira Taqdees and Osman Hasan System Analysis & Verification (SAVe) Lab, National University of Sciences and Technology

More information

An Adjusted Trinomial Lattice for Pricing Arithmetic Average Based Asian Option

An Adjusted Trinomial Lattice for Pricing Arithmetic Average Based Asian Option American Journal of Applied Mathematics 2018; 6(2): 28-33 http://www.sciencepublishinggroup.com/j/ajam doi: 10.11648/j.ajam.20180602.11 ISSN: 2330-0043 (Print); ISSN: 2330-006X (Online) An Adjusted Trinomial

More information

Before How can lines on a graph show the effect of interest rates on savings accounts?

Before How can lines on a graph show the effect of interest rates on savings accounts? Compound Interest LAUNCH (7 MIN) Before How can lines on a graph show the effect of interest rates on savings accounts? During How can you tell what the graph of simple interest looks like? After What

More information

Maximum Likelihood Estimates for Alpha and Beta With Zero SAIDI Days

Maximum Likelihood Estimates for Alpha and Beta With Zero SAIDI Days Maximum Likelihood Estimates for Alpha and Beta With Zero SAIDI Days 1. Introduction Richard D. Christie Department of Electrical Engineering Box 35500 University of Washington Seattle, WA 98195-500 christie@ee.washington.edu

More information

Decision Trees Using TreePlan

Decision Trees Using TreePlan Decision Trees Using TreePlan 6 6. TREEPLAN OVERVIEW TreePlan is a decision tree add-in for Microsoft Excel 7 & & & 6 (Windows) and Microsoft Excel & 6 (Macintosh). TreePlan helps you build a decision

More information

Utility Indifference Pricing and Dynamic Programming Algorithm

Utility Indifference Pricing and Dynamic Programming Algorithm Chapter 8 Utility Indifference ricing and Dynamic rogramming Algorithm In the Black-Scholes framework, we can perfectly replicate an option s payoff. However, it may not be true beyond the Black-Scholes

More information

Behavioral Finance and Asset Pricing

Behavioral Finance and Asset Pricing Behavioral Finance and Asset Pricing Behavioral Finance and Asset Pricing /49 Introduction We present models of asset pricing where investors preferences are subject to psychological biases or where investors

More information

Equivalence Tests for Two Correlated Proportions

Equivalence Tests for Two Correlated Proportions Chapter 165 Equivalence Tests for Two Correlated Proportions Introduction The two procedures described in this chapter compute power and sample size for testing equivalence using differences or ratios

More information

Functions, Amortization Tables, and What-If Analysis

Functions, Amortization Tables, and What-If Analysis Functions, Amortization Tables, and What-If Analysis Absolute and Relative References Q1: How do $A1 and A$1 differ from $A$1? Use the following table to answer the questions listed below: A B C D E 1

More information

Pricing American Options Using a Space-time Adaptive Finite Difference Method

Pricing American Options Using a Space-time Adaptive Finite Difference Method Pricing American Options Using a Space-time Adaptive Finite Difference Method Jonas Persson Abstract American options are priced numerically using a space- and timeadaptive finite difference method. The

More information