Professional Documents
Culture Documents
2
Discrete random variables
3
Discrete random variables
4
Discrete random variables
Example : Independent trials, consis:ng of the flipping
of a coin having probability p of coming up Heads, are
performed un:l either a Heads occurs, or a total of n
flips is made. Let X be the r.v. deno:ng the number of
:mes that the coin is flipped. The p.m.f. for X is:
Discrete random variables
Example: Three balls are are chosen from an urn containing 3
white, 3 red, and 5 black balls. Suppose we win $1 for each
white ball selected, and lose $1 for each red one. Probability
that we win some money?
Solu:on: Let X = total winnings, taking values
Discrete random variables
It is oaen instruc:ve to present the probability mass
func:on in a graphical format, plobng the mass
against the values of the random variable.
Cumula:ve distribu:on func:on
Defini:on of Cumula:ve Distribu:on Func:on (cdf)
For a random variable X, the func:on F defined by: for each a,
, is called the cumula:ve
distribu:on func:on (cdf). The pmf can be determined
uniquely from the cdf and vice versa.
Example. Suppose that X takes the values 0, 1, 3 and 4 with
respec:ve probabili:es 0.1, 0.3, 0.4 and 0.2. Sketch the
distribu:on func:on.
8
Cumula:ve distribu:on func:on
Proper:es of the Cumula:ve Distribu:on Func:on
All probability ques:ons about X can be answered in
terms of the cdf F. For example,
Proper:es of cdf:
1. F is non-decreasing, that is,
2.
3. F is right-con:nuous. That is, for any b and any
decreasing sequence converging to b,
9
Cumula:ve distribu:on func:on
Remark: Conversely, any func:on that sa:sfies the 3
proper:es above is the cdf of some r.v. (but not
necessarily discrete).
10
Cumula:ve distribu:on func:on
Expected Value
The expected value, or expecta7on, or (informally)
mean, refers to the “average” value of a random
variable (in a probabilis:c sense). For a discrete
random variable, the expected value of a random
variable X is defined as
12
Expecta:on
Example: Find E[X], where X is the outcome when we
roll a fair die.
Solu:on: Since
Example: We say that I is the indicator variable for the
event A if
Since
That is, the expecta7on of the indicator variable of an
event is equal to the probability that the event occurs.
Expecta:on
Expecta:on of Func:on of a Random Variable
Hence,
14
Expecta:on
15
Expecta:on
Note: More generally (linearity property),
16
Variance
Variance
Another useful value summarizing the probability mass
func:on of a r.v. is its “spread” or “variance”.
It is e.g. important in finance where investors look for
investments which not only have good expected
returns, but are also not too risky.
17
Variance
18
Variance
That is,
Example (con:nued). Compute the variances of Y and Z.
Since
19
Variance
Solu:on:
Variance
Example: The manager of a stockroom in a factory knows from his
study of records that the daily demand for a certain tool has
the following probability distribu:on:
Demand 0 1 2
Probability 0.1 0.5 0.4
Suppose that it costs $10 each :me the tool is used, find the
mean and variance of the daily cost.
Solu:on:
Moments
end 6/10/2022
24
Special distribu:ons: Bernoulli
25
Special distribu:ons: Bernoulli
A random variable X that has a pmf as above is denoted
as , where p is called the
parameter of the distribu:on.
26
Special distribu:ons: Binomial
28
Special distribu:ons: Binomial
Solu:on:
Special distribu:ons: Binomial
32
Special distribu:ons: Binomial
33
Special distribu:ons: Poisson
34
Special distribu:ons: Poisson
35
Special distribu:ons: Poisson
36
Special distribu:ons: Geometric
37
Special distribu:ons: Geometric
38
Special distribu:ons: Nega:ve Binomial
Remarks:
(1) A geometric random variable is a nega:ve Binomial
random variable with parameters (1,p).
42
Examples
We call some event process a Poisson Process (with
parameter ) if the number of events occurring in
any interval of length t is a Poisson random variable
with parameter .
43
Examples
Example: Suppose that the number of claims to an insurer is
modeled as a Poisson process with , with 1 week as the
unit of :me.
(a) Find the probability that at least 3 claims are received during
the next 2 weeks.
(b) Find the probability distribu:on of the :me, star:ng from
now, un:l the next claim.
44
Examples
45
Examples
Example: If independent trials, each resul:ng in a
success with probability p, are performed, what is the
probability of r successes occurring before m failures?
47