Quadratic Discriminant Analysis
Study guide: Exam MAS-I
Quadratic Discriminant Analysis (QDA) is a classifier that assumes the predictors in each class k are multivariate normal with their own mean vector \boldsymbol\mu_k and their own covariance matrix \boldsymbol\Sigma_k. It plugs estimates of these and the class priors into Bayes Theorem and assigns an observation to the class whose discriminant function \delta_k(\mathbf{x}) is largest.
\mathbf{X} \mid Y = k \;\sim\; N(\boldsymbol\mu_k,\ \boldsymbol\Sigma_k)
\begin{aligned} \delta_k(\mathbf{x}) = &-\tfrac{1}{2}(\mathbf{x} - \boldsymbol\mu_k)^\top \boldsymbol\Sigma_k^{-1} (\mathbf{x} - \boldsymbol\mu_k) \\ &- \tfrac{1}{2}\ln|\boldsymbol\Sigma_k| + \ln \pi_k \end{aligned}
\delta_k(x) = -\frac{(x - \mu_k)^2}{2\sigma_k^2} - \ln\sigma_k + \ln\pi_k
\pi_kis the prior probability of classk,|\boldsymbol\Sigma_k|is the determinant of its covariance matrix, andpis the number of predictors. The third block is the one-predictor case (p = 1), with class variance\sigma_k^2. In practice\boldsymbol\mu_k,\boldsymbol\Sigma_kand\pi_kare replaced by training-data estimates.\mathbf{x}enters\delta_kquadratically, hence the name, so the boundary between two classes is a quadratic curve or surface. Whenp = 1it can cut the line at two points, so a class with a larger variance can claim both tails.- Bias–variance. Each class needs its own
p(p+1)/2covariance parameters, orKp(p+1)/2in all. A model with one covariance matrix shared by every class (linear discriminant analysis, LDA) has a linear boundary and far lower variance. QDA is preferred when the training set is large or a common covariance is clearly untenable; with few observations the shared-covariance model is usually the better bet (Bias-Variance Tradeoff). - Naive Bayes with normal predictors is QDA with each
\boldsymbol\Sigma_krestricted to be diagonal (predictors independent within a class). - Exam scope. The 2026 MAS-I outline assigns ISLR §§4.1–4.4 but says the linear discriminant analysis portion of §4.4 will not be tested. QDA (§4.4.3) and naive Bayes (§4.4.4) are on the syllabus, and LDA appears here only as QDA's point of comparison.
Classifying Claims by Log-Severity Attritional claims have log-severity
N(8,\ 0.5^2)and make up90\%of claims. Complex claims have log-severityN(9,\ 1.5^2)and make up10\%. Use QDA to classify claims with log-severity8.5and6.0.Answer At
x = 8.5:\begin{align*} \delta_{\text{A}} &= -\frac{(0.5)^2}{2(0.25)} - \ln 0.5 + \ln 0.9 \\ &= -0.5 + 0.693 - 0.105 \\ &= 0.088 \\[4pt] \delta_{\text{C}} &= -\frac{(0.5)^2}{2(2.25)} - \ln 1.5 + \ln 0.1 \\ &= -0.056 - 0.405 - 2.303 \\ &= -2.764 \end{align*}At
x = 6.0:\begin{align*} \delta_{\text{A}} &= -\frac{(-2)^2}{0.5} + 0.693 - 0.105 \\ &= -7.412 \\[4pt] \delta_{\text{C}} &= -\frac{(-3)^2}{4.5} - 0.405 - 2.303 \\ &= -4.708 \end{align*}The
8.5claim is attritional and the6.0claim is complex. Setting\delta_{\text{A}} = \delta_{\text{C}}gives the boundary pointsx = 6.46andx = 9.29. Claims below6.46or above9.29are classed as complex, because the wider complex-claim distribution puts more density in both tails. A rule with a single linear cut-point could not do this.
Counting Covariance Parameters A model classifies policies into
K = 3classes usingp = 10predictors. How many covariance parameters does QDA estimate, compared with a model that shares one covariance matrix across the classes?Answer
\begin{align*} \text{One matrix} &= \frac{p(p+1)}{2} \\ &= \frac{10(11)}{2} \\ &= 55 \\[4pt] \text{QDA} &= K\,\frac{p(p+1)}{2} \\ &= 3(55) \\ &= 165 \end{align*}Both models also estimate
Kp = 30means andK - 1 = 2free priors. QDA's extra110parameters buy flexibility (quadratic boundaries) at the cost of variance. Unless the training set is large or the classes clearly differ in spread, the extra variance can outweigh the reduction in bias.