M6-Discrete Probability
M6-Discrete Probability
STRUCTURES 2
Module 6
DISCRETE PROBABILITY
Everything you have learned about counting
constitutes the basis for computing the probability of
events to happen.
In the following, it will use the notion experiment for
a procedure that yields one of a given set of possible
outcomes.
This set of possible outcomes is called the sample
space of the experiment.
An event is a subset of the sample space.
If all outcomes in the sample space are equally
likely, the following definition of probability applies:
The probability of an event E, which is a subset of a
finite sample space S of equally likely outcomes, is
given by p(E) = |E|/|S|.
Probability values range from 0 (for an event that
will never happen) to 1 (for an event that will always
happen whenever the experiment is carried out).
Example No. 1
•A standard deck has four suits: spades (), hearts (),
diamonds (), and clubs (). It has thirteen cards in
each suit: ace, 2, 3, . . ., 10, jack, queen, and king. Each
of these cards is equally likely to be drawn. Find the
probability of drawing:
a. a king
b. a heart
c. a face card
Example No. 2
•Dice (singular is die) are cubes that have spots on each
side. Find the probability of drawing:
a. a four
b. a seven
c. less than 7
d. greater than or equal to 5
Example No. 3
An urn contains four blue balls and five red balls.
What is the probability that a ball chosen from
the urn is blue?
Solution:
There are nine possible outcomes, and the event
“blue ball is chosen” comprises four of these
outcomes. Therefore, the probability of this event is
4/9 or approximately 44.44%.
Example No. 4
What is the probability of winning the lottery 6/49,
that is, picking the correct set of six numbers out of
49?
Solution:
There are C(49, 6) possible outcomes. Only one of
these outcomes will actually make us win the lottery.
p(E) = 1/C(49, 6) = 1/13,983,816
These examples lead to four rules or facts about
probability:
1. The probability of an event that cannot occur is
2. The probability of an event that must occur is 1.
3. Every probability is a number between 0 and 1
inclusive.
4. The sum of the probabilities of all possible
outcomes of an experiment is 1.
Let E be an event in a sample space S. The
probability of an event –E, the complementary event
of E, is given by
p(-E) = 1 – p(E).
This can easily be shown:
p(-E) = (|S| - |E|)/|S| = 1 - |E|/|S| = 1 – p(E).
This rule is useful if it is easier to determine the
probability of the complementary event than the
probability of the event itself.
Example No. 1
Find the probability of tossing a die and not rolling a
4.
Example No. 2
•You flip a coin four times in a row. What is the
probability you get at least one heads?
Solution:
If our event A is “you get at least heads in four flips”,
then the complement A’ is “you don’t get any heads
in four flips,” which is another way of saying “you get
all tails.”
Now all we need to do is find the probability of our
complement, A’, and then subtract this from one.
P(four tails in a row) = ½*½*½*½ = 1/16
Therefore, the probability of at least one heads is:
P(at least one heads) = 1 – P(four tails in a row) = 1 –
1/16 = 15/16
Example No. 3
A sequence of 10 bits is randomly generated.
What is the probability that at least one of these
bits is zero?
Solution: There are 210 = 1024 possible outcomes of
generating such a sequence.
The event –E, “none of the bits is zero”, includes
only one of these outcomes, namely the sequence
1111111111.
Therefore, p(-E) = 1/1024.
Now p(E) can easily be computed as
p(E) = 1 – p(-E) = 1 – 1/1024 = 1023/1024.
A compound event is an event consisting of two or
more simple events. Examples of simple events are:
tossing a die and rolling a 5, picking a seven from a
deck of cards, or flipping a coin and having a heads
show up.
An example of a compound event is tossing a die and
rolling a 5 or an even number. The notation for this
kind of compound event is given by
This is the probability that event A or event B (or
both) will occur.
Notice however, if we want the probability of rolling
a 5 or rolling a number greater than 3. There are
three numbers greater than 3 on a die and one of
them is the 5. We cannot count the 5 twice. The
probability is given by:
Let E1 and E2 be events in the sample space S.
Then we have:
p(E1 E2) = p(E1) + p(E2)
https://www.sanfoundry.com/discrete-mathematics
https://www.inf.ed.ac.uk/teaching/courses/dmmr/slides/18-19/intro-Ch7.pdf
https://www.youtube.com/watch?v=PKMtSe__RHE
https://www.ck12.org/probability/complement-rule-for-probability/lesson/Complement-Rule-for-Probability-
ADV-PST/
https://www.onlinemathlearning.com/dependent-events.html
https://www.mathgoodies.com/lessons/vol6/independent_events
https://www.varsitytutors.com/hotmath/hotmath_help/topics/multiplication-rule-of-probability