errorrate | R Documentation |
The optimal error rate of Bayes rule for two-class Gaussian homoscedastic model
errorrate(beta0, beta, pi, mu, sigma)
beta0 |
An n\times p matrix where each row represents an individual observation |
beta |
Number of observations. |
pi |
A g-dimensional vector for the initial values of the mixing proportions. |
mu |
A p \times g matrix for the initial values of the location parameters. |
sigma |
A p\times p covariance matrix if |
The optimal error rate of Bayes rule for two-class Gaussian homoscedastic model can be expressed as
err(y_j;θ)=π_1φ\{-\frac{β_0+β_1^Tμ_1}{(β_1^TΣβ_1)^{\frac{1}{2}}}\}+π_2φ\{\frac{β_0+β_1^Tμ_2}{(β_1^TΣβ_1)^{\frac{1}{2}}}\}
where φ is a normal probability function with mean μ_i and covariance matrix Σ_i.
errval |
A vector of error rate. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.