Skip to content

Conversation

@andrehjr
Copy link
Member

@andrehjr andrehjr commented Jan 22, 2023

We stumbled on situation at work where we had a completed_count greater than participant_count.

When calculating the probability this can lead to negative numbers which are not valid input for Beta Distribution. So RubyStats throws an error right away.

I still need more info on when/how this happens. But the Dashboard should not blow up in any case because of this. So I'm adding this check.

@andrehjr andrehjr force-pushed the check-if-alternatives-have-valid-data branch from eba5a64 to cfd61ac Compare January 22, 2023 21:26
@andrehjr andrehjr merged commit 43b08a5 into main Jan 22, 2023
@andrehjr andrehjr deleted the check-if-alternatives-have-valid-data branch January 22, 2023 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants