bugGNU Octave - Bugs: bug #36646, Statistics tests produce errors...

 
 

bug #36646: Statistics tests produce errors and warnings when var(sample) == 0

Submitted by:  None
Submitted on:  Wed 13 Jun 2012 01:02:50 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: Patch SubmittedAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: OpenRelease: dev
Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 19 Nov 2016 09:58:50 PM UTC, comment #4:

This issue is still present in Octave 4.2.0.

Hartmut <hardy>
Sun 19 Jan 2014 09:23:12 PM UTC, comment #3:

No updates on this bug report for a while. Do you plan on providing a single patch that will fix this problem for all of the statistical test functions?

Mike Miller <mtmiller>
Project Administrator
Fri 15 Jun 2012 02:52:09 AM UTC, comment #2:

I have attached the other two patches. Please note that other tests will have to be patched as well.

(file #26034, file #26035)

Hannes <h_2>
Wed 13 Jun 2012 04:06:08 PM UTC, comment #1:

Just for sake of completion, these are the links for the different threads generated on the different mailing lists when reporting the bug originally and comments from other devs.

http://octave.1599824.n4.nabble.com/Problems-with-Statistics-package-td4630311.html
http://gnu-octave-repository.2306053.n4.nabble.com/Fwd-Re-Problems-with-Statistics-package-td4655111.html
http://octave.1599824.n4.nabble.com/Re-OctDev-Fwd-Re-Problems-with-Statistics-package-td4630363.html

Please ignore the mention of "statistics package" on the subject line.

Carnë Draug <carandraug>
Project Member
Wed 13 Jun 2012 01:02:50 PM UTC, original submission:

All statistical tests I used behave unexpectedly when the variance of the one or multiple input samples is 0. This sometimes leads to divide by zero warning, but correct results, but sometimes (as in the case for anova) also produces wrong results without warning, because of badly conditioned subtraction that can lead to divide-by-small-negative-number instead of divide by zero.

I have pinged this back and forth between different octave lists and was told to report this here.

I have attached a patch for anova , and will attach two patches for t_test_2 and var_test tomorrow (they are on a different computer). The other tests have to be fixed likewise.

Best,
Hannes

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #26034:  patch-t_test_2.m added by h_2 (1KiB - text/x-objcsrc)
file #26035:  patch-var_test.m added by h_2 (1KiB - text/x-objcsrc)
file #26013:  patch_anova.m added by None (742B - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by hardy (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by h_2 (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 11 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 19 Jan 2014 09:23:12 PM UTCmtmillerCategoryNone=>Octave Function
      Item GroupNone=>Incorrect Result
      Release3.6.1=>dev
      Operating SystemGNU/Linux=>Any
    Fri 15 Jun 2012 02:52:09 AM UTCh_2Attached File-=>Added patch-t_test_2.m, #26034
      Attached File-=>Added patch-var_test.m, #26035
    Wed 13 Jun 2012 08:22:56 PM UTCcarandraugCarbon-CopyRemoved 79703=>-
    Wed 13 Jun 2012 05:56:25 PM UTCrik5Carbon-CopyRemoved 72865=>-
    Wed 13 Jun 2012 05:56:12 PM UTCrik5Summary[with patch] Stastic tests produce errors and warnings, when var(sample) == 0=>Statistics tests produce errors and warnings when var(sample) == 0
    Wed 13 Jun 2012 05:55:23 PM UTCrik5StatusNone=>Patch Submitted
    Wed 13 Jun 2012 01:02:50 PM UTCNoneAttached File-=>Added patch_anova.m, #26013

    Back to the top


    Powered by Savane 3.1-cleanup1