Description Usage Arguments Details Value Examples
Mean and probability plot of flipping fair or loaded coin
1 |
n |
number of trials in one simulation |
times |
number of simulations |
prob |
probability assigned to each possible outcome |
The default probabilty equals to 1/n. All the assigned probabilites must between 0 and 1.
Mean value and corresponding probabilities for all simulated outcomes.
1 2 |
MEAN_VALUE FREQUENCY PROBABILITY
0 0.00 62 0.062
0.25 0.25 244 0.244
0.5 0.50 400 0.400
0.75 0.75 227 0.227
1 1.00 67 0.067
MEAN_VALUE FREQUENCY PROBABILITY
0 0.00 7 0.007
0.25 0.25 95 0.095
0.5 0.50 250 0.250
0.75 0.75 417 0.417
1 1.00 231 0.231
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.