<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[Azimuth]]></provider_name><provider_url><![CDATA[https://johncarlosbaez.wordpress.com]]></provider_url><author_name><![CDATA[John Baez]]></author_name><author_url><![CDATA[https://johncarlosbaez.wordpress.com/author/johncarlosbaez/]]></author_url><title><![CDATA[The Mathematics of Biodiversity (Part&nbsp;3)]]></title><type><![CDATA[link]]></type><html><![CDATA[<p>We tend to think of biodiversity as a good thing, but sometimes it&#8217;s deadly.  Yesterday Andrei Korobeinikov gave a talk on &#8216;Viral evolution within a host&#8217;, which was mainly about AIDS.</p>
<p>The virus that causes this disease, HIV, can reproduce very fast.  In an untreated patient near death there are between 10<sup>10</sup> and 10<sup>12</sup> new virions per day!  Remember, a <a href="http://www.britannica.com/EBchecked/topic/630143/virion"><b>virion</b></a> is an individual virus particle.  The virus also has a high mutation rate: about 3 &times; 10<sup>-5</sup> mutations per generation for each base&#8212;that is, each molecule of A,T,C, or G in the RNA of the virus.    That may not seem like a lot, but if you multiply it by 10<sup>12</sup> you&#8217;ll see that a huge number of new variations of each base arise within the body of a single patient.  </p>
<p>So, evolution is at work within you as you die.  </p>
<p>And in fact, many scientists believe that <i>the diversity of the virus eventually overwhelms your immune system!</i>   Although it&#8217;s apparently not quite certain, it seems that while the body generates <a href="http://en.wikipedia.org/wiki/B_cell">B cells</a> and <a href="http://en.wikipedia.org/wiki/T_cell">T cells</a> to attack different variants of HIV as they arise, they eventually can&#8217;t keep up with the sheer number of variants.  </p>
<p>Of course, the fact that the HIV virus attacks the immune system makes the disearse even worse.  Here in blue you see the number of T cells per cubic millimeter of blood, and in red you see the number of virions per cubic centimeter of blood for a typical untreated patient:</p>
<div align="center"><a href="http://www.biotech100.com/biotechnology_encyclopedia/hiv.htm"><img src="https://i1.wp.com/www.biotech100.com/biotechnology_encyclopedia/500px-Hiv-timecourse.png" /></a></div>
<p>Mathematicians and physicists have looked at some very simple models to get a qualitative understanding of these issues.   One famous paper that started this off is:</p>
<p>&bull; Lev S. Tsimring, Herbert Levine and David A. Kessler, <a href="https://ctbp.ucsd.edu/levine/publications/123-RNA%20virus%20evolution%20via%20a%20fitness-space%20model.pdf">RNA virus evolution via a fitness-space model</a>, <i>Phys. Rev. Lett.</i> <b>76</b> (1996), 4440&#8211;4443.</p>
<p>The idea here is to say that at any time <img src='https://s0.wp.com/latex.php?latex=t&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='t' title='t' class='latex' /> the viruses have a probability density <img src='https://s0.wp.com/latex.php?latex=p%28r%2Ct%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='p(r,t)' title='p(r,t)' class='latex' /> of having fitness <img src='https://s0.wp.com/latex.php?latex=r&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='r' title='r' class='latex' />.  In fact the different genotypes of the virus form a cloud in a higher-dimensional space, but these authors are treating that space is 1-dimensional, with fitness as its one coordinate, just to keep things simple.  They then write down an equation for how the population density changes with time:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B%5Cfrac%7B%5Cpartial+%7D%7B%5Cpartial+t%7Dp%28r%2Ct%29+%3D+%28r+-+%5Clangle+r+%5Crangle%29%5C%2C+p%28r%2Ct%29+%2B+D+%5Cfrac%7B%5Cpartial%5E2+%7D%7B%5Cpartial+r%7Dp%28r%2Ct%29+-+%5Cfrac%7B%5Cpartial%7D%7B%5Cpartial+r%7D%28v_%7B%5Cmathrm%7Bdrift%7D%7D%5C%2C+p%28r%2Ct%29%29+%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{&#92;frac{&#92;partial }{&#92;partial t}p(r,t) = (r - &#92;langle r &#92;rangle)&#92;, p(r,t) + D &#92;frac{&#92;partial^2 }{&#92;partial r}p(r,t) - &#92;frac{&#92;partial}{&#92;partial r}(v_{&#92;mathrm{drift}}&#92;, p(r,t)) }' title='&#92;displaystyle{&#92;frac{&#92;partial }{&#92;partial t}p(r,t) = (r - &#92;langle r &#92;rangle)&#92;, p(r,t) + D &#92;frac{&#92;partial^2 }{&#92;partial r}p(r,t) - &#92;frac{&#92;partial}{&#92;partial r}(v_{&#92;mathrm{drift}}&#92;, p(r,t)) }' class='latex' /></p>
<p>This is a <b>replication-mutation-drift equation</b>.  If we just had</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B%5Cfrac%7B%5Cpartial+%7D%7B%5Cpartial+t%7Dp%28r%2Ct%29+%3D+%28r+-+%5Clangle+r+%5Crangle%29%5C%2C+p%28r%2Ct%29+%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{&#92;frac{&#92;partial }{&#92;partial t}p(r,t) = (r - &#92;langle r &#92;rangle)&#92;, p(r,t) }' title='&#92;displaystyle{&#92;frac{&#92;partial }{&#92;partial t}p(r,t) = (r - &#92;langle r &#92;rangle)&#92;, p(r,t) }' class='latex' /></p>
<p>this would be a version of the replicator equation, which I explained recently in <a href="https://johncarlosbaez.wordpress.com/2012/06/01/information-geometry-part-9/">Information Geometry (Part 9)</a>.  Here </p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Clangle+r+%5Crangle+%3D+%5Cint_0%5E%5Cinfty+r+p%28r%2Ct%29+dr+%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;langle r &#92;rangle = &#92;int_0^&#92;infty r p(r,t) dr }' title='&#92;displaystyle{ &#92;langle r &#92;rangle = &#92;int_0^&#92;infty r p(r,t) dr }' class='latex' /></p>
<p>is the mean fitness, and the replicator equations says that the fraction of organisms of a given type grows at a rate proportional to how much their fitness exceeds the mean fitness: that&#8217;s where the <img src='https://s0.wp.com/latex.php?latex=%28r+-+%5Clangle+r+%5Crangle%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='(r - &#92;langle r &#92;rangle)' title='(r - &#92;langle r &#92;rangle)' class='latex' /> comes from.</p>
<p>If we just had</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B%5Cfrac%7B%5Cpartial+%7D%7B%5Cpartial+t%7Dp%28r%2Ct%29+%3D++D+%5Cfrac%7B%5Cpartial%5E2+%7D%7B%5Cpartial+r%5E2%7Dp%28r%2Ct%29+%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{&#92;frac{&#92;partial }{&#92;partial t}p(r,t) =  D &#92;frac{&#92;partial^2 }{&#92;partial r^2}p(r,t) }' title='&#92;displaystyle{&#92;frac{&#92;partial }{&#92;partial t}p(r,t) =  D &#92;frac{&#92;partial^2 }{&#92;partial r^2}p(r,t) }' class='latex' /></p>
<p>this would be the <a href="http://en.wikipedia.org/wiki/Heat_equation">heat equation</a>, which describes diffusion occurring at a rate <img src='https://s0.wp.com/latex.php?latex=D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='D' title='D' class='latex' />.  This models the mutation of the virus, though not in a very realistic way.</p>
<p>If we just had </p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B%5Cfrac%7B%5Cpartial%7D%7B%5Cpartial+t%7D+p%28r%2Ct%29+%3D++-+%5Cfrac%7B%5Cpartial%7D%7B%5Cpartial+r%7D%28v_%7B%5Cmathrm%7Bdrift%7D%7D+%5C%2C+p%28r%2Ct%29%29+%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{&#92;frac{&#92;partial}{&#92;partial t} p(r,t) =  - &#92;frac{&#92;partial}{&#92;partial r}(v_{&#92;mathrm{drift}} &#92;, p(r,t)) } ' title='&#92;displaystyle{&#92;frac{&#92;partial}{&#92;partial t} p(r,t) =  - &#92;frac{&#92;partial}{&#92;partial r}(v_{&#92;mathrm{drift}} &#92;, p(r,t)) } ' class='latex' /></p>
<p>the fitness of the virus would increase at rate equal to the <a href="http://en.wikipedia.org/wiki/Drift_velocity"><b>drift velocity</b></a> <img src='https://s0.wp.com/latex.php?latex=v_%7B%5Cmathrm%7Bdrift%7D%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='v_{&#92;mathrm{drift}}' title='v_{&#92;mathrm{drift}}' class='latex' />.   </p>
<p>If we include both the diffusion and drift terms:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B%5Cfrac%7B%5Cpartial+%7D%7B%5Cpartial+t%7D+p%28r%2Ct%29+%3D++D+%5Cfrac%7B%5Cpartial%5E2+%7D%7B%5Cpartial+r%5E2%7Dp%28r%2Ct%29+-+%5Cfrac%7B%5Cpartial%7D%7B%5Cpartial+r%7D%28v_%7B%5Cmathrm%7Bdrift%7D%7D+%5C%2C+p%28r%2Ct%29%29+%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{&#92;frac{&#92;partial }{&#92;partial t} p(r,t) =  D &#92;frac{&#92;partial^2 }{&#92;partial r^2}p(r,t) - &#92;frac{&#92;partial}{&#92;partial r}(v_{&#92;mathrm{drift}} &#92;, p(r,t)) } ' title='&#92;displaystyle{&#92;frac{&#92;partial }{&#92;partial t} p(r,t) =  D &#92;frac{&#92;partial^2 }{&#92;partial r^2}p(r,t) - &#92;frac{&#92;partial}{&#92;partial r}(v_{&#92;mathrm{drift}} &#92;, p(r,t)) } ' class='latex' /></p>
<p>we get the <a href="http://en.wikipedia.org/wiki/Fokker%E2%80%93Planck_equation"><b>Fokker&#8211;Planck equation</b></a>.  This is a famous model of something that&#8217;s spreading while also drifting along at a constant velocity: for example, a drop of ink in moving water.  Its solutions look like this:</p>
<div align="center"><a href="http://en.wikipedia.org/wiki/Fokker%E2%80%93Planck_equation"><img src="https://i2.wp.com/upload.wikimedia.org/wikipedia/commons/f/f2/FokkerPlanck.gif" /></a></div>
<p>Here we start with stuff concentrated at one point, and it spreads out into a Gaussian while drifting along.</p>
<p>By the way, watch out: what biologists call &#8216;genetic drift&#8217; is actually a form of diffusion, not what physicists call &#8216;drift&#8217;.</p>
<p>More recently, people have looked at another very simple model.  You can read about it here:</p>
<p>&bull; Martin A. Nowak, and R. M. May, <i>Virus Dynamics</i>, Oxford University Press, Oxford, 2000.</p>
<p>In this model the variables are:</p>
<p>&bull; the number of <b>healthy</b> human cells of some type, <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BH%7D%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{H}(t)' title='&#92;mathrm{H}(t)' class='latex' /></p>
<p>&bull; the number of <b>infected</b> human cells of that type, <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BI%7D%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{I}(t)' title='&#92;mathrm{I}(t)' class='latex' /></p>
<p>&bull; the number of <b>virions</b>, <img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BV%7D%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{V}(t)' title='&#92;mathrm{V}(t)' class='latex' /></p>
<p>These are my names for variables, not theirs.  It&#8217;s just a sick joke that these letters spell out &#8216;HIV&#8217;. </p>
<p>Chemists like to describe how molecules react and turn into other molecules using &#8216;chemical reaction networks&#8217;.   You&#8217;ve seen these if you&#8217;ve taken chemistry, but I&#8217;ve been explaining more about the math of these starting in <a href="http://math.ucr.edu/home/baez/networks/">Network Theory (Part 17)</a>.  We can also use them here!  Though May and Nowak probably didn&#8217;t put it this way, we can consider a chemical reaction network with the following 6 reactions:</p>
<p>&bull; the production of a healthy cell:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Clongrightarrow+%5Cmathrm%7BH%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;longrightarrow &#92;mathrm{H} ' title='&#92;longrightarrow &#92;mathrm{H} ' class='latex' /></p>
<p>&bull; the infection of a healthy cell by a virion:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BH%7D+%2B+%5Cmathrm%7BV%7D+%5Clongrightarrow+%5Cmathrm%7BI%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{H} + &#92;mathrm{V} &#92;longrightarrow &#92;mathrm{I} ' title='&#92;mathrm{H} + &#92;mathrm{V} &#92;longrightarrow &#92;mathrm{I} ' class='latex' /></p>
<p>&bull; the production of a virion by an infected cell:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BI%7D+%5Clongrightarrow+%5Cmathrm%7BI%7D+%2B+%5Cmathrm%7BV%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{I} &#92;longrightarrow &#92;mathrm{I} + &#92;mathrm{V} ' title='&#92;mathrm{I} &#92;longrightarrow &#92;mathrm{I} + &#92;mathrm{V} ' class='latex' /></p>
<p>&bull; the death of a healthy cell:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BH%7D+%5Clongrightarrow+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{H} &#92;longrightarrow ' title='&#92;mathrm{H} &#92;longrightarrow ' class='latex' /></p>
<p>&bull; the death of a infected cell:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BI%7D+%5Clongrightarrow+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{I} &#92;longrightarrow ' title='&#92;mathrm{I} &#92;longrightarrow ' class='latex' /></p>
<p>&bull; the death of a virion:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cmathrm%7BV%7D+%5Clongrightarrow+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;mathrm{V} &#92;longrightarrow ' title='&#92;mathrm{V} &#92;longrightarrow ' class='latex' /></p>
<p>Using a standard recipe which I explained, we can get from this chemical reaction network to some &#8216;rate equations&#8217; saying how the number of healthy cells, infected cells and virions changes with time:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Cfrac%7Bd%5Cmathrm%7BH%7D%7D%7Bdt%7D++%3D+++%5Calpha+-+%5Cbeta+%5Cmathrm%7BH%7D%5Cmathrm%7BV%7D+-+%5Cgamma+%5Cmathrm%7BH%7D+%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;frac{d&#92;mathrm{H}}{dt}  =   &#92;alpha - &#92;beta &#92;mathrm{H}&#92;mathrm{V} - &#92;gamma &#92;mathrm{H} }' title='&#92;displaystyle{ &#92;frac{d&#92;mathrm{H}}{dt}  =   &#92;alpha - &#92;beta &#92;mathrm{H}&#92;mathrm{V} - &#92;gamma &#92;mathrm{H} }' class='latex' /></p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Cfrac%7Bd%5Cmathrm%7BI%7D%7D%7Bdt%7D++%3D+%5Cbeta+%5Cmathrm%7BH%7D%5Cmathrm%7BV%7D+-+%5Cdelta+%5Cmathrm%7BI%7D+%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;frac{d&#92;mathrm{I}}{dt}  = &#92;beta &#92;mathrm{H}&#92;mathrm{V} - &#92;delta &#92;mathrm{I} }' title='&#92;displaystyle{ &#92;frac{d&#92;mathrm{I}}{dt}  = &#92;beta &#92;mathrm{H}&#92;mathrm{V} - &#92;delta &#92;mathrm{I} }' class='latex' /></p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Cfrac%7Bd%5Cmathrm%7BV%7D%7D%7Bdt%7D++%3D+-+%5Cbeta+%5Cmathrm%7BH%7D%5Cmathrm%7BV%7D+%2B+%5Cepsilon+%5Cmathrm%7BI%7D+-+%5Czeta+%5Cmathrm%7BV%7D+%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;frac{d&#92;mathrm{V}}{dt}  = - &#92;beta &#92;mathrm{H}&#92;mathrm{V} + &#92;epsilon &#92;mathrm{I} - &#92;zeta &#92;mathrm{V} }' title='&#92;displaystyle{ &#92;frac{d&#92;mathrm{V}}{dt}  = - &#92;beta &#92;mathrm{H}&#92;mathrm{V} + &#92;epsilon &#92;mathrm{I} - &#92;zeta &#92;mathrm{V} }' class='latex' /></p>
<p>The Greek letters are constants called &#8216;rate constants&#8217;, and there&#8217;s one for each of the 6 reactions.  The equations we get this way are exactly those described by Nowak and May!</p>
<p>What Andrei Korobeinikov is to unify the ideas behind the two models I&#8217;ve described here.  Alas, I don&#8217;t have the energy to explain how.  Indeed, I don&#8217;t even have the energy to explain what the models I&#8217;ve described actually predict.  Sad, but true.</p>
<p>I don&#8217;t see anything online about Korobeinikov&#8217;s new work, but you can read some of his earlier work here:</p>
<p>&bull; Andrei Korobeinikov, <a href="http://eprints.lib.hokudai.ac.jp/dspace/bitstream/2115/33879/1/paper.pdf">Global properties of basic virus dynamics models</a>.</p>
<p>&bull; Suzanne M. O&#8217;Regan, Thomas C. Kelly, Andrei Korobeinikov, Michael J. A. O&#8217;Callaghan and Alexei V. Pokrovskii, <a href="http://www.sciencedirect.com/science/article/pii/S0893965909004091">Lyapunov functions for SIR and SIRS epidemic models</a>, <i>Appl. Math. Lett.</i> <b>23</b> (2010), 446-448.</p>
<p>The SIR and SIRS models are models of disease that also arise from chemical reaction networks.  I explained them back in <a href="http://math.ucr.edu/home/baez/networks/networks_3.html">Network Theory (Part 3)</a>.  That was before I introduced the terminology of chemical reaction networks&#8230; back then I was talking about &#8216;stochastic Petri nets&#8217;, which are an entirely equivalent formalism.  Here&#8217;s the stochastic Petri net for the SIRS model:</p>
<div align="center"><a href="http://math.ucr.edu/home/baez/networks/networks_3.html"><img width="400" src="https://i1.wp.com/math.ucr.edu/home/baez/networks/SIRS.png" /></a></div>
<p><b>Puzzle:</b> Draw the stochastic Petri net for the HIV model discussed above.  It should have 3 yellow circles and 6 aqua squares.</p>
]]></html><thumbnail_url><![CDATA[https://i1.wp.com/www.biotech100.com/biotechnology_encyclopedia/500px-Hiv-timecourse.png?fit=440%2C330]]></thumbnail_url><thumbnail_height><![CDATA[246]]></thumbnail_height><thumbnail_width><![CDATA[440]]></thumbnail_width></oembed>