PCS Unit 3
PCS Unit 3
PCS Unit 3
Q.1 A box contains 3 white, 4 red, 5 black balls. A ball is drawn at random. Find the
probability that it is (a) Red (b) not black (c) black or white
Q.3 A card is drawn at random from the pack of 52 cards. Find the probability that its
(a) an ACE (b) a Six or a Heart (c) neither a Nine nor a Spade
Conditional Probability
Instead of considering drawing of 2 cards as a single event, we may consider drawing of each
card as a separate event
As we are interested in DH combination irrespective of the order in which they occur, the
desired probability is P = P(DH) + P(HD)
Joint Probability P(DH) -> Probability of drawing a Diamond first and then a Heart
If the 1st card is drawn and not replaced before the 2nd card drawing event, then
P(DH) = P(D) * P(H/D) = (13/52) * (13/51)
P(H/D) is the conditional probability where 2nd drawing is dependent upon 1st drawing event
It means probability of event H occurring, when it is known that event D has already occurred
If the 1st card is drawn and replaced before the 2nd card drawing event, then
P(DH) = P(D) * P(H) = (13/52) * (13/52)
probability where 2nd drawing is independent upon 1st drawing event
Conditional Probability
Q.1 Urn-A contains two white and three black balls, & Urn-B contains three white and four
black balls. One of the Urns is selected at random and a ball is chosen from it. What is the
probability of drawing a white ball?
Random Variables
• Random -> Experiments governed by laws of chance rather than by any deterministic laws
• An experiment whose outcome cannot be predicted exactly, is a Random Experiment. For
Eg. Tossing a coin, drawing a card or a ball
RANDOM EXPERIMENT
RANDOM VARIABLE
Continuous
Discrete
Probability
Probability Cumulative Cumulative
Distribution
Distribution Distribution Distribution
(Probability
(Probability Mass Function (CDF) Function (CDF)
Density Function,
Function, PMF)
PDF)
Discrete Random Variables/Functions
1. 𝒇 𝒙 ≥ 𝟎
2. 𝞢𝒇 𝒙 = 𝟏
Then the function 𝒇(𝒙) is known as Probability Mass Function (PMF) or Probability
1
𝑃 𝑋 = 0 = 𝑃 𝑥8 =
8
1 1 1 3
𝑃 𝑋 = 1 = 𝑃 𝑥5 + 𝑃 𝑥6 + 𝑃 𝑥7 = + + =
8 8 8 8
1 1 1 3
𝑃 𝑋 = 2 = 𝑃 𝑥2 + 𝑃 𝑥3 + 𝑃 𝑥4 = + + =
8 8 8 8
1
𝑃 𝑋 = 3 = 𝑃 𝑥1 =
8 X 0 1 2 3
Probability Function -> f(x) 1/8 3/8 3/8 1/8
Discrete Probability Distribution (Probability Mass Function, PMF)
Example: Find the Probability Function for chances of getting Heads during 3 tosses of a fair coin.
Possible no. of outcomes = 8 (Sample Space)
Probability of each of the 8 outcomes to occur is 1/8
1
𝑃 𝑋 = 0 = 𝑃 𝑥8 =
8
1 1 1 3
𝑃 𝑋 = 1 = 𝑃 𝑥5 + 𝑃 𝑥6 + 𝑃 𝑥7 = + + =
8 8 8 8
Let random variable X be the Number of Heads
SS = [HHH HHT HTH THH HTT THT TTH TTT]
X = [ x1 x2 x3 x4 x5 x6 x7 x8 ] -> values that X can assume
=[ 3 2 2 2 1 1 1 0]
Continuous Random Variable
Random Variable that takes on an infinite number of values
➢ As there are infinite possible values of X, the probability it takes on any particular value is
𝟏
𝒐𝒓 𝟎
∞
1. 𝒇 𝒙 ≥ 𝟎
2. 𝒇 𝒙 𝒅𝒙 = 𝟏
Then the function 𝒇(𝒙) is known as Probability Density Function (PDF) or Probability
Problem-1:
(a) Find the Constant C so that the function 𝒇 𝒙 = 𝑪 𝒙 − 𝟏 ,𝟏 < 𝒙 < 𝟒 is a PDF.
= 𝟎, 𝒐𝒕𝒉𝒆𝒓𝒘𝒊𝒔𝒆
(b) Find 𝑷 𝟐 < 𝑿 < 𝟑 .
Problem-2:
If X is a Continuous RV with the following PDF 𝒇 𝒙 = 𝑲 𝟐𝒙 − 𝒙𝟐 ,𝟎 < 𝒙 < 𝟐
= 𝟎, 𝒐𝒕𝒉𝒆𝒓𝒘𝒊𝒔𝒆
Find (a) K (b) 𝑷 𝑿 > 𝟏 .
Joint Probability
If X and Y are two discrete random variables, then Joint Probability Function
of X and Y is f(x,y) provided f(x,y) satisfies these two conditions
Let
The Probability that X = xj is known as Marginal Probability of X and is
obtained by adding all the entries in the Row corresponding to xj
The Probability that X = yk is known as Marginal Probability of Y and is
obtained by adding all the entries in the Columns corresponding to yk
Joint Probability
If X and Y are two Continuous Random Variables, then Joint Probability Function
of X and Y is f(x,y) provided f(x,y) satisfies these two conditions