building models
play

Building Models Project identification Assumptions Flow diagrams - PowerPoint PPT Presentation

Building Models Project identification Assumptions Flow diagrams Sources of equations Graphical Methods Solving equations Project identification Set realistic goals! Model what? ENVIRONMENT MODEL Exponential Growth


  1. Building Models • Project identification • Assumptions • Flow diagrams • Sources of equations • Graphical Methods • Solving equations

  2. Project identification Set realistic goals! Model what? ENVIRONMENT MODEL

  3. Exponential Growth Model Assume rate of growth is proportional to quantity present Continuous time, deterministic dp dt = ap p ( t ) = p 0 e at Discrete time, deterministic p t +1 = bp t p ( t ) = p 0 b t Continuous time, stochastic Prob { p ( t + δt ) = p ( t ) + 1 } = cp ( t ) δt Prob { p ( t + δt ) = p ( t ) − 1 } = dp ( t ) δt E [ p ( t )] = p 0 e ( c − d ) t

  4. Deterministic and stochastic models General birth-death dp ( t ) = b ( p ) − d ( p ) , dt Event Effect on population , p Probability of Event Birth p ( t + δt ) = p ( t ) + 1 b ( p ) δt Death p ( t + δt ) = p ( t ) − 1 d ( p ) δt No change p ( t + δt ) = p ( t ) 1 − b ( p ) δt − d ( p ) δt

  5. � Exponential Growth Model Spatial model λ p Movement between patches Non−spatial model Spatial, colony or meta−population model Figure 1: A schematic description of a spatial model

  6. Assumptions Framework State explicitly Relevance of simplifications Limit applications

  7. Flow Diagrams Pictorial representation of model structure Use standard symbols, or set a logical puzzle! ✷ state or level variables � source or sink → channel of material flow ��� channel of information flow ✶ control on rate of flow

  8. Energy Model for Cattle Growth Assume the only relevant information about an animal is its liveweight, W Assume the only source of energy is food intake, I Assume energy is lost either as a result of maintenance ( M ) or due to converting food to body tissue W is a state variable, I is a source, M is a sink

  9. Flow Diagram for Energy Model R3 R5 INTAKE CONVERSION (I) R4 STORED LIVEWEIGHT R1 CHEMICAL ENERGY (W) CONSTRAINTS R2 R1 + R2 = M MAINTENANCE (M) R1 + R3 = I R3 = R4 + R5

  10. Sources of Equations Literature Analogy with existing models Data analysis

  11. Diffusion Used to describe the random spread of objects in space from areas of high density to areas of low density With large numbers of objects, the partial differential equation ∂t = D ∂ 2 c ∂c ∂x 2 describes the change well. t = DENSITY (c) 10 0 SPACE (x)

  12. � � � � � � � Estimating relationships from data Fasting metabolism (MJ/d) 50 Maintenace=F+0.0043W 40 30 20 10 0.67 F=0.53(W/1.08) 0 0 100 200 300 400 500 600 Liveweight W (Kg)/1.08

  13. Meta-analyses Energy Content of Weight Gain 46 published equations for the linear regression of log Protein on log Liveweight AND log Fat on log Liveweight need to summarize these by “average” equations OR must decide which equation is most appropriate

  14. Graphical Methods for Differential Equations Based on the approximation dt = { y ( t + δt ) − y ( t ) } dy δt Observations y i at times t i , calculate ( y i +1 − y i ) ( t i +1 − t i ) and plot this against y or t

  15. ✁ � � ✁ � � Logistic growth a population data 1.0 0.0 y 0.8 log(y) −1.0 0.6 −2.0 0.4 −3.0 0.2 0.0 −4.0 0.0 5.0 10.0 15.0 20.0 0.0 5.0 10.0 15.0 20.0 time time 0.4 1.0 (y t+1 −y t )/ δ t 0.8 0.3 (log(y t+1 )−log(y t ))/ δ t 0.6 0.2 0.4 0.1 0.2 0.0 0.0 0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0 (y t+1 +y t )/2 (y t+1 +y t )/2

  16. For data from some growth curves, find { log( y i +1 − log( y i } / ( t i +1 − t i ) ≈ A − By i Why should this be? d (log y ) dy = 1 dt = A − By dt y dy dt = y ( A − By ) This is the logistic growth curve

  17. Solving Equations Mathematival solutions exist for linear, deterministic equations dy dt = ay ; y = y (0) e at dy dt = ay + bz dz dt = cy + dz Mathematical solution of non-linear equations is much more difficult

  18. Numerical Solution of Model Equations Computer intensive Approximate Case specific Model structure less critical

  19. Euler’s Method Assume dy dt is constant over short time intervals y ( t i +1 ) ≈ y i + ( t i +1 − t i ) dy dt | t i Often, t i +1 − t i is held constant, called the step size y y0 t0 t

  20. Fourth Order Runge-Kutta (RK4) Uses an average of dy dt over the interval from t i to t i +1 Achieves much greater accuracy than assuming dy dt is constant However, if vastly different time scales use stiff ODE solver, e.g., Rosenbrock

  21. Numerical Approximation of cos(t) cos( t ) an exact solution to second order ODE d 2 y dt 2 = − y Re-write as system of first order ODE’s dy dt = z dz dt = − y Solution will be unit circle in y-z phase space

  22. � � � � Numerical estimation of the cosine function 5 Euler 3 Exact 1 −1 −3 RK4 −5 0 10 20 30

  23. Stochastic simulation (approximate) General birth-death Event Effect on population , p Probability of Event Birth p ( t + δt ) = p ( t ) + 1 b ( p ) δt Death p ( t + δt ) = p ( t ) − 1 d ( p ) δt No change p ( t + δt ) = p ( t ) 1 − b ( p ) δt − d ( p ) δt Update time: t → t + δt and draw y ∼ U (0 , 1) Birth if y < b ( p ) δt else Death if y < b ( p ) δt + d ( p ) δt else No event

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend