Basics of Probability
Basics of Probability
Analytics
Prof. Soumen Manna
Session 01-03
What is Probability?
• It’s a measurement of uncertainty.
Probability in daily life
• Weather Forecasting
Before planning for an outing or a picnic, we always check the weather forecast.
Suppose it says that there is a 60% chance that rain may occur. Do you ever wonder
where this 60% comes from?
Probability helps in analyzing the best plan of insurance which suits you and your family the most.
For example, if you are an active smoker, and chances of getting lung disease are higher in you. So,
instead of choosing an insurance scheme for your vehicle or house, you may go for your health
insurance first, because the chance of your getting sick is higher. For instance, nowadays people are
getting their mobile phones insured because they know that the chances of their mobile phones
getting damaged or lost are high.
Probability in daily life
• Sports Strategies
A cricket coach assesses a player’s batting and bowling ability by taking his average performance in
previous matches before placing him in the lineup.
Probability in daily life
• Politics
Every scientific research is based on probability. Scientists keep possibilities in mind as they
research and try to create new things. Because researchers do not know in advance what
the results of their research will be. If the results were already known, there would be no
need for research. Therefore, feasibility is important in every research.
Foundation
E = Throwing of a dice
S = {1, 2, 3, 4, 5, 6}
Foundation
Example 3:
E2 = You draw two balls from a bag containing 5 green and 7 red balls.
With replacement
S2 = S1XS1 = {(g1, g1), (g1, g2), …,(g1,r7), …..,(r6,r7), ( r7, r7)}
Without replacement
S2 = S1XS1 = { (g1, g2), …,(g1,r7), …..,(r6,r7), ( r7, r7)}
Foundation
Example 8:
There are buses in every 30 minutes at a bus stop. Let X denotes the
waiting time at the bus stand. Then the sample space of X is
S = [0, 30)
Foundation
Example 9:
At a car park there are 100 vehicles, 60 of which are cars, 30 are vans
and the remainder are lorries. Every vehicle is equally likely to leave.
Let X be the 1st vehicle to leave. Then the sample space of X is
A = ɸ; ‘nothing’,
A = {HH}; ‘both head’,
A= {TH, HT}; ‘exactly one head’ or ‘exactly one tail’ or ‘both head and
tail’
A = {HH, TH, HT}; ‘at least one head’ or ‘at most one tail’.
Foundation
1. 0 ≤ P(A) ≤ 1.
2. P(ɸ) = 0, P(S) = 1.
3. For any two events A and B, P(AUB) = P(A) + P(B) - P(A∩B), where
AUB is read as ‘A union B’ or in common parlance ‘A or B’, and A∩B
is read as ‘A intersection B’, or in common parlance ‘A and B’.
• All the questions under this category, you will be given the probability
values of one or more events and you will be asked the probability
value of a related event. You have to use the properties of probability
to solve these questions. For example:
Q. If P(A) =0.3, P(B)= 0.4 and A and B are independent events, find
P(AUB).
Foundation
Category 1:
Q. If P(A) =0.3, P(B)= 0.4 and A and B are independent events, find
P(AUB).
• Ans. Note that the sample space S of this experiment is {HH, TH, HT, TT}. Since the probability of
each sample point is not given in the question, we assume they are equal probable, i.e., 0.25 in
this case.
a) Here our favorable event A consists of only one sample point HH, where both heads occur. Hence,
P(A) = P(HH) = 0.25.
b) Here our favorable event A consists of three sample points HH, TH and HT, because these are the 3
out of 4 possible outcomes where at least one head occur. Therefore, P(A) = P(HH)+P(TH)+P(HT) =
0.75.
Foundation
• Category 2 Type 1:
• Q. Suppose that the probability of occurring x accidents per year in a busy street of Mumbai is
given by
3𝑥
𝑃 𝑥 = 𝑒 −3
𝑥!
What is the probability that there is at least one accident in this year?
Ans. Note that the number of accidents in this year can be any number between 0 to infinity. Here
the sample space S = {0,1, 2, 3,...} and the probability value for each sample point is given. The
favorable event (or the event of interest as asked for in the question) is A = { 1, 2, 3,...}. So,
P(A)= 1 – P(Ac)
= 1 – P(X=0)
3 0
=1- 𝑒 −3
0!
= 1 - e-3
=0.9502
Foundation
• Category 2:
Ans. Here the sample space S is the interval (0, 2) and the event A is the
interval (1, 2). Hence,
23
P(A) = P(1<x<2) = 1 8 4𝑥 − 2𝑥 2 𝑑𝑥 = 0.5.
Foundation
Thus, any question regarding finding probability of an event
fundamentally falls into any of these categories and can be solved
accordingly.
Some shortcuts may exist for certain problems. And in many problems,
the fundamental information regarding the probability of each sample
point is given under many jargons.
Your job is to correctly identify it. Sometimes you may find it difficult to
write the favorable event A in subset notation.
I will suggest you to first understand the process E and write down
corresponding the sample space S. Identifying the event A and finding
P(A) will be easy then.
Example
Q1. Two standard dice are rolled together. What is the probability that
both of them will appear the same?
event A = {(1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6)}.
n(S) = 36, (total no. of sample points)
Related questions:
a) Sum of two dice is 10.
b) Sum of two dice is 13
c) 1st dice is less than the second
Exercise
Q2. Four persons are chosen at random from a group of 3 men, 2
women and 4 children. What is the chance that exactly two of them
will be children?
Foundation
Random Variable: A random variable X is a function from the sample space S (of some known
or unknown random experiment E) to the real number set R (or, subset of R).
For Example,
Let E = tossing of a coin two times
S = {HH, HT, TH, TT}
Let X denotes the ‘number of tails’. Then X is a Random variable.
X transfer:
HH → 0
HT, TH →1
TT → 2
with their probability, i.e., P(X=0) = P(HH)=1/4; P(X=1) = P(HT, TH) = 1/2 ; P(X=1) = P(TT) = 1/4.
You can consider a random variable X as a projection of a random experiment whose sample
space is a subset of the Real number space.
Practice Problems
https://www.hitbullseye.com/Probability-Examples.php
https://www.hitbullseye.com/Probability-Problems.php
https://www.hitbullseye.com/Problems-on-Probability-with-
Solutions.php
End of the class