Lecture 4 Discrete Probability Distributions - Copy
Lecture 4 Discrete Probability Distributions - Copy
Instructor :
Discrete Probability Distributions
• Discrete Random variables and Discrete
Probability Distributions
• Mean, Variance, and Standard Deviation of
Discrete Random variables
• The Binomial Distribution
• Other Type of Distributions
2
Random Variables
Random variable:
a numerical description of the outcome of an
experiment.
3
Random Variables
• A random Variable is a variable whose values are
determined by chance, and it is a function from
the sample space of a probability experiment to
the real numbers.
X :S R
Such that {s : X (s ) x } is an event x R , and s S
• That is, a R.V. is a function that assumes values with certain
probabilities.
• If a sample space S is discrete, then every R.V. defined on S
is also discrete, i.e. its range is countable.
• A random variable is either discrete or continuous; in this
lecture, we focus on the discrete case.
4
Examples of Random Variables
• Experiment: flip a coin 3 times.
– Outcomes: TTT, TTH, THT, THH, HTT, HTH, HHT, HHH
– Random variable: X = number of heads.
– X can be either 0, 1, 2, or 3.
• Experiment: observe end-of-week closing stock price.
– Random variable: Y = closing stock price.
– X can be any nonnegative real number.
• The outcome of rolling a single die.
• The number of boys in a family with three children.
• The number of heads that appear when a coin is flipped ten
times.
• The number of A students in a randomly-selected sample of
10 students.
5
Discrete Probability Distributions
• A discrete probability distribution is a listing of all possible
values of a random variable X along with their probabilities
P(X). The probabilities are determined theoretically or by
observation. X | x1 x2 ... xk (...)
,
P ( X ) | p1 p2 ... pk (...)
p
k 1
k 1.
2. 0 ≤ P(x) ≤ 1
i. e,. The probability of each event in the sample space must be between or equal
to 0 and 1.
6
Example 1
Determine whether each distribution is a probability distribution
X 0 5 10 15 20 X 1 2 3 4
P(X) 1/5 1/5 1/5 1/5 1/5 P(X) 1/4 1/8 1/16 9/16
7
Example 2
a. Construct a probability distribution for rolling a single die.
Solution
Since the sample space is 1, 2, 3, 4, 5, 6 and each outcome has a
probability of 1/6. Then distribution of the outcome of rolling a
single die is as shown.
Outcome X 1 2 3 4 5 6
Probability P(X) 1/6 1/6 1/6 1/6 1/6 1/6
8
Example 3
Represent graphically the probability distribution for the sample
space for tossing three coins
Solution
When three coins are tossed, the sample space is represented as
S = { TTT, TTH, THT, HTT, HHT, HTH. THH, HHH }
If X is the random variable for the number of heads.
Then X assumes thee values 0, 1, 2, and 3.
Probabilities for the values of X can be determined as follows:
9
Hence, the probability of getting:
no heads is 1/8, one heads is 3/8, two heads is 3/8, and three
heads is 1/8. From these values, a probability distribution can
be constructed by listing the outcomes and assigning the
probability of each outcome, as shown here.
Number of head X 0 1 2 3
Probability P(X) 1/8 3/8 3/8 1/8
The Graph
Probability P(X)
3/8 -
2/8 -
1/8 -
X
0 1 2 3
10
Example 4
Represent graphically the probability distribution of rolls of two
dice
11
Expected Value (Average) of a Discrete
Random Variable
• Each time a random experiment is carried out, an
associated R.V. takes on a value. Is it possible find an
“average” value of the R.V. ?
• For instance, on average, how many bits are received in
error when 8 bits are transmitted?
• Or, on average, how many bits must be received until the
first (the r-th) error occurs?
– Note that in both cases, you can take a sample, i.e. repeat the respective
experiment several times and take the value of the RV each time.
– An average computed this way is, however, dependent on the sample!
– Is it possible to get a sample independent value?
• Expected value of a random variable X is the theoretical
analogy of the mean, or weighted average of possible values:
E[X] = x i f(x i )
i =1
12
Mean or Expectation (Expected Value)
The Mean or expected value (expectation) of a discrete
random variable X is given by
E(X ) x k p k .
k 1
13
Properties of Expectation
1. If a and b are constants, then
E(aX b ) a E(X ) b .
and
E(aX ) a E(X ).
E(b ) b .
2. If X and Y are random variables, then
E(X Y ) E(X ) E(Y ).
3. If g(X) and h(X) are two functions of random
variables X, then
E( g X h X ) E( g X ) E(h X ).
14
Example 5
Find the mean of the number of spots that appear when a die is
tossed.
Solution
15
Example 6
The probability distribution shown represents the number of trips
of five nights or more that American adults take per year. Find
the mean.
Solution
16
Variance and Standard Deviation
The average spread of a D.R.V. around its expectation is called
the standard deviation, and is computed via the so-called
variance:
V ar (X ) E (x k ) (x k ) p k E x k E x
2 2 2 2 2
k 1
x k2 p k 2
2
Variance
k 1
2
k k
x 2
k 1
p 2
Standard deviation
17
Properties of Variance
18
Example 7
Compute the mean, variance and standard deviation of the
number of spots that appear when a die is tossed.
Solution
The probability distribution of the toss of a die, shown here.
Outcome X 1 2 3 4 5 6
Probability P(X) 1/6 1/6 1/6 1/6 1/6 1/6
The mean X . P X
1 1 1 1 1 1 21
1. 2. 3. 4. 5. 6. 3.5.
6 6 6 6 6 6 5
The Variance
E X E X X
2
2 2 2
. P X 2
1 1 1 1 1 1 21
12. 22. 32. 42. 52. 62. 3.5 2.9.
2
6 6 6 6 6 6 5
The standard deviation
2 2.9 1.7
19
Example 8 Selecting Numbered Balls
A box contains 5 balls. Two are numbered 3, one is numbered 4,
and two are numbered 5. The balls are mixed and one is selected
at random. After a ball is selected, its number is recorded. Then
it is replaced. If the experiment is repeated many times, find the
variance and standard deviation of the numbers on the ball.
Solution
Let x be the number on each ball. The probability distribution is.
Number on ball X 3 4 5
Probability P(X) 2/5 1/5 2/5
The mean
2 1 2
X . P X 3. 4. 5. 4.
5 5 5
The Variance
2 X 2 . P X 2
2 1 2 4
32. 42. 52. 4 0.8.
2
5 5 5 5
The standard deviation
2 0.8 0.894.
20
Example 9
A talk radio station has four telephone lines. If the host المضيفis
unable to talk (i.e., during a commercial) or is talking to a person,
the other callers are placed on hold. When all lines are in use,
others who are trying to call in get a busy signal. The probability
that 0, 1, 2, 3, or 4 people will get through is shown in the
distribution. Find the variance and standard deviation for the
distribution.
21
Solution
23
Example 11 Winning Tickets
One thousand tickets are sold at $1 each for four prizes of $100,
$50, $25, and $10. After each prize drawing, the winning ticket is
then returned to the pool of tickets. What is the expected value if
you purchase two tickets?
Solution
The problem can be set up as follows:
Gain X $98 $48 $23 $8 -$2
Probability P(X) 2/1000 2/1000 2/1000 2/1000 992/1000
24
Example 12 Bond Investment
A financial adviser suggests that his client عميلselect one of two
types of bonds سنداتin which to invest $5000. Bond X pays a
return of 4% and has a default rate of 2%. Bond Y has 2.5%
return a default rate of 1%. Find the expected rate of return and
decide which bond would be a better investment. When the bond
defaults, the investor loses all the investment.
Solution
- The return on bond X is: $5000. 4% = $200.
The Expected value is
E X $200 0.98 $5000 0.02 $96.
- The return on bond Y is: $5000. 2.5% = $125.
Solution
The problem can be set up as follows:
26
Example 14
A construction company wants to submit a bid تقديم عطاءfor
remodeling a school. The research and planning needed to make
the bid cost $4000. If the bid were accepted, the company would
make $26,000. Would you advise the company to spend the
$4000 if the bid has only 20% probability of being accepted?
Explain your reasoning.
Solution
27
Example 15
A dairy farmer مزرعة مخصصة لمنتجات األلبانestimates for the
next year the farm’s cows بقرةwill produce about 25,000
gallons of milk. Because of variation in the market price of milk
and cost of feeding the cows, the profit per gallon may vary
with the probabilities given in the table below. Estimate the
profit on the 25,000 gallons.
Solution
28
Exam Question
Table 1 gives the number of job applications processed at a small employment
agency during the past 100-day period.
Table 1: Number of Job Applications Processed during the Past 100-Day Period
30
Notes on Discrete R.V.
• We notice that
– The discrete distributions are described by their
Cumulative Probability Fun CPFs;
– The CPFs are non-decreasing step functions;
– The CPFs only make jumps at points in the range of the
random variable.
– One can recover the respective mass functions using the
size of the jump;
– The expectation and the variance are computed using the
respective mass function;
– The calculation of probabilities, expectation and variance
involves summation.
31
Any Question
Thank You