Computational modeling techniques

Similar documents
Computational modeling techniques

Computational modeling techniques

Computational modeling techniques

Section 5.8 Notes Page Exponential Growth and Decay Models; Newton s Law

Fall 2013 Physics 172 Recitation 3 Momentum and Springs

[COLLEGE ALGEBRA EXAM I REVIEW TOPICS] ( u s e t h i s t o m a k e s u r e y o u a r e r e a d y )

Physics 2010 Motion with Constant Acceleration Experiment 1

**DO NOT ONLY RELY ON THIS STUDY GUIDE!!!**

Lim f (x) e. Find the largest possible domain and its discontinuity points. Why is it discontinuous at those points (if any)?

Admin. MDP Search Trees. Optimal Quantities. Reinforcement Learning

We can see from the graph above that the intersection is, i.e., [ ).

Kinetic Model Completeness

Flipping Physics Lecture Notes: Simple Harmonic Motion Introduction via a Horizontal Mass-Spring System

End of Course Algebra I ~ Practice Test #2

AP Statistics Notes Unit Two: The Normal Distributions

Differentiation Applications 1: Related Rates

Ecology 302 Lecture III. Exponential Growth (Gotelli, Chapter 1; Ricklefs, Chapter 11, pp )

Thermodynamics Partial Outline of Topics

Lyapunov Stability Stability of Equilibrium Points

Department of Economics, University of California, Davis Ecn 200C Micro Theory Professor Giacomo Bonanno. Insurance Markets

Flipping Physics Lecture Notes: Simple Harmonic Motion Introduction via a Horizontal Mass-Spring System

CHAPTER 24: INFERENCE IN REGRESSION. Chapter 24: Make inferences about the population from which the sample data came.

Lecture 5: Equilibrium and Oscillations

Thermodynamics and Equilibrium

ENSC Discrete Time Systems. Project Outline. Semester

Verification of Quality Parameters of a Solar Panel and Modification in Formulae of its Series Resistance

Exponential Functions, Growth and Decay

x x

MODULE 1. e x + c. [You can t separate a demominator, but you can divide a single denominator into each numerator term] a + b a(a + b)+1 = a + b

5 th grade Common Core Standards

Compressibility Effects

The standards are taught in the following sequence.

3. Classify the following Numbers (Counting (natural), Whole, Integers, Rational, Irrational)

Chapter Summary. Mathematical Induction Strong Induction Recursive Definitions Structural Induction Recursive Algorithms

LHS Mathematics Department Honors Pre-Calculus Final Exam 2002 Answers

CS 477/677 Analysis of Algorithms Fall 2007 Dr. George Bebis Course Project Due Date: 11/29/2007

Lecture 7: Damped and Driven Oscillations

Plan o o. I(t) Divide problem into sub-problems Modify schematic and coordinate system (if needed) Write general equations

A PLETHORA OF MULTI-PULSED SOLUTIONS FOR A BOUSSINESQ SYSTEM. Department of Mathematics, Penn State University University Park, PA16802, USA.

Modelling of Clock Behaviour. Don Percival. Applied Physics Laboratory University of Washington Seattle, Washington, USA

Corrections for the textbook answers: Sec 6.1 #8h)covert angle to a positive by adding period #9b) # rad/sec

AP Physics Kinematic Wrap Up

BASIC DIRECT-CURRENT MEASUREMENTS

AMERICAN PETROLEUM INSTITUTE API RP 581 RISK BASED INSPECTION BASE RESOURCE DOCUMENT BALLOT COVER PAGE

Introduction to Spacetime Geometry

I understand the new topics for this unit if I can do the practice questions in the textbook/handouts

CHAPTER 8b Static Equilibrium Units

COMP 551 Applied Machine Learning Lecture 5: Generative models for linear classification

Unit 2 Expressions, Equations, and Inequalities Math 7

Phys. 344 Ch 7 Lecture 8 Fri., April. 10 th,

COMP 551 Applied Machine Learning Lecture 4: Linear classification

Physics 212. Lecture 12. Today's Concept: Magnetic Force on moving charges. Physics 212 Lecture 12, Slide 1

Solution to HW14 Fall-2002

MATHEMATICS SYLLABUS SECONDARY 5th YEAR

Part a: Writing the nodal equations and solving for v o gives the magnitude and phase response: tan ( 0.25 )

Math 105: Review for Exam I - Solutions

Physics 101 Math Review. Solutions

SUMMER REV: Half-Life DUE DATE: JULY 2 nd

AP Statistics Practice Test Unit Three Exploring Relationships Between Variables. Name Period Date

