Beruflich Dokumente
Kultur Dokumente
Random Variable
Random Variable
0 1 2 3 4 5
7
Copyright 2019, Pearson Education, Ltd. 7
Random Variables
Continuous Random Variable
• Has an uncountable number of possible outcomes,
represented by an interval on the number line.
• Example
x = Hours spent on sales calls in one day.
0 1 2 3 … 24
9
Copyright 2019, Pearson Education, Ltd. 9
Example 1: Discrete and
Continuous Variables
Determine whether each random variable x is discrete or
continuous. Explain your reasoning.
1. Let x represent the number of Fortune 500 companies
that lost money in the previous year.
Solution:
Discrete random variable (The number of companies
that lost money in the previous year can be counted.)
x
0 1 2 3 … 500
0 1 2 3 … 21
Days of Rain, x 0 1 2 3
Probability, P(x) 0.216 0.432 0.288 0.064
Solution
• The sum of all the probabilities is equal to 1, but P(3)
and P(4) are not between 0 and 1.
• Probabilities can never be negative or greater than 1.
So, this distribution is not a probability distribution.
Copyright 2019, Pearson Education, Ltd. 22
Example 5
• Let X be the number of vehicles owned by a randomly selected
family. Write the probability distribution of X and graph for
the data.
23
Copyright 2019, Pearson Education, Ltd. 23
Example 5
P(X)
P(X)
P(X)
25
Copyright 2019, Pearson Education, Ltd. 25
Example 7
• The following table lists the probability distribution
of car sales per day in a used car shop based on past
data.
P(X)
P(X)
27
Copyright 2019, Pearson Education, Ltd. 27
Cumulative Distribution Function
• All random variables (discrete and continuous) have a
cumulative distribution function (CDF) .
• It is a function giving the probability that the random
variable X is less than or equal to x, for every value x.
• For a discrete random variable, the cumulative
distribution function is found by summing up the
probabilities. t
• F ( x) P( X x) P( X x)
x x 0
28
Copyright 2019, Pearson Education, Ltd. 28
Example 8
• A discrete random variable X has the following
probability distribution.
18/21
20/21
22/21
31
P(X)
P(X)
33
Copyright 2019, Pearson Education, Ltd. 33
Example 10
b) Find the probability that at most three room bookings
were cancelled.
P( X 3)
P( X 0) P( X 1) P( X 2) P( X 3)
0.04 0.08 0.14 0.16
0.42
34
Copyright 2019, Pearson Education, Ltd. 34
Example 11
The probability distribution of discrete random variable X is
given as follow:
c (3 t ), t 0,1,2,3
P (T t ) 0 ,otherwise
35
Copyright 2019, Pearson Education, Ltd. 35
Example 11
a) P(T=0)+P(T=1)+P(T=2)+P(T=3)=1
c(3)+ c(2)+ c(1)+ c(0)=1
6c = 1
c = 1/6
• (3-t) (3-0),(3-1),(3-2),(3-3)
= c(3),c(2),c(1),c(0)
36
Copyright 2019, Pearson Education, Ltd. 36
Example 11
1
(3 t ) t 0,1,2,3
P (T t ) 6
0 otherwise
1 1
b) P(T=2) = (3-2)=
6 6
1
P(T=3) = (3-3)= 0
6
1 1 1
c) P 0 T 2 = (3-0) + (3-1) + (3-2)
6 6 6
3 2 1
= + +
6 6 6
=1
x a) n
1
n , x 1,3,5,7 56
P( X x) 3
x , x 2,4,6 b) n 304
n
represent as the sum of the score shown on the top face of both dices.
39
Copyright 2019, Pearson Education, Ltd. 39
Example 13
Solution
a)
x 2 3 4 5 6 7 8 9 10 11 12
f(x) 1/36 2/36 3/36 4/36 5/36 6/36 5/36 4/36 3/36 2/36 1/36
b) 0.2222
c) 0.2778
d) 0.6389
40
Copyright 2019, Pearson Education, Ltd. 40
Mean
Mean of a discrete probability distribution
• μ = Σ xP(x)
• Each value of x is multiplied by its corresponding
probability and the products are added.