Unit-III Probability and Random Variables
Unit-III Probability and Random Variables
Unit-III Probability and Random Variables
Ex: Measuring the length of a table and Measuring the width of the wall.
Sample Space: The set of all possible outcomes in a random experiment is called
sample space. It denoted by S or Ω.
Ex: In tossing two coins, getting at least one head, i.e., {HH, HT, TH}
In throwing two dice, getting same points on the two faces of the dice may be
an event. E = {(1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6)}
Simple Event: An event which cannot be broken or divided further into smaller
events.
Ex: In throwing a die, getting an odd number is a compound event i.e., E= {1, 3, 5}
Equally Likely Events: Let S is a finite sample space then its sample points are
called Equally Likely if there is no reason to expect any sample space to occur in
preference to other sample points.
Ex: In throwing an unbiased die, all the six faces are equally likely to come.
Independent Event: If the occurrence of one of them does not influence the
occurrence of other, otherwise they are dependent.
• Certain:
If something is certain to happen, then it has a probability of 1.
Express 𝐴𝑈𝐵 as union of two disjoint events 𝐴 and 𝐴̅ ∩ 𝐵 as shown in the venn
diagram. ̅ ∩ B)
A ∪ B = A ∪ (A
Consider probabilities,
̅ ∩ B))
P(A ∪ B) = P(A ∪ (A
̅ ∩ B) [ ∵ from additivity]
= 𝑃(𝐴) + 𝑃(A
Add and subtract 𝑃(𝐴 ∩ 𝐵)
̅ ∩ B) + 𝑃(𝐴 ∩ 𝐵) − 𝑃(𝐴 ∩ 𝐵)
∴ P(A ∪ B) = 𝑃(𝐴) + 𝑃(A
̅ ∩ B) ∪ 𝑃(𝐴 ∩ 𝐵)} − 𝑃(𝐴 ∩ 𝐵)
= 𝑃(𝐴) + 𝑃{(A
̅ ∩ B) and 𝐴 ∩ 𝐵 are disjoint events]
[ ∵ (A
= 𝑃(𝐴) + 𝑃(𝐵) − 𝑃(𝐴 ∩ 𝐵) [from venn diagram]
∴ 𝑃(𝐴 𝑈 𝐵) = 𝑃(𝐴) + 𝑃(𝐵) − 𝑃(𝐴 ∩ 𝐵).
𝐧(𝐀∩𝑩)/𝒏(𝒔)
Conditional Probability: 𝑷(𝐵/𝐴) =
𝒏(𝑨)/𝒏(𝒔)
Baye’s Theorem: If E1, E2, … , En are n mutually disjoint events with
𝐴 = 𝐴 ∩ (𝐸1 ∪ 𝐸2 ∪ … ∪ 𝐸𝑛 )
𝐴 = (𝐴 ∩ 𝐸1 ) ∪ (𝐴 ∩ 𝐸2 ) ∪ … ∪ (𝐴 ∩ 𝐸𝑛 )
𝑃(𝐴) = 𝑃[(𝐴 ∩ 𝐸1 ) ∪ (𝐴 ∩ 𝐸2 ) ∪ … ∪ (𝐴 ∩ 𝐸𝑛 )]
𝑃(𝐴) = 𝑃[(𝐴 ∩ 𝐸1 ) + (𝐴 ∩ 𝐸2 ) + ⋯ + (𝐴 ∩ 𝐸𝑛 )]
𝑛 𝑛
By conditional probability
𝑃(𝐴 ∩ 𝐵) 𝑃(𝐴 ∩ 𝐵)
𝑃(𝐴/𝐵) = ; 𝑃(𝐵/𝐴) =
𝑛(𝐵) 𝑛(𝐴)
P(A ∩ 𝐸𝑖 )
𝑃(𝐸𝑖 /𝐴) =
𝑃(𝐴)
𝑃(𝐴/𝐸𝑖 ) ∗ 𝑃(𝐸𝑖 )
𝑃(𝐸𝑖 /𝐴) = 𝑛 𝑓𝑟𝑜𝑚 ∗∗∗ 𝑎𝑛𝑑 𝑖𝑖
∑𝑖=1 𝑃(𝐴/𝐸𝑖 ) ∗ 𝑃(𝐸𝑖 )
Random Variables
Def: Random variable is a real valued function defined on each and every outcome of the sample
space connected with the random experiment.
Ex: consider a random variable experiment of two tosses of a coin. Then the sample space
There are two types of random variables: Discrete random variable and Continuous random
variable
Discrete random variable: If a random variable takes at most countable number of values is
called a discrete random variable.
Ex:
If a random variable takes all the possible values between certain limits, is called Continuous
Random Variable.
Ex:
The Probability density function of a continuous random variable is denoted by f(x) or 𝑓𝑋 (𝑥).
𝐹(𝑥) = 𝑃(𝑋 ≤ 𝑥)
1. 𝑀𝑒𝑎𝑛 = ∑ 𝑥. 𝑃(𝑥)
2. 𝑉𝑎𝑟𝑖𝑎𝑛𝑐𝑒 = ∑ 𝑥 2 . 𝑃(𝑥) − (𝑚𝑒𝑎𝑛)2
3. 𝐹(𝑥) = 𝑃(𝑋 ≤ 𝑥) = ∑𝑥 𝑃(𝑋 = 𝑥)
Various formulae on continuous random variable
1. Mean = ∫ 𝑥. 𝑓(𝑥) 𝑑𝑥
2. Variance = ∫ 𝑥 2 . 𝑓(𝑥) 𝑑𝑥 − (𝑚𝑒𝑎𝑛)2
3. Harmonic mean H is given by
1 1
= ∫ . 𝑓(𝑥) 𝑑𝑥
𝐻 𝑥
4. Geometric mean G is given by
log 𝐺 = ∫ log 𝑥 . 𝑓(𝑥) 𝑑𝑥