Discrete Random Variables and Probability Distributions
Discrete Random Variables and Probability Distributions
Distributions variable.
Ex. Use the data below to find out the expected The Expected Value of a Function
The Expected Value of X number of the number of credit cards that a student
Rules of the Expected Value
will possess.
Let X be a discrete rv with set of If the rv X has the set of possible values E (aX + b) = a ⋅ E ( X ) + b
x = # credit cards
possible values D and pmf p(x). The D and pmf p(x), then the expected
expected value or mean value of X,
x P(x =X) E ( X ) = x1 p1 + x2 p2 + ... + xn pn value of any function h(x), denoted This leads to the following:
0 0.08
denoted E ( X ) or µ X , is 1 0.28
= 0(.08) + 1(.28) + 2(.38) + 3(.16) E[h( X )] or µh ( X ) , is 2. For any constant a,
+ 4(.06) + 5(.03) + 6(.01)
E ( X ) = µX = x ⋅ p (x )
2 0.38
E[h ( X )] = h (x) ⋅ p (x) E (aX ) = a ⋅ E ( X ).
3 0.16
x∈D
=1.97 D
4 0.06
5 0.03 About 2 credit cards
2. For any constant b,
6 0.01 E ( X + b) = E ( X ) + b.
The Variance and Standard Ex. The quiz scores for a particular student are given 2 2
V ( X ) = .08 (12 − 21) + .15 (18 − 21) + .31( 20 − 21)
2
below: Shortcut Formula for Variance
Deviation 22, 25, 20, 18, 12, 20, 24, 20, 20, 25, 24, 25, 18
2 2
+.08 ( 22 − 21) + .15 ( 24 − 21) + .23( 25− 21)
2
Let X have pmf p(x), and expected value µ Find the variance and standard deviation.
V ( X ) = 13.25
Then the variance of X, denoted V(X) Value 12 18 20 22 24 25 V (X ) = σ 2 = x2 ⋅ p ( x ) − µ 2
(or σ X2 or σ 2 ), is Frequency 1 2 4 1 2 3 σ = V (X ) = 13.25 ≈ 3.64 D
V (X ) = ( x − µ ) 2 ⋅ p ( x ) = E [( X − µ ) 2 ]
Probability
µ = 21
.08 .15 .31 .08 .15 .23
( )
= E X2 − E(X )
2
D 2 2 2
V ( X ) = p1 ( x1 − µ ) + p2 ( x2 − µ ) + ... + pn ( xn − µ )
The standard deviation (SD) of X is
σ = V (X )
σ X = σ X2
Ex. A card is drawn from a standard 52-card deck. Ex. 5 cards are drawn, with replacement, from a
If drawing a club is considered a success, find the Notation for cdf standard 52-card deck. If drawing a club is
probability of Mean and Variance considered a success, find the mean, variance, and
a. exactly one success in 4 draws (with replacement). standard deviation of X (where X is the number of
For X ~ Bin(n, p), the cdf will be successes).
p = ¼; q = 1– ¼ = ¾
For X ~ Bin(n, p), then E(X) = np, V p = ¼; q = 1– ¼ = ¾
denoted by
4 1
1
3
3
x (X) = np(1 – p) = npq, σ X = npq
1
1 4 4 ≈ 0.422 P( X ≤ x ) = B ( x; n, p ) = b( y ; n , p ) (where q = 1 – p). µ = np = 5 =1.25
4
b. no successes in 5 draws (with replacement). y =0
1 3
V ( X ) = npq = 5 = 0.9375
5 1
0
3
5 x = 0, 1, 2, …n 4 4
≈ 0.237
0 4 4 σ X = npq = 0.9375 ≈ 0.968
Ex. If the probability of a student successfully passing
this course (C or better) is 0.82, find the probability
The Hypergeometric Distribution
that given 8 students 1. Each individual can be
3.5 The three assumptions that lead to a characterized as a success (S) or
8
a. all 8 pass. ( 0.82 ) ( 0.18) ≈ 0.2044
8 0
hypergeometric distribution: failure (F), and there are M
8
successes in the population.
b. none pass. 8
( 0.82) 0 ( 0.18) 8 ≈ 0.0000011 Hypergeometric and 1. The population or set to be sampled
0 consists of N individuals, objects, or 2. A sample of n individuals is
c. at least 6 pass. Negative Binomial elements (a finite population). selected without replacement in
8
( 0.82 )6 ( 0.18) 2 +
8
( 0.82 )7 ( 0.18 )1 +
8
( 0.82 )8 ( 0.18) 0 Distributions such a way that each subset of size
6 7 8 n is equally likely to be chosen.
≈ 0.2758 + 0.3590 + 0.2044 = 0.8392
Poisson Distribution
pmf of a Negative Binomial
Negative Binomial
Mean and Variance
3.6
The pmf of the negative binomial rv X A random variable X is said to have
with parameters r = number of S’s and a Poisson distribution with
p = P(S) is r (1 − p) r (1 − p) The Poisson Probability parameter λ ( λ > 0 ) , if the pmf of X
E(X ) = V (X ) =
x + r +1 p p
2
Distribution is
nb ( x; r , p) = p r (1 − p) x e −λ λ x
r −1 p ( x; λ ) = x = 0,1, 2...
x!
x = 0, 1, 2, …