This section is primarily focused on tools to aid us in finding roots/zeros/ -intercepts of polynomials. Essentially, our focus turns to solving.

Study Group Report: Plate-fin Heat Exchangers: AEA Technology

Trigonometric Ratios Unit 5 Tentative TEST date

MODULE FOUR. This module addresses functions. SC Academic Elementary Algebra Standards:

Accelerated Chemistry POGIL: Half-life

( ) kt. Solution. From kinetic theory (visualized in Figure 1Q9-1), 1 2 rms = 2. = 1368 m/s

, which yields. where z1. and z2

AIP Logic Chapter 4 Notes

20 Faraday s Law and Maxwell s Extension to Ampere s Law

BASD HIGH SCHOOL FORMAL LAB REPORT

Department: MATHEMATICS

CHAPTER 3 INEQUALITIES. Copyright -The Institute of Chartered Accountants of India

I. Analytical Potential and Field of a Uniform Rod. V E d. The definition of electric potential difference is

Five Whys How To Do It Better

Interference is when two (or more) sets of waves meet and combine to produce a new pattern.

ENGI 4430 Parametric Vector Functions Page 2-01

Math Foundations 20 Work Plan

Support-Vector Machines

Materials Engineering 272-C Fall 2001, Lecture 7 & 8 Fundamentals of Diffusion

Professional Development. Implementing the NGSS: High School Physics

8 th Grade Math: Pre-Algebra

Lecture 6: Phase Space and Damped Oscillations

The Law of Total Probability, Bayes Rule, and Random Variables (Oh My!)

Functions. EXPLORE \g the Inverse of ao Exponential Function

SPH3U1 Lesson 06 Kinematics

Lead/Lag Compensator Frequency Domain Properties and Design Methods

Discovering the Better Buy

NGSS High School Physics Domain Model

General Chemistry II, Unit I: Study Guide (part I)

CHAPTER 4 DIAGNOSTICS FOR INFLUENTIAL OBSERVATIONS

CHEM 116 Electrochemistry at Non-Standard Conditions, and Intro to Thermodynamics

AP Physics. Summer Assignment 2012 Date. Name. F m = = + What is due the first day of school? a. T. b. = ( )( ) =

Chapters 29 and 35 Thermochemistry and Chemical Thermodynamics

COMP 551 Applied Machine Learning Lecture 11: Support Vector Machines

Turing Machines. Human-aware Robotics. 2017/10/17 & 19 Chapter 3.2 & 3.3 in Sipser Ø Announcement:

Collective effects in Beam Dynamics

Building to Transformations on Coordinate Axis Grade 5: Geometry Graph points on the coordinate plane to solve real-world and mathematical problems.

Lab 1 The Scientific Method

Homology groups of disks with holes

L a) Calculate the maximum allowable midspan deflection (w o ) critical under which the beam will slide off its support.

More Tutorial at

Transcription:

Cmputatinal mdeling techniques Lecture 2: Mdeling change. In Petre Department f IT, Åb Akademi http://users.ab.fi/ipetre/cmpmd/

Cntent f the lecture Basic paradigm f mdeling change Examples Linear dynamical systems analytic slutin Affine dynamical systems analytic slutin Equilibrium pints, types f equilibrium pssibly strange behavir fr nnlinear dynamical systems Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 2

Mdeling change Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 3

Mdeling change Basic paradigm: Future value = present value + change Change = future value present value Discrete time difference equatin change takes place in discrete time intervals (e.g., the depsiting f interest in an accunt) in this lecture Cntinuus time differential equatin change takes place cntinuusly (e.g., the psitin f a mving car) in a later lecture in this curse Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 4

Mdeling change with difference equatins Fr a sequence f numbers a 1,a 2,,a n, their differences are: a 0 =a 1 -a 0 a 1 =a 2 -a 1 a 2 =a 3 -a 2 a n =a n+1 -a n Girdan et al. A first curse in mathematical mdeling. (3 rd editin) Figure 1.5, page 4 Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 5

A few examples Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 6

Example: savings depsit A savings depsit A savings depsit initially wrth 1000 eur Interest rate f 1% per mnth Calculate the value grwth f the certificate Dente by a n the value f the depsit n mnths after the first depsit a 0 =1000 The value at time n+1 as a functin f the value at time n: a n =a n+1 -a n =0.01a n a n+1 =1.01a n, fr all n 0 Slutin: a n =a 0 1.01 n Nte We have an infinite set f algebraic equatins This is called a (discrete) dynamical system The change may depend n several previus terms and/r external terms Hw abut if yu withdraw 50 eur each mnth? a n+1 -a n =0.01a n -50 Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 7

