Clarification about definition of CCDF

Hello

In the old version of stan user Manual
https://mc-stan.org/docs/2_20/functions-reference/cumulative-distribution-functions.html
the complementary cumulative distribution function is defined as Pr[Y≥y].

However in the new version
https://mc-stan.org/docs/functions-reference/conventions_for_probability_functions.html#cumulative-distribution-functions
the complementary cumulative distribution function is defined as P[Y>y]

Which one of these is actually implemented in Stan ? Does CCDF include P [Y=y] ?

Thanks in advance

That old version (2.20) is very old, and even the next old version (2.21) uses the newer definition.

1 Like

It should be Pr[Y > y] = 1 - Pr[Y <= 1]. We should have CDF(y) + CCDF(y) = 1.

Of course, for continuous variables, the distinction doesn’t matter as it’s just a difference of a single point, which has measure zero in a continuous density.