Chapter 04 - Random Variables
Chapter 04 - Random Variables
Hence
EXAMPLE 2
Three balls are randomly chosen from an urn containing 3 white, 3 red, and 5 black balls. Suppose that we
win for each white ball selected and lose for each red selected. If we let denote our total winnings from
the experiment, then is a random variable taking on the possible values with respective probabilities:
(CUMULATIVE) DISTRIBUTION
FUNCTION
For a random variable , the function defined by
is called the cumulative distribution function (CDF), or more simply the distribution
function of . Thus, the distribution function specifies, for all real values , the
probability that the random variable is less than or equal to .
Suppose that . Because the event is contained in the event it follows that , the
probability of the former is less than or equal to , the probability of the latter. In other
words, is a non-decreasing function of .
DISCRETE RANDOM
VARIABLES
random variable that can take on at most a countable number of possible values is
A
said to be discrete. For a discrete random variable , the probability mass function of
is defined by:
The probability mass function is positive for at most a countable number of values of
. That is, if must assume one of the values then
c)
d)
CUMULATIVE DISTRIBUTION
FUNCTION - REVISITED
The cumulative distribution function can be expressed in terms of by
For example, if has a probability mass function given by , then its cumulative
distribution function is given by:
CUMULATIVE DISTRIBUTION
FUNCTION - REVISITED
EXPECTED VALUE
The expected value of is a weighted average of the possible values can take on, each
value weighted by its respective probability. Expected value of is defined by:
For instance when can assume two values 0 and 1 with following probabilities,
Compute .
Letting we have:
EXPECTATION OF A FUNCTION
OF A RANDOM VARIABLE
is a discrete random variable that takes on one of the values with respective
If
probabilities , then for any real-valued function :
Proof
As we can group the same values of we can write:
EXAMPLE 6
A product, sold seasonally, yields a net profit of dollars per unit sold and a net loss of
dollars per unit left unsold when the season ends. Let : The number of units of the
product ordered during any season with mass function . If the store must stock this
product in advance, find the expected profit in its simplest form.
Start by denoting as the number of units stocked. Then the profit function would be
Proof
VARIANCE
gives us the weighted average of possible values of , but it
does not give us the spread, the variation, of these values.
As we expect to take on values around its mean , it would
appear that a reasonable way of measuring the possible
variation of would be to look at how far apart would be
from its mean on the average.
Definition:
If is a random variable with mean ; then the variance of ,
denoted by is:
VARIANCE
Proof
STANDARD DEVIATION
Standard deviation is also a measure of variation from the mean, the difference is
StDev is expressed in the same units as the measured data.
DISCRETE UNIFORM
DISTRIBUTION
The discrete uniform distribution is a symmetric probability distribution where a
finite number of values are equally likely to be observed; every one of values has
equal probability .
The roll of a fair die is the perfect example of discrete uniform distribution.
Discrete uniform distribution is denoted as with any outcome between and inclusive
having the same probability. Expected value of is
THE BERNOULLI TRIAL
Suppose that a trial, or an experiment, whose outcome can be classified as either a
success or a failure is performed. If we let , when the outcome is a success and
, when it is a failure, then the probability mass function of X is given by
Variance:
CDF:
POISSON RANDOM VARIABLE
random variable is a Poisson Random Variable with parameter , if it takes on
A
the following PMF values:
EXAMPLE 10
Suppose that the number of errors on a page has a Poisson distribution with parameter
Calculate the probability that there is at least one error on a given page.
Letting X denote the number of errors, we are looking for:
PROPERTIES OF THE POISSON
RANDOM VARIABLE
Expected Value:
Variance:
CDF:
APPROXIMATION OF
BINOMIAL WITH POISSON
For this to give an accurate approximation we need to be large and to be small
enough. In which case the variances of both distributions would also be similar.
EXAMPLE 11
Suppose that the probability of an item produced by a certain machine will be
defective is 0.1. Find the probability that a sample of 10 items will contain at most 1
defective item.
Binomial Exact Solution:
Poisson Approximation:
EXAMPLE 12
Suppose that earthquakes occur in İstanbul with parameter and with 1 week as the
unit of time (i.e. 2 earthquakes per week).
a. Find the probability that at least 3 earthquakes occur during the next 2 weeks.
b. Find the probability distribution of the time, starting from now, until the next
earthquake.
c.
d. Let denote the amount of time, in weeks, until the next earthquake. The CDF of
is given by: .
GEOMETRIC RANDOM
VARIABLE
Suppose that independent trials, each having success probability , , are performed
until the first success occurs. If we let be the number of trials required, then
EXAMPLE 13
urn contains white and black balls. Balls are randomly selected, one at a time,
An
until a black one is obtained. If we assume that each selected ball is replaced before
the next one is drawn, what is the probability that
a. exactly draws are needed?
b. at least draws are needed?
c.
d. This means that the first trials are a failure: .
NEGATIVE BINOMIAL
RANDOM VARIABLE
Suppose that independent trials, each having success probability , , are performed
until a total of successes occur. If we let be the number of trials needed to
accumulate successes, then:
HYPERGEOMETRIC RANDOM
VARIABLE
Suppose that a sample size is to be chosen randomly (without replacement) from an
urn containing balls, of which are white and , are black. If we let denote the number
of the white balls selected, then:
EXAMPLE 14
purchaser of electrical components buys them in lots of size 10. It is his policy to
A
inspect 3 components randomly from the lot and to accept the lot only if all 3 are
nondefective. If 30 percent of the lots have 4 defective components and 70 percent
have only 1, what proportion of lots does the purchaser reject?
Let denote the event that the purchaser accepts a lot, denote the event that the lot has
4 defectives and denote the event that the lot has 1 defective:
EXERCISE 1
Suppose that the distribution function of X is given by
a)Find
b)Find .
EXERCISE 1 - CONTINUED
a.
b. .
EXERCISE 2
Airlines find that each passenger who reserves a seat fails to show up with probability
0.1 independently of the other passengers. Teeny Weeny Airlines always sell 10
tickets for their 9 seat airplane while Blockbuster Airlines always sell 20 tickets for
their 18 seat airplane. Which airlines company is overbooked more often?
T: The number of people on a typical flight of TWA
B: The number of people on a typical flight of BA
EXERCISE 3
salesman has scheduled two appointments to sell encyclopedias. His first
A
appointment will lead to a sale with probability 0.3, and his second will lead
independently to a sale with probability 0.6. Any sale made is equally likely to be
either for the deluxe model, which costs $1000, or the standard model, which costs
$500.
a)Determine the probability mass function of , the total dollar value of all sales.
b)Find and .
EXERCISE 3 - CONTINUED
; each sale is equally likely to be $1000 or $500.
a) , the total dollar value of all sales, can take the values 0, 500, 1000, 1500, 2000. The
corresponding probability values are calculated as
b)
EXERCISE 4
consumer organization that evaluates new automobiles customarily reports the
A
number of major defects in each car examined. Let denote the number of major
defects in a randomly selected car of a certain type. The cumulative distribution
function of is as follows:
b)
c)
d)