<?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[Mathematics of the Environment (Part&nbsp;7)]]></title><type><![CDATA[link]]></type><html><![CDATA[<p><a href="https://johncarlosbaez.wordpress.com/2012/11/10/mathematics-and-the-environment-part-6/">Last time</a> we saw how the ice albedo effect could, in theory, make the Earth&#8217;s climate have two stable states.  In a very simple model, we saw that a hot Earth might stay hot since it&#8217;s dark and absorbs lots of sunlight, while a cold Earth might stay cold&#8212;since it&#8217;s icy and white and reflects most of the sunlight.  </p>
<p>If you haven&#8217;t tried it yet, make sure to play around with this program pioneered by Lesley de Cruz and then implemented in Java by Allan Erskine:</p>
<p>&bull; <a href="http://math.ucr.edu/home/baez/coalbedo/temperature.html">Temperature dynamics</a>.</p>
<p>The explanations were all given in <a href="https://johncarlosbaez.wordpress.com/2012/11/10/mathematics-and-the-environment-part-6/">Part 6</a> so I won&#8217;t repeat them here!   </p>
<p>This week, we&#8217;ll see how <i>noise</i> affects this simple climate model.   We&#8217;ll borrow lots of material from here:</p>
<p>&bull; <a href="http://www.azimuthproject.org/azimuth/show/Glyn+Adgie">Glyn Adgie</a> and <a href="http://www.azimuthproject.org/azimuth/show/Tim+van+Beek">Tim van Beek</a>, <a href="https://johncarlosbaez.wordpress.com/2012/07/30/increasing-the-signal-to-noise-ratio-with-more-noise/">Increasing the signal-to-noise ratio with more noise</a>.   </p>
<p>And we&#8217;ll use software written by these guys together with Allan Erskine.  The power of the Azimuth Project knows no bounds!</p>
<h3> Stochastic differential equations</h3>
<p>The <a href="http://www.azimuthproject.org/azimuth/show/Milankovitch+cycle#Idea">Milankovich cycles</a> are periodic changes in how the Earth orbits the Sun.  One question is: can these changes can be responsible for the ice ages?  On the first sight it seems impossible, because the changes are simply too small. But it turns out that we can find a dynamical system where a small periodic external force is actually strengthened by random &#8216;noise&#8217; in the system. This phenomenon has been dubbed &#8216;stochastic resonance&#8217; and has been proposed as an explanation for the ice ages.  It also shows up in many other phenomena:</p>
<p>&bull; Roberto Benzi, <a href="http://arxiv.org/abs/nlin/0702008">Stochastic resonance: from climate to biology</a>.</p>
<p>But to understand it, we need to think a little about stochastic differential equations.</p>
<p>A lot of systems can be described by ordinary differential equations:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Cfrac%7Bd+x%7D%7Bd+t%7D+%3D+f%28x%2C+t%29%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;frac{d x}{d t} = f(x, t)} ' title='&#92;displaystyle{ &#92;frac{d x}{d t} = f(x, t)} ' class='latex' /> </p>
<p>If <img src='https://s0.wp.com/latex.php?latex=f&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='f' title='f' class='latex' /> is nice, the time evolution of the system will be a nice smooth function <img src='https://s0.wp.com/latex.php?latex=x%28t%29%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='x(t),' title='x(t),' class='latex' /> like the trajectory of a thrown stone. But there are situations where we have some kind of noise, a chaotic, fluctuating influence, that we would like to take into account. This could be, for example, turbulence in the air flow around a rocket. Or, in our case, short term fluctuations of the weather of the earth. If we take this into account, we get an equation of the form</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Cfrac%7Bd+x%7D%7Bd+t%7D+%3D+f%28x%2C+t%29+%2B+w%28t%29+%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;frac{d x}{d t} = f(x, t) + w(t) } ' title='&#92;displaystyle{ &#92;frac{d x}{d t} = f(x, t) + w(t) } ' class='latex' /></p>
<p>where the <img src='https://s0.wp.com/latex.php?latex=w&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='w' title='w' class='latex' /> is a &#8216;random function&#8217; which models the noise.  Typically this noise is just a simplified way to take into account rapidly changing fine-grained aspects of the system at hand. This way we do not have to explicitly model these aspects, which is often impossible.   </p>
<h3> White noise </h3>
<p>We&#8217;ll look at a model of this sort:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Cfrac%7Bd+x%7D%7Bd+t%7D+%3D+f%28x%2C+t%29+%2B+w%28t%29+%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;frac{d x}{d t} = f(x, t) + w(t) } ' title='&#92;displaystyle{ &#92;frac{d x}{d t} = f(x, t) + w(t) } ' class='latex' /></p>
<p>where <img src='https://s0.wp.com/latex.php?latex=w%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='w(t)' title='w(t)' class='latex' /> is <a href="http://en.wikipedia.org/wiki/White_noise">&#8216;white noise&#8217;</a>.  But what&#8217;s that?  </p>
<p>Very naively speaking, white noise is a random function that typically looks very wild, like this:</p>
<div align="center"><a href="http://en.wikipedia.org/wiki/White_noise"><img src="https://i2.wp.com/upload.wikimedia.org/wikipedia/commons/thumb/d/d6/White-noise.png/450px-White-noise.png" /></a></div>
<p>White noise actually has a sound, too: it sounds like <a href="http://upload.wikimedia.org/wikipedia/commons/6/66/Whitenoisesound.ogg">this</a>! The idea is that you can take a random function like the one graphed above, and use it to drive the speakers of your computer, to produce sound waves of an equally wild sort.  And it sounds like static.</p>
<p>However, all this is naive.  Why?   The concept of a &#8216;random function&#8217; is not terribly hard to define, at least if you&#8217;ve taken the usual year-long course on real analysis that we force on our grad students at U.C. Riverside: it&#8217;s a <a href="http://en.wikipedia.org/wiki/Probability_measure">probability measure</a> on some space of functions.   But white noise is a bit too spiky and singular too be a random function: it&#8217;s a random <a href="http://en.wikipedia.org/wiki/Distribution_%28mathematics%29">distribution</a>.  </p>
<p>Distributions were envisioned by Dirac but formalized later by Laurent Schwarz and others.  A distribution <img src='https://s0.wp.com/latex.php?latex=D%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='D(t)' title='D(t)' class='latex' /> is a bit like a function, but often distributions are too nasty to have well-defined values at points!   Instead, all that makes sense are expressions like this:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Cint_%5Cinfty%5E%5Cinfty+D%28t%29+f%28t%29+%5C%2C+d+t%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;int_&#92;infty^&#92;infty D(t) f(t) &#92;, d t} ' title='&#92;displaystyle{ &#92;int_&#92;infty^&#92;infty D(t) f(t) &#92;, d t} ' class='latex' /></p>
<p>where we multiply the distribution by any <a href="http://en.wikipedia.org/wiki/Compact_support#Compact_support">compactly supported</a> <a href="http://en.wikipedia.org/wiki/Smooth_function">smooth function</a> <img src='https://s0.wp.com/latex.php?latex=f%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='f(t)' title='f(t)' class='latex' /> and then integrate it.  Indeed, we specify a distribution just by saying what all these integrals equal.  For example, the <a href="http://en.wikipedia.org/wiki/Dirac_delta_function">Dirac delta</a> <img src='https://s0.wp.com/latex.php?latex=%5Cdelta%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;delta(t)' title='&#92;delta(t)' class='latex' /> is a distribution defined by</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Cint_%5Cinfty%5E%5Cinfty+%5Cdelta%28t%29+f%28t%29+%5C%2C+d+t+%3D+f%280%29+%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;int_&#92;infty^&#92;infty &#92;delta(t) f(t) &#92;, d t = f(0) }' title='&#92;displaystyle{ &#92;int_&#92;infty^&#92;infty &#92;delta(t) f(t) &#92;, d t = f(0) }' class='latex' /></p>
<p>If you try to imagine the Dirac delta as a function, you run into a paradox: it should be zero everywhere except at <img src='https://s0.wp.com/latex.php?latex=t+%3D+0&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='t = 0' title='t = 0' class='latex' />, but its integral should equal 1.  So, if you try to graph it, the region under the graph should be an infinitely skinny infinitely tall spike whose area is 1:</p>
<div align="center"><a href="http://en.wikipedia.org/wiki/Dirac_delta_function"><img src="https://i1.wp.com/upload.wikimedia.org/wikipedia/commons/thumb/4/48/Dirac_distribution_PDF.svg/300px-Dirac_distribution_PDF.svg.png" /></a></div>
<p>But that&#8217;s impossible, at least in the standard framework of mathematics&#8212;so such a function does not really exist!  </p>
<p>Similarly, white noise <img src='https://s0.wp.com/latex.php?latex=w%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='w(t)' title='w(t)' class='latex' /> is too spiky to be an honest random function, but if we multiply it by any compactly supported smooth function <img src='https://s0.wp.com/latex.php?latex=f%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='f(t)' title='f(t)' class='latex' /> and integrate, we get a random variable</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Cint_%5Cinfty%5E%5Cinfty+w%28t%29+f%28t%29+%5C%2C+d+t+%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;int_&#92;infty^&#92;infty w(t) f(t) &#92;, d t }' title='&#92;displaystyle{ &#92;int_&#92;infty^&#92;infty w(t) f(t) &#92;, d t }' class='latex' /></p>
<p>whose probability distribution is a Gaussian with mean zero and standard deviation equal to</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Csqrt%7B+%5Cint_%5Cinfty%5E%5Cinfty+f%28t%29%5E2+%5C%2C+d+t%7D+%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;sqrt{ &#92;int_&#92;infty^&#92;infty f(t)^2 &#92;, d t} } ' title='&#92;displaystyle{ &#92;sqrt{ &#92;int_&#92;infty^&#92;infty f(t)^2 &#92;, d t} } ' class='latex' /></p>
<p>(Note: the word &#8216;distribution&#8217; has a completely different meaning when it shows up in the phrase <a href="http://en.wikipedia.org/wiki/Probability_density_function">probability distribution</a>!  I&#8217;m assuming you&#8217;re comfortable with <i>that</i> meaning already.)</p>
<p>Indeed, the above formulas make sense and are true, not just when <img src='https://s0.wp.com/latex.php?latex=f&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='f' title='f' class='latex' /> is compactly supported and smooth, but whenever </p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Csqrt%7B+%5Cint_%5Cinfty%5E%5Cinfty+f%28t%29%5E2+%5C%2C+d+t%7D+%7D+%3C+%5Cinfty+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;sqrt{ &#92;int_&#92;infty^&#92;infty f(t)^2 &#92;, d t} } &lt; &#92;infty ' title='&#92;displaystyle{ &#92;sqrt{ &#92;int_&#92;infty^&#92;infty f(t)^2 &#92;, d t} } &lt; &#92;infty ' class='latex' /></p>
<p>If you know about Gaussians and you know about this sort of integral, which shows up all over math and physics, you&#8217;ll realize that white noise is an extremely natural concept!</p>
<h3> Brownian motion </h3>
<p>While white noise is not a random function, its integral</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+W%28s%29+%3D+%5Cint_0%5Es+w%28s%29+%5C%2C+ds+%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ W(s) = &#92;int_0^s w(s) &#92;, ds } ' title='&#92;displaystyle{ W(s) = &#92;int_0^s w(s) &#92;, ds } ' class='latex' /></p>
<p>turns out to be a well-defined random function.  It has a lot of names, including: the <a href="http://en.wikipedia.org/wiki/Wiener_process">Wiener process</a>, <a href="http://en.wikipedia.org/wiki/Brownian_motion">Brownian motion</a>, <a href="http://en.wikipedia.org/wiki/Brownian_noise">red noise</a> and&#8212;as a kind of off-color joke&#8212;<a href="http://en.wikipedia.org/wiki/Colors_of_noise#Brown.28ian.29_noise">brown noise</a>.  </p>
<p>The capital W here stands for Wiener: that is, <a href="http://en.wikipedia.org/wiki/Norbert_Wiener">Norbert Wiener</a>, the <a href="http://www.technologyreview.com/article/424363/the-original-absent-minded-professor/">famously absent-minded</a> MIT professor who studied this random function&#8230; and also invented <a href="http://en.wikipedia.org/wiki/Cybernetics">cybernetics</a>:</p>
<div align="center"><a href="http://cyberneticzoo.com/?tag=norbert-wiener"><img src="https://i2.wp.com/cyberneticzoo.com/wp-content/uploads/Wiener_May1949.jpg" /></a></div>
<p>Brownian noise sounds like <a href="http://upload.wikimedia.org/wikipedia/commons/4/48/Brown_noise.ogg">this</a>. </p>
<p><b>Puzzle:</b>  How does it sound different from white noise, and why?</p>
<p>It looks like this:</p>
<div align="center"><a href="http://en.wikipedia.org/wiki/Wiener_process#Brownian_scaling"><img src="https://i1.wp.com/upload.wikimedia.org/wikipedia/commons/2/2a/Wiener_process_animated.gif" /></a>
</div>
<p>Here we are zooming in on closer and closer, while rescaling the vertical axis as well.  We see that Brownian noise is self-similar: if <img src='https://s0.wp.com/latex.php?latex=W%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='W(t)' title='W(t)' class='latex' /> is Brownian noise, so is <img src='https://s0.wp.com/latex.php?latex=W%28c+t%29%2F%5Csqrt%7Bc%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='W(c t)/&#92;sqrt{c}' title='W(c t)/&#92;sqrt{c}' class='latex' /> for all <img src='https://s0.wp.com/latex.php?latex=c+%3E+0&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='c &gt; 0' title='c &gt; 0' class='latex' />.</p>
<p>More importantly for us, Brownian noise is the solution of this differential equation:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Cfrac%7Bd+W%7D%7Bd+t%7D+%3D+w%28t%29+%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;frac{d W}{d t} = w(t) } ' title='&#92;displaystyle{ &#92;frac{d W}{d t} = w(t) } ' class='latex' /></p>
<p>where <img src='https://s0.wp.com/latex.php?latex=w%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='w(t)' title='w(t)' class='latex' /> is white noise.  This is essentially true by definition, but making it rigorous takes some work.  More fancy stochastic differential equations </p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Cfrac%7Bd+x%7D%7Bd+t%7D+%3D+f%28x%2C+t%29+%2B+w%28t%29+%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;frac{d x}{d t} = f(x, t) + w(t) } ' title='&#92;displaystyle{ &#92;frac{d x}{d t} = f(x, t) + w(t) } ' class='latex' /></p>
<p>take even more work to rigorously formulate and solve.  You can read about them here:</p>
<p>&bull; <a href="http://www.azimuthproject.org/azimuth/show/Stochastic+differential+equation">Stochastic differential equation</a>, Azimuth Library.</p>
<p>It&#8217;s actually much easier to explain the <i>difference equations</i> we use to <i>approximately</i> solve these stochastic differential equation on the computer.  Suppose we discretize time into steps like this:</p>
<p><img src='https://s0.wp.com/latex.php?latex=t_i+%3D+i+%5CDelta+t&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='t_i = i &#92;Delta t' title='t_i = i &#92;Delta t' class='latex' /></p>
<p>where <img src='https://s0.wp.com/latex.php?latex=%5CDelta+t+%3E+0&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;Delta t &gt; 0' title='&#92;Delta t &gt; 0' class='latex' /> is some fixed number, our &#8216;time step&#8217;.  Then we can define</p>
<p><img src='https://s0.wp.com/latex.php?latex=x%28t_%7Bi%2B1%7D%29+%3D+x%28t_i%29+%2B+f%28x%28t_i%29%2C+t_i%29+%5C%3B+%5CDelta+t+%2B+w_i+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='x(t_{i+1}) = x(t_i) + f(x(t_i), t_i) &#92;; &#92;Delta t + w_i ' title='x(t_{i+1}) = x(t_i) + f(x(t_i), t_i) &#92;; &#92;Delta t + w_i ' class='latex' /></p>
<p>where <img src='https://s0.wp.com/latex.php?latex=w_i&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='w_i' title='w_i' class='latex' /> are independent Gaussian random variables with mean zero and standard deviation </p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Csqrt%7B+%5CDelta+t%7D&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;sqrt{ &#92;Delta t}' title='&#92;sqrt{ &#92;Delta t}' class='latex' /></p>
<p>The square root in this formula comes from the definition I gave of white noise.</p>
<p>If we use a random number generator to crank out random numbers <img src='https://s0.wp.com/latex.php?latex=w_i&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='w_i' title='w_i' class='latex' /> distributed in this way, we can write a program to work out the numbers <img src='https://s0.wp.com/latex.php?latex=x%28t_i%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='x(t_i)' title='x(t_i)' class='latex' /> if we are given some initial value <img src='https://s0.wp.com/latex.php?latex=x%280%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='x(0)' title='x(0)' class='latex' />.  And if the time step <img src='https://s0.wp.com/latex.php?latex=%5CDelta+t&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;Delta t' title='&#92;Delta t' class='latex' /> is small enough, we can hope to get a &#8216;good approximation to the true solution&#8217;.  Of course defining what we mean by a &#8216;good approximation&#8217; is tricky here&#8230; but I think it&#8217;s more important to just plunge in and see what happens, to get a feel for what&#8217;s going on here.</p>
<h3> Stochastic resonance </h3>
<p>Let&#8217;s do an example of this equation:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Cfrac%7Bd+x%7D%7Bd+t%7D+%3D+f%28x%2C+t%29+%2B+w%28t%29+%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;frac{d x}{d t} = f(x, t) + w(t) } ' title='&#92;displaystyle{ &#92;frac{d x}{d t} = f(x, t) + w(t) } ' class='latex' /></p>
<p>which exhibits &#8216;stochastic resonance&#8217;.  Namely:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Cfrac%7Bd+x%7D%7Bd+t%7D+%3D+x%28t%29+-+x%28t%29%5E3+%2B+A+%5C%3B++%5Csin%28t%29++%2B+%5Csqrt%7B2D%7D+w%28t%29+%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;frac{d x}{d t} = x(t) - x(t)^3 + A &#92;;  &#92;sin(t)  + &#92;sqrt{2D} w(t) } ' title='&#92;displaystyle{ &#92;frac{d x}{d t} = x(t) - x(t)^3 + A &#92;;  &#92;sin(t)  + &#92;sqrt{2D} w(t) } ' class='latex' /></p>
<p>Here <img src='https://s0.wp.com/latex.php?latex=A&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='A' title='A' class='latex' /> and <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' /> are constants we get to choose.  If we set them both to zero we get:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Cfrac%7Bd+x%7D%7Bd+t%7D+%3D+x%28t%29+-+x%28t%29%5E3+%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;frac{d x}{d t} = x(t) - x(t)^3 } ' title='&#92;displaystyle{ &#92;frac{d x}{d t} = x(t) - x(t)^3 } ' class='latex' /></p>
<p>This has stable equilibrium solutions at <img src='https://s0.wp.com/latex.php?latex=x+%3D+%5Cpm+1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='x = &#92;pm 1' title='x = &#92;pm 1' class='latex' /> and an unstable equilibrium in between at <img src='https://s0.wp.com/latex.php?latex=x+%3D+0&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='x = 0' title='x = 0' class='latex' />.  So, this is a bistable model similar to the one we&#8217;ve been studying, but mathematically simpler!  </p>
<p>Then we can add an oscillating time-dependent term:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Cfrac%7Bd+x%7D%7Bd+t%7D+%3D+x%28t%29+-+x%28t%29%5E3+%2B+A+%5C%3B++%5Csin%28t%29+%7D++&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;frac{d x}{d t} = x(t) - x(t)^3 + A &#92;;  &#92;sin(t) }  ' title='&#92;displaystyle{ &#92;frac{d x}{d t} = x(t) - x(t)^3 + A &#92;;  &#92;sin(t) }  ' class='latex' /></p>
<p>which wiggles the system back and forth.  This can make it jump from one equilibrium to another.  </p>
<p>And then we can add on noise:</p>
<p><img src='https://s0.wp.com/latex.php?latex=%5Cdisplaystyle%7B+%5Cfrac%7Bd+x%7D%7Bd+t%7D+%3D+x%28t%29+-+x%28t%29%5E3+%2B+A+%5C%3B++%5Csin%28t%29++%2B+%5Csqrt%7B2D%7D+w%28t%29+%7D+&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='&#92;displaystyle{ &#92;frac{d x}{d t} = x(t) - x(t)^3 + A &#92;;  &#92;sin(t)  + &#92;sqrt{2D} w(t) } ' title='&#92;displaystyle{ &#92;frac{d x}{d t} = x(t) - x(t)^3 + A &#92;;  &#92;sin(t)  + &#92;sqrt{2D} w(t) } ' class='latex' /></p>
<p>Let&#8217;s see what the solutions look like!</p>
<p>In the following graphs, the green curve is <img src='https://s0.wp.com/latex.php?latex=A+%5Csin%28t%29%2C&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='A &#92;sin(t),' title='A &#92;sin(t),' class='latex' />, while the red curve is <img src='https://s0.wp.com/latex.php?latex=x%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='x(t)' title='x(t)' class='latex' />.  Here is a simulation with a low level of noise:</p>
<div align="center">
<img width="450" src="https://i1.wp.com/www.azimuthproject.org/azimuth/files/stochres_weaknoise.jpg" alt="low noise level" />
</div>
<p>As you can see, within the time of the simulation there is no transition from the stable state at 1 to the one at -1. If we were doing a climate model, this would be like the Earth staying in the warm state.</p>
<p>Here is a simulation with a high noise level:</p>
<div align="center">
<img width="450" src="https://i1.wp.com/math.ucr.edu/home/baez/Stochastic_Resonance_High_Noise_Level.JPG" alt="high noise level" />
</div>
<p>The solution <img src='https://s0.wp.com/latex.php?latex=x%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='x(t)' title='x(t)' class='latex' /> jumps around wildly. By inspecting the graph with your eyes only, you don&#8217;t see any pattern in it, do you?</p>
<p>But finally, here is a simulation where the noise level is not too small, and not too big:</p>
<div align="center">
<img width="450" src="https://i0.wp.com/www.azimuthproject.org/azimuth/files/stochres_intermednoise.jpg" alt="high noise level" />
</div>
<p>Here we see the noise helping the solution <img src='https://s0.wp.com/latex.php?latex=x%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='x(t)' title='x(t)' class='latex' /> hops from around <img src='https://s0.wp.com/latex.php?latex=x+%3D+-1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='x = -1' title='x = -1' class='latex' /> to <img src='https://s0.wp.com/latex.php?latex=x+%3D+1&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='x = 1' title='x = 1' class='latex' />, or vice versa.  The solution <img src='https://s0.wp.com/latex.php?latex=x%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='x(t)' title='x(t)' class='latex' /> is not at all &#8216;periodic&#8217;&#8212;it&#8217;s quite random.  But still, it tends to hop back and forth thanks to the combination of the sinusoidal term <img src='https://s0.wp.com/latex.php?latex=A+%5Csin%28t%29&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='A &#92;sin(t)' title='A &#92;sin(t)' class='latex' /> and the noise.</p>
<p>Glyn Adgie, Allan Erskine, Jim Stuttard and Tim van Beek have created an online model that lets you solve this stochastic differential equation for different values of <img src='https://s0.wp.com/latex.php?latex=A&#038;bg=ffffff&#038;fg=000&#038;s=0' alt='A' title='A' class='latex' /> and <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' />.  You can try it here:</p>
<p>&bull; <a href="http://www.adgie.f9.co.uk/azimuth/stochastic-resonance/Javascript/StochasticResonanceEuler.html">Stochastic resonance example</a>.</p>
<p>You can change the values using the sliders under the graphic and see what happens. You can also choose different &#8216;random seeds&#8217;, which means that the random numbers used in the simulation will be different.</p>
<p>To read more about stochastic resonance, go here:</p>
<p>&bull; <a href="http://www.azimuthproject.org/azimuth/show/Stochastic+resonance">Stochastic resonance</a>, Azimuth Library.</p>
<p>In future weeks I hope to say more about the actual <i>evidence</i> that stochastic resonance plays a role in our glacial cycles!  It would also be great to go back to our climate model from <a href="https://johncarlosbaez.wordpress.com/2012/11/10/mathematics-and-the-environment-part-6/">last time</a> and add noise.   We&#8217;re working on that.</p>
]]></html><thumbnail_url><![CDATA[https://i2.wp.com/upload.wikimedia.org/wikipedia/commons/thumb/d/d6/White-noise.png/450px-White-noise.png?fit=440%2C330]]></thumbnail_url><thumbnail_height><![CDATA[313]]></thumbnail_height><thumbnail_width><![CDATA[440]]></thumbnail_width></oembed>