G104: Student's t-Distribution and Its Inverse

Author(s): K.S. Kölbig Library: MATHLIB
Submitter: Submitted: 15.02.1994
Language: Fortran Revised:

Function subprogram STUDIS calculates the value of the Student t-distribution function

displaymath96

for a given degrees of freedom tex2html_wrap_inline98 .

Function subprogram STUDIN calculates the inverse t(F,n).

Structure:

FUNCTION subprogram
User Entry Names: STUDIS, STUDIN
Files Referenced: Printer
External References: GAUSIN, MTLMTR, ABEND

Usage:

In any arithmetic expression,

STUDIS(T,N) or STUDIN(F,N) has the value tex2html_wrap_inline102 or tex2html_wrap_inline104 ,

respectively. STUDIS, STUDIN, F and T are of type REAL, N is of type INTEGER.

Error handling:

Error G104.1: tex2html_wrap_inline106 .
Error G104.2: tex2html_wrap_inline108 or tex2html_wrap_inline110 .
In both cases, a message is written on Unit 6, unless subroutine MTLSET (N002) has been called.

Accuracy:

About six decimal places are usually correct. Accuracy is lost for STUDIS when tex2html_wrap_inline112 and tex2html_wrap_inline114 .

Notes:

The subprograms are based on algorithms given in the references.

References:

  1. B.E. Cooper, Algorithm AS3 - Applied Statistics 17 (1968) 189.
  2. G.W. Hill, Algorithm 396, Student's t-quantiles, Collected algorithms from CACM (1970).
tex2html_wrap_inline118

Michel Goossens Wed Jun 5 06:10:27 METDST 1996