Description Usage Arguments Details Value
Provides an upper bound for the Bayes error rate of a dataset on binary classes. This bound requires no assumptions of the distribution of the data.
1 | mahalanobis_bound(x, y)
|
x |
a data matrix with numeric values |
y |
a binary vector |
The Mahalanobis distance between class 0 and class 1 is given by
M_d = (mu_0 - mu_1)' Sigma^-1 (mu_0 - mu_1)
where μ_0 and μ_1 are the class means in x
for
class 0 and 1, respectively. This provides an upper bound on the Bayes
error ε_bayes by
ε_bayes <= (2 Pr(0) Pr(1)) / (1 + Pr(0) Pr(1) M_d)
where Pr(0) and Pr(1) are the class probabilities of 0 and 1.
an estimate of the Bayes error rate of x w.r.t. y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.