Professional Documents
Culture Documents
Random Variables
Definition: A random variables is used to numerically describe the outcomes of an experiment.
Experiment, Outcomes, Random Variable
Random Variables
Attending classes
Playing matches in a tournament
Participating in 100 m sprint
Operations of a company
Watching Movies
Vishal Mishra (IBS, Hyderabad)
Random Variables
Probability Concepts
Definition: Numerical measure of the chance of occurrence of an event.
Probability Distributions
An arrangement/description that depicts/describes the values of a random
variables along with the probabilities associated with those values.
Probability Distributions
Example:
1 Blue 10 0.3333
2 Red 14 0.4667
3 Green 6 0.2
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Example:
1 10 0.3333
2 20 0.4667
3 30 0.2
Probability Distributions
Example:
Class Intervals (Marks) Frequency Relative Frequency
Probability Distributions
Example: An urban survey of 1000 households of a metropolitan city for studying the number
of motor vehicles owned by a household Number of Vehicles Probability
0 0.15
(Discrete/Continuous?) 1 0.3
(Properties?) 2 0.25
3 0.2
4 0.1
Example: A study (of 50 workers ) to assess time taken for assembling a desktop computer in a
factory.
Time Taken (hour) Probability
<1 0.25
(Discrete/Continuous?) 1-2 0.45
(Properties?) 2-3 0.25
>3 0.05
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions:
Uniform Distribution
Binomial Distribution
Poisson Distribution
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions:
Uniform Distribution: When an experiment result in outcomes that are finite and are equally
likely.
e.g. Toss of a fair coin (Outcome: Head/Tail), Throw of a fair dice (Outcome: face with one of
the value out of 1, 2, 3, 4, 5, 6).
Probability function is f(X) = 1/n ; where n is the number of possible outcomes i.e.
the number of values, a random variable can take
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions:
Uniform Distribution:
Probability function is f(X) = 1/n ; where n is the number of possible outcomes i.e.
the number of values, a random variable can take
X f(X)
Example: Number on the face of a fair dice 1 1/6
2 1/6
3 1/6
4 1/6
5 1/6
6 1/6
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions:
Probability Distributions
Discrete Probability Distributions:
Mean Variance
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions:
Probability Distributions
Discrete Probability Distributions: Binomial Probability Distribution:
𝑛!
f(x) = * px * (1-p) (n-x)
𝑥! 𝑛−𝑥 !
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions: Binomial Probability Distribution:
𝑛!
f(x) = * px * (1-p) (n-x) ;
𝑥! 𝑛−𝑥 !
Probability function is also called as probability mass function for discrete distributions
Probability Distributions
Discrete Probability Distributions: Binomial Probability Distribution:
Here n= 4; p = ½ = 0.5; x = 1
4!
f(1) = * (0.5)1 * (0.5) (4-1) ;
1! 4−1 !
= 4 * 0.5 * 0.125
= 0.25
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions: Binomial Probability Distribution:
Tree Diagram: Experiment of 4 tosses of a fair coin
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions: Binomial Probability Distribution:
Tree Diagram: E.g., we want to find the probability of 1 head in 4 tosses of a fair coin
Total no. of
outcomes
= 16
Outcomes with
Only 1 head
=4
Probability Distributions
Discrete Probability Distributions: Binomial Probability Distribution:
For the earlier example, if the outcome of interest is the number of heads
Probability Distributions
Discrete Probability Distributions: Binomial Probability Distribution:
Problem: Using the original formulas for mean (E.V) and variance of a distribution find
out the mean and variance of the distribution in the above experiment
Probability Distributions
Discrete Probability Distributions: Binomial Probability Distribution:
Experiment is Four tosses of a fair coin, Outcome of interest is head (i.e., random
variable is the number of heads)
x (no. of heads) Probability, f(x)
0
Expected Value: E(X) = µ
1
Variance: Var (X) = E(X - µ)2 = σ 2
2
4
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions: Binomial Probability Distribution:
Experiment is Four tosses of a fair coin, Outcome of interest is head
1 0.25
Var (X) = E(X - µ)2 = σ 2 = ∑ [(Xi - µ) 2 * f(Xi)]
2 0.375
3 0.25
4 0.0625
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions: Binomial Probability Distribution:
Experiment is Four tosses of a fair coin, Outcome of interest is head
x (no. of
heads) Probability, f(x) x * f(x) (x-Mean)2 (x-Mean)2 * f(x)
E(X) = µ = ∑ [Xi * f(Xi)] 0 0.0625
1 0.25
Var (X) = E(X - µ)2 = σ 2 2 0.375
Mean Variance
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions: Binomial Probability Distribution:
Graphical representation of probability distribution (Experiment is Four tosses
of a fair coin, Outcome of interest is head)
x (no. of heads) Probability, f(x)
f(x) (Probability)
0.4
0 0.0625
0.35
0.3
1 0.25
0.25
0.2 2 0.375
0.15
0.1 3 0.25
0.05
0
4 0.0625
0 1 2 3 4
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions: Binomial Probability Distribution:
Practice Problem: In a throw of a fair dice, one is interested in the outcome of an even
number. What is the probability that in 10 throws we will get an even number i) 2 times ii) 8
times iii) at least 3 times?
What is the probability that we will get an odd number iv) 2 times v) less than 2 times vi) at the
most 2 times vii) at least 2 times?
n=10; p=0.5
Probability Distributions
Discrete Probability Distributions:Binomial Probability Distribution:
Solution:
p=0.5(for getting an even number), n=10
i) f(x=2) = 0.0439
ii) f(x=8) = 0.0439
Probability Distributions
Discrete Probability Distributions: Binomial Probability Distribution:
Solution:
P=0.5 (for getting an odd number), n=10
Probability Distributions
Discrete Probability Distributions: Binomial Probability Distribution:
Practice Problem : In a city 25% of the people use metro train. From a random sample of 12
people what is the probability that i). exactly 8 people use the metro ii). less than 2 people use
the metro
f(x=8)
f(x<2) = f(x=0) + f(x=1)
Practice Problem : A machine at a production plant for the manufacturing of electrical motor
produces 2% defective parts. If 25 parts are selected randomly what is the probability that i) 1
part is defective ii). More than 5 parts are defective iii). At least 3 parts are defective?
p=0.02, n=25
f((x=1); f(x>5) = 1 – f(x<=5)
f(x>=3) = 1- f(x<3)
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions: Poisson Probability Distribution:
Example: no. of cars passing through a signal in a given hour; no. of telephone calls in a given
duration at a call centre
If µ = mean number of occurrences (observed from the past data) and x = number of
occurrences in an interval
Then probability of x occurrences
Probability Distributions
Discrete Probability Distributions: Poisson Probability Distribution:
Problem: Consider visitors on a web-site during sale hours. if past data indicates that the mean
number of such visitors in a given minute is 7, what is the probability of 10 visitors landing on
the web-site during a minute during sale hours? (Assume that such visits follow a Poisson
distribution)
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions: Poisson Probability Distribution:
Problem: Consider visitors on a web-site during sale hours. if past data indicates that the mean
number of such visitors in a given minute is 7, what is the probability of 10 visitors landing on
the web-site during a minute during sale hours? (Assume that such visits follow a Poisson
distribution)
Here µ = 7, x = 10
Then Poisson probability of 10 visitors
f(10) = (e-7 * 710) / 10!
= 0.071
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions: Poisson Probability Distribution:
Consider visitors on a web-site during sale hours. if past data indicates that the number of such
visitors in a given minute is 7, what is the probability of 10 visitors landing on the web-site
during a minute during sale hours? (Assuming that such visits follow a Poisson distribution)
f(x) (Probability)
Graphical representation 0.16
0.14
0.12
0.1
0.08
0.06
0.04
0.02
0
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 25 25
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions: Poisson Probability Distribution:
Problem: Past data shows that phone calls arrive at a call centre at the rate of 36 per hour. Find out
Probability Distributions
Discrete Probability Distributions: Poisson Probability Distribution:
Problem: Past data shows that phone calls arrive at a call centre at the rate of 36 per hour. Find
out
- The probability of receiving 45 calls per hour (mean = 36) : f(X=45) = 0.021
- (36 calls per hour = 36 calls in 60 minutes. In 60 minutes there are 36 calls, thus, using
unitary method no. of calls in 5 minutes = (36*5)/60 = 3)
The probability of receiving 4 calls in a five minute interval (mean = 3) : f(X=4) = 0.168
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions: Poisson Probability Distribution:
- The probability of receiving at least 4 calls in a five minute interval (mean = 3) : f(X>= 4) =
0.3528
- The probability of receiving at most 3 calls in a five minute interval (mean = 3) : f(X<=3) =
f(x=0)+f(x=1)+f(x=2)+f(x=3) = 0.6472
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions: Poisson Probability Distribution:
Practice Problem: Past data indicates that the mean number of vehicles passing through a
signal during a minute is 5. If the occurrence of the vehicles follows Poisson distribution then
what is the probability that 10 vehicles will pass in 2 minute through that signal.
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions: Poisson Probability Distribution:
Practice Problem: Past data indicates that the mean number of vehicles passing through a
signal during a minute is 5. If the occurrence of the vehicles follows Poisson distribution then
what is the probability that 10 vehicles will pass in 2 minute through that signal.
Solution: µ = 10, x = 10
f(x = 10) = (e-10 * 1010) / 10! = 0.1251
Vishal Mishra (IBS, Hyderabad)
Probability Distributions
Discrete Probability Distributions: Poisson Probability Distribution:
Practice Problem: The average number of customer calls at a call centre during a 30 second
duration is 3. If the calls follow a Poisson distribution then what is the probability that 5 calls
will come in a 2-minute duration. What about more than 3 calls?
mean=?
f(x = 5)
f(x>3) = 1- f(x<=3)