Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not throw error if alternativas have data that can lead to negative numbers for probability calculation #703

Merged
merged 2 commits into from
Jan 22, 2023

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.

1 participant