<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nemenmanlab.org/~ilya/index.php?action=history&amp;feed=atom&amp;title=Physics_434%2C_2014%3A_Central_limit_theorem</id>
	<title>Physics 434, 2014: Central limit theorem - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nemenmanlab.org/~ilya/index.php?action=history&amp;feed=atom&amp;title=Physics_434%2C_2014%3A_Central_limit_theorem"/>
	<link rel="alternate" type="text/html" href="https://nemenmanlab.org/~ilya/index.php?title=Physics_434,_2014:_Central_limit_theorem&amp;action=history"/>
	<updated>2026-05-17T08:51:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://nemenmanlab.org/~ilya/index.php?title=Physics_434,_2014:_Central_limit_theorem&amp;diff=563&amp;oldid=prev</id>
		<title>Ilya: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://nemenmanlab.org/~ilya/index.php?title=Physics_434,_2014:_Central_limit_theorem&amp;diff=563&amp;oldid=prev"/>
		<updated>2018-07-04T16:28:43Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 16:28, 4 July 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Ilya</name></author>
		
	</entry>
	<entry>
		<id>https://nemenmanlab.org/~ilya/index.php?title=Physics_434,_2014:_Central_limit_theorem&amp;diff=562&amp;oldid=prev</id>
		<title>nemenman&gt;Ilya: /* Simulations */</title>
		<link rel="alternate" type="text/html" href="https://nemenmanlab.org/~ilya/index.php?title=Physics_434,_2014:_Central_limit_theorem&amp;diff=562&amp;oldid=prev"/>
		<updated>2014-10-27T13:38:33Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Simulations&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{PHYS434-2014}}&lt;br /&gt;
