You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can we add effective sample size as a metric to Chapter 7? I think it would be useful in the discussion on how importance sampling is more efficient than direct Monte Carl.
@hdelecki has some Julia code which could be adopted for the book:
function ess(weights)
# Compute the effective sample size
weights = weights ./ sum(weights)
return 1 / sum(weights .^ 2)
end
The text was updated successfully, but these errors were encountered:
Thanks for suggesting this, @lkruse@hdelecki! We just added an exercise about effective sample size that we will reference from the text. Check out exercise 7.5 here.
What textbook version are you using?
<2025-01-27 19:51:32-08:0>
Suggestion
Can we add effective sample size as a metric to Chapter 7? I think it would be useful in the discussion on how importance sampling is more efficient than direct Monte Carl.
@hdelecki has some Julia code which could be adopted for the book:
The text was updated successfully, but these errors were encountered: