-
Notifications
You must be signed in to change notification settings - Fork 4
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
max_rank calculation #68
Comments
I think the source of the confusion is that posterior ranks start with 0, because "rank is defined as the number of draws < simulated value" so the lowest rank is 0 (no draw smaller than the simulated value), maximum rank is 'D' (all draws smaller than the simulated value) where I see how that might be confusing. Do you see a specific place where mentioning some of that detail would have helped you understand what's happening? It might also be possible to just move to 1-based ranks, but I currently dislike that as that would then clash with how the ranks are defined... |
Under Rank divisors? |
Maybe a silly question, but what would happen if the number of samples is not a "nice" number? I have never worried about this before, and I plot a lot of histograms :) |
One problem with "ugly" number of samples is that it gets hard/impossible to divide your simulations equally between bins: while with 100 ranks (i.e. A smaller problem arises also for the In both cases, the differences are almost always minor, it just felt good to do things "right" in the package. |
Understood!
But regardless of that, it would be a terrible histogram to check! This reassures me:
Anyways, thanks for the explanation :) I'm making this to get off-topic. I guess I'll think more about this in my future histograms, I just started to wonder about all the other histograms I did. (BTW I see that the decision of how many bins is based anyway on plot_rank_hist() which doesn't have any description). |
I'm a bit confused about
max_rank
calculation.I followed the example in Getting Started with SBC, and it's unclear to me how the
max_rank
is calculated in compute_SBCIn that example, there are 2000 samples, and thinning by default is set to 10, so I should end up with S = 200.
The
max_rank = S + 1 = 201
, right?Then it help of the function says:
Then one should remove 1 sample, so that
max_rank
is 200, or am I wrong somewhere?Great package by the way, it makes SBC super easy (and quite fast).
The text was updated successfully, but these errors were encountered: