bugGNU Octave - Bugs: bug #36646, [octave forge] (statistics) tests...

 
 

bug #36646: [octave forge] (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 Forge Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  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.

 

Wed 09 May 2018 06:20:25 PM UTC, comment #5: 

Pushed supplied changes to the statistics package:

https://sourceforge.net/p/octave/statistics/ci/51d11b1d2af13d3a3ddd1e85831768a823754035/

Leaving report open for now for if anyone provides a patch for the other functions.

John Donoghue <lostbard>
Project Member
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 Files:
   
   
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
  • -email is unavailable- added by lostbard (Posted a comment)
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by h_2 (Updated the item)
  •  

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

    Only project members can vote.

     

     

     

    Follow 14 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-06-04 mtmiller CategoryOctave Function => Octave Forge Package
    2018-05-09 lostbard SummaryStatistics tests produce errors and warnings when var(sample) == 0 => [octave forge] (statistics) tests produce errors and warnings when var(sample) == 0
    2018-05-09 lostbard StatusPatch Submitted => Confirmed
    2014-01-19 mtmiller CategoryNone => Octave Function
        Item GroupNone => Incorrect Result
        Release3.6.1 => dev
        Operating SystemGNU/Linux => Any
    2012-06-15 h_2 Attached File- => Added patch-t_test_2.m, #26034
        Attached File- => Added patch-var_test.m, #26035
    2012-06-13 carandraug Carbon-CopyRemoved 79703 => -
    2012-06-13 rik5 Carbon-CopyRemoved 72865 => -
    2012-06-13 rik5 Summary[with patch] Stastic tests produce errors and warnings, when var(sample) == 0 => Statistics tests produce errors and warnings when var(sample) == 0
    2012-06-13 rik5 StatusNone => Patch Submitted
    2012-06-13 None Attached File- => Added patch_anova.m, #26013

    Back to the top


    Powered by Savane 3.5