RV 1
RV 1
Random Variables
Probability and Cumulative Distributions
Expected Values of Discrete Random Variables
Variance and Standard Deviation
The Binomial Distribution
Other Discrete PD
Continuous Random Variables
1
Random Variables
A random variable is a variable that assumes numerical values
associated with the random outcome of an experiment, where
one (and only one) numerical value is assigned to each sample
point.
Notice that:
• there are several possible outcomes
• each possible outcome is assigned a single numeric value,
• all outcomes are assigned a numeric value, and
• the value assigned varies over the outcomes.
Random means occurring purely by chance and Variable means
something can take on different possible values. So a random
variable (RV) is anything that can take on different possible values
determined purely by chance. 2
Discrete and Continuous Random Variables
4
Example
The code 500 is for busy affluent people who travel a lot. It
can work with a cellular phone, your home phone, office
phone, second-home phone, up to 5 additional phones besides x P(x)
your regular one. The computer technology behind this
0 0.1
1 0.2
service is astounding – what the computer does is to first ring 2 0.3
you at the phone you specify as the primary one. If there is 3 0.2
4 0.1
no answer, the computer switches to the secondary phone and
5 0.1
so on up to five allowable switches. The switches are the
expensive part of the service, so the service provider wants to
get information on these switches. The probability
distribution was obtained from data derived from an
experimental run of the programme.
10
Questions
What is the probability that on any single call:
1. More than two switches occur?
2. At least one switch occur?
3. At most three switches occur?
4. Anywhere from one to three switches will occur?
5. Anywhere from one to four switches (both exclusive) will
occur?
6. Anywhere from one (inclusive) to four (exclusive)
switches will occur?
7. Anywhere from one (exclusive) to four (inclusive)
switches will occur?
11
Cumulative Distribution Function
all x all x
14
Variance and Standard Deviation of a RV
Number of
2 V ( X ) E[( X )2]
Switches, x P(x) xP(x) (x-) (x-)2 P(x-)2 x2P(x)
0 0.1 0.0 -2.3 5.29 0.529 0.0
( x )2 P( x) 2.01
1 0.2 0.2 -1.3 1.69 0.338 0.2
2 0.3 0.6 -0.3 0.09 0.027 1.2
3 0.2 0.6 0.7 0.49 0.098 1.8 all x
4 0.1 0.4 1.7 2.89 0.289 1.6
5 0.1 0.5 2.7 7.29 0.729 2.5
2.3 2.010 7.3
E( X 2) [ E( X )]2
P(x) *(x-µ)2
2
SD = 2.01 = 1.417745 x2 P( x) xP( x)
all x all x
16
Example: Car Sales
• The total number of cars to be sold next week is described
by the following probability distribution
x 0 1 2 3 4
p(x) 0.05 0.15 0.35 0.25 0.20
i 1
n n!
n
C x
x x!(n x)!
19
The Binomial Probability Distribution
The binomial probability distribution:
n x ( n x) n!
P( x) p q x ( n x)
pq
x x!( n x)!
where :
p is the probability of success in a single trial,
q = 1-p,
n is the number of trials, and
x is the number of successes. 20
Example -- Binomial Probabilities
21
Solution -- Binomial Probabilities
Given n = 15; p = 0.6 (so q = 0.4) then [ = n*p = 15*0.6 = 9;
2 = n*p*q = 15*0.6*0.4 = 3.6; = 1.8974]
EXCEL APPLICATION 22
BD -- Mean, Variance & SD
Mean of a binomial distribution:
E ( X ) np
V ( X ) npq
2
= SD(X) = npq
23
Other Discrete Probability Distributions:
Poisson
The Poisson probability distribution is useful for determining the
probability of a number of occurrences over a given period of time or within
a given area or volume. That is, the Poisson random variable counts
occurrences over a continuous interval of time or space. It can also be used
to calculate approximate binomial probabilities when the probability of
success is small (p 0.05) and the number of trials is large (n 20).
Poisson D istribution:
xe
P( x) for x = 1,2,3,...
x!
where is the mean of the distribution (which also happens to be
the variance) and e is the base of natural logarithms (e=2.71828...).
24
Poisson assumptions:
– The probability that an event will occur in a short interval
of time or space is proportional to the size of the interval.
– In a very small interval, the probability that two events
will occur is close to zero.
– The probability that any number of events will occur in a
given interval is independent of where the interval begins.
– The probability of any number of events occurring over a
given interval is independent of the number of events that
occurred prior to the interval.
25
Example -- Poisson
Example: n = 200; p = 1/1000 = 0.001
Telephone manufacturers now offer
np = (200)(0.001) = 0.2
1000 different choices for a telephone
(as combinations of colour, type, .
2 0 e .2
options, portability, etc.). A company P ( 0) = 0.8187
0 !
is opening a large regional office, and .21 e .2
P (1) = 0.1637
each of its 200 managers is allowed to 12 ! .2
.2 e
order his or her own choice of a P (2) = 0.0164
2 !
telephone. Assuming independence of .2 3 e .2
P ( 3) = 0.0011
choices and that each of the 1000 3!
choices is equally likely, what is the
probability that a particular choice
will be made by none, one, two, or EXCEL
three of the managers? APPLICATION
26
Continuous Random Variables
A continuous random variable is a random variable that can take on any value
in an interval of numbers.
F(x) = P(X x) =Area under f(x) between the smallest possible value of X (often
-) and the point x.
27