&lt;br /&gt;
The '''Central Limit Theorem''' will be a crucial tool for us in later studies of random walk, diffusion, and related phenomena. It also explains why we are so fascinated with Gaussian distributions. Roughly speaking, the theorem states that a sum of many i.i.d. (independent and identically distributed) random variables with finite variances approaches a Gaussian distribution. In my opinion this is one of the most remarkable laws in the probability theory. It is supposed to explains why experimental noises are often Gaussian distributed. It also provides an explanation for why universalities in physical laws exist -- that is, why distinct, seemingly very different phenomena are often explained by the same simplified physical models. Richard Feynman, in his Messenger Lectures, has a very nice discussion of the subject.&lt;br /&gt;
&lt;br /&gt;
===Theorem statement===&lt;br /&gt;
More precisely, suppose &amp;lt;math&amp;gt;x_i&amp;lt;/math&amp;gt; are i.i.d. random variables with mean &amp;lt;math&amp;gt;\mu&amp;lt;/math&amp;gt; and variance &amp;lt;math&amp;gt;\sigma^2&amp;lt;/math&amp;gt;. Then the CLT says that &amp;lt;math&amp;gt;S_N=\frac{1}{\sqrt{N}}\sum_{i=1}^N \frac{x_i-\mu}{\sigma}=\frac{1}{\sqrt{N}}\sum_{i=1}^N \xi_i&amp;lt;/math&amp;gt; is distributed according to &amp;lt;math&amp;gt;N(0,1)&amp;lt;/math&amp;gt; (called the ''standard'' normal distribution), provided &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; is sufficiently large. Before proving this, we need to learn, as an aside, how to do Gaussian integrals.&lt;br /&gt;
&lt;br /&gt;
===The Gaussian Integral===&lt;br /&gt;
Suppose one wants to calculate &amp;lt;math&amp;gt;Z=\int_{-\infty}^{+\infty}dx \exp(-x^2/2)&amp;lt;/math&amp;gt;. One writes it as &amp;lt;math&amp;gt;Z=\sqrt{Z^2}=\left[\int_{-\infty}^{+\infty}dx \exp(-x^2/2) \int_{-\infty}^{+\infty}dy \exp(-y^2/2)\right]^{1/2}&amp;lt;/math&amp;gt;  &amp;lt;math&amp;gt;=\left[\int_{-\infty}^{+\infty}\int_{-\infty}^{+\infty}dxdy \exp(-x^2/2-y^2/2)\right]^{1/2}=\left[\int_{-\infty}^{+\infty}\int_{0}^{2\pi}rdrd\phi \exp(-r^2/2)\right]^{1/2}&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;= \left[2\pi\int_{-\infty}^{+\infty}d(r^2/2) \exp(-r^2)\right]^{1/2}=\sqrt{2\pi}&amp;lt;/math&amp;gt;. That is, &amp;lt;math&amp;gt;Z=\sqrt{2\pi}&amp;lt;/math&amp;gt;. I other words, the Gaussian probability distribution &amp;lt;math&amp;gt; P(x)=\frac{1}{\sqrt{2\pi\sigma^2}}\exp\left[-(x-\mu)^2/(2\sigma^2)\right]&amp;lt;/math&amp;gt;, indeed, normalizes to one.&lt;br /&gt;
&lt;br /&gt;
Suppose now we want to calculate the mean or the variance of the Gaussian distribution, or other moments or cumulants. It turns out that it easier to do this by first calculating its MGF (or the CGF), and then taking the derivatives. &amp;lt;math&amp;gt;M_{\rm G}(\lambda)=\frac{1}{\sqrt{2\pi\sigma^2}}\int_{-\infty}^{+\infty}dx e^{-(x-\mu)^2/(2\sigma^2)}e^{\lambda x}&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;=\frac{1}{\sqrt{2\pi\sigma^2}}\int_{-\infty}^{+\infty}dx e^{-(x-\mu)^2/(2\sigma^2)+\lambda x}=\frac{1}{\sqrt{2\pi\sigma^2}}\int_{-\infty}^{+\infty}dx e^{-(x-\mu)^2/(2\sigma^2)+\lambda x}=\frac{1}{\sqrt{2\pi\sigma^2}}\int_{-\infty}^{+\infty}dx e^{-(x-(\mu+\lambda\sigma^2))^2/(2\sigma^2)+\lambda \mu+\lambda^2\sigma^2/2}&amp;lt;/math&amp;gt; &amp;lt;math&amp;gt;=e^{\lambda\mu+\lambda^2\sigma^2/2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
In other words, the Moment Generating Function of a Gaussian distribution also has a polynomial of the order two in the exponent.&lt;br /&gt;
&lt;br /&gt;
===The Central Limit Theorem===&lt;br /&gt;
We prove only a special case of this theorem, assuming that none of the cumulants of the i.i.d. variables is infinite, and hence the moment generating functions exist. This is a stronger assumption then the finiteness of variances, but this will be sufficient for our purposes. Remember that, for independent variables, MGFs multiply (and CGFs add). Thus &amp;lt;math&amp;gt;M_{S_N}(\lambda)=\prod_{i=1}^N M_{\xi_i/\sqrt{N}}(\lambda)=\prod_{i=1}^Ne^{\lambda^2\sigma_i^2/(2N)}=e^{\lambda^2\sigma^2/2}&amp;lt;/math&amp;gt;, which proves the theorem.&lt;br /&gt;
&lt;br /&gt;
===Generalizations===&lt;br /&gt;
The theorem holds also for the following cases:&lt;br /&gt;
*If the &amp;lt;math&amp;gt;N&amp;lt;/math&amp;gt; variables have different variances and means, but all variances are bounded. Convergence will be slower though.&lt;br /&gt;
*If only the first two moments of the constituent variables are defined, but the others are not.&lt;br /&gt;
In the case when the variance of the constituent variables is not defined, the central limit distribution is not a Gaussian. Some hints about what it would be were given in a homework problem. Namely, a sum of two Lorentzian variables is also a Lorentzian, suggesting that the Lorentzian is also a limit distribution of some sort. Indeed, there's a whole class of distributions with power law tails, which are limit distributions for sums of variables with power law tails.&lt;br /&gt;
&lt;br /&gt;
===Simulations===&lt;br /&gt;
The attached code does numerical simulation of the CLT for sums of many exponential or binary variables: [[media:CLT.m| CLT.m]]&lt;br /&gt;
&lt;br /&gt;
Relating this back to our favorite ''E. coli'', we notice thus that the motion of the bacterium consists of many run-tumbles steps, each of which has a finite variance. Thus the probability distribution of end points of ''E. coli'' motion over a certain long period of time is a Gaussian. To illustrate this, we will show in a homework that &amp;lt;math&amp;gt;\langle x^2\rangle\propto t&amp;lt;/math&amp;gt; for ''E. coli''. It's a ''diffusive'' motion as well, just like diffision of small molecules. We demonstrate this by numerical simulations (homework, and also see this [[media:ecoli.m| Matlab code]].)&lt;/div&gt;</summary>
		<author><name>nemenman&gt;Ilya</name></author>
		
	</entry>
</feed>