I need to evaluate a large number of Cumulative Distribution Functions of Student's t distributions. I'm calculating the Student's t distribution using the approximation stated in "Abramowitz and Stegun. Handbook of Mathematical Functions." book, at this page: http://people.math.sfu.ca/~cbm/aands/page_949.htm
$$ A(t|v) \approx 2 P(x) -1, \; \; \; x = \frac{t(1-\frac{1}{4v})}{\sqrt{1+\frac{t^2}{2v}}} $$
Where:
- $A(t|v) $ is the cdf of the Student's t
- $t$ is the Student's t random variable for the Student's t distribution
- $v$ are the degrees of freedom of the Student's t
- $P(x)$ is cdf of the Gaussian distribution
- $x$ is the random variable for the Gaussian distribution
I'm approximating the gaussian cdf too; the approximation formula is took from Abramowitz book too at this page: http://people.math.sfu.ca/~cbm/aands/page_932.htm (formula $26.2.19$)
The problem is that the values of the Student's t cdf I'm receiving are all negative. The reason for this is that all the values of the Gaussian cdf ($P(x)$) I'm obtaining are very low (for example: $0.1029537234175692291112889$), so the quantity $A(t|v) \approx 2P(x)-1$ is always negative... I don't know if it's important, but the amount of my degrees of freedom is about $1023$ or very similar to it.
Someone knows why this approximation from the Abramowitz doesn't seem to work?
