Definition: X∼B(n,p)
- When event X has binary response, either fail or success
- Condition:
- The same experiment is repeated a fixed number of times
- There are only 2 possible outcomes, success and failure
- The repeated trials are independent, so that the probability of success remains the same for each trial
Probability mass function
Expected value E[X]=np
- Proof: ^72433b
- Let X be a binomial random variable with parameters n and p
- Then X=i=1∑nXi where Xi{10if the ith trial successotherwise
- Xi∼B(1,p)→E[Xi]=1∗p+0∗(1−p)=p
- E[X]=∑E[Xi]=np
Variance Var(X)=npq
- Proof:
- Similarly for above, Var(Xi)=p−p2
- Var(X)=Var(X1)+...+Var(Xn)=n(p−p2)=n.p.(1−p)
Sum of independent Binomial distribution: