Skip to content
Prev 398235 / 398500 Next

A very small p-value

Dear list,

I'm computing a p-value for the Student test and discover some inconsistencies with the cdf pt().

The observed statistic is 11.23995 for 95 observations, so the p-value is very small
[1] 2.539746620181247991746e-19
[1] 2.539746631161970791961e-19

But if I compute with pt(lower=TRUE), I got 0
[1] 0

Indeed, the p-value is lower than the epsilon machine
[1] TRUE

Using the square of t statistic which follows a Fisher distribution, I got the same issue:
[1] 5.079493240362495983491e-19
[1] 5.079015231299358486828e-19
[1] 0
	
When using the t.test() function, the p-value is naturally printed : p-value < 2.2e-16.

Any comment is welcome. 

Christophe
_                           
platform       aarch64-apple-darwin20      
arch           aarch64                     
os             darwin20                    
system         aarch64, darwin20           
status                                     
major          4                           
minor          5.1                         
year           2025                        
month          06                          
day            13                          
svn rev        88306                       
language       R                           
version.string R version 4.5.1 (2025-06-13)
nickname       Great Square Root 
-------------------------------------------------
Christophe DUTANG
LJK, Ensimag, Grenoble INP, UGA, France
ILB research fellow
Web: http://dutangc.free.fr
-------------------------------------------------