[WP34S] ChiSquare Distribution

01112014, 06:18 PM
Post: #3




RE: [WP34S] ChiSquare Distribution
(01112014 03:02 PM)walter b Wrote:(01112014 01:37 PM)Sanjeev Visvanatha Wrote: Degrees of freedom = 19 I tried this example on my 34s (v. 3.2 3405) and was puzzled about the execution time: about 25 seconds. So I wrote a short quickanddirty program based on my original contributions for the chisquare quantile (providing a decent initial guess, followed by a slightly modified Newton iteration), and even this simple usercode program got the result in not much more than four (!) seconds (SP), resp. 56 seconds in DP mode. The initial guess is approx. 5,6 (resp. 42,8 for p=0,999) and requires four or five iterations for SP accuracy and one or two more for DP. Another example: n = 20, p = 0,05 requires 17 s with the internal function and about 4 resp. 5 s in user code. Which leads to the question: what's going on there? Dieter 

« Next Oldest  Next Newest »

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