urn_sampling_distribution | R Documentation |
The exact sampling distribution for an urn problem
urn_sampling_distribution( red = 50, black = 50, sample_size = 25, red_proportion = NULL, observed_red = NULL, replace = TRUE )
red |
The number of red marbles in the urn. |
black |
The number of black marbles in the urn. |
sample_size |
The number of marbles to draw from the urn. |
red_proportion |
As an alternative to specifying the number of
red and black marbles in the jar, the proportion of red marbles
can be specified. If |
observed_red |
The number of red marbles in a sample. This is optional. TODO more documentation here please |
replace |
Is the sampling with or without replacement? |
urn_sampling_distribution(sample_size = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.