A Student s T Continuous Random Variable
The Student's t distribution is a continuous probability distribution that is often encountered in statistics (e.g., in hypothesis tests about the mean).
It arises when a normal random variable is divided by a Chi-square or a Gamma random variable.
Table of contents
-
How it arises
-
The standard case
-
The non-standard case
-
-
The standard Student's t distribution
-
Definition
-
Relation to the normal and to the Gamma distribution
-
Expected value
-
Variance
-
Higher moments
-
Moment generating function
-
Characteristic function
-
Distribution function
-
-
Student's t distribution in general
-
Definition
-
Relation between standard and general
-
Expected value
-
Variance
-
Moment generating function
-
Characteristic function
-
Distribution function
-
-
More details
-
Convergence to the normal distribution
-
Non-central t distribution
-
-
Density plots
-
Plot 1- Changing the mean
-
Plot 2 - Changing the scale
-
Plot 3 - Changing the degrees of freedom
-
-
Solved exercises
-
Exercise 1
-
Exercise 2
-
Exercise 3
-
-
References
Before going into details, we provide an overview.
The standard case
A variable has a standard Student's t distribution with
degrees of freedom if it can be written as a ratio
where:
-
has a standard normal distribution;
-
is a Chi-square random variable with
degrees of freedom;
-
and
are independent of each other.
A Chi-square variable with degrees of freedom divided by
has a Gamma distribution (with parameters
and
).
As a consequence, we can also see a standard Student's t distribution with degrees of freedom as a ratio
between a standard normal variable and the square root of a Gamma variable
.
The non-standard case
A variable has a non-standard Student's t distribution if it can be written as a linear transformation of a standard one:
where
and
are defined as before.
The distribution is characterized by three parameters:
-
mean
;
-
scale
;
-
degrees of freedom
.
We start from the special case of the standard Student's t distribution.
By first explaining this special case, the exposition of the more general case is greatly facilitated.
Definition
The standard Student's t distribution is characterized as follows.
Usually the number of degrees of freedom is integer ( ), but it can also be real (
).
Relation to the normal and to the Gamma distribution
A standard Student's t random variable can be written as a normal random variable whose variance is equal to the reciprocal of a Gamma random variable, as shown by the following proposition.
Proof
If is a zero-mean normal random variable with variance
, conditional on
, then we can think of
as a ratio
where
has a standard normal distribution,
has a Gamma distribution and
and
are independent.
Expected value
The expected value of a standard Student's t random variable is well-defined only for
and it is equal to
Proof
Variance
The variance of a standard Student's t random variable is well-defined only for
and it is equal to
Proof
Higher moments
The -th moment of a standard Student's t random variable
is well-defined only for
and it is equal to
Proof
Moment generating function
A standard Student's t random variable does not possess a moment generating function.
Proof
Characteristic function
There is no simple expression for the characteristic function of the standard Student's t distribution. It can be expressed in terms of a Modified Bessel function of the second kind (a solution of a certain differential equation, called modified Bessel's differential equation).
The interested reader can consult Sutradhar (1986).
Distribution function
There is no simple formula for the distribution function of a standard Student's t random variable
because the integral
cannot be expressed in terms of elementary functions.
Therefore, it is usually necessary to resort to computer algorithms to compute the values of .
For example, the MATLAB command: returns the value of the distribution function at the point
x
when the degrees of freedom parameter is equal to n
.
While in the previous section we restricted our attention to the Student's t distribution with zero mean and unit scale, we now deal with the general case.
Definition
The Student's t distribution is characterized as follows.
Definition Let be a continuous random variable. Let its support be the whole set of real numbers:
Let
,
and
. We say that
has a Student's t distribution with mean
, scale
and
degrees of freedom if and only if its probability density function is
where
is a constant:
and
is the Beta function.
We indicate that has a t distribution with mean
, scale parameter
and
degrees of freedom by
To better understand the Student's t distribution, you can have a look at its density plots.
Relation between standard and general
A random variable has a t distribution with parameters
,
and
if it is a linear transformation of a standard Student's t random variable.
Proposition If , then
where
is a random variable having a standard t distribution.
Proof
Expected value
The expected value of a Student's t random variable is well-defined only for
and it is equal to
Proof
Variance
The variance of a Student's t random variable is well-defined only for
and it is equal to
Proof
Moment generating function
A Student's t random variable does not possess a moment generating function.
Proof
It is a consequence of the fact that (where
has a standard t distribution) and of the fact that a standard Student's t random variable does not possess a moment generating function (see above).
Characteristic function
There is no simple expression for the characteristic function of the Student's t distribution (see the comments above, for the standard case).
Distribution function
As in the case of the standard t distribution (see above), there is no simple formula for the distribution function of a Student's t random variable
.
As a consequence, it is usually necessary to resort to computer algorithms to compute the values of .
Most computer programs provide only routines for the computation of the standard t distribution function (denote it by ).
In these cases we need to make a conversion, as follows: For example, the MATLAB command:
returns the value at the point
x
of the distribution function of a Student's t random variable with mean mu
, scale sigma
and n
degrees of freedom.
The following sections contain more details about the t distribution.
Convergence to the normal distribution
A Student's t distribution with mean , scale parameter
and
degrees of freedom converges in distribution to a normal distribution with mean
and variance
when the number of degrees of freedom
becomes large (converges to infinity).
Proof
As explained before, if has a t distribution, it can be written as
where
is a standard normal random variable, and
is a Chi-square random variable with
degrees of freedom, independent of
. Moreover, as explained in the lecture on the Chi-square distribution,
can be written as a sum of squares of
independent standard normal random variables
:
When
tends to infinity, the ratio
converges in probability to
, by the Law of Large Numbers. As a consequence, by Slutsky's theorem,
converges in distribution to
which is a normal random variable with mean
and variance
.
Non-central t distribution
As discussed above, if has a standard normal distribution,
has a Gamma distribution with parameters
and
and
and
are independent, then the random variable
defined as
has a standard Student's t distribution with
degrees of freedom.
Given the same assumptions on and
, define a random variable
as follows:
where
is a constant.
The variable is said to have a non-central standard Student's t distribution with
degrees of freedom and non-centrality parameter
.
We do not discuss the details of this distribution here, but be aware that this distribution is sometimes used in statistical theory (also in elementary problems) and that routines to compute its moments and its distribution function can be found in most statistical software packages.
This section shows the plots of the densities of some random variables having a t distribution.
The plots help us to understand how the shape of the t distribution changes by changing its parameters.
Plot 1- Changing the mean
The following plot shows two Student's t probability density functions:
By changing only the mean, the shape of the density does not change, but the density is translated to the right (its location changes).
Plot 2 - Changing the scale
In the following plot:
By changing only the scale parameter, from to
, the location of the graph does not change (it remains centered at
), but the shape of the graph changes (there is less density in the center and more density in the tails).
Plot 3 - Changing the degrees of freedom
In the following plot:
By changing only the number of degrees of freedom, from to
, the location of the graph does not change (it remains centered at
) and its shape changes only marginally (the tails become thinner).
Below you can find some exercises with explained solutions.
Exercise 1
Let be a normal random variable with mean
and variance
.
Let be a Gamma random variable with parameters
and
, independent of
.
Find the distribution of the ratio
Solution
We can write where
has a standard normal distribution and
has a Gamma distribution with parameters
and
. Therefore, the ratio
has a standard Student's t distribution with
degrees of freedom and
has a Student's t distribution with mean
, scale
and
degrees of freedom.
Exercise 2
Let be a normal random variable with mean
and variance
.
Let be a Gamma random variable with parameters
and
, independent of
.
Find the distribution of the random variable
Solution
We can write where
has a standard normal distribution and
has a Gamma distribution with parameters
and
. Therefore, the ratio
has a standard Stutent's t distribution with
degrees of freedom.
Exercise 3
Let be a Student's t random variable with mean
, scale
and
degrees of freedom.
Compute
Solution
Sutradhar, B. C. (1986) On the characteristic function of multivariate Student t-distribution, Canadian Journal of Statistics, 14, 329-337.
Please cite as:
Taboga, Marco (2021). "Student's t distribution", Lectures on probability theory and mathematical statistics. Kindle Direct Publishing. Online appendix. https://www.statlect.com/probability-distributions/student-t-distribution.
Source: https://www.statlect.com/probability-distributions/student-t-distribution
0 Response to "A Student s T Continuous Random Variable"
Post a Comment