WOLFRAM NOTEBOOK

WOLFRAM|DEMONSTRATIONS PROJECT

Student's t-Distribution and Its Normal Approximation

t
0
0.67
degrees of freedom, ν
5
display
t pdf
t and N(0,1) pdf
t and N(0,
σ
ν
) pdf
Q-Q with N(0,1)
Q-Q with N(0,
σ
ν
)
upper tail
complement
This Demonstration replaces the need for Student
t
-distribution tables in elementary statistics courses. Critical values for confidence intervals and
p
-value computations may be obtained using the first display, "t pdf". The checkbox, "complement" toggles between the tail-area and central-area displays.
The other displays focus on the question of how large the degrees of freedom,
ν
, need to be in order to obtain a reasonable normal approximation. Some textbooks suggest
ν30
is adequate and others suggest we need
ν100
. We offer a graphical and numerical approach to examine this problem.
It is fairly standard to consider a 95% confidence interval and the corresponding 5% hypothesis test. To see how well the usual normal approximation works for this case, set
t
0
=1.96
for the second display, "t and N(0,1) pdf". You see the exact area using the
t
-distribution is shown in the plot label and this may be compared with the area under the normal curve, known to be 0.05. When
ν=3
, the correct area is 0.1449, yielding an absolute percentage error of 189.7%. As
ν
increases, the approximation is seen to improve.
The standard deviation of the
t
-distribution is
σ
ν
=
ν/(ν-2)
, so it is natural to ask if a
N(0,
σ
ν
)
distribution gives a better approximation. This question can be explored using the the third graph, "
t
and
N(0,
σ
v
)
pdf".
The fourth and fifth graphs explore these normal approximations using the Q-Q plot instead of the pdf plot. The Q-Q plot plots the quantiles of one distribution against those of another; it is better at comparing the tail behavior of the distributions. When the scales on both axes are the same, the distributions are equal if they follow the
°
45
line. The checkbox is ignored for the Q-Q plots.
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.