Difference between revisions of "Physics 434, 2014: Continuous randomness"

From Ilya Nemenman: Theoretical Biophysics @ Emory
Jump to: navigation, search
m (1 revision imported)
(Main lecture)
Line 18: Line 18:
 
Probability density satisfy most of the same properties that we discussed for probability distributions. For example, they must normalize to one: <math>\int dx p(x) =1</math>. One distinction of probabilities is that probability densities can actually be larger than one (as long as they normalize). Joint, marginal, and conditional probability densities can be defines just like probabilities. Expectation values and, in particular, moments can be defined similarly, by replacing summations with integrals.
 
Probability density satisfy most of the same properties that we discussed for probability distributions. For example, they must normalize to one: <math>\int dx p(x) =1</math>. One distinction of probabilities is that probability densities can actually be larger than one (as long as they normalize). Joint, marginal, and conditional probability densities can be defines just like probabilities. Expectation values and, in particular, moments can be defined similarly, by replacing summations with integrals.
  
Additionally, for continuous variables (or more generally, for continuous or discrete ordinal variables), one can define the commutative distribution, which is the probability that a random draw will be smaller than <math>x</math>, <math>C(x)=\int_{-\infty}^x P(x')dx'</math>.
+
Additionally, for continuous variables (or more generally, for continuous or discrete ordinal variables), one can define the cumulative distribution, which is the probability that a random draw will be smaller than <math>x</math>, <math>C(x)=\int_{-\infty}^x P(x')dx'</math>.
  
 
===Specific probability distributions===
 
===Specific probability distributions===

Revision as of 13:27, 14 April 2019

Emory Logo

Back to the main Teaching page.

Back to Physics 434, 2014: Information Processing in Biology.

General Notes

In these lectures, we are extending our ideas of randomness from discrete to continuous variables. After introducing basic concepts, we study some specific useful probability distributions. In the course of this whole lecture block, we should be thinking about E. coli chemotaxis in the background -- all of these concepts will be applicable, when answering questions like: What is the duration of a single run? How far away would the E. coli move after many runs? etc.

Here we are largely following Chapter 5 in the Nelson's book. However, an additional very good introduction to probability theory can be found in Introduction to Probability by CM Grinstead and JL Snell.

Since there are good books to follow here, the notes are not very detailed.

Main lecture

Introduction

Some random variables that we discussed were discrete, like heads or tails of a coin toss, or existence or non-existence of a mutation. However, other random variables can be continuous. For example, the heigh of people in the room, or a position of an E. coli in an experiment, or a time to neural action potential -- all of these variables are, in principle, continuous. It makes little sense to ask what is the probability that an individual has exactly a certain height; every two people in the room will have the height which is different, if only by a bit. it does make sense, however, to ask what is the probability that the height of a person is close to a certain number, within from it. Clearly, in the limit of small , this probability will be proportional to itself, . Thus, having defined the set of possible outcomes of an experiment as a real number, we can define a probability density, as a double limit -- a limit of frequencies of observing a certain interval after many independent draws, and the limit of taking the interval size small, :

.

Probability density satisfy most of the same properties that we discussed for probability distributions. For example, they must normalize to one: . One distinction of probabilities is that probability densities can actually be larger than one (as long as they normalize). Joint, marginal, and conditional probability densities can be defines just like probabilities. Expectation values and, in particular, moments can be defined similarly, by replacing summations with integrals.

Additionally, for continuous variables (or more generally, for continuous or discrete ordinal variables), one can define the cumulative distribution, which is the probability that a random draw will be smaller than , .

Specific probability distributions

Just like for the discrete case, there are some continuous distributions that happen more commonly than others, and are thus more useful. These include

  • Uniform probability density. An example of this would a probability of E.coli tumbling at any moment of an interval of duration . Then . Note that uniform random numbers between 0 and 1 are generated in Matlab using the function rand(). .
  • Exponential probability density: distribution of time to the next E. coli tumble event, if such tumbles happen at a constant tumbling rate. You can take the geometric distribution, and take a limit of very many time steps, and small probability of tumbling at any given time. As a result, we get . . Notice also the connection between exponential, uniform, and Poisson distribution: an even that happens at a uniform rate happens with an exponential waiting time between to successive events, and a number of such events in a fixed period of time is Poisson.
  • Finally, taking a Poisson distribution with the large parameter , we see that it starts looking similarly to another probability distribution that many of you have seen before, namely the normal, or the Gaussian distribution: (for the normal distribution resulting from the Poisson, we have a specific relation between the mean and the variance; namely, .
  • One can also define a multivariate extension of the normal distribution: , here is the covariance matrix
  • To connect probabilistic and deterministic calculus, we can define a random variable with a probability distribution that forces it to take just one value. This is called a -distribution: . In other words, . An interesting property of the distribution is that . In other words, convolving with a -distribution simply replaces the variable name.

Reparameterization and generation of continuous random variables

Suppose we define a new variable . The number of counts that land into a certain interval is the same, irrespective of whether this interval is indexed by or by . Therefore, , or . This can be used to generate continuous random variables with different probability distributions. For example, suppose that is uniform between 0 and 1. Then . If I want to generate and exponentially distributed , I need to find such a function \left|\frac{dx}{dx'}\right|=\exp(-x')</math>. One can see that , or , satisfies this condition. In other words, to generate an exponentially distributed random variable we take a log of a uniform random number. More generally, one can generate other random variables (e.g., Cauchy, as we do in a homework), by finding an reparameterization with an appropriate derivative.

More generally, for multi-dimensional variables