StudyBrio

Probability trees & sampling

R=2; B=3; n=3R 2/5R 1/4R 0/30B 3/30.1B 3/4R 1/30.1B 2/30.2B 3/5R 2/4R 1/30.1B 2/30.2B 2/4R 2/30.2B 1/30.1
Expected red count1.2
Samples0
P(R=0)0.1
P(R=1)0.6
P(R=2)0.3
P(R=3)0
Experiment settings
Save, share & print

Explore and explain

Each trial starts with the original bag, which must contain at least one ball. With replacement gives a binomial count; without replacement gives a hypergeometric count. Sampling uses a saved deterministic seed and generator version.

The tree includes zero-probability paths in pale lines. Readouts compare theoretical probabilities with observed frequencies; finite samples need not match exactly.

OpenStax · Probability distributions