The misclassification rate is the expected zero-one loss of a classification in statistical learning rule. Its empirical version is the fraction of incorrectly labeled observations. Evaluation on the fitting sample gives a training error; evaluation on an independent test set estimates prediction error. For a majority-class leaf of a classification tree, the training error count is , unlike classification-tree deviance, which also uses the fitted class probabilities.
A classification tree partitions predictor space recursively and attaches a class probability vector to each terminal region. For a categorical response, a fitted leaf commonly uses its observed class proportions and predicts their largest entry. Binary numerical splits compare one coordinate with a threshold. Growing a tree greedily by reducing classification-tree deviance gives an interpretable rule but does not globally optimize the tree. Cost-complexity tree pruning and cross-validation control complexity and assess prediction error.
Pruning balances a tree's empirical loss against the number of leaves. Increasing favors a nested sequence of smaller subtrees, obtained by removing splits with the smallest effective cost per removed leaf. Choose complexity using cross-validation or a validation set, and assess the selected tree on a separate test set. The loss can be deviance or misclassification loss; the chosen convention must be specified.
Maximizing a node's multinomial likelihood gives class probabilities . Twice the negative maximized log-likelihood relative to perfect classification is the displayed deviance, with . It equals twice the node size times its Shannon entropy. A split is chosen by maximizing , and tree deviance is the sum over terminal nodes. The training misclassification count is instead ; the two criteria are different.
Classification in statistical learning with two possible labels. Given the conditional probability , a Bayes classifier under zero-one loss predicts one exactly when , with arbitrary decisions at ties.
The false positive rate is . In screening, it measures erroneous positives among genuinely disease-free individuals.
A decision boundary is the subset of covariate space across which a classifier changes its predicted class.
For binary classification under zero-one loss, the Bayes decision boundary is the set on which the two conditional class probabilities are equal.
A majority-vote ensemble predicts the class selected by more constituent classifiers than any other class.
A confusion matrix cross-tabulates true classes against predicted classes. Its diagonal entries count correct predictions and its off-diagonal entries describe the kinds of classification errors.
A classification and regression tree recursively splits covariate space into axis-aligned regions and assigns a constant prediction to each terminal region.
Recursive partitioning repeatedly selects a split of one current region, then applies the same splitting rule independently to the resulting child regions.
A surrogate split uses another predictor to approximate the left-versus-right assignments made by a tree node's primary split. It can route observations whose primary predictor is missing. Surrogates are ranked by agreement with the primary split on observations where both predictors are known, accounting for trivial majority assignments. This differs from simply filling a missing predictor with its sample mean.
For class proportions in a tree node, Gini impurity is . For two classes it is twice ; omitting the constant factor does not change the selected split.
A random forest aggregates deeply grown decision trees fitted to bootstrap samples, while restricting each split to a random subset of predictor coordinates. Classification uses a majority vote over the trees.
The out-of-bag error predicts each training observation using only trees whose bootstrap samples omitted it, then averages the resulting losses.
The conditional class probability for class isA Bayes classifier selects a class maximizing this probability.
A sequence of classifiers is risk-consistent when its classification risk converges to the Bayes risk as the training sample size tends to infinity.
The K-nearest neighbors algorithm predicts from the labels or responses of the training observations closest to the query under a chosen distance.
With fixed neighbor positions, independent equal-variance errors and weights , the displayed variance is minimized at , with value . Its bias is . Larger nearest-point weight often reduces smoothing bias, but neither the bias nor the variance is universally monotone over . If the nearest point is the target, the squared bias is .
// Target: probability-and-statistics.bigb
The classifier that assigns the query the label of its closest training feature, using feature-measurable nearest-neighbour tie-breaking. Its misclassification risk need not converge to Bayes risk, even with infinitely many independent and identically distributed random variables as training data.
For binary classification, write and assume feature-measurable nearest-neighbour tie-breaking. If , then the expected conditional misclassification risk of the one-nearest-neighbour classifier tends to . Couple each label and an oracle label using one uniform variable. Their disagreement has the preceding expected absolute difference. The oracle and the test label are conditionally independent Bernoulli random variables of parameter , so their disagreement probability is exactly . The difference of classification in statistical learning error probabilities is at most the coupling disagreement.
Under the hypotheses for the one-nearest-neighbour asymptotic risk, the limiting risk satisfies . Put : then since . Integrate, using the definition of Bayes risk. Constant gives limiting risk and Bayes risk , so the lower comparison is not generally equality.
For a fixed query, order training features by their distances and break equal distances by a rule depending only on features, such as original index. If auxiliary uniforms are independent of the features, the uniform selected by the resulting index remains uniform conditional on all features: sum over the possible selected indices. Label-dependent tie-breaking can invalidate Bernoulli coupling by a shared uniform random variable and the usual one-nearest-neighbour asymptotic risk.
The L-nearest-neighbour classifier estimates each class probability by its empirical frequency among the nearest training covariates and predicts a class of greatest estimated probability.
One-nearest-neighbour classification assigns a query the label of its single nearest training observation. Under local regularity, its limiting conditional error is .
For binary classification with posterior estimate , the plug-in classifier satisfies
A support vector machine chooses a separating decision function by trading a wide geometric margin against hinge-loss violations.
A kernel support vector machine trains a support vector machine using a positive-definite kernel instead of explicit feature coordinates. The kernel trick evaluates all required feature inner products through the training Gram matrix; prediction is . Nonzero dual coefficients identify support vectors. An unpenalized intercept supplies the dual equality . The Reproducing kernel Hilbert space construction explains why a positive-semidefinite kernel defines valid feature geometry.
For signed training labels, a linear soft-margin support vector machine minimizeswith . Its Karush-Kuhn-Tucker conditions give , , and .
For the kernel support vector machine objective , assume , , and that the kernel matrix is invertible. The subdifferential optimality equation givesThus strict margins greater than one force zero coefficients, while misclassified observations have nonzero coefficients. Invertibility matters: a singular kernel matrix allows coefficient changes in its null space without changing the fitted function or objective.
For a fixed in the unnormalized sum-of-slacks objective and unique training optimizers, deleting an observation with preserves the Karush-Kuhn-Tucker conditions and the fitted decision function. It is correctly classified when held out. Consequently Leave-one-out cross-validation makes at most errors, where counts positive dual coefficients. With geometric support vectors, counting all points of signed margin at most one also gives the bound, without a nondegeneracy assumption.
A dual support vector has . Every such point has signed margin at most one, but a point exactly on the margin can have in a degenerate solution. If , complementary slackness forces , so the point is correctly classified with margin at least one.
The slack variables satisfy and quantify margin violations.
A support vector is a training observation on or inside the fitted margin; it has a nonzero dual coefficient and can affect the fitted boundary.
The perceptron is an online linear classifier that adds a misclassified observation's signed feature vector to its current parameter vector.
Articles by others on the same topic
There are currently no matching articles.