Studying for Exam LTAM, Part 1.6
One of the main lessons students should get out of any statistics course is the fact that quantitative data can be described with summary measures.
Data come with a wide variety of “locations”, “spreads”, and “shapes”. These words refer to the nature of the distribution of a given (random) variable quantity. The mean (arithmetic average) is the most common measure of “location”, or “central tendency”. The standard deviation is the most common measure of “spread”. Measures of “shape” can also be defined, but that is beyond the scope of this article.
For example, two basketball players can average the same number of points per game without being similar to each other, even when we only consider scoring points and ignore things like rebounding. One of the players could be very consistent in their scoring while the other could be very erratic. For the erratic player, very high scoring games would be offset by very low scoring games. The erratic player would have a higher standard deviation than the consistent player.
Likewise, the lengths of the lives of people from two different countries can have the same mean but different standard deviations. A larger standard deviation could occur, for example, in the country with a greater wealth disparity than the other.
The purpose of this article is to explore the way that standard deviations measure spread in three particular parametric survival models. The content to follow involves some calculations that are very intricate. This is especially true in the case of the third model we consider (a triangular distribution). If you are reading this for the first time, it is more important to understand the big picture. You should focus on understanding the meaning of the content. This is best done by thinking about the graphs. You can go back and check the calculations later.
Review: Measures of Location and Spread for Continuous Survival Random Variables
We have already discussed measures of location and spread of continuous survival random variables. This occurred in the article “Families of Continuous Survival Random Variables”. In this section, we briefly review that content.
In the sections after this, we will also consider how these ideas play out for specific models. The specific models (distributions) considered will be 1) uniform (De Moivre’s Law), 2) exponential, and 3) triangular.
Let be the age-at-failure for a newborn. Let be the probability density function (PDF) of and be the survival function (SF) of . Assuming survival to age we let be the remaining life random variable with conditional PDF and conditional SF .
The mean is our fundamental measure of location (central tendency). Under reasonable assumptions about , the mean of is . This is also called the complete expectation of life.
Under similar reasonable assumptions, the second moment of is .
Our measures of spread are then the variance and the corresponding standard deviation .
Our most basic (rough) interpretation of in relation to is the following. For any distribution, almost all of the data/probability will be within 2 standard deviations of the mean.
Therefore, the more “spread out” the data/probabilities are, the larger the standard deviation. That is why it is a measure of “spread”.
Means for the Three Parametric Survival Models
We now summarize the results of these calculations for the means of the three parametric survival models mentioned above. You should take the time to check all these facts after your initial read-through of this article.
- (Uniform Distribution — De Moivre’s Law) For , the conditional PDF is for and the conditional SF is for . In this situation, the conditional mean is for . In other words, the expected remaining lifetime of someone age is half of the time left until they reach the maximum possible age . This makes sense because deaths are uniformly distributed over the interval.
- (Exponential Distribution — Constant Force) For , the conditional PDF is for and the conditional SF is for . In this situation, the conditional mean is for . This is a constant function of — recall that this distribution is memoryless. It does not matter how old a person is, their expected remaining lifetime is unchanged. This is obviously not realistic over a long period of time.
- (Triangular Distribution — read the article “Triangular Survival Models” first to help you understand this) In this situation, the formulas are far more complicated. They are also “piecewise-defined”. For and , we have and . On the other hand, if , then and for . When and , the graphs of , , , , and are shown below. The conditional mean in this situation is described even further below.
In the triangular model (3) above, to find the conditional mean (complete expectation of life) , we again need to separate the problem into cases. If , then . If , then .
As an exercise, you should take the time to confirm that .
The graph of this function, along with the function , when and is shown below.
The reason that is shown is that it is always increasing, no matter what survival model is used. This should make sense. A person’s age plus their expected (mean) remaining lifetime should increase as they grow older.
Standard Deviations for the Three Parametric Survival Models
Now we summarize the results of the standard deviations for these models. As emphasized above, to help us complete this task, we must compute second moments and variances first. You should check all these calculations as well after your initial read-through.
Uniform Distribution (De Moivre’s Law)
For a uniform distribution the second moment is .
This leads to the variance and standard deviation .
Exponential Distribution (Constant Force)
For an exponential distribution, integration-by-parts can be used to see that the second moment is .
This leads to the variance and standard deviation . Once again, note that these quantities are constant in .
Triangular Distribution
Now you have your work cut out for you. If , you should check that the second moment is And if , the answer is the much simpler expression .
For the variance, when , you should then get . And if , we get .
Of course, the standard deviations in these cases are the square roots of the variances. When , it is not even obvious that the variance is positive (though it must be). When , the standard deviation is .
All these calculations emphasize that computer algebra systems (CAS), such as Mathematica, are good not just for simulation and graphing, but also for computation. Personally-speaking, I made sure to check all of these on Mathematica.
Graphical Perspectives
Formulas such as these are certainly important and good for computational purposes. But graphs are more helpful for understanding concepts and for seeing the big picture. For each of these three parametric survival models, it is helpful to make graphs of and . This will serve to illustrate the visual interpretation of the standard deviation given in the review section near the beginning of this article and restated here. For any distribution, almost all of the data/probability will be within 2 standard deviations of the mean.
The animated graph below illustrates this visual interpretation for the uniform model for . Again, in this situation, we have and so that . In the animation, varies between 80 and 120 while varies between 0 and 60.
Note that for the graph on the left, “all the probability” (colored magenta) is between the two blue lines (within 2 standard deviations of the mean). This is true no matter what and are.
There’s not much point in making a similar animation for the exponential (constant force) model because nothing changes as changes (and there is no maximum age ). So we content ourselves with making a similar animation for the triangular distribution. It is shown below. Once again, notice that “almost all” of the probability is within 2 standard deviations of the mean.
The Mathematica code to make these last two animations is shown in the screenshots below.