4.3 - Binomial Random Variable

Familiar Population

{A,B,C,D,E}

Interest - number of vowels in population
Sampling - i.i.d. with n=2

Computations

N=25
A - number of vowels

A P(A) AP(A) (Aμ)2 (Aμ)2P(A)
0 925 0 0.64 0.2304
1 1225 1225 0.04 0.0192
2 425 825 1.44 0.2304

μ=0+1225+825=2025=0.8
σ2=0.48
σ=0.6928

Conducting Inferential Statistics

Population - {A,B,C,D,E}
Interest - number of vowels
Sampling method - i.i.d. with n=3

# of vowels P(# of vowels)
0 P(CCC)=P(C)P(C)P(C)=352=27125
1 P(VCC or CVC or CCV)=P(VCC)+P(CVC)+P(CCV)=56125
2 P(VVC or VCV or VCC)=36125
3 P(VVV)=8125

Expected value - μ=(P(Ai)A)=1.2
Variance - σ2=((μxi)2P(Ai))=0.72

Binomial Random Variable

Random experiment
Outcomes classified as success S or failure F
Probability of success when running the experiment does not change $$P(S) = p$$
Probability of failure does not change as well $$P(F) = q = 1 - p$$
The random experiment is to be run for a fixed number of trials n
The trials are identical for each run
The probabilities are independent across runs
The random variable is constructed by counting the number of successes in the n trials

IMPORTANT

This does not work for SRS sampling, as for each of the choosings we'd have 1 less population, but works in i.i.d.!!!

On Inferential Statistics

Population - {A,B,C,D,E}
Interest - number of vowels in population
Sampling method - i.i.d. with n=4

Explain why this example can be understoodas a binomial random variable
we're choosing one person at a time, and putting them back, so the chance of choosing a vowel is always the same

Possible values of random variable

Y P(Y)
0 P(FFFF)=354
1 P(SFFF or FSFF or FFSF or FFFS)=435325
2 P(SSFF or SFSF or SFFS or FSSF or FSFS or FFSS)=6252352
3 P(SSSF)=435253
4 P(SSSS)=254
For binomial random variable, the possible values of random variable will be always 1N+1 !

To create this table automatically, we can see this

BRV P()
0 qn
...
i (ni)piqni
...
n pn
Probability Distribution Function

To find the probability of binomial random variable X with n trials and probability of success equal to p, we can use a formula: $$ P(X) = \binom{n}{X} \cdot p^X \cdot q^{n-X} $$

P(Xx)=i=0n(ni)piqni
Additional Formulas
Those only work for binomial random variables
μ=npσ2=npqσ=npq
Exercise

Construct a binomial random variable with a 100 possible values such that the expected values is 33
For 100 possible values, n=99
μ=33=np
33=99pp=13