1 of 30

Probability distribution and Sampling

2 of 30

Probability

  • We encounter probability every day in terms of chance:
    • What is the chance of rain?
    • What is the chance of winning lottery?
    • What is the chance of getting a royal flush?

  • Probability theory was born to mathematically define and study the probability

3 of 30

Definitions and Notation

  • Sample Space Ω : The set of all possible outcomes of a random experiment.
    • Rolling a die once Ω = {1,2,3,4,5,6}

  • Event: Specific outcome or a collection of outcomes from a random experiment. We use capital letters A, B, C, …, to denote events.
    • Rolling an even number A = {2,4,6}
    • Rolling an odd number B = {1,3,5}

  • Probability of event A occurring Pr(A) = 3/6 = 0.5

  • Probability of A or B Pr(A ∪ B) = 6 / 6 = 1

  • Probability of A and B Pr(A ∩ B) = Pr(A, B) = 0 / 6 = 0

4 of 30

Independence

  • Two events are independent if the outcome of one does not affect the other.

  • Conditional Probability: Pr(A | B) = Probability of event A given that event B has occurred

  • Independence: Pr(A | B) = Pr(A)
    • A = Second roll is even B = First roll is odd
    • Pr(A | B) = Pr(Second roll is even given that First roll is odd) = Pr(Second roll is even ) =1 / 2 because first row does not affect the second roll

  • If two events A and B are independent, Pr(A, B) = Pr(A | B) Pr(B) = Pr(A) Pr(B).

5 of 30

Random Variables

  •  

6 of 30

Discrete Random Variable

  •  

7 of 30

Continuous Random Variable

  •  

8 of 30

Human Genome

Single Nucleotide Polymorphism

Central Dogma: DNA -> mRNA -> Protein

Alleles Recode (A as reference)

AG Aa

AA AA

GG aa

9 of 30

Sequencing Reads

10 of 30

Examples of Random Variables in Biology

  • The number of reference allele of a genetic variant of an individual
    • X = 0 if individual carries homozygous for the reference allele
    • X = 1 if individual carries heterozygous for the reference allele
    • X = 2 if individual carries homozygous for the alternative allele

  • The number of sequencing reads mapped to a gene
    • X = 1000 if there are 1000 reads mapped to a gene

  • The status of having diabetes of an individual
    • X = 1 if individual has diabetes, X = 0 if individual is healthy

  • Always define your random variable before using it!

11 of 30

Frequentist View of Probability

  • More broadly, you can think of nature performing experiments to generate random variables, and we observe the generated random variables.

  • Nature repeats experiments at infinitely times, independently, under the same condition, the proportion of times the random variable takes a value is probability.

12 of 30

Monte Carlo Simulation

  • Use computer to perform experiments to generate random variables

  • We can repeat the experiments for a very large number of times, approach to infinity

13 of 30

Probability Distribution

  •  

14 of 30

Bernoulli distribution

  •  

15 of 30

Binomial distribution

  •  

16 of 30

Hardy-Weinberg Principle in Population Genetics

  •  

17 of 30

Cumulative Distribution Function (CDF)

  •  

18 of 30

Cumulative Distribution Function (CDF)

  •  

19 of 30

Other family of discrete distribution

  • Multinomial distribution: Generalization of binomial to multiple categories.

  • Hypergeometry distribution: Number of success in a fixed number of draws without replacement in a finite population.
    • Ex: 3 lottery-winning cards in a pot of 52 cards. If I draw 15 cards without replacement, what is the probability of getting at least one lotter—winning card?

  • Poisson distribution/ Negative binomial distribution (Gene expression data RNA-seq/single cell RNA-seq)

20 of 30

Poisson distribution

The number of times an event occurs in a fixed interval of time or space with rate λ.

Connection to Binomial distribution: n is large and p is small, λ = p/n.

Mean = Variance (defined in next week’s lecture)

21 of 30

Luria-Delbruck Experiment (1969 Nobel Prize in Medicine)

Do mutations arise randomly before selection (Darwinian), or are they induced by the environment (Lamarckian)?

22 of 30

Technical replicates: Sequence same samples in different lanes and runs

23 of 30

Negative Binomial

24 of 30

Slides from Terry Speed

Biological replicates: Repeat experiments

Variance = Mean + a * Mean^2 (Overdispersion)

25 of 30

Continuous random variable

  •  

26 of 30

Probability density function

  •  

27 of 30

Intuition of integration

Height: f(t)

 

 

Area of rectangle: f(t) dt

 

28 of 30

Normal distribution

  • Due to the Central Limit Theorem (covered later), the normal distribution (“bell curve”) is often observed in real data.

29 of 30

Normal distribution

  •  

30 of 30

Other family of continuous distribution

  • Uniform distribution

  • t distribution (Week 6)

  • Chi square distribution (Week 6)

  • F distribution (Week 7)