1 of 37

BI 559 Lecture 4: differential equations & statistics

2 of 37

BI 559 Lecture 4: differential equations & statistics

Today

  • Differential equations
    • Setting up equations that describe how a system changes in time
    • For example a growing population of bacteria or a cell making more copies of mRNA for a specific gene�
  • Statistics
    • How do you describe and predict the properties of a population?
    • Specifically we’ll talk about probability distributions
      • The Poisson distribution describes multiple systems we’ll encounter in class

3 of 37

Probability & statistics—why?

Throughout the course, we will study groups of microbes like the one on the left.

Statistics lets us describe the properties of these groups.

Questions we will be interested in:

  • What is the distribution of the number of mRNAs per cell?
  • What is the proportion of resistant genetic mutants in a population of bacteria?

By knowing something about the math underlying these statistical distributions, we will gain insight into the biology of the above scenarios!

B. Subtilis cells

4 of 37

Last time: why should we care about derivatives?

derivative

Low cell density > little growth

High cell density > little growth

intermediate cell density > high growth

5 of 37

Last time: why should we care about derivatives?

derivative

low growth

low growth

high growth

Can we write an equation that relates the density of bacteria to the growth rate?

 

  • Solve the equation to find the dynamics of the system
  • See what the parameter values say about the system

exponential doubling time

saturating cell density

“differential equation”

6 of 37

What differential equations will we look at?

 

rate of population growth

constant

population size/density

 

rate of change of protein concentration

translation rate

protein conc.

mRNA conc.

degradation rate

DNA

mRNA

protein

7 of 37

How do we solve differential equations? Python of course!

 

Generally, we will have an equation and an initial condition, for example the initial condition may be the bacterial population size or density at the beginning of an experiment.

 

 

 

 

 

 

 

 

 

 

8 of 37

Next: probability and statistics

9 of 37

Two key statistical measures of a population: mean and variance

Mean: the center of the data

Variance: how spread out the data is

 

 

 

 

 

10 of 37

Mean and standard deviation

protein concentration

time

 

 

 

 

Protein 1

Protein 2

The two proteins have different mean concentrations in the cell, but the same standard deviation.

11 of 37

Probability distributions

mean = 7.26 lbs

std. dev ≈ 1 lbs

Graphs or formulas that describe how a certain property of a population is distributed—the probability of finding a certain value in the population!

On the right is an example of a very common distribution: the normal distribution.

(also called a Gaussian or sometimes a bell curve)

12 of 37

The Poisson distribution: independent random events

Example: chocolate chip cookies

  • We’re making 12 cookies with 120 chocolate chips
  • The average number of chocolate chips per cookie will be 10. But will every cookie have 10 chocolate chips? No.
  • What do we expect to be the distribution of numbers of chocolate chips per cookie?
  • The Poisson distribution!
  • First I’ll test it out, then I’ll show you the mathematical form of the Poisson distribution

13 of 37

Chocolate chip cookies

Our experiment:

  • 2 equal volumes of cookie dough
    • One gets 300 chocolate chips
    • Other gets 90 chocolate chips
    • According to the recipe, should result in averages of 10 chips/cookie and 3 chips/cookie
  • Make cookies of equal volume
  • Count chips per cookie
  • Make a histogram of chips/cookie
  • Compare to a Poisson distribution with the same mean chips/cookie

14 of 37

Chocolate chip cookies

90 total chocolate chips

300 total chocolate chips

15 of 37

Chocolate chip cookies

90 chocolate chips, 20 cookies → 4.5 chips/cookie

300 chocolate chips, 21 cookies → 14.3 chips/cookie

16 of 37

Chocolate chip cookies

Attempt to count chips in each cookie

1

2

3

Et cetera . . .

Flip over; repeat

Note: do miss some chocolate chips that are on the interior of cookies. Experimental limitation!

17 of 37

Chocolate chip cookies

18 of 37

Chocolate chip cookies

Not too bad, right!?

19 of 37

What is the formula for the Poisson distribution?

First, you need to know the mean, for example the mean number of chips per cookie.

 

 

Let’s look at the distribution for several values of λ.

20 of 37

21 of 37

22 of 37

23 of 37

24 of 37

Note: for the Poisson distribution, the mean is equal to the variance!

Now, some quick history . . .

mean = 10

 

25 of 37

Prussia

Duchy and state on the Baltic Sea in what is now Germany and Poland.

Ruled by House of Hohenzollern

Immanuel Kant

J.S. Bach’s Brandenburg Concertos

Ladislaus Bortkiewicz

26 of 37

convert to a probability distribution

Ladislaus’ data

27 of 37

Ladislaus’ data

convert to a probability distribution

Poisson distribution for the same mean!

28 of 37

Why is this important for us?

We saw in lecture 2 that for many genes, we see a very small number of mRNA copies per cell in bacteria.

mRNA

Say there are on average 5 copies of a particular mRNA in a cell.

This is just a population average—what do we expect the distribution of numbers of mRNAs in single cells to be?

Do they all have 5 copies?

Do half have 10 copies and half have 0?

We can predict this distribution with Poisson statistics!

29 of 37

How many mRNAs are in single cells?

mRNA

An mRNA with an average of 5 per cell is a rare “event” where we can predict the mRNA distribution with Poisson statistics.

We will use 5 as our average in the Poisson formula:

 

 

 

 

We can use this formula to plot a full probability distribution!��Let’s do that.

30 of 37

How many mRNAs are in single cells?

On average, cells have 5 copies of this mRNA.

But a few cells will have only 0 or 1!

And a few have 10 or 11!

Let’s look at what we’d expect a population of 20 of these cells to look like!

31 of 37

How many mRNAs are in single cells?

Multiply probability by population 20

(population size)

probability

Expected number

32 of 37

How many mRNAs are in single cells?

mRNA

  • 5 mRNAs per cell on average
  • 20 cells

A gene regulatory system that results in low average copy numbers makes the cells very susceptible to “stochasticity”.

33 of 37

Noise

protein concentration

time

 

 

 

 

 

 

 

34 of 37

“Long-tailed” distributions

The “tail” of a distribution refers to the probability density of values far above the mean.

A distribution is “long-tailed”/”heavy-tailed”/etc if there is a non-zero probability of values very far above the mean.

These values are still extremely rare, so the probability densities are very low, but importantly they are not zero.

This is a short-tailed distribution!

There is 0 probability of observing

35 of 37

 

 

mean

mean

36 of 37

Intuition for long-tailed distribution

Short-tailed: height of humans

Some humans are taller than others, but if you pick one of the 7 billion humans at random, you will never find one that is 20 feet tall.

The heights are distributed narrowly around the mean

Long-tailed: height of buildings

Most buildings are houses or similar-sized buildings, but if you pick one at random, you might get the Burj Khalifa in Dubai, which is immensely bigger than your house

The heights have a long tail

Baltimore, MD

Will come into play when we look at rates of mutation in bacteria!

37 of 37

Friday: our first paper presentation!

Wednesday: start bacterial growth!