- Source: Bernoulli trial
In the theory of probability and statistics, a Bernoulli trial (or binomial trial) is a random experiment with exactly two possible outcomes, "success" and "failure", in which the probability of success is the same every time the experiment is conducted. It is named after Jacob Bernoulli, a 17th-century Swiss mathematician, who analyzed them in his Ars Conjectandi (1713).
The mathematical formalization and advanced formulation of the Bernoulli trial is known as the Bernoulli process.
Since a Bernoulli trial has only two possible outcomes, it can be framed as a "yes or no" question. For example:
Is the top card of a shuffled deck an ace?
Was the newborn child a girl? (See human sex ratio.)
Success and failure are in this context labels for the two outcomes, and should not be construed literally or as value judgments. More generally, given any probability space, for any event (set of outcomes), one can define a Bernoulli trial according to whether the event occurred or not (event or complementary event). Examples of Bernoulli trials include:
Flipping a coin. In this context, obverse ("heads") conventionally denotes success and reverse ("tails") denotes failure. A fair coin has the probability of success 0.5 by definition. In this case, there are exactly two possible outcomes.
Rolling a die, where a six is "success" and everything else a "failure". In this case, there are six possible outcomes, and the event is a six; the complementary event "not a six" corresponds to the other five possible outcomes.
In conducting a political opinion poll, choosing a voter at random to ascertain whether that voter will vote "yes" in an upcoming referendum.
Definition
Independent repeated trials of an experiment with exactly two possible outcomes are called Bernoulli trials. Call one of the outcomes "success" and the other outcome "failure". Let
p
{\displaystyle p}
be the probability of success in a Bernoulli trial, and
q
{\displaystyle q}
be the probability of failure. Then the probability of success and the probability of failure sum to one, since these are complementary events: "success" and "failure" are mutually exclusive and exhaustive. Thus, one has the following relations:
p
=
1
−
q
,
q
=
1
−
p
,
p
+
q
=
1.
{\displaystyle p=1-q,\quad \quad q=1-p,\quad \quad p+q=1.}
Alternatively, these can be stated in terms of odds: given probability
p
{\displaystyle p}
of success and
q
{\displaystyle q}
of failure, the odds for are
p
:
q
{\displaystyle p:q}
and the odds against are
q
:
p
.
{\displaystyle q:p.}
These can also be expressed as numbers, by dividing, yielding the odds for,
o
f
{\displaystyle o_{f}}
, and the odds against,
o
a
{\displaystyle o_{a}}
:
o
f
=
p
/
q
=
p
/
(
1
−
p
)
=
(
1
−
q
)
/
q
o
a
=
q
/
p
=
(
1
−
p
)
/
p
=
q
/
(
1
−
q
)
.
{\displaystyle {\begin{aligned}o_{f}&=p/q=p/(1-p)=(1-q)/q\\o_{a}&=q/p=(1-p)/p=q/(1-q).\end{aligned}}}
These are multiplicative inverses, so they multiply to 1, with the following relations:
o
f
=
1
/
o
a
,
o
a
=
1
/
o
f
,
o
f
⋅
o
a
=
1.
{\displaystyle o_{f}=1/o_{a},\quad o_{a}=1/o_{f},\quad o_{f}\cdot o_{a}=1.}
In the case that a Bernoulli trial is representing an event from finitely many equally likely outcomes, where
S
{\displaystyle S}
of the outcomes are success and
F
{\displaystyle F}
of the outcomes are failure, the odds for are
S
:
F
{\displaystyle S:F}
and the odds against are
F
:
S
.
{\displaystyle F:S.}
This yields the following formulas for probability and odds:
p
=
S
/
(
S
+
F
)
q
=
F
/
(
S
+
F
)
o
f
=
S
/
F
o
a
=
F
/
S
.
{\displaystyle {\begin{aligned}p&=S/(S+F)\\q&=F/(S+F)\\o_{f}&=S/F\\o_{a}&=F/S.\end{aligned}}}
Here the odds are computed by dividing the number of outcomes, not the probabilities, but the proportion is the same, since these ratios only differ by multiplying both terms by the same constant factor.
Random variables describing Bernoulli trials are often encoded using the convention that 1 = "success", 0 = "failure".
Closely related to a Bernoulli trial is a binomial experiment, which consists of a fixed number
n
{\displaystyle n}
of statistically independent Bernoulli trials, each with a probability of success
p
{\displaystyle p}
, and counts the number of successes. A random variable corresponding to a binomial experiment is denoted by
B
(
n
,
p
)
{\displaystyle B(n,p)}
, and is said to have a binomial distribution.
The probability of exactly
k
{\displaystyle k}
successes in the experiment
B
(
n
,
p
)
{\displaystyle B(n,p)}
is given by:
P
(
k
)
=
(
n
k
)
p
k
q
n
−
k
{\displaystyle P(k)={n \choose k}p^{k}q^{n-k}}
where
(
n
k
)
{\displaystyle {n \choose k}}
is a binomial coefficient.
Bernoulli trials may also lead to negative binomial distributions (which count the number of successes in a series of repeated Bernoulli trials until a specified number of failures are seen), as well as various other distributions.
When multiple Bernoulli trials are performed, each with its own probability of success, these are sometimes referred to as Poisson trials.
Examples
= Tossing coins
=Consider the simple experiment where a fair coin is tossed four times. Find the probability that exactly two of the tosses result in heads.
Solution
For this experiment, let a heads be defined as a success and a tails as a failure. Because the coin is assumed to be fair, the probability of success is
p
=
1
2
{\displaystyle p={\tfrac {1}{2}}}
. Thus, the probability of failure,
q
{\displaystyle q}
, is given by
q
=
1
−
p
=
1
−
1
2
=
1
2
{\displaystyle q=1-p=1-{\tfrac {1}{2}}={\tfrac {1}{2}}}
.
Using the equation above, the probability of exactly two tosses out of four total tosses resulting in a heads is given by:
P
(
2
)
=
(
4
2
)
p
2
q
4
−
2
=
6
×
(
1
2
)
2
×
(
1
2
)
2
=
3
8
.
{\displaystyle {\begin{aligned}P(2)&={4 \choose 2}p^{2}q^{4-2}\\&=6\times \left({\tfrac {1}{2}}\right)^{2}\times \left({\tfrac {1}{2}}\right)^{2}\\&={\dfrac {3}{8}}.\end{aligned}}}
= Rolling dice
=What is probability that when three independent fair six-sided dice are rolled, exactly two yield sixes?
Solution
On one die, the probability of rolling a six,
p
=
1
6
{\displaystyle p={\tfrac {1}{6}}}
. Thus, the probability of not rolling a six,
q
=
1
−
p
=
5
6
{\displaystyle q=1-p={\tfrac {5}{6}}}
.
As above, the probability of exactly two sixes out of three,
P
(
2
)
=
(
3
2
)
p
2
q
3
−
2
=
3
×
(
1
6
)
2
×
(
5
6
)
1
=
5
72
≈
0.069.
{\displaystyle {\begin{aligned}P(2)&={3 \choose 2}p^{2}q^{3-2}\\&=3\times \left({\tfrac {1}{6}}\right)^{2}\times \left({\tfrac {5}{6}}\right)^{1}\\&={\dfrac {5}{72}}\approx 0.069.\end{aligned}}}
See also
Bernoulli scheme
Bernoulli sampling
Bernoulli distribution
Binomial distribution
Binomial coefficient
Binomial proportion confidence interval
Poisson sampling
Sampling design
Coin flipping
Jacob Bernoulli
Fisher's exact test
Boschloo's test
References
External links
"Bernoulli trials", Encyclopedia of Mathematics, EMS Press, 2001 [1994]
"Simulation of n Bernoulli trials". math.uah.edu. Retrieved 2014-01-21.
Kata Kunci Pencarian:
- Jacob Bernoulli
- Statistika
- Pesawat terbang
- Statistika matematika
- Ilmu aktuaria
- Aljabar elementer
- Variabel acak
- Model generatif
- Efek pengacau
- Eksperimen semu
- Bernoulli trial
- Bernoulli process
- Bernoulli distribution
- Bernoulli family
- Binomial distribution
- Jacob Bernoulli
- E (mathematical constant)
- List of things named after members of the Bernoulli family
- Experiment (probability theory)
- Probability distribution