0% found this document useful (0 votes)
58 views6 pages

Chapter 2 (Sec3)

1. A discrete random variable is a variable that takes on a countable number of values. Examples include the number of heads when a coin is tossed multiple times or the number obtained when rolling a die. 2. The probability mass function defines the probability that a discrete random variable takes on a particular value. The cumulative distribution function gives the probability that a variable is less than or equal to a value. 3. Important discrete distributions include the binomial, which models independent yes/no trials, the negative binomial, which models the number of trials until a certain number of successes, and the hypergeometric, which models sampling without replacement from two populations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views6 pages

Chapter 2 (Sec3)

1. A discrete random variable is a variable that takes on a countable number of values. Examples include the number of heads when a coin is tossed multiple times or the number obtained when rolling a die. 2. The probability mass function defines the probability that a discrete random variable takes on a particular value. The cumulative distribution function gives the probability that a variable is less than or equal to a value. 3. Important discrete distributions include the binomial, which models independent yes/no trials, the negative binomial, which models the number of trials until a certain number of successes, and the hypergeometric, which models sampling without replacement from two populations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Chapter 2: Discrete Random variables:

Definition: In a random experiment, a random variable is a real function defined


on the sample space S.

Examples:
- Tossing a coin, S={H,T}: we define X =¿
X ( H )=1, X ( T )=0.
- Tossing a die, S={1,2,3,4,5,6}: we define
X =¿
2 if 1∨2 appers
{
Y = 0 if 3∨5 appears
−4 if not
- A student entering a final exam in Sta215, is selected at random. Let X , be
the score of this selected student. X ∈[0,40].

Classification: A random variable is either: discrete (it takes a finite or countable


number of values) or continuous (it takes values in an interval).

I) Laws of discrete random variables.

1) Probability mass (distribution) function:


A probability mass function of a discrete random variable is a function
defined by f X ( x )=P(X =x), where x is a value of X .

Examples.
2 if 1∨2 appears
1) A fair die is tossed. Let Y = 0
−4 { if 5 appears
if not
Find the probability mass function of Y .

2
f Y ( 2 )=P ( Y =2 )=P (1∨2 appears ) = =1/3.
6
1
f Y ( 0 ) =P ( Y =0 )=P ( 5 appears )= .
6
f Y (−4 )=P ( Y =−4 )=1− ( 13 + 16 )= 12 .
x -4 0 2
fY (x) ½ 1/6 1/3

2) One ball is selected at random from a box containing 4 red, 7 blue and
3 yellow balls. Let X ={−1 ¿ ¿0¿if the ball is¿¿ 1¿if not ¿
Find the probability mass function of X .
f X (−1 )=P ( X =−1 )=P ( theball is¿ )=4 /14

f X ( 0 )=P ( X =0 ) =P ( the ball is¿ )=7 /14

f X ( 1 )=P ( X=1 )=1− ( 144 + 147 )= 143 .


x -1 0 1
f X(x) 4/14 7/14 3/14

3) 3 digits are selected at random to form a number. Let X =¿


Find the probability mass function of X .
10
f X (−2 )=P ( X =−2 )=P ( the number starts by 24 )= =0.01
103

f X ( 2 )=1−0.01=0.99 .

x -2 2
f X(x) 0.01 0.99

2) Cumulative distribution function:


A Cumulative distribution function of a discrete random variable is a
function defined by F X ( x ) =P(X ≤ x ),
Examples:

1) Let a probability mass function:


x -1 0 1
f X(x) 0.4 0.25 0.35
F X ( x) 0.4 0.65 1

F X (−1 )=P ( X ≤−1 )=P ( X =−1 )=0.4


F X ( 0 )=P ( X ≤ 0 )=P ( X =−1∨X =0 ) =0.4+ 0.25=0.65
F X ( 1 )=P ( X ≤1 )=P ( X =−1∨ X=0∨X =1 )=1

F X ( x ) =P ( X ≤ x )=0

Find the cumulative distribution function.

0 x←1
FX ( x) =
{
0.4−1 ≤ x< 0
0.650 ≤ x< 1
1 x≥1

2) Let a probability mass function:


x -3 -1 1 2 4
f X(x) 0.2 0.3 0.1 0.2 0.2
F X ( x) 0.2 0.5 0.6 0.8 1
Find the cumulative distribution function.

0 x ←3

{
0.2−3 ≤ x ←1
F X ( x ) = 0.5−1 ≤ x <1
0.6 1 ≤ x <2
0.8 2≤ x< 4
1 x≥4

3) Mean (average, expected value):


