[WP34s] A set of new quantile functions
|
06-01-2014, 01:18 PM
Post: #11
|
|||
|
|||
RE: [WP34s] A set of new quantile functions
(05-30-2014 06:13 AM)Dieter Wrote: Recent tests showed that a similar behaviour may also occur with the Student quantile function. It does. Here is an improved version of the Student quantile function that uses the same approach as the Chi² quantile: it solves ln(cdf/p) = 0. It does not require more than four stack levels. With eight levels the whole thing might get shortened a bit. The 34s code is rather complex and hard to understand, so here it is in a more readable form: Code:
The 34s code is the same as before, only the iteration loop at LBL 01 is replaced with this: Code: ... As before, 5 iterations are initially stored in R01. If the new code is too long and/or uses too much memory, the iteration limit in R01 may be removed. More than 5 iterations are only required in a limited domain for very small p and high dof. Up to now I have not found any cases within the SP working range. So if some more iterations are OK in these cases, the original code may be used as well. The worst I've seen so far are 12 loops (at 5000 dof, p=10^-5400). However, the new code does it in three. ;-) Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)