Issue with the Chi2TwoWay() function
|
05-10-2020, 10:53 PM
Post: #1
|
|||
|
|||
Issue with the Chi2TwoWay() function
The Chi2TwoWay() function does not duplicate all results from the χ2 test / 2-way test feature of the Inference App. This issue seems to occur only when the data set is not a square (nxn) matrix.
For example, try the data 75 10 15 40 30 10. Loading the data into the ObsMat matrix (the App input data matrix) and running the App gives χ2 = 19.67 and P = 5.35E-5. Running Chi2TwoWay() will not produce the same numbers. I've tried several ways of inputting data: (1) ObsMat itself, (2) a copy of ObsMat saved to M1 and then using M1, (3) a matrix with the six numbers themselves. On both physical and virtual Prime, no attempts were successful in duplicating the App. Using the function gave calculator lock-ups, error messages or lists simply NOT duplicating χ2 and P. The function did not duplicate App results for any non-square ObsMat matrix I tried. When data that fits in square matrices is used, the App and function results agree exactly regardless of the method is used to feed Chi2TwoWay() . I’m using physical and virtual Primes with software version 2.1.14425 (2020 01 16). Can someone explain this issue? |
|||
05-12-2020, 04:04 AM
Post: #2
|
|||
|
|||
RE: Issue with the Chi2TwoWay() function
It does appear that Chi2TwoWay() gives wrong results for non-square matrices. After testing a couple problems, running the app seems to return correct answers for square and non-square matrices alike.
|
|||
05-12-2020, 05:14 PM
Post: #3
|
|||
|
|||
RE: Issue with the Chi2TwoWay() function
Thanks for looking into this, it is appreciated. We have the same conclusion.
Where do we go from here? A system software update or ??? |
|||
05-12-2020, 09:14 PM
Post: #4
|
|||
|
|||
RE: Issue with the Chi2TwoWay() function
This is really a question for the HP development team.
From my experience, this will take a little while. In most cases, the fixed code eventually makes it into an update. But there is no guarantee of this happening. If Chi2TwoWay() is a CAS function (which it might be, I'm not sure), it will have to be fixed in Xcas first. |
|||
05-13-2020, 12:34 AM
Post: #5
|
|||
|
|||
RE: Issue with the Chi2TwoWay() function
No, it is in the non cas code. Very strange as the underlying routine is identical from memory...
TW Although I work for HP, the views and opinions I post here are my own. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: