Title: COMPUTER MODELS IN BIOLOGY
1COMPUTER MODELS IN BIOLOGY
- Bernie Roitberg and Greg Baker
2WHERE NUMERICAL SOLUTIONS ARE USEFUL
- Problems without direct solutions
3WHERE NUMERICAL SOLUTIONS ARE USEFUL
- Problems without direct solutions
- Complex differential equations
4WHERE NUMERICAL SOLUTIONS ARE USEFUL
- Problems without direct solutions
- Complex differential equations
- Complex fitness landscapes
5WHERE NUMERICAL SOLUTIONS ARE USEFUL
- Problems without direct solutions
- Complex differential equations
- Complex fitness landscapes
- Individual-based problems
6WHERE NUMERICAL SOLUTIONS ARE USEFUL
- Problems without direct solutions
- Complex differential equations
- Complex fitness landscapes
- Individual-based problems
- Stochastic problems
7WHERE NUMERICAL SOLUTIONS ARE USEFUL
- Problems without direct solutions
8THE EULER EXACT r EQUATION
9HOW TO SOLVE THE EULER
10HOW TO SOLVE THE EULER
- Start with lnR0/G r
- Insert ESTIMATE into the Euler equation. This
will yield an underestimate or overestimate
11HOW TO SOLVE THE EULER
- Start with lnR0/G r
- Inserted ESTIMATE into the Euler equation. This
will yield an underestimate or overestimate - Try successive values that approximate lnR0/G
until exact value is discovered
12SOME GUESSES
13WHERE NUMERICAL SOLUTIONS ARE USEFUL
- Problems without direct solutions
- Complex differential equations
14THE CONCEPT
- For small changes in x (e.g. time) the difference
quotient Dy/Dx approximates the derivative dy/dx
i.e.
dy/dx Dx ?0 Dy/Dx -
- Thus, if dy/dx f(y) then Dy/Dx f(y) for
small changes in x - Therefore Dy f(y) Dx
15THE GENERAL RULE
- For all numerical integration techniques
- y(x Dx) yx D y
16EULER SOLVES THE EXPONENTIAL
- dn/dt rN
- DN/Dt rN
- DN rN Dt
- N(tDt) Nt DN
- Repeat until total time is reached.
17NUMERICAL EXAMPLE
- N 0Dt N0 (N0 r DT) t 0.1
- N.1 100 (100 1.099 0.1) 110.99
- N.2 110.99 (110.99 1.099 0.1) 123.19
- N.3 123.19 (123.19 1.099 0.1) 136.73.
- ...
- N1.0 283.69
- Analytical solution 300.11
18COMPARE EULER AND ANALYTICAL SOLUTION
19INSIGHTS
- The bigger the time step the greater is the
error - Errors are cumulative
- Reducing time step size to reduce error can be
very expensive
20RUNGE-KUTTA
N
Dt
21RUNGE-KUTTA
- ?yt f(yt) ? t
- yt ? t yt ? yt
- ? y t ? t f(yt ? t )
- y t ? t yt ((?yt ? y t ? t )/2)
22COMPARE EULER AND RUNGE-KUTTA
23WHERE NUMERICAL SOLUTIONS ARE USEFUL
- Problems without direct solutions
- Complex differential equations
- Complex fitness landscapes
24COMPLEX FITNESS LANDSCAPES
- Employing backwards induction to solve the
optimal when state dependent - Numerical solutions for even more complex
surfaces - Random search
- Constrained random search (GAs)
25TABLE OF SOLUTIONS
Oxygen Energy 0.1 0.2 0.3 0.4 0.4
0.1 A A A R R
0.2 A R R R D
0.3 R R D D D
0.4 R R D D D
0.5 D D D D D
26WHERE NUMERICAL SOLUTIONS ARE USEFUL
- Problems without direct solutions
- Complex differential equations
- Complex fitness landscapes
- Individual-based problems
27INDIVIDUAL BASED PROBLEMS
- Simulate a population of individuals that know
the theory but may differ according to state
28WHERE NUMERICAL SOLUTIONS ARE USEFUL
- Problems without direct solutions
- Complex differential equations
- Complex fitness landscapes
- Individual-based problems
- Stochastic problems
29STOCHASTIC PROBLEMS
- Two issues
- Generating a probability distribution
- Drawing from a distribution
30FINAL PROBLEM
- What do you do with all those data?