Skip to content

Instantly share code, notes, and snippets.

@kkew3
Created September 25, 2025 09:30
Show Gist options
  • Save kkew3/91bc663978f37b13890b6db4c222c99a to your computer and use it in GitHub Desktop.
Save kkew3/91bc663978f37b13890b6db4c222c99a to your computer and use it in GitHub Desktop.
In this notebook, we explore how to sample directly from the joint of m independent Bernoulli(p_i) truncated to the set where at least one Bernoulli is activated.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment