Recover Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttp://yahoo.com/
COST (GBP)
this unit 1.40
sub units 3.00
add licence
0

PDF

Student's T distribution PDF.
Controller: CodeCogs

buy now add cart

Dependents

Info

Interface

C++
Excel
HTML

PDF

 
doublePDFdoublet
doublek )
Computes the probability density function of the Student T distribution with integer k > 0 degrees of freedom:

The T distribution has PDF and as shown below, denoted P(x) :
1/tpdf-969.gif
+

Example:

#include <stdio.h>
#include <codecogs/stats/dists/continuous/t/pdf.h>
using namespace Stats::Dists::Continuous::T;
 
int main()
{
  for( double t=-2.5; t<2.5; t+=0.5 )
    printf(  "PDF( %1.1f ) = %f \n", t, PDF(t, 20)  );
  return getchar();
}

Output:

PDF( -2.5 ) = 0.022669
PDF( -2.0 ) = 0.058087
PDF( -1.5 ) = 0.128627
PDF( -1.0 ) = 0.236046
PDF( -0.5 ) = 0.345809
PDF( 0.0 ) = 0.393989
PDF( 0.5 ) = 0.345809
PDF( 1.0 ) = 0.236046
PDF( 1.5 ) = 0.128627
PDF( 2.0 ) = 0.058087

Parameters

tthe point at which to evaluate the PDF
kthe number of degrees of freedom of the T distribution

Authors

Will Bateman
Source Code

Source code is available when you buy a Commercial licence.

Not a member, then Register with CodeCogs. Already a Member, then Login.


 

Page Comments

 
 Format Excel Equations

  You must login to leave a messge