4.4 Discrete and Continuous Distributions
In this section, we review a variety of distribution functions for random variables that are widely used in quantitative modeling. Although it may not be necessary to memorize the properties of these distributions, having an intuitive understanding of the distributions and having the ability to quickly derive important properties are valuable skills in practice. As usual, let’s begin with the theories:
Common function of random variables
Table 4.1 summarizes how the basic properties of discrete and continuous random variables are defined or calculated. These are the basics you should commit to memory.
| Random variable | Discrete | Continuous19 |
|---|---|---|
| Cumulative distribution function/cdf | ||
| Probability mass function /pmf Probability density function /pdf | pmf: | pdf: |
| Expected value/ | ||
| Expected value of g(X)/ | ||
| Variance of | ||
| Standard deviation of | ||
Discrete random variables
Table 4.2 includes some of the most widely-used discrete distributions. Discrete uniform random variable represents the occurrence of a value between number and when all values in the set have equal probability. Binomial random variable represents the number of successes in a sequence of experiments when each trial is 87 independently a success with probability . Poisson random variable represents the number of events occurring in a fixed period of time with the expected number of occurrences when events occur with a known average rate and are independent of the time since the last event. Geometric random variable represents the trial number to get the first success when each trial is independently a success with probability . Negative Binomial random variable represents the trial number to get to the -th success when each trial is independently a success with probability .
| Name | Probability mass function (pmf) | ||
|---|---|---|---|
| Uniform | |||
| Binomial | |||
| Poisson | 20 | ||
| Geometric | |||
| Negative Binomial |
Continuous random variables
Table 4.3 includes some of the commonly encountered continuous distributions. Uniform distribution describes a random variable uniformly distributed over the interval . Because of the central limit theorem, normal distribution/Gaussian distribution is by far the most popular continuous distribution. Exponential distribution models the arrival time of an event if it has a constant arrival rate . Gamma distribution with parameters often arises, in practice, as the distribution of the amount of time one has to wait until a total of events occur. Beta distributions are used to model events 88 that are constrained within a defined interval. By adjusting the shape parameters α and β, it can model different shapes of probability density functions.21
| Name | Probability density function (pdf) | ||
|---|---|---|---|
| Uniform | |||
| Normal | |||
| Exponential | |||
| Gamma | |||
| Beta |
Meeting probability
Two bankers each arrive at the station at some random time between 5:00 am and 6:00 am (arrival time for either banker is uniformly distributed). They stay exactly five minutes and then leave. What is the probability they will meet on a given day?
Solution: Assume banker arrives minutes after 5:00 am and arrives minutes after 5:00 am. and are independent uniform distribution between 0 and 60. Since both only stay exactly five minutes, as shown in Figure 4.4, and meet if and only if .
So the probability that and will meet is simply the area of the shadowed region divided by the area of the square (the rest of the region can be combined to a square with size length 55):
89Probability of triangle
A stick is cut twice randomly (each cut point follows a uniform distribution on the stick), what is the probability that the 3 segments can form a triangle?22
Solution: Without loss of generality, let’s assume that the length of the stick is 1. Let’s also label the point of the first cut as and the second cut as .
If , then the three segments are , and . The conditions to form a triangle are
The feasible area is shown in Figure 4.5. The case for is the left gray triangle. Using symmetry, we can see that the case for is the right gray triangle.
The total shadowed area represents the region where 3 segments can form a triangle, which is 1/4 of the square. So the probability is 1/4.
Property of Poisson process
You are waiting for a bus at a bus station. The buses arrive at the station according to a Poisson process with an average arrival time of 10 minutes . If the buses have been running for a long time and you arrive at the bus station at a random time, what is your expected waiting time? On average, how many minutes ago did the last bus leave?
Solution: Considering the importance of jump-diffusion processes in derivative pricing and the role of Poisson processes in studying jump processes, let’s elaborate more on exponential random variables and the Poison process. Exponential distribution is widely used to model the time interval between independent events that happen at a constant average rate (arrival rate) : . The expected arrival time is and the variance is . Using integration, we can calculate the cdf of an exponential distribution to be and , where is the random variable for arrival time. One unique property of exponential distribution is memorylessness: .23 That means if we have waited for time units, the extra waiting time has the same distribution as the waiting time when we start at time 0.
When the arrivals of a series of events each independently follow an exponential distribution with arrival rate , the number of arrivals between time 0 and can be modeled as a Poisson process .24 The expected number of arrivals is and the variance is also . Because of the memoryless nature of exponential distribution, the number of arrivals between time and is also a Poisson process .
Taking advantage of the memoryless property of exponential distribution, we know that the expected waiting time is . If you look back in time, the memoryless property still applies. So on average, the last bus arrived 10 minutes ago as well.
91This is another example that your intuition may misguide you. You may be wondering that if the last bus on average arrived 10 minutes ago and the next bus on average will arrive 10 minutes later, shouldn’t the average arrival time be 20 minutes instead of 10? The explanation to the apparent discrepancy is that when you arrive at a random time, you are more likely to arrive in a long time interval between two bus arrivals than in a short one. For example, if one interval between two bus arrivals is 30 minutes and another is 5 minutes, you are more likely to arrive at a time during that 30-minute interval rather than 5-minute interval. In fact, if you arrive at a random time, the expected residual life (the time for the next bus to arrive) is for a general distribution.25
Moments of normal distribution
If follows standard normal distribution , what is for and 4?
Solution: The first to fourth moments of the standard normal distribution are essentially the mean, the variance, the skewness and the kurtosis. So you probably have remembered that the answers are 0, 1, 0 (no skewness), and 3, respectively.
Standard normal distribution has pdf . Using simple symmetry we have when is odd. For , integration by parts are often used. To solve for any integer , an approach using moment generating functions may be a better choice. Moment generating functions are defined as
Sequentially taking derivative of , we get one frequently-used property of :
92and in general.
We can use this property to solve for . For standard normal distribution
( is the pdf of normal distribution , so ).
Taking derivatives, we have
and