Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Bernoulli trial
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{short description|Any experiment with two possible random outcomes}} {{Probability fundamentals}} [[File:Bernoulli_trial_progression.svg|thumb|400px|Graphs of probability ''P'' of not observing independent events each of probability ''p'' after ''n'' Bernoulli trials vs ''np'' for various ''p''. Three examples are shown: <br />'''Blue curve''': Throwing a 6-sided die 6 times gives a 33.5% chance that 6 (or any other given number) never turns up; it can be observed that as ''n'' increases, the probability of a 1/''n''-chance event never appearing after ''n'' tries rapidly converges to ''1/e''. <br />'''Grey curve''': To get 50-50 chance of throwing a [[Yahtzee]] (5 cubic dice all showing the same number) requires 0.69 × 1296 ~ 898 throws. <br />'''Green curve''': Drawing a card from a deck of playing cards without jokers 100 (1.92 × 52) times with replacement gives 85.7% chance of drawing the ace of spades at least once.]] In the theory of [[probability]] and [[statistics]], a '''Bernoulli trial''' (or '''binomial trial''') is a random [[Experiment (probability theory)|experiment]] with exactly two possible [[Outcome (probability)|outcomes]], "success" and "failure", in which the probability of success is the same every time the experiment is conducted.<ref>{{cite encyclopedia | last = Papoulis | first = A. | contribution = Bernoulli Trials | title = Probability, Random Variables, and Stochastic Processes | edition = 2nd | location = New York | publisher = [[McGraw-Hill]] | pages = 57β63 | year = 1984}}</ref> It is named after [[Jacob Bernoulli]], a 17th-century Swiss mathematician, who analyzed them in his ''{{Lang|la|[[Ars Conjectandi]]}}'' (1713).<ref>James Victor Uspensky: ''Introduction to Mathematical Probability'', McGraw-Hill, New York 1937, page 45</ref> 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 (probability theory)|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. ==Preliminary== Suppose there exists an experiment consisting of independently repeated trials, each of which has only two possible outcomes; called experimental Bernoulli trials. The collection of <math> n </math> experimental realizations of success (1) and failure (0) will be defined by a Bernoulli random variable: <math> bX_r |==> { x:bX_r == f(bX_r = x)::[x=1, x=0;;(p, p-1)] } </math> {{newline}} | <math> p=total_1/n</math> {{newline}} {{newline}} Let <math>p</math> be the probability of success in a Bernoulli trial, and <math>q</math> 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 [[Collectively exhaustive events|exhaustive]]. Thus, one has the following relations: :<math> p = 1 - q, \quad \quad q = 1 - p, \quad \quad p + q = 1.</math> Alternatively, these can be stated in terms of [[Odds (statistics)|odds]]: given probability ''<math>p</math>'' of success and ''<math>q</math>'' of failure, the ''odds for'' are <math>p:q</math> and the ''odds against'' are <math>q:p.</math> These can also be expressed as numbers, by dividing, yielding the odds for, <math>o_f</math>, and the odds against, <math>o_a</math>: :<math> \begin{align} o_f &= p/q = p/(1-p) = (1-q)/q\\ o_a &= q/p = (1-p)/p = q/(1-q). \end{align} </math> These are [[multiplicative inverse]]s, so they multiply to 1, with the following relations: :<math> o_f = 1/o_a, \quad o_a = 1/o_f, \quad o_f \cdot o_a = 1.</math> In the case that a Bernoulli trial is representing an event from finitely many [[equally likely outcomes]], where ''<math>S</math>'' of the outcomes are success and ''<math>F</math>'' of the outcomes are failure, the odds for are <math>S:F</math> and the odds against are <math>F:S.</math> This yields the following formulas for probability and odds: :<math> \begin{align} p &= S/(S+F)\\ q &= F/(S+F)\\ o_f &= S/F\\ o_a &= F/S. \end{align} </math> 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 variable]]s 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 <math>n</math> of [[statistically independent]] Bernoulli trials, each with a probability of success <math>p</math>, and counts the number of successes. A random variable corresponding to a binomial experiment is denoted by <math>B(n,p)</math>, and is said to have a ''[[binomial distribution]]''. The probability of exactly <math>k</math> successes in the experiment <math>B(n,p)</math> is given by: :<math>P(k)={n \choose k} p^k q^{n-k}</math> where <math>{n \choose k}</math> is a [[binomial coefficient]]. Bernoulli trials may also lead to [[negative binomial distribution]]s (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 trial]]s.<ref>[[Rajeev Motwani]] and P. Raghavan. Randomized Algorithms. Cambridge University Press, New York (NY), 1995, p.67-68</ref> ==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==== [[File:Coin flip outcomes.png|thumb|A representation of the possible outcomes of flipping a fair coin four times in terms of the number of heads. As can be seen, the probability of getting exactly two heads in four flips is 6/16 = 3/8, which matches the calculations.]] 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 <math>p = \tfrac{1}{2}</math>. Thus, the probability of failure, <math>q</math>, is given by :<math>q = 1 - p = 1 - \tfrac{1}{2} = \tfrac{1}{2}</math>. Using the equation above, the probability of exactly two tosses out of four total tosses resulting in a heads is given by: :<math>\begin{align} 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{align}</math> ===Rolling dice=== What is probability that when three independent fair six-sided dice are rolled, exactly two yield sixes? ====Solution==== [[File:binomial_trial_dice.svg|lang=egl|thumb|Probabilities of rolling ''k'' sixes from ''n'' independent fair dice, with crossed out dice denoting non-six rolls – 2 sixes out of 3 dice is circled]] On one die, the probability of rolling a six, <math>p = \tfrac{1}{6}</math>. Thus, the probability of not rolling a six, <math>q = 1 - p = \tfrac{5}{6}</math>. As above, the probability of exactly two sixes out of three, :<math>\begin{align} 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{align}</math> ==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== {{reflist}} ==External links== {{Commonscat}} *{{springer|title=Bernoulli trials|id=p/b015690}} *{{cite web|url=https://www.randomservices.org/random/apps/BinomialTimeline.html|title=Simulation of n Bernoulli trials|publisher=math.uah.edu|access-date=2025-03-16}} {{DEFAULTSORT:Bernoulli Trial}} [[Category:Discrete distributions]] [[Category:Coin flipping]] [[Category:Experiment (probability theory)]]
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Cite encyclopedia
(
edit
)
Template:Cite web
(
edit
)
Template:Commonscat
(
edit
)
Template:Lang
(
edit
)
Template:Newline
(
edit
)
Template:Probability fundamentals
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)
Template:Springer
(
edit
)
Search
Search
Editing
Bernoulli trial
Add topic