CH 3 3502
CH 3 3502
CH 3 3502
Random Variable
A rule that associate a number to each outcome of an experiment (or each outcome in S) is
random variable.
Bernoulli random variable: Any random variable whose only possible values are 0 and 1
Example: Three automobiles are selected at random, and each is categorized as having a
diesel (S) or nondiesel (F) engine. If X=the number of cars among the three with diesel
engine, list each outcome in S and its associated X value.
y
p(y)
45 46 47 48 49 50 51 52 53 54 55
.05 .10 .12 .14 .25 .17 .06 .05 .03 .02 .01
a. What is the probability that flight will accommodate all ticketed passengers who show
up?
b. What is the probability that not all ticketed passengers who show up can be accommodate?
An automobile service facility specializing in engine tune-ups knows that 45% of all tuneups are done on four cylinder automobiles, 40% on six cylinder automobiles, and 15% on
eight-cylinder automobiles. Let X= the number of cylinders on the next car to be tuned.
What is the pmf of x?
1 if x = 0
p(x; ) =
if x = 1
0
otherwise.
Example: Starting at fixed time, we observe that the gender of each newborn child until a
boy (B) is born. Let p = P (B), and define the random variable X by X=number of birth
observed, then
(
(1 p)x1 p x = 1, 2, 3,
p(x) =
0
otherwise.
For any number x, F (x) is the probability that the observed value of X will be at most x.
Cumulative distribution function for random variable in above example is:
(
1 (1 p)[x]
x>1
F (x) =
0
x < 1.
2
1 2 3 4
.4 .3 .2 .1
Based on definition for cdf, for any two number a and b with a 6 b.
P (a 6 X 6 b) = F (b) F (a )
where a represent the largest possible X value that is strictly less than a. In particular, if
the only possible values are integers and if a and b are integers, then
P (a 6 X 6 b) = F (b) F (a 1)
Taking a = b yields P (X = a) = F (a) F (a 1).
0
x<1
0.3
16x<3
0.4
36x<4
F (x) =
0.45 4 6 x < 6
0.60 6 6 x < 12
1
12 6 x
a. What is the pmf of X?
b. Using just the cdf, compute P (3 6 X 6 6) and P (4 6 X).
Expected Values of Discrete Random Variable
E(X) = x =
xD
P
Expected value for a function h(x) is E[h(x)] = h(x)p(x)
Expected value for a linear function is E(aX + b) = aE(X) + b, therefore for any constant
E(aX) = aE(X)
E(X + b) = E(X) + b
3
(x )2 p(x) = E[(X )2 ].
Also
V (X) = E(X 2 ) [E(X)]2 =
p
The standard deviation of X is x = x2 .
hX
i
x2 p(x) 2 .
P
2
h(x) E[h(x)] p(x).
Compute
a. E(X)
b. V (X)
c. The standard deviation of X.
z Binomial Distribution
A binomial experiment is one that has these five characteristics:
1. The experiment consists of n identical trials.
2. Each trial results in one of two outcomes. The one outcome is called a success S, and
the other a failure, F .
3. The probability of success on a single trial is equal to p and probability of failure is
equal to (1 p) = q.
4. The trials are independent.
5. We are interested in X, the number of successes observed during the n trials, for
X = 0, , n.
4
Example: A marksman hits a target 80% of the time. He fires five shots at the target.
What is the probability that exactly 3 shots hit the target? What is the probability that
more than 3 shots hit the target?
Cumulative Probability Tables
You can use the cumulative probability tables to find probabilities for selected binomial
distributions.
5
N M
CxM Cnx
CnN
max(0, n N + M ) 6 x 6 min(n, M )
Example: A candy dish contains five blue and three red candies. A child reaches up and
selects three candies without looking.
a. What is probability that there are two blue and one red candies in the selection?
b. What is the probability that the candies are all red?
c. What is the probability that the candies are all blue?
Examples:
An instructor who taught two sections of engineers statistics last term, the first with 20
students and the second with 30, decided to assign a term project. After all projects had
been turned in, the instructor randomly order them before grading. Consider the first 15
graded projects.
a. What is the probability that exactly 10 of these are from the second section?
b. What is the probability that at least 10 of these are from the second section?
c. What is the probability that at least 10 of these are from the same section?
d. What is the mean value and standard deviation of the number among these 15 that are
from the second section?
e. What are the mean value and standard deviation of the number of projects not among
these first 15 that are from the second section?
A family decides to have children until it has three children of the same gender. Assuming
P (B) = P (G) = 0.5, what is the pmf of X = the number of children in the family?
E(X) =
z Poisson Distribution
The Poisson random variable x is a model for data that present the number of occurrences
of a specified event in a given unit of time or space.
Examples:
7
x e
,
x!
x = 0, 1, 2,
The mean and standard deviation of the Poisson random variable X are
Mean : E(X) =
Variance : V (X) =
Example: Suppose pulses arrive at the counter at an average rate of six per minute, what
is the probability that in a 0.5-min interval at least one pulse is received?
Cumulative Probability Tables
You can use the cumulative probability tables to find probabilities for selected Poisson
distributions.
Find the column for the correct value of .
The row marked k gives the cumulative probability, P (x 6 k) = P (x = 0) + +
P (x = k)
The Poisson Approximation to the Binomial Distribution
The Poisson probability distribution provides a simple, easy-to-compute, and accurate approximation to binomial probabilities when n is large and = np is small, preferably with
n > 50 and np < 5, i.e.
b(x; n, p) p(x, ) when n , p 0
Examples:
1. The number X of people entering the intensive care unit at the particular hospital on
any one day has a Poisson probability distribution with mean equal to five persons per
day.
a. What is the probability that the number of people entering the intensive care unit
one particular day is two? Less than or equal to two?
b. Is it likely that X will exceed 10? Explain.
2. Sporadic outbreaks of E.coli have occurred at a rate of 2.5 per 100,000 for period of
one year.
a. What is the probability that at most five cases of E.coli per 100,000 are reported
in a given year?
b. What is the probability that more than five cases of E.coli per 100,000 are reported
in a given year?
Suggested Exercises from Chapter 3: 7, 11, 13, 17, 23, 29, 39, 47, 49, 55, 57, 65,
69, 71, 73, 79, 81, 85, 95, 97, 101, 103, 109,