If we are interested in evaluating the probability of some event occurring for a random variable, this can easily be obtained from the pmf.
Let be an event in the induced sample space. The probability of is given by
Write . Then
∎
The length of stay in hospital after surgery is modelled as a random variable . The following table gives the pmf for .
Days stayed | r | 4 | 5 | 6 | 7 | 8 | 9 | 10+ | total |
---|---|---|---|---|---|---|---|---|---|
Probability | 0.038 | 0.114 | 0.430 | 0.300 | 0.080 | 0.030 | 0.008 | 1 |
Find the probability of being in hospital for
at most days,
between and days,
at least days.
at most days:
between and :
at least : .
Find the probability of an odd number of heads in tosses of a fair coin.
.
A specific family of events in which we are often interested, particularly for continuous random variables, is for different values of . These events are useful because for any event we can calculate from the probabilities of events of the type . For example, let . Then
a disjoint union. Therefore, by Axiom 3,
The cumulative distribution function or cdf of a random variable is a function given by For a discrete random variable the cumulative distribution function is given by
What is the cumulative distribution function for a random variable whose pmf is specified by for ?