The Bernoulli Random Variable and The Binomial Distribution
The Bernoulli Random Variable and The Binomial Distribution
The Bernoulli Random Variable and The Binomial Distribution
Introduction
In many situations, there are only two outcomes to a trial or experiment, one
with probability and the other with probability 1 – p. Often one outcome is called
success and other a failure. When this is the case, p is used as the probability of
success. For convenience, the probability of failure 1- p is sometimes called q.
The random variables associated with a Bernoulli tria is the Bernoulli random
variable, with value for a successful outcome and 0 value for failure.
If we repeat a Bernoulli trial many time over, we get a new situation, called a
binomial experiment. The number of trials n and the probability p are its
parameters, numbers that define the structure or properties of the experiment . If
there are n rials and each trial has probability of success equal to p and failure is
equal to 1 –p, the binomial experiment denoted B(n,p). Counting the number
success in a binomial experiment gives us a new random variable, the binomial
random variable with parameters (n, p).
To compute the probability of k success in n trials, first count up how many ways
you can choose the k success and the n-k failures. This is just the number of ways to
choose k objects from a collection of n objects, nCk. Each of these choices of k objects
give an event with k success and n- k failures. Because success has probability p and
there are k success, the probability of k success is p k
Similarly, the probability of the n – k failures for each of these choices is ( 1-P) (n-
k)
.Thus for the binomial random variable X that gives the number of success for n
trials
P{ X = k}= nCk pk(1-p)(n-k)
Example. What is the probability of getting exactly 10 heads when you flip a coin 20
times? Of getting exactly eight heads?
Solution
Let getting a heads be success, the probability of heads is p= 0.5
P{ X= 10)= nCk pk(1-p)(n-k)
=20C10 (0.5)10(0.5)10
= 0.176
We can use the binomial distribution only when there are repeated, independent
trial, each having probability of success.
The Poison random variable is used when the following criteria are met.
1. There is a relatively small number of success or occurences in a large interval
of time or in a large region of space.
2. The occurrences in interval or regions are independent of each other as long
as the interval or regions do not overlap.
3. The average number of occurrences in interval or region of the same size is
about the same throughout the experiment or observation.
4. Two occurrences do not happen simultaneously.
P{X = k} =
Where X is non-negative integers
λ the average rate of the outcomes that we are counting
Formula above depends on the average rate of occurrence, given as outcomes
or success per time or region. This rate is usually small and may not be an
integers.
It is sometime called the law of small numbers because it is used for
relatively rare occurrences.
Example
Left-handed people make up about 10% of the population. A school is buying
an arm-desk for a new classroom. The classroom has 30 desk, and the school wants
to put two left-handed desk and 28 right handed desks in the classroom. What is the
probability that here will be more than two left-handed students in the next class of
30?
Solution:
λ= 0.10
t = 30
λt=3
The probability that k students are left handed is
P{X = k} =
Find the complement of the event that 0, 1, 2 students will be left handed. This is
P{X = 0} = = 0.0498
P{X = 1} = = 0.149
P{X = 2} = = 0.224
P{X> 2} = 1- (0.0498 + 0.149 + 0.224)
= 0.577
The probability of getting the first head on the fifth flio is (0.5) 4 x 0.5
because the probability of failure is (0.5) 4 , and probability of success on the
last flip is 0.5. In symbol this is
P{X =5}= (0.5)4 x (0.5)
So in general the probability of the first success in nth trial is
P{X=n} = ( 1 – p)(n-1) x p
Example
Roll a die until you get a 6. What is the probability that this will
happen on the sixth roll? What is the probability that it will happen before
the sixth roll?
Solution:
P= =0.1667probability of getting a 6
Solution:
In the 10 flips of course one of the success will happen so there 9C4
ways to choose four successes in the first nine flips. The probability of
success p= 0.5 and failure 1 – p= 0.5. then the probability of getting five
success in 10 flips is:
126 X ( 0,5)4 x (0.5)4 x (0.5)
Another example:
Marlee choose 10 candies from a bag of 100 candies. There are 10 red,
20 yellows, 25 orange, and 25 pink candies. What is the probability that she gets 3
red, 3 yellow, and 4 orange candies?
Solution:
By partition rule the number of possible partition and the
different probabilities for each outcomes are 0.10 for red ,0.20 for
yellow, 0.20 for green 0.25 for orange and 0.25 for pink
Thus the probability is
(0.10)3 (0.20)3 (0.25)4
Republic of the Philippines
BATANGAS STATE UNIVERSITY
Pablo Borbon Main I, Batangas City, Philippines 4200
COLLEGE OF TEACHER EDUCATION
Tel. No. (043) 980-0385 local 1128
Activity( Week 1)
MATH 506– Theory of Probability
Second Semester, AY 2019 – 2020
Name:__________________________________________Score: ___________
Section: _________________________________________Date: ___________
General Directions:
1. Erasures should be avoided.
2. Use black or blue pen in answering this activity. Pencil is not allowed.
3. Maintain a margin of 1inch around with 1.5” left margin.
2. A message 10 bits long is sent. The probability of error i2 0.002 for each bit.
What is the probability that the message will be sent at most one error?
4. It is known that there are 1,000 fish in a pond and 20 have been tagged. You
have caught three fish. What is the probability that at least one of them is
tagged?
5. A country has an average rate of three thunderstorms per week during the
summer. What is the probability that there will be at least three
thunderstorm during the next two weeks?
6. Flip a coin until you get a head. What is the probability that this will happen
on the first flip? Second flip? Third flip?
7. Toss two dice until you get 3 or 6. What is the probability that this will
happen on the first toss? Second toss? Third toss?
8. Flip a coin until you get seven heads. What is the probability that this will
happen with 10 flips? Fifteen flips” Twenty flips?
9. Toss two dice until you get a three or 6 four times. What is the probability
that this will happen on four tosses? Eight tosses? Ten tosses?
10. A bag of candies has 15 red, five yellow, 10 blue, and 20 green. Choose five
candies at random. What is the probability that you will get one red, one
yellow, one blue, and two green?
11. Toss a die six times. What is the probability of getting three 2s and three 3s?
12. For each of the following situation find at least one quantity that you could
measure that would be a random variable. For most of these, there are many
different possibilities.
Prepared by.
Charity Arellano Aldover Ph. D
Math 506 Assoc. Prof.