jasp-stats / jasp-issues

This repository is solely meant for reporting of bugs, feature requests and other issues in JASP.
58 stars 29 forks source link

[Bug]: Q-Q plot and P-P plot discrepancy #2887

Open SachaEpskamp opened 2 weeks ago

SachaEpskamp commented 2 weeks ago

JASP Version

0.18.3

Commit ID

No response

JASP Module

Distributions

What analysis are you seeing the problem on?

Assess fit of distribution

What OS are you seeing the problem on?

macOS Silicon

Bug Description

Hi Jasp team! I am not sure if this is a bug or not, but I made a Q-Q plot and a P-P plot of a simple dataset in which I have the numbers 1-5 each 5 times. The Q-Q plot looks like this:

image

and the P-P plot like this:

image

Note that in the Q-Q plot, the sample quantiles are correclty put equal to the values with the same score (1s, 2s, etcetera), but the theoretical quantiles are instead ordered in a sequence. In the P-P plot this is the other way around, and now theoretical values that are equal are assigned the same cumulative probability but the sample values are ordered. Is this expected?

Here is a file that reproduces the plots: QQ_PP_example.jasp.zip

Expected Behaviour

I am actually not sure what this should look like...

Steps to Reproduce

  1. Type in a variable 1,1,1,1,1,2,2,2,2,2, etcetera
  2. Distributions -> Uniform
  3. Add variablea nd make the plots ...

Log (if any)

No response

More Debug Information

No response

Final Checklist

tomtomme commented 1 week ago

confirmed with 0.19 flatpak