octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #48077] CI not correct in ttest


From: Álvaro Bertelsen
Subject: [Octave-bug-tracker] [bug #48077] CI not correct in ttest
Date: Thu, 20 Apr 2017 05:38:45 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

Follow-up Comment #4, bug #48077 (project octave):

The modification added to fix the confidence interval makes ttest to crash
when testing paired samples. A simple script like this:


pkg load statistics;

x = random("normal", 0.0, 1.0, [100, 1]);
y = random("normal", 0.0, 1.0, [100, 1]);

ttest(x, y);  % crashes


...produces the following error

error: ttest: operator +: nonconformant arguments (op1 is 2x1, op2 is 100x1)
error: called from
    ttest at line 123 column 10

On line 123, the term my is added to ci. For paired testing, addition of that
term is not needed (and its dimension is not consistent with the size of ci).

I have attached the ttest_crash.m file to reproduce the error.



(file #40449)
    _______________________________________________________

Additional Item Attachment:

File name: ttest_crash.m                  Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48077>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]