bugPSPP - Bugs: bug #57731, Wrong results of NPAR TEST RUNS...

 
 

bug #57731: Wrong results of NPAR TEST RUNS for some data

Submitter:  Igor Kushnir <vedg>
Submitted:  Mon 03 Feb 2020 06:04:45 PM UTC
   
 
Category:  Numerical Errors Severity:  5 - Average
Status:  Fixed Assigned to:  None
Open/Closed:  Closed Release:  None
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 09 Feb 2020 08:35:25 AM UTC, comment #1: 

I pushed a fix for this.   Thanks for the report.

John Darrington <jmd>
Group administrator
Mon 03 Feb 2020 06:04:45 PM UTC, original submission:  

The wrong results are the same in the two PSPP versions I have tested:
  * 1.2.0-3 on Debian Buster 64-bit;
  * pspp-20200117-daily-32bits-ForTestingOnly on Windows 7 64-bit.

Steps to reproduce:
1. Open the attached files runs-bug.sav and runs-bug.sps in PSPP.
2. Run all of runs-bug.sps.

Actual results:

NPAR TEST
        /RUNS ( MEAN ) =  Var0001 Var0002 Var0003 Var0004.

Runs Test
╔══════════════════════╦═══════╤═══════╤═══════╤═══════╗
║                      ║Var0001│Var0002│Var0003│Var0004║
╠══════════════════════╬═══════╪═══════╪═══════╪═══════╣
║Test Value (mean)     ║    .60│    .60│    .60│    .60║
║Cases < Test Value    ║      2│      2│      2│      2║
║Cases ≥ Test Value    ║      3│      3│      3│      3║
║Total Cases           ║      5│      5│      5│      5║
║Number of Runs        ║      5│      2│      3│      4║
║Z                     ║   1.20│   -.98│    .00│    .11║
║Asymp. Sig. (2-tailed)║   .230│  1.674│  1.000│   .913║
╚══════════════════════╩═══════╧═══════╧═══════╧═══════╝


Expected results:
The results in columns where Z>=0 are correct. When Z<0, the result is incorrect: it's actually 2-correct_result.
Note that in the second column Asymp. Sig. (2-tailed) is greater than 1, which is impossible because this is a probability value.

Igor Kushnir <vedg>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #48338:  runs-bug.sav added by vedg (696B - application/x-spss-sav)
file #48339:  runs-bug.sps added by vedg (63B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jmd (Updated the item)
  • -email is unavailable- added by vedg (Submitted the item)
  • -email is unavailable- added by vedg
  •  

    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 logged-in users can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-09 jmd StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2020-02-04 jmd StatusNone Confirmed
    2020-02-03 vedg Attached File- Added runs-bug.sav, #48338
        Attached File- Added runs-bug.sps, #48339
        Carbon-Copy- Added vedg

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code