bugGNU Octave - Bugs: bug #64435, change in corr() broke kendall()

 
 

bug #64435: change in corr() broke kendall()

Submitter:  Dmitri A. Sergatskov <dasergatskov>
Submitted:  Mon 17 Jul 2023 04:46:03 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  9.1.0 Planned Release:  9.1.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 17 Jul 2023 06:50:33 PM UTC, comment #1: 

Correlation in Matlab returns NaN for any scalar input regardless of type (Pearson, Kendall, Spearman).  I adjusted the BIST test for kendall() in Octave to expect a NaN output rather than 1.  I also added BIST tests for scalar input to spearman() which did not have any.  See http://hg.savannah.gnu.org/hgweb/octave/rev/b8e1440b3b29.

Marking as Fixed and closing report.

Rik <rik5>
Group administrator
Mon 17 Jul 2023 04:46:03 PM UTC, original submission:  

It looks like the latest changes in corr() to make it more Matlab-compatible broke kendall(). Now (hg id 1e760618ae06) kendall(logincal(1)) results in NaN.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by dasergatskov (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-07-17 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
        Fixed ReleaseNone 9.1.0
        Planned ReleaseNone 9.1.0

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code