Difference between revisions of "Physics 380, 2011: Homework 2"
nemenman>Ilya |
m (1 revision imported) |
(No difference)
|
Latest revision as of 11:28, 4 July 2018
Back to the main Teaching page.
Back to Physics 380, 2011: Information Processing in Biology.
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.
- Let be three possible outcomes of an experiment. Let . What is the probability that or will happen? That won't happen?
- Calculate the cumulant generating function of an exponential distribution , and use it to calculate the cumulants of the exponential distribution. Graduate students: Also calculate the mean and the variance of a Poisson distribution .
- An E. coli moving on a 2-dimensional surface is being tracked in an experiment. It chooses a direction at random and runs, then tumbles and reorients randomly, runs for the second time, tumbles yet again, and keeps running. What is the probability that all three of the directions that it chooses all fall not farther than from each other. That is, what is the probability that the bacterium moves in roughly speaking the same direction all three times? For graduate students: Can you generalize this for tumbles, instead of three?
- 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 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 .
- What is the distribution of the number of times the E.coli will tumble over a time .
- 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?
- For Graduate Students: If we complicate the model even further, and say that the velocity for each run is sampled independently from a Gaussian distribution , how does the variance grow with time then? How should the bacterium move to make the variance grow faster than linearly with the time?
- Let's verify the law of large numbers numerically. 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 . 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?
- 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.