Post Reply 
Normal Probability Function
03-29-2022, 12:00 PM
Post: #5
RE: Normal Probability Function
These functions are very difficult to compute accurately over their entire domain. The WP 34S uses the incomplete gamma function to work them out:

Lower Tail = 0.5*(1 + gammap(0.5*x^2, 0.5))
Upper Tail = 0.5*gammaq(0.5*x^2, 0.5)

This belies the difficulty computing gammap and gammaq accurately. The common approach is to break the domain into two pieces and compute the function using a series in one part and a continued fraction for the other. See e.g. section 6.5 in Abramowitz and Stegun. This fails for large arguments from memory and more recent approaches break the domain into more pieces. All this relies on being able to compute the (standard) gamma function accurately which is another problematic one -- albeit nowhere near as nasty as the imcomplete gamma function.

If you do implement the incomplte gamma function, you also get Poisson and χ² distributions for free.


Pauli
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Normal Probability Function - CMarangon - 03-28-2022, 07:31 PM
RE: Normal Probability Function - Joe Horn - 03-28-2022, 09:11 PM
RE: Normal Probability Function - Mike T. - 03-29-2022, 09:51 AM
RE: Normal Probability Function - Paul Dale - 03-29-2022 12:00 PM
RE: Normal Probability Function - KeithB - 03-29-2022, 07:06 PM
RE: Normal Probability Function - trojdor - 03-30-2022, 08:02 AM



User(s) browsing this thread: 1 Guest(s)