Example: mrtgage Mrtgaging a hme Get a mrtgage f 80.000 eur with an interest rate f 1% per mnth Mnthly payment: 880.87 eur Questin 1: after n payments, hw much is there still t pay? Questin 2: hw lng des it take t pay the whle mrtgage? Dente by b n the value f the lan after n payments b 0 =80.000 b n+1 -b n =0.01b n -880.87; in ther wrds, b n+1 =1.01b n -880.87 What is the smallest n such that b n 0 Girdan et al. A first curse in mathematical mdeling. (3 rd editin) Figure 1.6, page 6 8

Example: grwth f a yeast culture We are given data n the grwth f a yeast culture Measurements n the size f the culture at varius time pints Prblem: prpse a mdel fr the grwth Idea: lk at the change with respect t the ppulatin size Observe that the change can be apprximated as a straight line Measure the slpe f the line: 0.5 Prpsed mdel: p n =p n+1 -p n =0.5p n Slutin: p n+1 =1.5p n, Gd mdel fr the little data we have The mdel predicts infinite grwth; unlikely t hld against mre data Girdan et al. A first curse in mathematical mdeling. (3 rd editin) Figure 1.7, page 10 9

Get mre data n the yeast culture; plt the change per hur against the ppulatin size at the time Nte The culture levels ut at abut 665 units Grwth rate slws dwn t almst 0 as the ppulatin appraches the max value Old mdel: p n+1 -p n =kp n New mdel: replace the cnstant k with a simple functin that appraches 0 as p n appraches the max value New mdel: Example (cntinued) Girdan et al. A first curse in mathematical mdeling. (3 rd editin) Figure 1.8, page 11 p n+1 -p n =r(665-p n )p n Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 10

Example (cntinued) New mdel: p n+1 -p n =r(665-p n )p n Hw d we test if the mdel makes sense? Cmpare the differences p n+1 -p n and (665-p n )p n Check if there is a reasnable prprtinality Answer: YES! r=0.00082 Final mdel: p n+1 =p n +0.00082(665-p n )p n Girdan et al. A first curse in mathematical mdeling. (3 rd editin) Figure 1.9, page 11 Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 11

Example (cntinued) Final mdel: p n+1 =p n +0.00082(665-p n )p n Test the mdel Result: very gd fit Cmment: discuss later hw t measure the gdness f a fit; fr nw nly thrugh visual inspectin Girdan et al. A first curse in mathematical mdeling. 2003 Figure 1.10, page 12 Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 12

Linear dynamical systems: a n+1 =ra n Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 13

Slutins t linear dynamical systems Linear dynamical systems: a n+1 =ra n, fr sme cnstant r By inductin: the slutin is a n =r n a 0 r=a 1 /a 0 14

Linear dynamical systems: a n =r n a 0 r=0, 1, -1 3,5 r=1 3,5 3 2,5 2 r=0 3 2,5 2 1,5 1 0,5 0 1,5 1 0,5 0 4 3 2 1 0-1 -2-3 r=-1-4

300 r=1,25 Linear dynamical systems: a n =r n a 0 r>1, r<-1 250 200 150 100 50 0 300 r=-1,25 200 100 0-100 -200-300 Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 16

4,5 4 3,5 3 2,5 2 1,5 1 r=0,8 Linear dynamical systems: a n =r n a 0-1<r<1 0,5 0 6 5 4 3 2 1 0-1 -2-3 -4-5 r=-0,8 Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 17

Affine dynamical systems :a n+1 =ra n +b Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 21

Example Example: prescriptin fr digxin (treatment f sme heart cnditins) Prblem: Prescribe an amunt that keeps the cncentratin f digxin in the bldstream abve an effective level, withut exceeding a safe level (variatin here amng patients) Several questins t settle what is the decay f a single dse at what intervals t give the cnsecutive dses (nt cnsidered in this example) what dses t give Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 22

Example (cntinued) First questin: what is the decay f a single dse? Give a single dse and measure the amunt f digxin remaining in the bldstream after n days n 0 1 2 3 4 5 6 7 8 a n 0.500 0.345 0.238 0.164 0.113 0.078 0.054 0.037 0.026 a n -0.155-0.107-0.074-0.051-0.035-0.024-0.017-0.011 Girdan et al. A first curse in mathematical mdeling. (3 rd editin) Table 1.2, page 13 Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 23

