Probability: Dr. Shahid Ali
Probability: Dr. Shahid Ali
Probability: Dr. Shahid Ali
Examples:
Dataset 2: S = {x : x ≥ 0}
The statement that a possible outcome of an experiment s is a member of S is denoted symbolically by the relation s 2 S.
When an experiment has been performed and we say that some event has occurred then this is shorthand for saying
that the outcome of the experiment satisfied certain conditions which specified that event. Any event can be regarded
as a certain subset of possible outcomes in the sample space S.
Example: roll of a die. Denote by A the event that an even number is obtained.
Then A is represented by the subset A = {2, 4, 6}.
It is said that an event A is contained in another event B if every outcome
that belongs to the subset defining the event A also belongs to the subset B.
We write A ⸦ B and say that A is a subset of B. Equivalently, if A ⸦B, we
may say that B contains A and may write B⸧ A.
Note that A ⸧ S for any event A.
Example: roll of a die, suppose A is the event of an even number being obtained
and C is the event that a number greater than 1 is obtained. Then A = {2, 4, 6}
and C = {2, 3, 4, 5, 6} and A ⸦ C.
Some events are impossible. For example when a die is rolled it is impossible to obtain a
negative number. Hence the event that a negative number will be obtained is defined by the
subset of S that contains no outcomes. This subset of S is called the empty set and is denoted
by the symbol φ.
Note that every set contains the empty set and so φ ⸦ A ⸦ S.
Operations of set theory
Unions
If A and B are any 2 events then the union of A and B is defined to be the event containing all outcomes that
belong to A alone, to B alone or to both A and B. We denote the union of A and B by A ∪ B.
For any events A and B the union has the following properties:
A∪φ=A
A∪A=A
A∪S=S
A∪B=B∪A
The union of n events A1,A2, ∙ ∙ ∙ ,An is defined to be the event that contains
𝑛
Notation: A1 ∪ A2 ∪ ∙ ∙ ∙ ∪ An or 𝑈𝑖=1 𝐴𝑖
Intersections
If A and B are any 2 events then the intersection of A and B is defined to be the event containing all
outcomes that belong both to A and to B. We denote the intersection of A and B by A ∩ B.
For any events A and B the intersection has the following properties:
A∩φ=φ
A∩A=A
A∩S=A
A∩B=B∩A
The intersection of n events A1,A2, ∙ ∙ ∙ ,An is defined to be the event that contains all outcomes which belong to all
of the n events.
Notation: A1 ∩ A2 ∩ ∙ ∙ ∙ ∩ An or
Compliments
The complement of an event A is defined to be event that contains all outcomes in the sample space S which do not belong
to A.
if A ∩ B = φ.
Example: roll of a die: suppose A is the event of an odd number and B is the event of an even number then A = {1, 3, 5},
B = {2, 4, 6} and A and B are disjoint.
Example: roll of a die: suppose A is the event of an odd number and C is the event of a number greater than 1 then
A = {1, 3, 5},C = {2, 3, 4, 5, 6} and A and C are not disjoint since they have the outcomes 3 and 5 in common.
a) DeMorgan’s Laws: for any 2 events A and B we have
Properties of probability:
After tossing a drawing pin a large number of times the relative frequency of it landing point up is
A sample space is the set of all possible outcomes, all equally likely.
If we know that B has already happened, we can think of B as the new sample space with n(B) elements.
Then the number of ways that A can now occur is n(A∩B)
Diagrams for two dice etc.
When considering two dice, two spinners or a coin and a die, the following types of diagram are often useful – they
ensure that all outcomes are equally likely to happen.
From these diagrams, in which all outcomes are equally likely, it should be easy to see that
We now look at the way in which the probability of an event A changes after it has been learned that some
other event B has occurred. This is known as the conditional probability of the event A given that the event B
has occurred. We write this as P(A | B).
Solution: These beads can be drawn in any order, RRY, RYR, YRR
⇒ P(RRY or RYR or YRR)
= P(RRY) + P(RYR) + P(YRR)
You must always remember the possibility of more than one order. In rolling four DICE, exactly TWO SIXES can occur
in six ways: SSNN, SNSN, SNNS, NSSN, NSNS, NNSS, each of which would have the same probability
Example: In the launch of a rocket, the probability of an electrical fault is 0⋅2. If there is an electrical fault the probability
that the rocket crashes is 0⋅4, and if there is no electrical fault the probability that the rocket crashes is 0⋅3.
Draw a tree diagram. The rocket takes off, and is seen to crash. What is the probability that there was an electrical fault?