MathProbabilityDensityT()

 

hello community!

I use the MathProbabilityDensityT() function to get the p-value from the t-statistic and the degrees of freedom such as:

double t_val=2.58804402;
double DF=8;

Print("p-value: ", MathProbabilityDensityT(t_val,DF,false,err));

This results in the value of:

2019.05.09 20:30:08.465 2018.12.02 22:00:01   p-value: 0.02503915471693001

Using the same values in R-Software and several other p-value online calculators, the resulting two-tailed p-value is Always:

0.0322111

Might this due to the implementation of the probability densitiy function? Maybe it is a special version of the Standard t-Distribution function

Reason: