Bernstein.p.value | R Documentation |
The Bernstein inequality gives an upper bound to the probability that the means of two random variables differ by chance, considering also their variance.
This function implements the Berstein inequality and it is used by the functions Bernstein.compute.pvalues
and
Bernstein.ind.compute.pvalues
Bernstein.p.value(n, Delta, v)
n |
number of observations of the random variable |
Delta |
difference between the means |
v |
variance of the random variable |
a real number that provides an upper bound to the probability that the two means differ by chance
Giorgio Valentini valentini@di.unimi.it
W. Hoeffding, Probability inequalities for sums of independent random variables, J. Amer. Statist. Assoc. vol.58 pp. 13-30, 1963.
Bernstein.compute.pvalues
, Bernstein.ind.compute.pvalues
# Computation of the upper bounds to the probability that the two means differ by chance
Bernstein.p.value(n=100, Delta=0.1, v=0.01)
Bernstein.p.value(n=100, Delta=0.05, v=0.01)
Bernstein.p.value(n=100, Delta=0.05, v=0.1)
Bernstein.p.value(n=1000, Delta=0.05, v=0.1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.