[WP-34S] Chi-Square Distribution
01-12-2014, 10:21 PM
Post: #11
 Dieter Senior Member Posts: 2,397 Joined: Dec 2013
RE: [WP-34S] Chi-Square Distribution
(01-12-2014 09:38 PM)Paul Dale Wrote:  Turning trace mode on lets you single step through xrom.
...
Yeah, the initial guess is bad for some input values:
...
Seems good for larger values and really small ones. Pretty bad at .05 however.

Seems we found the first error. Take a look at the initial estimates for 0,05 and 0,95. They are the same. In the center, the guess is based on the Normal estimate, so that I assume there might be a problem there. You may want to check if the Normal estimate returns the same absolute value with opposite signs for 0,05 and 0,95.

Back then we discussed different possible ways to provide a good estimate for the Chi^2 quantile. So the version I tried yesterday may be different from the one that actually got implemented. But anyway, here are the results from a slightly simplified method and df=20:
Code:
  p        quantile     estimate 1E-10      0,94544      0,905...  0,05      10,8508      10,93...  0,95      31,4104      31,21...  0,99999   59,0446      58,46...
Not bad for a first estimate, I think. SP accuracy usually does not need more than four or maybe five iterations. If (!) the guess is implemented correctly.

Dieter
 « Next Oldest | Next Newest »

 Messages In This Thread [WP-34S] Chi-Square Distribution - Sanjeev Visvanatha - 01-11-2014, 01:37 PM RE: [WP-34S] Chi-Square Distribution - walter b - 01-11-2014, 03:02 PM RE: [WP-34S] Chi-Square Distribution - Dieter - 01-11-2014, 06:18 PM RE: [WP-34S] Chi-Square Distribution - Sanjeev Visvanatha - 01-12-2014, 03:16 PM RE: [WP-34S] Chi-Square Distribution - Sanjeev Visvanatha - 01-12-2014, 03:13 PM RE: [WP-34S] Chi-Square Distribution - walter b - 01-12-2014, 05:57 PM RE: [WP-34S] Chi-Square Distribution - Sanjeev Visvanatha - 01-12-2014, 07:23 PM The sheet (was: RE: [WP-34S] Chi-Square Distribution) - walter b - 01-13-2014, 07:55 PM RE: [WP-34S] Chi-Square Distribution - Sanjeev Visvanatha - 01-14-2014, 03:04 AM RE: [WP-34S] Chi-Square Distribution - Paul Dale - 01-11-2014, 11:11 PM RE: [WP-34S] Chi-Square Distribution - Dieter - 01-12-2014, 02:37 PM RE: [WP-34S] Chi-Square Distribution - Paul Dale - 01-12-2014, 09:38 PM RE: [WP-34S] Chi-Square Distribution - Dieter - 01-12-2014 10:21 PM RE: [WP-34S] Chi-Square Distribution - Paul Dale - 01-13-2014, 01:08 AM RE: [WP-34S] Chi-Square Distribution - Dieter - 01-14-2014, 02:33 PM RE: [WP-34S] Chi-Square Distribution - walter b - 01-14-2014, 02:46 PM RE: [WP-34S] Chi-Square Distribution - Dieter - 01-14-2014, 03:11 PM RE: [WP-34S] Chi-Square Distribution - Paul Dale - 01-14-2014, 10:07 PM RE: [WP-34S] Chi-Square Distribution - Dieter - 01-14-2014, 11:05 PM RE: [WP-34S] Chi-Square Distribution - Paul Dale - 01-16-2014, 01:41 AM

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