Docsity

Probability Distributions: Discrete vs. Continuous, Binomial and Poisson Distribution, Study notes of Statistics

Toggle sidebar
bg1
Review
Discrete RV’s: prob’y fctn: p(x) = Pr(X= x)
cdf: F(x) = Pr(X≤x)
E(X) = Pxx p(x)
SD(X) = qE{(X- E X)2}
Binomial(n,p): no. successes in nindep. trials where
Pr(success) = pin each trial
If X∼binomial(n,p), then:
Pr(X= x) = n
ppx(1−p)n−x
E(X) = n p
SD(X) = pnp(1−p)
1
Binomial random variable
Number of successes in ntrials where:
•Trials independent
•p= Pr(success) is constant
The number of successes in ntrials does not necessarily follows a binomial
distribution.
Deviations from the binomial:
•Varying p
•Clumping or repulsion (non-independence)
2
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Probability Distributions: Discrete vs. Continuous, Binomial and Poisson Distribution and more Study notes Statistics in PDF only on Docsity!

Review

Discrete RV’s: prob’y fctn: p(x) = Pr(X = x) cdf: F(x) = Pr(X ≤ x) E(X ) = ∑ x x p(x) SD(X ) =

E { (X - E X )^2 }

Binomial(n,p): no. successes in n indep. trials where Pr(success) = p in each trial If X ∼ binomial(n,p), then: Pr(X = x) = (np^ )px( 1 − p)n−x E(X ) = n p SD(X ) = √np( 1 − p)

1

Binomial random variable

Number of successes in n trials where:

  • Trials independent
  • p = Pr(success) is constant

The number of successes in n trials does not necessarily follows a binomial distribution.

Deviations from the binomial:

  • Varying p
  • Clumping or repulsion (non-independence)

Examples

Consider Mendel’s pea experiments. (Purple or white flowers; purple dominant to white.)

  • Pick a random F 2. Self it and acquire 10 progeny. The number of progeny with purple flowers is not binomial (unless we condition on the genotype of the F 2 plant).
  • Pick 10 random F 2 ’s. Self each and take one child from each. The number of progeny with purple flowers is binomial. (p = (1/4) × 1 + (1/2) × (3/4) + (1/4) × 0 = 5/8.)

Suppose Pr(survive | male) = 10% but Pr(survive | female) = 80%.

  • Pick 4 male mice and 6 female mice. The number of survivors is not binomial.
  • Pick 10 random mice (with Pr(mouse is male) = 40%). The number of sur- vivors is binomial.

3

0 1 2 3 4 5 6 7 8 9 10

4 males; 6 females

no. survivors

0 1 2 3 4 5 6 7 8 9 10

Random mice (40% males)

no. survivors

Binomial(n=50, p=0.5)

x

Probability

15 20 25 30 35

Binomial(n=5000, p=0.5)

x

Probability

2400 2425 2450 2475 2500 2525 2550 2575 2600

Binomial(n=50, p=0.5) / 50

x

Probability

0.3 0.4 0.5 0.6 0.

Binomial(n=5000, p=0.5) / 5000

x

Probability

0.480 0.485 0.490 0.495 0.5 0.505 0.510 0.515 0.

7

Poisson distribution

Consider a binomial(n, p) where

  • n is really large
  • p is really small

For example, suppose each well in a microtiter plate contains 50,000 T cells, and that 1/100,000 cells respond to a particular antigen. Let X be the number of responding cells in a well. In this case, X follows a Poisson distribution. Let λ = n × p = E(X ). Then p(x) = Pr(X = x) = e−λλx/x! Note that SD(X) = √λ.

0 1 2 3 4 5 6 7 8 9 10 11 12

Poisson( λλ=1/2 )

0 1 2 3 4 5 6 7 8 9 10 11 12

Poisson( λλ=1 )

0 1 2 3 4 5 6 7 8 9 10 11 12

Poisson( λλ=2 )

0 1 2 3 4 5 6 7 8 9 10 11 12

Poisson( λλ=4 )

9

Example

Suppose there are 100,000 T cells in each well of a microtiter plate. Suppose that 1/80,000 T cells respond to a particular antigen.

Let X = number of responding T cells in a well. X ∼ Poisson(λ = 1.25). E(X ) = 1.25; SD(X ) = √1.25 ≈ 1.12. Pr(X = 0) = exp(–1.25) ≈ 29%. Pr(X > 0) = 1 – exp(–1.25) ≈ 71%. Pr(X = 2) = exp(–1.25) (1.25)^2 /2 ≈ 22%.

Means and SDs

Expected value (mean): Discrete RV: E(X ) = ∑ x x p(x) Continuous RV: E(X ) = ∫^ −∞∞ x f(x) dx

Standard deviation (SD): Discrete RV: SD(X ) = √∑ x[x - E(X)]^2 p(x) Continuous RV: SD(X ) =

−∞[x - E(X)]^2 f(x) dx

13

Example: Uniform distribution

X ∼ Uniform(a, b) i.e., draw a number at random from the interval (a, b).

Density function:

f(x) =

b−a if a^ <^ x^ <^ b 0 otherwise a b

height = 1/(b−a)

E(X ) = (b+a)/2 SD(X ) = (b – a)/√ 12 ≈ 0.29 × (b – a)

Cumulative dist’n fdn (cdf):

a b

height = 1

The normal distribution

By far the most important distribution: The Normal distribution (also called the Gaussian distribution)

If X ∼ N(μ, σ), then

The pdf of X is f(x) = (^) σ√^12 π · e−^12 (x−σμ^ )^2

Also E(X ) = μ and SD(X ) = σ.

Of great importance: If X ∼ N(μ,σ) and Z = (X – μ) / σ, Then Z ∼ N(0, 1). This is the “Standard normal distribution”.

15

The normal distribution

μμ −− 2 σσ μμ −− σσ^ μμ^ μμ ++ σσ^ μμ ++ 2 σσ

Pr(μ − σ ≤ X ≤ μ + σ) ≈ 68%

Pr(μ − 2 σ ≤ X ≤ μ + 2 σ) ≈ 95%

Examples

Suppose the heights of adult males in the U.S. are approximately normal distributed, with mean = 69 in and SD = 3 in. What proportion of men are taller than 5’7”?

67 69 −2/3 0

X ∼ N(μ=69, σ=3) Z = (X – 69)/3 ∼ N(0,1) Pr(X ≥ 67) = Pr(Z ≥ (67 – 69)/3) = Pr(Z ≥ – 2/3)

19

R (or a table)

67 69

−2/

2/

Use either pnorm(2/3) or 1 - pnorm(67, 69, 3) or

pnorm(67, 69, 3, lower.tail=FALSE)

The answer: 75%.

Another calculation

What proportion of men are between 5’3” and 6’?

63 69 72 −2 0 1

Pr(63 ≤ X ≤ 72) = Pr(–2 ≤ Z ≤ 1)

21

R (or a table)

−2 1

1

−

pnorm(72, 69, 3) - pnorm(63, 69, 3)

or

pnorm(1) - pnorm(-2)

The answer: 82%.