- The mean of a random variable X is μ X =E ( X ) =∑
x
x f X ( x ).

- The mean of a function of a random variable X is


E ( g( X) ) =∑ g(x )f X ( x ) .
x

- E ( aX +b )=aE ( X )+ b (law of affine function)


Example: let the pmf of X:
x -1 0 1
f X(x) 0.4 0.25 0.35
Compute E ( X ) , E ( 2 X ) , E ( 1−5 X ) , E ( X 2 ) , E ( 5 X 2 ) .

E ( X ) =(−1 ) 0.4 + ( 0 ) 0.25+ ( 1 ) 0.35=−0.05.

E ( 2 X )=2 E ( X ) =¿−0.1
E ( 1−5 X )=1−5 E ( X ) =1+ 0.25=1.25
2 2 2
E ( X 2)=(−1 ) 0.4+ ( 0 ) 0.25+ ( 1 ) 0.35=0.75
E ( 5 X 2 ) =5 E ( X 2 )=5∗0.75=3.75

4) Variance:
- σ ( X ) =Var ( X )=E( X−E ( X ))2=E (X ¿¿ 2)−¿ ¿.
2

- Var ( aX +b )=a2 Var ( X ) .


- σ ( X ) is called standard deviation.

Example: let the pmf of X:


x -1 0 1
f X(x) 0.4 0.25 0.35

Compute Var ( X ) ,Var ( 2 X−1).

2
Var ( X )=0.75−(−0.05 ) =0.7475 .
Var ( 2 X−1 )=4 Var ( X )=2.99 .
σ ( X )=√ 0.7475=0.8645 .

II) Examples of discrete distributions.


1. Binomial distribution.
The random experiment consists of n independent trials, each trial
has only two outcomes called Success and failure and the
probability of success is p. We define the discrete random variable
X as the number of successes. We say that X has a Binomial
distribution with parameters n and p.
- X ∈{0,1,2,3 , … , n}.
- P ( X=x )=C(n , x) p x (1−p)n −x.
- E ( X ) =np, Var ( X )=np(1− p).

Examples:
1- A fair die is tossed five times. Let X be the number of times, the number
“2” appears. Compute P ( X=3 ) .
1 3 5 2
X ∈{0,1,2,3,4,5 }. P ( X=3 )=C (5,3) ()
6 6
( )

2- The probability that Ali hits the target is 0.6. Find the probability that Ali
hits the targets:
a) Only twice in 6 trials.
b) At least once in 10 trials.

a) Let X be the number of times, Ali hits the target. X has a Binomial
distribution with parameters n=6 and p=0.6.
P ( X=2 )=C ( 6,2 ) ( 0.6 )2 ( 0. 4 )4 =0.183.
b) Let X be the number of times, Ali hits the target. X has a Binomial
distribution with parameters n=10 and p=0.6.
P ( X ≥1 ) =1−P ( X=0 )=1−C ( 10 ,0 )( 0.6 ) ( 0.4 ) =0. 999.
0 10

2. Negative-Binomial distribution.
Each trial has only two outcomes called Success and failure and the
probability of success is p. We define the discrete random variable
X as the number of trials needed to get r successes. We say that X
has a Negative-Binomial distribution with parameters r and p.
- X ∈{r , r+ 1, r +2 , … }.
- P ( X=x )=C(x−1 , r−1) p r (1− p) x−r .
r r ( 1− p )
- E ( X ) = , Var ( X )= .
p p2

Remark. When r =1, the distribution is called geometric.

Ex: Find the probability to get the number “2” for the third time in the fifth toss
of a fair die.
1 3 2
C (4 ,2)( ) (5 /6)
6

Ex: Find the probability to get the red ball for the third time in the seventh
selection from a box containing 4 red and 5 blue balls.
4 3 5 4
C (6 , 2)( ) ( ) .
9 9

3. Hypergeometric distribution.
Suppose a set A of N elements, classified in K elements of type 1 and N-K
elements of type 2. n elements are selected at random (without replacement)
from this set. Let X be the number of selected elements of type 1. We say that X
has a hypergeometric distribution with parameters N, K and n.
- X ∈{0 , 1, 2 , … , min ⁡(n , K )}.
- P ( X=x )=C(K , x)C( N −K , n−x )/C( N , n).
nK nK K N −n
- E ( X ) = , Var ( X )=( )(1− ) .
N N N N−1

Ex: 4 people are selected at random and without replacement from a group of 6
men and 3 women. Find the probability that only 2 men are selected.
C ( 6 , 2 ) C (3 , 2 )
C (9 , 4 )

You might also like