Skip to content

[Bug]: Bayesian equivalence test with Normal prior fails if interval starts with minus infinity #2984

@henkkiers

Description

@henkkiers

JASP Version

0.19.1

Commit ID

No response

JASP Module

Equivalence T-Tests

What analysis are you seeing the problem on?

Two sample t test

What OS are you seeing the problem on?

Windows 10

Bug Description

Using the equivalence t test module, I used the Normal (rather than default) prior, and encountered that the analysis led to infinity and 0 values when I entered as interval "minus infinity to -0.1", while "-0.1 to infinity" it gave decent values. I varied the interval, and it actually appears that this always happens when using the normal prior, and the second option for intervals, that is the one starting with -Inf. I show the output in a word document. I also uploaded a zipped version of my JASP file, and a screenshot of what happened.
Screenshot of bug jpg
Bug report on Equivalence t test.docx
st2shortBugReport.zip

It's a very annoying bug, because I use the equivalence t test to learn students how to interpret probabilities under posterior distributions, so I hope it can be solved soon.

Expected Behaviour

I actually explained what should happen, namely, I should get the complements to the results for the complement of the interval, which you get by choosing the interval from -0.1 to infinity.

Steps to Reproduce

I simply get it all the time if I choose the "Equivalence region" minus infinity to a particular value, when using the normal prior (not when using Cauchy prior or t prior)

Log (if any)

No response

More Debug Information

No response

Final Checklist

  • I have included a screenshot showcasing the issue, if possible.
  • I have included a JASP file (zipped) or data file that causes the crash/bug, if applicable.
  • I have accurately described the bug, and steps to reproduce it.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions