Bernoulli test, binomial distribution

Bernoulli experiment

If experiment E has only two possible outcomes: A (occurs) and \bar{A} (does not occur, then A reverse event), then E is called Bernoulli trial.

SupposeA occurs with probability P(A)=p, where 0<p<1, then \bar{A} The probability of occurrence isP(\bar{A})=1-p.

Repeating experiment E n times independently is called n-fold Bernoulli trial.

Repetition: means that in each trial, the probabilityp remains the same. For example, if you flip a coin, the probability of it coming up remains the same every time. With replacement sampling, the probability of drawing a red ball each time remains unchanged. But if sampling is done without replacement, then the probability of drawing a red ball changes each time.

Independent: means that the results of each test do not affect each other. For example, when flipping a coin, the results do not affect each other. With replacement sampling, the results each time have no influence on each other. But if it is sampling without replacement, then the results each time will affect each other.

In n-fold Bernoulli trials, assume that the result of the ith trial is C_{i}, where C_{i} Equal to A or \bar{A}, independence means:

P(C_{1}C_{2}\cdots C_{n})=P(C_{1})P(C_{2})\cdots P(C_{n})

binomial distribution

In an n-fold Bernoulli trial, assuming that the random variableX represents the number of times the eventA occurs, then its probability is:

P(X=k)=C_{n}^{k}p^{k}(1-p)^{n-k},ink=0,1,2,\cdots ,n

The random variableX obeys the binomial distribution with parameters n and p, and is recorded as X\sim b(n,p).

Remarks:The reason why the above formula is called the binomial distribution is becauseC_{n}^{k}p^{k}(1-p)^{n-k} is exactly equal to the binomial(p+q)^{n}The term that containsp^{k} in the expansion (replace 1-p with q).

When n=1, it means that only one test was conducted, and the above formula becomes:

P(X=k)=p^{k}(1-p)^{1-k},ink=0,1

This becomes a (0-1) distribution. Therefore, the (0-1) distribution is a special case of the binomial distribution.

Guess you like

Origin blog.csdn.net/panghuangang/article/details/135007953