Professional Documents
Culture Documents
College of Engineering Department of Electrical and Computer Engineering (Electronics and Communication Stream)
College of Engineering Department of Electrical and Computer Engineering (Electronics and Communication Stream)
College of Engineering Department of Electrical and Computer Engineering (Electronics and Communication Stream)
College of Engineering
Department of Electrical and Computer Engineering
(Electronics and Communication Stream)
Academic Year : 2015 E.C (2023G.C)
Year/Sem : II/I
Sub. Probability and Random Process
Course Code: ECEG-2047
1
Course Outlines
1. Introduction about Basic Concept of Probability Theory
1. Concept of Probability
2. Terminology associated with probability theory
Random Experiments, Sample space, Events, theorems on
3. Axioms of Probability
4. Bayes’s Theorem
2
.
1.1 Concept of Probability
It’s defined as the ratio of the number of favorable outcomes to the total number of outcomes
of an event.
The formula to calculate the probability of an event is as follows.
Probability(Event) = Favorable Outcomes/Total Outcomes = x/n
Probability is used to predict the outcomes for the tossing of coins, rolling of dice, or
drawing a card from a pack of playing cards.
3
.
Probability Formula
It is the ratio of favorable outcomes to the total favorable outcomes.
where,
EXAMPLE 1.1 If we toss a coin, the result of the experiment is that it will
either come up “tails,” symbolized by T (or 0), or “heads,” symbolized by H
(or 1), i.e., one of the elements of the set {H, T} (or {0, 1}).
n(A)
P(A)
n(S)
EXAMPLE 1.2 If we toss a die, the result of the experiment is that it will
come up with one of the numbers in the set {1, 2, 3, 4, 5, 6}.
5
1.2 Terminology of Probability Theory
The following terms in probability help in a better understanding of the concepts
of probability.
The letter S is used to designate the sample space, which is the universal set of
outcomes of an experiment.
6
Cont…
EXAMPLE 1.1 If we toss a coin, the result of the experiment is that it will
either come up “tails,” symbolized by T (or 0), or “heads,” symbolized by H
(or 1), i.e., one of the elements of the set {H, T} (or {0, 1}).
S= {H, T}
EXAMPLE 1.2 If we toss a die, the result of the experiment is that it will
come up with one of the numbers in the set i.e.
S={1, 2, 3, 4, 5, 6}.
7
Cont…
Favorable Outcome: An event that has produced the desired result or expected event
is called a favorable outcome. For example, when we roll two dice, the
possible/favorable outcomes of getting the sum of numbers on the two dice as 4 are
(1,3), (2,2), and (3,1).
Equally Likely Events: Events that have the same chances or probability of
occurring are called equally likely events. The outcome of one event is
independent of the other. For example, when we toss a coin, there are equal
chances of getting a head or a tail.
P(A) + P(A′) = 1.
P(A')=1-P(A).
C)Probability formula with the conditional rule: When event A is already known to have
occurred and the probability of event B is desired, then P(B, given A) = P(A and B), P(A, given
B). It can be vice versa in the case of event B.
P(B∣A) = P(A∩B)/P(A)
10
D) Probability formula with multiplication rule:
Whenever an event is the intersection of two other events, that is, events A and B need
to occur simultaneously. then,
P(A and B) = P(A)⋅P(B), for independent events
Solution
Example 2: What is the probability of getting a sum of 9 when two dice are
thrown?
Solution:
There is a total of 36 possibilities when we throw two dice. To get the desired
outcome i.e., 9, we can have the following favorable
outcomes.(4,5),(5,4),(6,3)(3,6). There are 4 favorable outcomes.
Probability of an event
Example 1: (a)What is the probability of getting a sum of 10 when two dice are thrown?
(b)Probability of getting a doublet(Same number) = 6/36 = 1/6. (c) Probability of getting a
number 3 on at least one dice = 1/36 (d) Probability of getting a sum of 7 = 6/36 = 1/6
Solution: (a)
There are 36 possibilities when we throw two dice.
The desired outcome is 10. To get 10, we can have three favorable outcomes.
{(4,6),(6,4),(5,5)}
Probability of an event = number of favorable outcomes/ sample space
Probability of getting number 10 = 3/36 =1/12
14
Cont…
Example 2: In a bag, there are 6 blue balls and 8 yellow balls. One ball is selected
randomly from the bag. Find the probability of getting a blue ball.
Solution:
15
Cont…
A set A is a collection of objects from U, and these objects are called the
elements or points of the set A and will be denoted by lowercase letters, , a, b, x,
y,….
The universal set U is usually represented as the set of all points within a
rectangle or within a circle.
17
Cont…
18
Cont…
19
Cont…
20
1.2 Permutations of n Distinct Objects
Consider sampling without replacement i.e. simply drawing objects from
an urn containing n distinct objects until the urn is empty. Thus, the number
of possible orderings (arrangements, permutations) of n distinct objects is
equal to the number of ordered n-tuples in sampling without replacement K=n
number of permutations of n objects = n(n-1) = n! (without replacement)
We refer to n! as n factorial.
We will see that n! appears in many of the combinatorial formulas. For large n,
Stirling’s formula is very useful:
21
1.3 Combinations
Example 1.
22
Difference Between Permutation and Combination
The major difference between the permutation and combination are given below:
Permutation Combination
Permutation means the selection of objects, The combination means the selection of objects,
where the order of selection matters in which the order of selection does not matter.
23
Cont…
Example 1. 1
24
Cont…
Example 3: It is required to seat 5 men and 4 women in a row so that the women occupy the even places. How many
such arrangements are possible?
Solution: We are given that there are 5 men and 4 women.
i.e. there are 9 positions.
The even positions are: 2nd, 4th, 6th and the 8th places
These four places can be occupied by 4 women in P(4, 4) ways = 4!
= 4 . 3. 2. 1
= 24 ways
The remaining 5 positions can be occupied by 5 men in P(5, 5) = 5!
= 5.4.3.2.1
= 120 ways
Therefore, by the Fundamental Counting Principle,
Total number of ways of seating arrangements = 24 x 120
= 2880
25
1.4 Axioms and Properties of Probability
Axioms Probability
Probability is a rule that assigns a number to each event A in the sample space, Ω.
In short , the probability of any event A is given by
P( A) n(A)
n()
where
n( A) - is the number of elements in the event A
n() - is the number of elements in the sample space
26
Cont…
1. Probability is a non-negative number, 3. Probability of the union of two mutually
exclusive (disjoint) events is the sum of
i.e., P( A) 0 the probability of the events, i.e.,
2. Probability of the whole set is unity, i.e., If A ∩B , then P( A ∪B) P( A) P(B)
We can generalize axiom (3) for n
P() 1
pairwise mutually exclusive (disjoint)
events.
From axioms (1) and (2), we obtain
If A 1 , A 2 , A 3 , …, A n is a sequence of n
pairwise mutually exclusive (disjoint)
events in the sample space Ω such that
0 P( A) 1
Ai ∩A j , for i j, then
P ∪
n n
Ai P( Ai )
i 1 i1
27
28
Cont…
From the above Venn diagram, we can write the following relations.
i. A ( A ∩ B ) ∪( A ∩ B ) ii. B ( A ∩B ) ∪( A ∩B )
P ( A) P ( A ∩ B ) P ( A ∩ B ) P ( B ) P ( A ∩B ) P ( A ∩B )
P ( A ∩ B ) P ( A) P ( A ∩ B ) P ( A ∩B ) P ( B ) P ( A ∩B )
iii. A ∪ B A ∪( A ∩ B )
iv. A ∪B B ∪( A ∩B)
P ( A ∪B ) P ( A ) P ( A ∩B )
P( A ∪ B ) P ( A ) P ( A ∩B)
29
Cont…
Example-1:
A box contains 10 identical balls numbered 0, 1, 2,…,9. A single ball is selected from the
box at random. Consider the following events.
A: number of ball selected is odd
B: number of ball selected is multiple of 3
C: number of ball selected is less than 5
Find the following probabilities.
a. P( A) d. P( A ∩B)
b. P(B) e. P( A ∪B ∪C)
c. P(C)
30
Cont…
Solution:
The sample space and the events are given by:
{0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9} C {0 , 1 , 2 , 3 , 4}
A {1 , 3 , 5 , 7 , 9} A ∩ B {3 , 9}
B {3 , 6 , 9} A ∪ B ∪ C {0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 9}
The number of elements in the sample space and events are:
n() 10 n (C ) 5
n( A) 5 n( A ∩ B ) 2
n(B) 3 n( A ∪ B ∪C ) 9
31
Cont…
a. P( A) n( A) 5 1 d. P( A ∩B) n( A ∩B) 2 1
n() 10 2 n() 10 5
b. P(B) n(B) 3 e. P( A ∪B ∪C) n( A ∪B ∪C) 9
n() 10 n() 10
c. P(C) n(C) 5 1
n() 10 2
Example-2
Given P( A) 0.9, P(B) 0.8 and P( A ∩B) 0.75, find :
a. P( A ∪B) c. P( A ∩B) e. P( A ∪B)
b. P( A ∩B) d. P( A ∪B) f . P(B)
32
1.5 Bayes's Theorem
Bayes’ theorem describes the probability of occurrence of an event related to any
condition. It is also considered for the case of conditional probability.
Bayes theorem is also known as the formula for the probability of “causes”.
if we have to calculate the probability of taking a blue ball from the second bag
out of three different bags of balls, where each bag contains three different colour balls viz. red,
blue, black. In this case, the probability of occurrence of an event is calculated depending on
other conditions is known as conditional probability.
33
Cont…
Bayes Theorem Formula
If A and B are two events, then the formula for the Bayes theorem is given by:
Where P(A|B) is the probability of condition when event A is occurring while event B has already occurred.
Also, get the Bayes Theorem Calculator here.
35
Cont…
Example 2: A man is known to speak the truth 2 out of 3 times. He throws a die and reports that the number obtained is a
four. Find the probability that the number obtained is actually a four.
Solution:
Let A be the event that the man reports that number four is obtained.
Let E1 be the event that four is obtained and E2 be its complementary event.
Then, P(E1) = Probability that four occurs = 1/6.
P(E2) = Probability that four does not occur = 1- P(E1) = 1 – (1/6) = 5/6.
Also, P(A|E1)= Probability that man reports four and it is actually a four = 2/3
P(A|E2) = Probability that man reports four and it is not a four = 1/3.
By using Bayes’ theorem, probability that number obtained is actually a four, P(E1|A)
36
Cont…
Bayes Theorem Applications
One of the many applications of Bayes’ theorem is Bayesian inference, a particular approach
to statistical inference.
Bayesian inference has found application in various activities, including medicine, science,
philosophy, engineering, sports, law, etc. For example, we can use Bayes’ theorem to define
the accuracy of medical test results by considering how likely any given person is to have a
disease and the test’s overall accuracy.
Bayes’ theorem relies on consolidating prior probability distributions to generate posterior
probabilities. In Bayesian statistical inference, prior probability is the probability of an event
before new data is collected.
37
Cont…
Practice Problems
Solve the following problems using Bayes Theorem.
1.A bag contains 5 red and 5 black balls. A ball is drawn at random, its colour is noted, and again the ball is returned to the
bag. Also, 2 additional balls of the colour drawn are put in the bag. After that, the ball is drawn at random from the bag. What
is the probability that the second ball drawn from the bag is red?
2.Of the students in the college, 60% of the students reside in the hostel and 40% of the students are day scholars. Previous
year results report that 30% of all students who stay in the hostel scored A Grade and 20% of day scholars scored A grade. At
the end of the year, one student is chosen at random and found that he/she has an A grade. What is the probability that the
student is a hosteler?
3.From the pack of 52 cards, one card is lost. From the remaining cards of a pack, two cards are drawn and both are found to
be diamond cards. What is the probability that the lost card is a diamond?
Frequently Asked Questions on Bayes Theorem
What is meant by Bayes theorem in probability?
In Probability, Bayes theorem is a mathematical formula, which is used to determine the conditional probability of the given
event. Conditional probability is defined as the likelihood that an event will occur, based on the occurrence of a previous
38
40
outcome.
Cont…
39
Cont…
40
QUIZE 1
1. A fair die is tossed twice. Find the probability of getting a 4, 5, or 6 on the first toss
and a 1, 2, 3, or 4 on the second toss.
41