<?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_Homework_2</id>
	<title>Physics 434, 2014: Homework 2 - 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_Homework_2"/>
	<link rel="alternate" type="text/html" href="https://nemenmanlab.org/~ilya/index.php?title=Physics_434,_2014:_Homework_2&amp;action=history"/>
	<updated>2026-05-17T08:49:47Z</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:_Homework_2&amp;diff=549&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:_Homework_2&amp;diff=549&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:_Homework_2&amp;diff=548&amp;oldid=prev</id>
		<title>nemenman&gt;Ilya at 13:57, 11 September 2014</title>
		<link rel="alternate" type="text/html" href="https://nemenmanlab.org/~ilya/index.php?title=Physics_434,_2014:_Homework_2&amp;diff=548&amp;oldid=prev"/>
		<updated>2014-09-11T13:57:12Z</updated>

		<summary type="html">&lt;p&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;
Please turn on the assignment either as a PDF file to me by email, or as a printout to my mailbox in physics. Detailed derivations (with explanations) and calculations must be present for the problems for full credit.&lt;br /&gt;
&lt;br /&gt;
#Let &amp;lt;math&amp;gt;\{a,b,c\}&amp;lt;/math&amp;gt; be three possible outcomes of an experiment. Let &amp;lt;math&amp;gt;p(a) = 1/2,\,p(b) = 1/3&amp;lt;/math&amp;gt;. What is the probability that &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; or &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt; will happen? That &amp;lt;math&amp;gt;c&amp;lt;/math&amp;gt; won't happen?&lt;br /&gt;
#Let's calculate some expectation values:&lt;br /&gt;
#*Calculate the mean and the variance of a binomial distribution.&lt;br /&gt;
#*Calculate the mean and the variance of a Poisson distribution, &amp;lt;math&amp;gt;P(n|n_0)=\frac{n_0^n}{n!}e^{-n_0}&amp;lt;/math&amp;gt;, directly, without using MGF method.&lt;br /&gt;
#In class we discussed an approximation for the motion of ''E. coli'', where the bacterium, moving in two dimensions, would tumble and reorient completely, moving with the velocity of &amp;lt;math&amp;gt;v&amp;lt;/math&amp;gt; between the tumbles. Suppose the ''E. coli'' tumbles at random times, and the distribution of intervals between two successive tumbles is the exponential distribution with the mean &amp;lt;math&amp;gt;\tau&amp;lt;/math&amp;gt;.&lt;br /&gt;
#*What is the distribution of the number of times the ''E.coli'' will tumble over a time &amp;lt;math&amp;gt; T&amp;lt;/math&amp;gt;.&lt;br /&gt;
#*Remember that means and variances of independent random variables add and use this fact repeatedly to calculate the mean and the variance of the displacement of ''E. coli'' in this model. How does the variance of the displacement grow with time?&lt;br /&gt;
#Let's verify the law of large numbers numerically (that is, let's show that the deviation between an expectation value and a sample mean decreases as &amp;lt;math&amp;gt;\sim 1/\sqrt{N}&amp;lt;/math&amp;gt;. Take a variable that can have three outcomes, with probabilities as in Problem 1 above. Using Matlab/Octave, generate 10 random realizations of this variable. Calculate the observed frequency of the outcome &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;. What is the squared difference of the frequency from the true probability of 1/2?  Repeat the procedure 100 times to get a good estimate of the variance of the difference between the frequency and the probability. Now do the same for 30, 100, 300, 1000, 3000, and 10000 samples from the distribution. Plot the variance of the frequency-probability difference vs.\ the number of samples. Do you see the expected 1/N trend?&lt;br /&gt;
#Do problem 3.4 (page 83) ''Gambler's Fallacy'' in Nelson's book.&lt;br /&gt;
#Do problem 3.12 (page 85) ''Effect of New Information'' in Nelson's book.&lt;br /&gt;
#Do problem 4.3 (page 108) ''Gene Frequency'' in Nelson's book.&lt;br /&gt;
#'''This problem will not be graded for undergraduates''', but it is required for '''Graduate Students''' -- it's again an exercise to get you up to speed with Matlab/Octave quicker. Finish the problem 4.11 (page 111) ''Luria Delbruck experiment'' in Nelson's book, which we started in class. Don't write your own function to generate Poisson random numbers but use the poissrnd.m function (if your Matlab installation has it). &lt;br /&gt;
#'''This problem will not be graded''' -- it's again an exercise to get you up to speed with Matlab/Octave quicker. Write a Matlab code that would generate random ''E. coli'' trajectories as described in Problem 3: constant velocity motion, exponential waiting time between tumbles, and random re-orientation during a tumble. Make sure your code can build trajectories of arbitrary durations. &lt;br /&gt;
#'''For Graduate Students''': If we complicate the ''E. coli'' motion model, and say that the velocity for each run is sampled independently from a Gaussian distribution &amp;lt;math&amp;gt;N(v_0,\sigma_v^2)&amp;lt;/math&amp;gt;, how does the variance grow with time then? How should the bacterium move to make the variance grow faster than linearly with the time?&lt;/div&gt;</summary>
		<author><name>nemenman&gt;Ilya</name></author>
		
	</entry>
</feed>