F distribution on the 41C
|
12-21-2015, 07:24 PM
(This post was last modified: 12-21-2015 07:56 PM by Dieter.)
Post: #32
|
|||
|
|||
RE: F distribution on the 41C
(12-20-2015 11:15 PM)Namir Wrote: I am implementing the equations in Abramowitz & Stegun's handbook of math. OK, what about A&S 26.6.2 then? Here the Fisher CDF is defined by means of the regularized Beta function. ;-) (12-20-2015 11:15 PM)Namir Wrote: Show me some VB code using the Beta function? The following code uses the continued fraction method according to A&S 26.5.8. It is based on the modified Lentz algorithm as suggested in "Numerical Recipes in C", chapter 6.4, with some changes and simplifications. For fast convergence and improved accuracy x should be low, so either x = df2/(df2 + F*df1) is used, or 1–x = F*df1/(df2 + x*df1) with swapped parameters a and b. I have split the functionality into four independent routines so that these can be used for other applications as well. For instance for Student's t or the Binomial distribution. Note that here the upper tail integral Q(F) is calculated. For the lower tail P(F) simply exchange ibeta and 1–ibeta in the two if-then-else branches of FCDF. Code: Const Pi = 3.141592653589793 This is what I currently use in Excel for calculating the upper F integral. Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 8 Guest(s)