{ "cells": [ { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "slide" }, "tags": [] }, "source": [ "# Fluctuation Test" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" }, "tags": [] }, "source": [ "In this notebook, we will simulate a virtual experiment mimicking that of Luria & Delbruck (1943) on bacterial resistance to phage treatment. In this classic experiment, they exposed bacterial cells to phages and measured statistics of the number of resistant cells, in order to test whether these resistant cells emerged in response to the treatment or preexisted before that. In the first scenario, mutations would be induced by phages and happen only after the exposure, whereas in the second scenario, mutations would happen irrespectively of the phages and some cells would have become resistant before being exposed. Their experimental results and statistical analyses confirmed the second scenario, which helped establish that genetic mutations occur randomly, as we now know since they are caused by random alterations of DNA." ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" }, "tags": [] }, "source": [ "Let us recapitulate the method they used to distinguish between those two scenarios. Suppose we have grown a large number $N$ of bacterial cells, and we treat them with phages to find that a small fraction $\\mu$ could survive. Therefore, on average we would find $\\mu N$ resistant cells. But if we repeat the experiment, the actual number of resistant cells would fluctuate from replicate to replicate. The key point is to measure the variance of such fluctuation and compare it to the mean ($\\mu N$). Luria & Delbruck argued that, in the first scenario, the number of resistant cells should have a Poisson distribution and hence the variance should be equal to the mean, whereas in the second scenario, the variance should be much larger than the mean. Their data showed a large variance, thus supporting the second scenario. Because the analyses relied on quantifying the fluctuation of event numbers, their method has become known as the \"fluctuation test\"." ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "fragment" }, "tags": [] }, "source": [ "We would like to understand why the two scenarios would have different variance-to-mean ratios. For that purpose, we will simulate the growth of bacterial cells and the occurrence of mutant cells. Remember that in a typical experiment, we start from a single cell and let it grow to a large population by successive cell divisions. For simplicity, we will assume that cells divide synchronously and so the population grows geometrically. We will study the scenarios where resistant mutants appear either after or before the phage exposure." ] }, { "cell_type": "code", "execution_count": 1, "metadata": { "slideshow": { "slide_type": "fragment" }, "tags": [] }, "outputs": [], "source": [ "import numpy as np\n", "import scipy.stats as st\n", "import matplotlib.pyplot as plt" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "slide" }, "tags": [] }, "source": [ "## Scenario 1: resistant cells emerge after exposure" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" }, "tags": [] }, "source": [ "In the first scenario, there are no mutants before the cells are treated with phages. Therefore, cells simply grow in numbers and we need to keep track of the number of cells after a given number of generations. When we treat them with phages, each cell has the same probability $\\mu$ of becoming resistant. Here is a Python class that describes such a process." ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "slideshow": { "slide_type": "subslide" }, "tags": [] }, "outputs": [], "source": [ "class MutationAfterExposure:\n", " \"\"\"\n", " simulate the growth of bacterial cells in the scenario where resistant cells appear after exposure.\n", " \"\"\"\n", " \n", " def __init__(self, mu, N0=1):\n", " \"\"\"\n", " initialize experiment, assuming all cells are normal in the beginning.\n", " inputs:\n", " mu: float, probability that a normal cell becomes resistant *after exposure*.\n", " N0: int, initial number of normal cells.\n", " \"\"\"\n", " self.mu = mu\n", " self.N = N0 # number of normal cells\n", " self.M = 0 # number of mutant cells\n", " \n", " def grow(self, gen=1):\n", " \"\"\"\n", " grow cells for a given number of generations.\n", " inputs:\n", " gen: int, number of generations to grow.\n", " \"\"\"\n", " for g in range(gen):\n", " self.N = self.N * 2 # cell division doubles their number in every generation\n", " \n", " def treat(self):\n", " \"\"\"\n", " treat cells, during which each cell has a fixed probability of becoming resistant.\n", " \"\"\"\n", " # ran = np.random.rand(self.N) # draw a random number for each cell\n", " # self.M = np.sum(ran < mu) # a cell becomes resistant if its random number is less than mu\n", " \"\"\"\n", " The above method becomes computationally unfeasible when `self.N` is very large.\n", " Instead, we will use an equivalent method knowing that `self.M` obeys the binomial distribution.\n", " \"\"\"\n", " self.M = np.random.binomial(self.N, self.mu) # draw from a binomial distribution B(N,mu)\n", " self.N = 0 # non-resistant cells die" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" }, "tags": [] }, "source": [ "Now we can simulate an experiment where we grow the cells \"overnight\", which can be about 30 generations. This would give us $N = 2^{30} \\sim 10^9$ cells. Let us assume that the mutation rate is $\\mu = 10^{-7}$. Therefore, on average we should have $\\mu N \\sim 10^2$ resistant cells." ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "slideshow": { "slide_type": "fragment" }, "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "before treatment: number of normal cells = 1073741824, number of resistant cells = 0\n", "after treatment: number of normal cells = 0, number of resistant cells = 99\n" ] } ], "source": [ "mae1 = MutationAfterExposure(1e-7)\n", "mae1.grow(gen=30)\n", "print(f'before treatment: number of normal cells = {mae1.N}, number of resistant cells = {mae1.M}')\n", "mae1.treat()\n", "print(f'after treatment: number of normal cells = {mae1.N}, number of resistant cells = {mae1.M}')" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "fragment" }, "tags": [] }, "source": [ "We see that there was no resistant cells before the treatment, consistent with the first scenario. After the treatment, no normal cells survived, and the number of resistant cells is close to what we expected. If we repeat the simulation again, we will get a slightly different number due to random fluctuations. To collect statistics on the numbers, let us repeat the \"experiment\" many times and calculate the mean and variance." ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "slideshow": { "slide_type": "subslide" }, "tags": [] }, "outputs": [], "source": [ "G = 30 # number of generations to grow\n", "mu = 1e-7 # mutation probability after exposure\n", "\n", "repeats = 1000 # number of repeat experiments\n", "results = [] # collect numbers of resistant cells from experiments\n", "\n", "for r in range(repeats):\n", " mae1 = MutationAfterExposure(mu)\n", " mae1.grow(gen=G)\n", " mae1.treat()\n", " results.append(mae1.M)" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "slideshow": { "slide_type": "fragment" }, "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "mean number of resistant cells = 107.748\n", "variance = 112.04449599999998\n", "variance-to-mean ratio = 1.039875413000705\n" ] } ], "source": [ "mean = np.mean(results) # mean number of resistant cells in an experiment\n", "var = np.var(results) # variance of number of resistant cells among experiments\n", "ratio = var / mean\n", "print(f'mean number of resistant cells = {mean}')\n", "print(f'variance = {var}')\n", "print(f'variance-to-mean ratio = {ratio}')" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" }, "tags": [] }, "source": [ "We see that the variance-to-mean ratio is very close to 1, which signals a Poisson distribution. Mathematically, for $N$ trials with success probability $\\mu$ each, the number of successful trials will obey the binomial distribution (which is what we used in the code above). However, for large $N$ and $\\mu N \\gg 1$, this distribution can be well approximated by a Poisson distribution. Let us plot this distribution." ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "slideshow": { "slide_type": "subslide" }, "tags": [] }, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAY4AAAEGCAYAAABy53LJAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAgAElEQVR4nOzdd3hUZdrH8e+dRkhCbwIBQpcqQijSFQsoRRBWbICivOJiXeuyKLZdFHtbRQUBCyoqRmmCiIAgHaRDwAChlxACIZByv3/MwMaQMoFMzkxyf65rrpw585wzv1GSe55TnkdUFWOMMcZTAU4HMMYY41+scBhjjMkXKxzGGGPyxQqHMcaYfLHCYYwxJl+CnA5QGCpWrKhRUVFOxzDFxJYtWwBo2LChw0mMuTgrV648rKqVsq4vFoUjKiqKFStWOB3DFBNdu3YFYP78+Y7mMOZiicjO7NbboSpjjDH54tXCISLdRWSLiMSKyJPZvF5CRL50v75URKKyvF5TRE6IyKOe7tMYY4x3ea1wiEgg8C7QA2gM3CIijbM0GwokqGo94HXgpSyvvw7MzOc+jTHGeJE3z3G0AWJVdQeAiEwB+gAbM7XpA4x2L08F3hERUVUVkRuBHcDJfO7TGFNMpaamEh8fT0pKitNR/EpoaCiRkZEEBwd71N6b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wAxJ8/O1cZJmj9C+ld6mQ/Edh+kE1gHbJN0PfDlKGSck7QEmU5/tvgisB/qz8RgkxZwYkYg4IKmHuvvwLRFxsIoiEdEn6Qbg22yzTgPLgWuAVySdJ3lNXdnQdCbwjqTahO+p/NgDbJT0JzAf2Exa9hoE9pVQaRf1Jbu1EfFBoWwLcC1pjP4m7cFsyJvyr0uaQvodWU/a72nGSHqbDsXecY0xxlTCS1XGGGMqYcNhjDGmEjYcxhhjKmHDYYwxphI2HMYYYyphw2GMMaYSNhzGGGMq8Q/q4ZHgPfiNtAAAAABJRU5ErkJggg==\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "N = 2**G # number of all cells in an experiment\n", "M = N * mu # expected number of resistant cells\n", "x_array = np.linspace(M-30, M+30, 41).astype(int)\n", "b_array = st.binom.pmf(x_array, N, mu) # calculate the binomial probability mass function\n", "p_array = st.poisson.pmf(x_array, M) # calculate Poisson probability mass function with same mean\n", "\n", "plt.figure()\n", "plt.hist(results, bins=20, density=True, label='data')\n", "plt.axvline(mean, color='k', label='mean')\n", "plt.plot(x_array, b_array, color='b', label='binomial')\n", "plt.plot(x_array, p_array, color='orange', linestyle='--', label='Poisson')\n", "plt.xlabel('number of resistant cells')\n", "plt.ylabel('distribution')\n", "plt.legend()\n", "plt.show()" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "fragment" }, "tags": [] }, "source": [ "Thus, in the first scenario where resistant cells emerge after exposure, the number of resistant cells from repeat experiments would show a Poisson distribution, having a variance-to-mean ratio close to 1." ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "slide" }, "tags": [] }, "source": [ "## Scenario 2: resistant cells appear before exposure" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" }, "tags": [] }, "source": [ "Now consider the second scenario, where resistant mutants arise spontaneously regardless of the phage. This means that resistant cells can appear anytime during the growth of the bacterial population, even before encountering phages. Let us denote by $\\nu$ the probability that a normal cell mutates and becomes resistant during its cell cycle (which can be different from $\\mu$ above). Note that, whenever a cell becomes resistant, *all* its descendants will also be resistant. We assume that the resistant cells grow at the same rate as the normal cells, so the population grows geometrically regardless of its composition. To simulate the growth process in this scenario, we need to keep track of the numbers of both normal and resistant cells." ] }, { "cell_type": "code", "execution_count": 7, "metadata": { "slideshow": { "slide_type": "subslide" }, "tags": [] }, "outputs": [], "source": [ "class MutationBeforeExposure:\n", " \"\"\"\n", " simulate the growth of bacterial cells in the scenario where resistant cells can appear anytime before exposure.\n", " \"\"\"\n", " \n", " def __init__(self, nu, N0=1):\n", " \"\"\"\n", " initialize experiment, assuming all cells are normal in the beginning.\n", " inputs:\n", " nu: float, probability that a normal cell becomes resistant *during its generation*.\n", " N0: int, initial number of normal cells.\n", " \"\"\"\n", " self.nu = nu\n", " self.N = N0 # number of normal cells\n", " self.M = 0 # number of mutant cells\n", " \n", " def grow(self, gen=1):\n", " \"\"\"\n", " grow cells for a given number of generations.\n", " inputs:\n", " gen: int, number of generations to grow.\n", " \"\"\"\n", " for g in range(gen):\n", " self.N = self.N * 2 # normal cells divide, some may mutate afterwards\n", " self.M = self.M * 2 # mutant cells divide and all their descendants are resistant\n", " mutate = np.random.binomial(self.N, self.nu) # draw a random number of normal cells that mutate\n", " self.N = self.N - mutate # update the number of normal cells\n", " self.M = self.M + mutate # update the number of mutant cells\n", " \n", " def treat(self):\n", " \"\"\"\n", " treat cells, which kills normal cells but does not affect resistant cells.\n", " \"\"\"\n", " self.N = 0 # normal cells are killed" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" }, "tags": [] }, "source": [ "Let us simulate experiments in this scenario, growing cells \"overnight\" for $G = 30$ generations to have $N = 2^G \\sim 10^9$ cells as before. It can be shown that, in the second scenario, the expected number of resistant cells will be $\\approx G \\nu N$. Therefore, to match the expected number $\\mu N$ of resistant cells in the previous simulation, we will use a smaller mutation rate, $\\nu = \\mu / G \\approx 0.33 \\times 10^{-8}$." ] }, { "cell_type": "code", "execution_count": 8, "metadata": { "slideshow": { "slide_type": "fragment" }, "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "before treatment: number of normal cells = 1073741807, number of resistant cells = 17\n", "after treatment: number of normal cells = 0, number of resistant cells = 17\n" ] } ], "source": [ "mbe1 = MutationBeforeExposure(0.33e-8)\n", "mbe1.grow(gen=30)\n", "print(f'before treatment: number of normal cells = {mbe1.N}, number of resistant cells = {mbe1.M}')\n", "mbe1.treat()\n", "print(f'after treatment: number of normal cells = {mbe1.N}, number of resistant cells = {mbe1.M}')" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" }, "tags": [] }, "source": [ "In this case, there were already resistant cells even before the treatment, and only those survived after the treatment. However, the number of resistant cells is not so close to what we expected, which should be around $G \\nu N \\sim 10^2$. In fact, if we run the simulation multiple times, we will find that the number of resistant cells fluctuates substantially. To have better statistics on the numbers, we need to repeat the \"experiment\" many more times (which is impossible for real experiments)." ] }, { "cell_type": "code", "execution_count": 9, "metadata": { "slideshow": { "slide_type": "fragment" }, "tags": [] }, "outputs": [], "source": [ "G = 30 # number of generations to grow\n", "nu = 0.33e-8 # mutation probability per normal cell per generation\n", "\n", "repeats = 100000 # number of repeat experiments\n", "results = [] # collect numbers of resistant cells from experiments\n", "\n", "for r in range(repeats):\n", " mbe1 = MutationBeforeExposure(nu)\n", " mbe1.grow(gen=G)\n", " mbe1.treat()\n", " results.append(mbe1.M)" ] }, { "cell_type": "code", "execution_count": 10, "metadata": { "slideshow": { "slide_type": "subslide" }, "tags": [] }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "mean number of resistant cells = 64.65265\n", "variance = 2061659.978777977\n", "variance-to-mean ratio = 31888.251738760548\n" ] } ], "source": [ "mean = np.mean(results) # mean number of resistant cells in an experiment\n", "var = np.var(results) # variance of number of resistant cells among experiments\n", "ratio = var / mean\n", "print(f'mean number of resistant cells = {mean}')\n", "print(f'variance = {var}')\n", "print(f'variance-to-mean ratio = {ratio}')" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "fragment" }, "tags": [] }, "source": [ "You may be amazed by the incredibly large variance-to-mean ratio in this case. Because of the large fluctuations, our calculated mean number of resistant cells is not that accurate. Let us visualize the large fluctuations by plotting the histogram of the simulation results (in log scale!)." ] }, { "cell_type": "code", "execution_count": 11, "metadata": { "slideshow": { "slide_type": "subslide" }, "tags": [] }, "outputs": [ { "data": { "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYoAAAEGCAYAAAB7DNKzAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAXf0lEQVR4nO3df5BX9X3v8ecbgtmoaBQ0V1kjJBAUJQGyoBFxrGEMmqKNOlGqt6EavJJL7rWdZC4d6423TmLS2KkV7ChGgm2N1vgTGjNq2lqTkFsBQQW9KLE07phGxIRSDQ3o5/7xPeCXZffw3WXP+X7P7vMx8539fs/3nM/3/VnYfe05n3M+J1JKSJLUkyHNLkCS1NoMCklSLoNCkpTLoJAk5TIoJEm53tPsAg7EyJEj0+jRo5tdhlrIxo0bARg/fnyTK5Fa15o1a15PKR3V6PqVDIqImA3MHjt2LKtXr252OWohZ555JgBPPPFEU+uQWllE/Gtv1q/koaeU0oqU0pWHH354s0uRpAGvkkEhSSqPQSFJylXJMQpJatTOnTvp7Oxkx44dzS6ldG1tbbS3tzNs2LADasegkDSgdXZ2Mnz4cEaPHk1ENLuc0qSU2Lp1K52dnYwZM+aA2vLQk6QBbceOHYwYMWJQhQRARDBixIh+2ZOqZFBExOyIWLJt27ZmlyKpAgZbSOzWX/2uZFB4eqwklccxChVi9MLv9Wr9zV//dEGVSDpQldyjkCSVx6CQpAJt3ryZE044gc9//vOcfPLJXHrppfzgBz9g+vTpjBs3jqeeeoo333yTyy+/nKlTpzJ58mQefvjhPdvOmDGDKVOmMGXKFFauXAnUpqg588wzueiiizjhhBO49NJLKfJupR56kjRoXH311axbt65f25w0aRI33XRT7jqbNm3iu9/9LkuWLGHq1Kl85zvf4Uc/+hHLly/na1/7GhMmTOCss85i6dKl/OpXv2LatGnMnDmTo48+mscff5y2tjZeeukl5syZs2d+u7Vr17JhwwaOPfZYpk+fzo9//GNOP/30fu3bbgaFJBVszJgxTJw4EYCTTjqJT37yk0QEEydOZPPmzXR2drJ8+XJuvPFGoHZK789+9jOOPfZYFixYwLp16xg6dCgvvvjinjanTZtGe3s7UAurzZs3GxQqnwPSGmj295d/Ud773vfueT5kyJA9r4cMGcKuXbsYOnQo999//z7T41933XV84AMf4JlnnuGdd96hra2t2zaHDh3Krl27Cqu/kkFRP824Bp7eBJThpIHgU5/6FIsWLWLRokVEBGvXrmXy5Mls27aN9vZ2hgwZwp133snbb7/dlPoqOZjtdRSSBpJrr72WnTt38tGPfpSTTz6Za6+9FoAvfOEL3HnnnZx66qm8+OKLHHLIIU2pr5J7FJJUFaNHj2b9+vV7Xi9btqzb92677bZ9th03bhzPPvvsntc33HADULtB1+6bdAEsXry4n6veWyX3KCRJ5TEoJEm5DApJUi6DQpKUy6CQJOUyKCRJuTw9VtKg0tsZB/antxd9XnfddRx66KF86Utf6vb9hx56iI985CNMmDChP8rrF+5RSFILeeihh3j++eebXcZeDApJKthXv/pVxo8fz8yZM9m4cSMAt99+O1OnTuVjH/sYF154IW+99RYrV65k+fLlfPnLX2bSpEn89Kc/7Xa9srVUUETEIRGxJiJ+u9m1SFJ/WLNmDffccw9r167lgQceYNWqVQBccMEFrFq1imeeeYYTTzyRO+64g9NOO43zzjuPb37zm6xbt44Pf/jD3a5XtkKDIiKWRsRrEbG+y/JZEbExIjZFxMK6t/4XcG+RNUlSmX74wx/ymc98hoMPPpjDDjuM8847D4D169czY8YMJk6cyF133cWGDRu63b7R9YpU9B7FMmBW/YKIGArcApwDTADmRMSEiJgJPA/8ouCaJKl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n+boCU0pPAYRHxfmq/sBdGxDpqv9TagA9m6z+eUnqjm887HXgwpfRmSuk/gAeAGQ3UWd/e2dljLfA0cAIwLqt5ZvZX/4yU0rYubbwMfCgiFkXELODfe/is34qIf46I54CzgJPq3nsg+9ro93cmcGtKaRdA1ofxwMnA49n37o/Ze3K5rhqtWxXX6+OqUh/8Z93zt4H3Zc938e7hz7acbd6pe/0Oe/+/7ToHze5pli9MKW2sfyMiTgHe7KHGvt4Gs769AG5IKd22T+MRH6f21/4NEfFYSulP9hSc0i8j4mPAp4D/DnyW2hw+9du3AX9JbQ/jlYi4jr2/Z7u/P2/T2M91sO/3LoANKaVPNLB9Q3VrYHCPQs20mdrhC4CL+tjG7uP9p1ObVXMbtVk1v1h3DH9yA+08CfxORBwcEYcAnwF+2MtaHgUuj4hDs88dFRFHZ2cuvZVS+hvgRmq3wNwjIkYCQ1JK9wPX1r2/ndrhN3g3FF7P2m/k+1W/fVePAVftHoTPxn02AkdFxCeyZcMi4qQets+rWwOMexRqphuBeyPivwL/0Mc2fhkRK4HDePev2euBm4Bns7DYDPx2XiMppacjYhm1ew0DfCultLY3haSUHouIE4GfZBn1H8BlwFjgmxHxDrXZQud32XQU8O2I2P2H2x9lX5cBt0bEr6nd//h2aoexNgOrGijpH3n3ENwNKaW/rXvvW8BHqH2PdlIbQ1mcDaLfHBGHU/v9cBO18Zru9FS3Bhhnj5Uk5fLQkyQpl0EhScplUEiSchkUkqRcBoUkKZdBIUnKZVBIknL9f+sROE8u6PAzAAAAAElFTkSuQmCC\n", "text/plain": [ "
" ] }, "metadata": { "needs_background": "light" }, "output_type": "display_data" } ], "source": [ "results = np.array(results)\n", "results_nz = results[np.nonzero(results)[0]] # remove zeros from results so that we can take the log\n", "num_zero = repeats - len(results_nz) # number of zeros in the original results\n", "bins = np.arange(-0.125, 5, 0.25) # specify bin edges for histogram\n", "hist = np.histogram(np.log10(results_nz), bins)[0] # calculate histogram in log scale\n", "hist = np.hstack(([num_zero], hist)) # add back number of zeros into the histogram\n", "\n", "xticks = [1, 10, 100, 1000, 10000, 100000]\n", "plt.figure()\n", "plt.bar(bins, hist, width=0.2, label='data')\n", "plt.axvline(np.log10(mean), color='k', label='mean')\n", "plt.xticks(np.log10(xticks), xticks)\n", "plt.xlabel('number of resistant cells')\n", "plt.yscale('log')\n", "plt.ylabel('counts')\n", "plt.legend()\n", "plt.show()" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" }, "tags": [] }, "source": [ "The long tail (again, in log scale!) of the distribution shows that, in some experimental trials, we get a huge number of resistant cells compared to the mean, which contributes to the large variance that we saw above. The exact shape of the distribution is not easy to calculate theoretically. However, it suffices to use the very large variance-to-mean ratio to distinguish this scenario from the first one. Indeed, it was by observing such a large variance-to-mean ratio in their real experiments that Luria & Delbruck (1943) were able to reject the first scenario (mutation after exposure) and establish the second scenario (mutation before exposure). Remember that this was before people knew the molecular structrue of DNA and the cause of mutations!" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.10" } }, "nbformat": 4, "nbformat_minor": 4 }