simOAB | R Documentation |
Simulate the expected number of trials on arm B before switching to the known arm A, and the expected reward.
simOAB(N, p, al, k, gam, Ns)
N |
number of trials. |
p |
the probability of reward on arm B (unknown). |
al |
the known probability of reward on arm A. |
k |
the initial sample size on arm B. |
gam |
Bayesian confidence level. |
Ns |
number of runs in the simulation. |
MeanValueStoppingTime |
mean value at the stopping time |
StandardDeviationST |
standard deviation of the value at the stopping time |
MeanValueExpectedReward |
mean value of the expected reward |
StandardDeviationST |
standard deviation of the expected reward |
Shelemyahu Zacks
dynOAB
set.seed(123) simOAB(N = 50, p = 0.6, al = 0.5, k = 10, gam = 0.95, Ns = 1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.