Probabbility Distribution Note
Probabbility Distribution Note
X P (X)
Pi 0
X1 P1
n
X2
X3
P2
P3
p
i 1
i 1
.
.
Xn pn
Random Variable and Probability Distribution: Problems
• Three coin are tossed and interested to know the number of head
occurs. Prepare a Probability distribution ?
• Two cards are drawn successively with replacement from 52 cards.
Find the probability distribution of the number of aces.
• X=number of aces, it can take 0, 1 and 2
X Event P (X)
0 Both are non ace 48/52 x 48/52
1 Ace and non ace + Non ace and ace 4/52 x 48/52 + 48/52 x 4/52
2 Both are ace 4/52 x 4/52
1
n
Pi 0, pi 1
i 1
Discrete and Continuous Random Variables
• A RV may be discrete or continuous
• A discrete random variable can take only a finite and specific set of
countable values.
• Eg: Number of sales, Number of calls, People in line, Number of
sales, Number of calls, Shares of stock, People in line, Mistakes per
page
• A continuous random variable assume any value over an interval,
• Eg: Height of a person, Time taken to complete an exam,
temperature, Length, Depth, Volume, Time, Weight etc
Probability distribution of DRV
• Consider an example of rolling two dice (Green and Red).
• The outcomes are 1, 2, 3, 4, 5 & 6 for red and green. There are 36
possible experimental outcomes.
• The random variable defined as X=the sum of two Dice’
green/Red 1 2 3 4 5 6
1 2 3 4 5 6 7
2 3 4 5 6 7 8
3 4 5 6 7 8 9
4 5 6 7 8 9 10
5 6 7 8 9 10 11
6 7 8 9 10 11 12
Value of X 2 3 4 5 6 7 8 9 10 11 12
Frequency 1 2 3 4 5 6 5 4 3 2 1
Probability 1/36 2/36 3/36 4/36 5/36 6/36 5/36 4/36 3/36 2/36 1/36
• If you add all the probabilities together, you get exactly 1. This is
because it is 100 percent certain that the value must be one of the
numbers from 2 to 12.
Discrete Probability Distribution
• The probability distribution of a discrete random variable is a graph,
table or formula that lists all the possible values that a random variable
can assume with their corresponding probabilities
• If the random variable is discrete, its probability distribution is called
probability mass function
• It must satisfy following two condition
1. The probability of any specific outcome for a discrete random
variable must be between 0 and 1, 1 ≥ p(x) ≥ 0 for all values of x
2. The sum of the probabilities of all the outcome is equal to one.
p(x)=1
PMF and CDF 0.18
PMF
0.16
0.14
0.12
Value of X Frequency PMF PDF 0.10
2 1 0.03 0.03 0.08
0.20
0.00
1 2 3 4 5 6 7 8 9 10 11
12
q
i 1
i
Σ Notation (Summation)
• Suppose that the average price per ton of the output in month is pi. The value of
output in month i will be piqi, and the total value during the year will be V, where
V is given by
V = p1q1 + ... + p12 q12.
• We are now summing terms of type piqi with the subscript i running from 1 to 12,
and using Σ
12
pq
i 1
i i
Σ Notation (Summation)
• If ci is the total cost of operating the firm in month i, profit in month i will be (piqi
– ci), and total profit over the year, P, will be given by
P = (p1q1 – c1) + ... + (p12q12 – c12),
• which may be summarized as
12 12
p q c
i 1
i i
i 1
i
• If the price of output is constant during the year at level p, the expression for the
value of annual output can be simplified:
V = pq1+ ... + pq12 = p(q1 + ... + q12)
12
p qi
i 1
Σ Notation (Summation)-Rules
• Rule 1
n n n
( x y ) x y
i 1
i i
i 1
i
i 1
i
• Rule 2, if is a constant
n n
ax
i 1
i a xi
i 1
• Rule 3, if is a constant
n
a na
i 1
Expected value of Discrete Random Variable
x2 E[( X 2 2 2 X ]
x2 E ( X 2 ) E ( 2 ) E (2X )
x2 E ( X 2 ) 2 2E ( X )
x2 E ( X 2 ) 2
• The standard deviation of a random variable is the square root of its
variance.
Population Variance of a Discrete Random Variable
n
X p X2 X2p
xi 2 pi 2
2
x
2 1/36 4 0.11 i 1
3 2/36 9 0.50 x2 54.83 7 2
4 3/36 16 1.33
x2 5.83
5 4/36 25 2.78
6 5/36 36 5.00
7 6/36 49 8.17
8 5/36 64 8.89
9 4/36 81 9.00
10 3/36 100 8.33
11 2/36 121 6.72
12 1/36 144 4.00
54.83
Expectation, Variance -Using Example
• Find the expected value and the variance of the number obtained on a throw of an
dice
• S={1, 2, 3, 4, 5, 6}
X P(X) E ( X ) 3 .5
1 1/6
Var ( X ) 2.91
2 1/6
3 1/6 0 p( x) 1
4
5
1/6
1/6
p( x) 1
6 1/6
Expectation & Variance: Using Example
• Suppose, you are interested to study the behaviour of 2000 families living in your
area in owning vehicles
NO OF VEHICLE OWNED(X) FREQUENCY P
0 30 30/2000=0.015
1 470 470/2000=0.235
2 850 850/2000=0.425
3 490 490/2000=0.245
4 160 160/2000=0.080
N=2000 Sum=1.00
• Suppose one family is randomly selected from this population. This process of
selecting a family from this 2000 family is called a random experiment
• Let ‘x’ denotes the number of vehicle owned by the selected family. ‘x’ can
assume any values 0, 1, 2, 3, 4.
Expectation & Variance: Using Example
Expected value or expectation is the value that we expect to observe per repetition,
on average, if we perform an experiment a large number of times
On average, the houses in this area is expected to have 2.14 vehicle over a period of
time and the variability is 0.84
Variance: the other way
Xi F Pi Xpi (Xi-μ)2 (Xi-μ)2Pi X2 X2pi
0 30 0.015 0 4.5796 0.068694 0 0
1 470 0.235 0.235 1.2996 0.305406 1 0.235
2 850 0.425 0.85 0.0196 0.00833 4 1.7
3 490 0.245 0.735 0.7396 0.181202 9 2.205
4 160 0.08 0.32 3.4596 0.276768 16 1.28
2000 1 2.14 0.8404 5.42
x2 E[( X ) 2 ]
x2 E[( X 2 2 2 X ] x2 E ( X 2 ) 2
x2 E ( X 2 ) E ( 2 ) E (2X )
x2 (5.42) (2.14) 2 0.840
x2 E ( X 2 ) 2 2E ( X )
x2 E ( X 2 ) 2
Joint PDF and Covariance
• Covariance measures of how much two random variables vary together.
• When two RV tend vary in the same direction, then Covariance is positive and if
it vary in the opposite direction, covariance is negative and If covariance is equal
to zero, then there is no any linear relationship between two random variable.
Y = No of adults
P(X)
1 2 3
X= 1 0 0.1 0 0.1
owning a 2 0.3 0.2 0.1 0.6
car 3 0 0.3 0 0.3
P(Y) 0.3 0.6 0.1 1