Example (cntinued) Plt a n against a n Cnclusin: a n+1 -a n =-0.5 a n a n+1 = 0.5 a n Girdan et al. A first curse in mathematical mdeling. (3 rd editin) Fig. 1.11, page 14 Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 24

Example (cntinued) Secnd part: additinal dses We add daily a dsage f 0.1 Mdel: a n+1 = 0.5 a n +0.1 Initial value a 0 : might be different than the subsequent dses a 0 =0.1 (series A) a 0 =0.2 (series B) a 0 =0.3 (series C) 0,35 0,3 0,25 0,2 0,15 0,1 0,05 0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 A B C Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 25

Analytic slutins f affine dynamical systems Affine dynamical systems a n+1 =ra n +b, fr sme cnstants r, b with r 1 Analytic slutin: a n =r n c+b/(1-r), where c=a 0 -b/(1-r) a n =ra n-1 +b a n+1 -a n =r(a n -a n-1 ) Let x n =a n+1 -a n, x 0 =a 1 -a 0 =ra 0 +b-a 0 =(r-1)a 0 +b Then x n =rx n-1, i.e., x n =r n x 0 S a k+1 -a k =r k x 0. Sum this relatin frm k=0 t n-1: a n -a 0 =x 0 (1-r n )/(1-r)= -r n x 0 /(1-r)+x 0 /(1-r) Replace x 0 /(1-r)=-a 0 +b/(1-r) a n -a 0 =r n c-a 0 +b/(1-r), where c=a 0 -b/(1-r) a n =r n c+b/(1-r) Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 26

Equilibrium pints Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 27

Equilibrium Cnsider a dynamical system a n+1 =f(a n ) A number a is called an equilibrium pint (r a fixed pint) f the dynamical system if a=f(a) In ther wrds, if we start with initial value a 0 =a, then a n =a, fr all n 0 Imprtant t identify the equilibrium pints f a dynamical system (and their prperties) t knw abut its asympttic behavir Example. Linear dynamical systems: a n+1 =ra n, r 0 Lk fr equilibrium pints: slve the equatin x=rx, i.e., (1-r)x=0 If r 1, then 0 is the nly equilibrium pint If r=1, then all numbers are equilibrium pints Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 28

Types f equilibrium Types f equilibrium pints (infrmal definitins) Stable: starting frm a nearby initial pint will give an rbit that remains nearby the riginal rbit Asympttically stable (attractr): starting frm a nearby initial pint will give an rbit that cnverges twards the riginal rbit Example: a pendulum in the lwest psitin Unstable: starting frm a nearby initial pint may give an rbit that ges away frm the riginal rbit Example: a pendulum in the highest psitin Stable-unstable equilibrium Surce fr picture: Wikipedia Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 29

Types f equilibrium pints Affine dynamical systems; a n+1 =ra n +b, r 0 Lk fr equilibrium pints: slve the equatin x=rx+b, i.e., (1-r)x=b If r 1, then b/(1-r) is the nly equilibrium pint If r=1 and b=0, then all numbers are equilibrium pints If r=1 and b 0, then the dynamical system has n equilibrium pint Assume r 1. What kind f equilibrium pint is b/(1-r)? (asympttically) stable, unstable? Recall that a n =r n c+b/(1-r), where c=a 0 -b/(1-r) r <1: b/(1-r) is asympttically stable r >1: b/(1-r) is unstable r=-1: b/2 is stable tw cnstant subsequences (the dd and the even terms) n either side f the equilibrium Depending n the value f a 0, the tw subsequences can be clse t b/2 Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 30

Nnlinear systems a n+1 =f(a n ), where f is a nn-linear functin Example: a n+1 =r(1-a n )a n, that came up earlier in this lecture The system can have very different behavir depending n r Als called the lgistic map Typical example fr hw chatic behavir can rise frm very simple (nn-linear) dynamics Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 31

Bifurcatin diagram fr a n+1 =r(1-a n )a n. Fr each r the diagram shws the perid p f the dynamical system and the attractrs f its p cnvergent subsequences a np+i, with i=0,1,,p-1 Perid dubles as r increases Eventually it leads t chas Picture frm Wikipedia: http://en.wikipedia.rg/wiki/lgistic_map 33

Learning bjectives Understand the cncept f mdeling the change in a discrete dynamical systems Able t write a linear and an affine mdel with difference equatins fr a simple real-life phenmenna Understand the diverse behavir that a linear dynamical system mdel can have Understand the ntin f equilibrium pint Understand the different types f stability f equilibrium pints Cmputatinal Mdeling Techniques http://users.ab.fi/ipetre/cmpmd/ 35