All 31 questions UPSC has asked on multivariate methods in the Statistics Optional (Paper I, Linear Inference and Multivariate Analysis) from 1996 to 2026, solved step by step – latest first.
Try them yourself first: the same questions, without solutions, are on our Linear Inference and Multivariate Analysis topic-wise PYQs page.
How we check these solutions
These are our own solutions, prepared with AI help. UPSC does not publish official answers. Every solution is checked a second way before it goes up, and says how:
- ✓ Checked by computer the numbers were worked out again independently in code (Python with NumPy/SciPy) and matched.
- ✓ Proof checked step by step for “prove that” and “examine whether” questions, every step was checked against the definitions and the standard theorems.
- ✓ Derivation checked step by step for derivations and approximations, every step was checked, and the result was also tested numerically.
- ✓ Answer checked step by step for descriptive questions, every point was checked against the standard theory.
Spotted a mistake or a neater method? Tell us in the comments below or through Report an error.
Jump to a question (year · question number):
2026 · 5b 2025 · 8a 2024 · 6b 2023 · 6c(i) 2023 · 6c(ii) 2022 · 6c 2022 · 7b 2021 · 7b 2020 · 8c 2019 · 8b 2018 · 5b 2017 · 6a 2017 · 7b 2016 · 8a 2015 · 7b 2013 · 8b 2012 · 6c 2012 · 7b 2007 · 5b 2007 · 6b 2006 · 6a 2004 · 5f 2004 · 6b 2004 · 6c 2003 · 6b 2002 · 6c 2000 · 6b(i) 1999 · 12a 1998 · 12b 1997 · 12b 1996 · 12b
Explain the problem of classification in discriminant analysis. In case of two known multivariate normal populations, define Fisher’s discriminant function and calculate it for the data given below:
Solution
The classification problem. We have two (or more) populations whose distributions are known (or estimated), and an individual that is known to belong to one of them but not to which. We must divide the sample space into regions and assign to when , so that the chance (or expected cost) of misclassification is as small as possible. Examples: diagnosing a disease from symptoms, assigning a fossil to a species, approving or refusing a loan.
Fisher’s discriminant function. Fisher looked for the linear combination whose means in the two populations are as far apart as possible relative to its standard deviation: The maximum value is the Mahalanobis distance . With equal priors and costs, is assigned to if and to otherwise. For normal populations with a common this is also the optimal (Bayes) rule.
Calculation. , : So Fisher’s discriminant function is
Allocation rule. The midpoint is , so Assign to if (equivalently ), and to otherwise.
The separation is , , so each population is misclassified with probability .
✓ Checked by computer We checked in Python: Σ⁻¹(μ₁ − μ₂) = (58, 48)/47, Δ² = 444/47 = 9.45 and the cut-off 1746/47 = 37.15.
(i) What are principal components? Show that the principal components are uncorrelated. (ii) Obtain the principal components and the amount of variation explained by each principal component associated with the following dispersion matrix: Comment on the results.
Solution
(i) Principal components. For a random vector with dispersion matrix (eigenvalues , orthonormal eigenvectors ), the -th principal component is the normalised linear combination with the largest variance among those uncorrelated with . Its variance is .
They are uncorrelated. For , because the eigenvectors of the symmetric matrix are orthogonal. (If two eigenvalues are equal, the eigenvectors can still be chosen orthogonal.) In matrix form, with , has .
(ii) Calculation. gives (trace 9; sum of the principal 2×2 minors ; ). Its roots are Solving and normalising:
| PC | Eigenvector | Variance | % of total (9) | Cumulative |
|---|---|---|---|---|
| 6.049 | 67.2% | 67.2% | ||
| 1.643 | 18.3% | 85.5% | ||
| 1.308 | 14.5% | 100% |
So
Comment.
- All variables are positively correlated, so has all positive weights: it is a weighted “overall size” index, dominated by (the variable with the largest variance) and explaining about two-thirds of the total variation.
- and are contrasts between the variables. Their variances, 1.64 and 1.31, are close, so neither is clearly more important than the other, and their directions are not well determined.
- Two components explain 85.5% of the variation, so the data can be reduced from 3 to 2 dimensions with modest loss; one component already gives 67%. The variances differ (4, 3, 2), so the components of the correlation matrix would be somewhat different.
✓ Checked by computer We checked in Python: the characteristic equation λ³ − 9λ² + 20λ − 13 = 0, the roots 6.049, 1.643 and 1.308, their eigenvectors and the shares 67.2%, 18.3% and 14.5%.
Define principal components and canonical correlation. How can one attain data reduction using principal components? If has covariance matrix then find the principal components.
Solution
Principal components. For with dispersion matrix , the principal components are the uncorrelated linear combinations , where is the normalised eigenvector of for its -th largest eigenvalue . has the largest variance of all normalised combinations, the largest among those uncorrelated with , and so on; and .
Canonical correlation. For two sets ( variables) and ( variables), the first canonical correlation is the largest correlation between linear combinations and . The pair attaining it is the first pair of canonical variates; the next pair has the largest correlation among combinations uncorrelated with the first, and so on. The squared canonical correlations are the eigenvalues of .
Data reduction. The total variance is preserved. If the first eigenvalues account for most of it (say 80–90%), we keep and discard the rest. The correlated variables are then replaced by uncorrelated ones with little loss of information. The number is chosen from the cumulative proportion , a scree plot, or Kaiser’s rule (keep for a correlation matrix).
Calculation. For :
- : , so .
- : , so .
Hence, for , The first component explains a proportion of the total variance. (For the order is reversed, and for every direction is a principal component.) The directions do not depend on ; only the variances do.
✓ Proof checked step by step We checked the eigenvalues 1 ± ρ and the eigenvectors (1, 1)/√2 and (1, −1)/√2 of the given matrix.
State briefly three reasons why an analyst may wish to perform a principal component analysis.
Solution
Three reasons for a principal component analysis.
- Data reduction. When many variables are measured, a few components often explain most of the total variance. Replacing variables by components makes the data easier to store, display (for example a scatter plot of the first two components) and analyse.
- Removing multicollinearity. The components are uncorrelated. Using them as regressors (principal component regression) avoids the unstable estimates caused by highly correlated predictors, and the same idea helps in other procedures that need a well-conditioned covariance matrix.
- Understanding the structure. The weights show how the variables group together, for example an overall “size” component and “shape” contrasts. Components are also used to build composite indices (such as a development or welfare index), to find outliers and clusters, and as a first step in factor analysis.
✓ Answer checked step by step We checked each of the reasons against the standard properties of principal components.
Define canonical correlations and give two examples of their application. Describe the procedure of working out canonical correlations and canonical variates.
Solution
Definition. Let have dispersion matrix with variables in the first set and in the second. The first canonical correlation is the largest correlation between a linear combination of the first set and a linear combination of the second. The -th canonical correlation is the largest correlation between combinations uncorrelated with the first pairs. The combinations are the canonical variates. Canonical correlation generalises the multiple correlation () and simple correlation ().
Two applications.
- Relating a set of economic indicators (prices, wages, interest rates) to a set of outcomes (output, employment, consumption).
- Relating aptitude or entrance-test scores of students to their later performance in examinations; or relating measurements on fathers to the same measurements on sons, or climatic variables to crop yields.
Procedure.
- Obtain (or the sample matrix or correlation matrix ) and partition it as above.
- Maximise subject to . Lagrange multipliers give so
- Solve . Its roots are the squared canonical correlations.
- For each , find the eigenvector and scale it so that . Then , which automatically has .
- The canonical variates are , , with and all other correlations between different pairs zero.
- In samples, test how many canonical correlations are significant with Bartlett’s statistic .
✓ Answer checked step by step We checked the description: the eigen-equations for the canonical correlations, the normalisation of the canonical variates and the order of extraction.
(i) If , where and are uncorrelated random variables and each of which has zero mean and unit standard deviation, find the multiple correlation coefficient between and . (ii) Let be a 3-dimensional random vector with dispersion matrix Determine the first principal component and the proportion of the total variability that it explains.
Solution
(i) Multiple correlation. Since the ’s are uncorrelated with unit variance, and similarly and . So every correlation is The multiple correlation of on is
(ii) First principal component. , where is the matrix of ones. The vector satisfies , so Any vector orthogonal to has , so . The eigenvalues are The first principal component is and it explains of the total variability. (The other two components are not unique: any pair of orthonormal contrasts, such as and , will do.)
✓ Checked by computer We checked in Python: the covariance matrix [[2, 1, 1], [1, 2, 1], [1, 1, 2]], R² = 1/3, and the eigenvalues 15, 6, 6 of Σ with the first share 5/9.
(i) The data matrix of a random sample of size from a bivariate normal population is Test the null hypothesis against , where , at 10% level of significance. [You are given: ] (ii) Suppose and , observations are made on two random vectors and which are assumed to have bivariate normal distribution with a common covariance matrix , but possibly different mean vectors and . The sample mean vectors and pooled covariance matrix are Obtain Mahalanobis sample distance and Fisher’s linear discriminant function. Assign the observation to either population or .
Solution
(This question is also listed under 3.6 Mahalanobis’s D² and Hotelling’s T². The worked solution is repeated here so that this page is complete.)
(i) One-sample test. , . Deviations: , , : With : Since , we do not reject at the 10% level.
(ii) Mahalanobis distance. . With ,
Fisher’s linear discriminant function. Its values at the two means are and , with midpoint Rule (equal priors and costs): assign to if , and to otherwise.
Classification of . . So is assigned to .
✓ Checked by computer We checked in Python: (i) T² = 0.25 and F = 0.0625 < 49.5; (ii) the discriminant coefficients (−0.5, −0.5), D² = 2.5, the midpoint −0.25 and the score −0.5 of x₀.
What are principal components? Describe how to compute the principal components of the vectors and . Give and in terms of the principal components.
Solution
Note on the question. We read and as two variables, each observed on 3 units: takes the values and the values . (Read as two observations of a 3-vector, the same steps apply to .)
Principal components. The -th principal component is , where is the normalised eigenvector of the covariance matrix for its -th largest eigenvalue. The components are uncorrelated, and their variances are the eigenvalues.
Method.
- Centre the variables and form the covariance matrix .
- Solve for .
- Find the normalised eigenvectors .
- Form ; the proportion explained by is .
Calculation. Both variables already have mean zero. so, with divisor , gives , , with eigenvectors and . Hence The component scores for the three units are
in terms of the components. The eigenvector matrix is orthogonal, so : (Check, first unit: , gives , .)
✓ Checked by computer We checked in Python: the covariance matrix [[2, −1], [−1, 2]]/2, its eigenvalues 3/2 and 1/2, and the inverse relations X₁ = (Y₁ + Y₂)/√2, X₂ = (Y₂ − Y₁)/√2.
Two types of tests viz: written and oral were conducted for seeking admission to MBA course. The result of the test given by the students are as follows: Let : students eligible for admission to MBA course; : students not eligible for admission to MBA course If one student gets 29.0 marks in written test and 12.0 in oral test, classify the student as eligible or not based on Fisher’s linear discriminant function. Also find the probability of misclassification. [Given that ].
Solution
Fisher’s linear discriminant function. The populations have a common covariance matrix , so and :
Cut-off. , so Rule: classify as eligible () if , otherwise not eligible ().
The student. : So the student is classified as eligible for admission, though only just: the score is very close to the boundary.
Probability of misclassification. Under , , and it is misclassified if , i.e. if . So About 3.4% of students would be misclassified in each direction.
✓ Checked by computer We checked in Python: the coefficients (1.2472, 1.9102), the score 59.09 against the cut-off 59.00, D² = 13.35 and the misclassification probability 0.0336.
Consider two sons born first in families. Let : head length of first son : head breadth of first son : head length of second son : head breadth of second son The measurements provide the sample variance covariance matrix that leads to the correlation matrix where Obtain the canonical correlations and hence the first canonical variables and interpret your result.
Solution
Method. Work with the correlation matrix, i.e. standardised variables . The squared canonical correlations are the eigenvalues of
Calculation. Multiplying out, The eigenvalues are so the canonical correlations are
First canonical variables. The eigenvector of for , scaled so that , and scaled so that , give with . In the original units (dividing by the standard deviations ):
Interpretation.
- Both canonical variates give roughly equal weight to head length and head breadth, so each is essentially an overall head size index. The first canonical correlation, 0.79, shows a strong association between the head size of the first son and that of the second son.
- The second canonical correlation, 0.054, is negligible. Its variates are approximately breadth-minus-length contrasts (head shape), so the brothers’ head shapes are essentially unrelated once size is allowed for.
- So the relation between the two sets is almost entirely carried by one dimension: the four measurements can be summarised by one pair of size indices.
✓ Checked by computer We checked in Python: the eigenvalues of R₁₁⁻¹R₁₂R₂₂⁻¹R₂₁ are 0.6217 and 0.0029, so the canonical correlations are 0.7885 and 0.0536, and the first canonical variates have standardised weights (0.552, 0.521) and (0.504, 0.538).
Define principal components. Is the principal component affected by standardization? Establish your claim by illustrating the same with the covariance matrix
Solution
Definition. The principal components of are the uncorrelated linear combinations , where is the normalised eigenvector of the dispersion matrix for its -th largest eigenvalue ; .
Is the principal component affected by standardisation? Yes. Principal components are not scale invariant. Changing the units of a variable changes its variance and therefore the components; the components of the covariance matrix and of the correlation matrix (standardised variables) are in general different, and one set cannot be obtained from the other by a simple rescaling.
Illustration.
From . : The first component is almost exactly , simply because has a much larger variance (100 against 1).
From . , so , with where and .
Conclusion. With , the first component explains 99.2% and is essentially one variable. With , both variables get equal weight and the first component explains only 70%. So standardisation changes both the weights and the proportions explained. Standardising is advisable when the variables are measured in different units or have very different variances; otherwise the variable with the largest variance dominates.
✓ Checked by computer We checked in Python: from Σ the eigenvalues are 100.16 and 0.84 with first PC (0.040, 0.999), explaining 99.2%; from R (ρ = 0.4) they are 1.4 and 0.6 with first PC (1, 1)/√2, explaining 70%.
Obtain first canonical correlation and its associated canonical variable pair for the following correlation matrix:
Solution
Partition. With and :
Canonical correlations. We need the eigenvalues of . Since , we have (and likewise for ), and , for . So and . Hence
Canonical variates. The eigenvector for is . Normalising, , so . By symmetry . So
Check. So the first canonical correlation is , carried by the sums (totals) of the two sets. There is no further correlation between the sets ().
✓ Checked by computer We checked in Python: R₁₁⁻¹R₁₂R₂₂⁻¹R₂₁ has eigenvalues 64/81 and 0, so ρ₁ = 8/9, with a = b = (1/√3, 1/√3).
Suppose and observations are made on two random vectors and which are assumed to have bivariate normal distribution with a common covariance matrix , but possibly different mean vectors and . The sample mean vectors and pooled covariance matrix are Obtain Mahalanobis sample distance and Fisher’s linear discriminant function. Assign the observation to either population or .
Solution
(This question is also listed under 3.6 Mahalanobis’s D² and Hotelling’s T². The worked solution is repeated here so that this page is complete.)
Mahalanobis distance. . and
Fisher’s linear discriminant function. Scores of the means: and ; midpoint Rule (equal priors and equal costs): allocate to if , otherwise to .
Allocation of . , so is assigned to .
(The separation is significant: , .)
✓ Checked by computer We checked in Python: S⁻¹(x̄₁ − x̄₂) = (−0.5, −0.5), D² = 2.5, the midpoint is −0.25, and the score of x₀ is −0.5, so x₀ goes to π₂.
Let has the following covariance matrix: Obtain the first three principal components using these values and the proportion of variations explained by the first two principal components.
Solution
Eigenvalues. is uncorrelated with , so with eigenvector . For the block : So
Eigenvectors.
- : . Normalising, .
- : .
- : .
Principal components. with variances 5.828, 2 and 0.172 (total ).
Proportion explained. The first two components explain about 98% of the total variation, so can be dropped. Note that , being uncorrelated with the others, is itself a principal component.
✓ Checked by computer We checked in Python: the eigenvalues 3 + 2√2 = 5.828, 2 and 3 − 2√2 = 0.172, and the share of the first two components, 7.828/8 = 97.9%.
Suppose a random vector has the covariance matrix . Find the principal components of and obtain the proportion of the total variance accounted for by the first two principal components.
Solution
Eigenvalues. gives (trace 11; minors ; ), which factorises as
Eigenvectors. By the symmetry between and :
- : gives . ✓
- : try : first row ; third row . ✓
- : try : ; third row . ✓
Principal components.
Proportion explained by the first two.
✓ Checked by computer We checked in Python: the eigenvalues 6, 3 and 2, the eigenvectors (1, 1, 2)/√6, (1, 1, −1)/√3 and (1, −1, 0)/√2, and the share 9/11 = 81.8%.
Let has the correlation matrix given by Obtain the first two principal components and the population variance explained by the first two principal components.
Solution
Eigenvalues. Write , so with . The eigenvalues of are (from ). Hence the eigenvalues of are :
Eigenvectors (those of ):
- : ;
- : ;
- : .
First two principal components (of the standardised variables ):
Variance explained. The total is : The correlations are weak (0.18), so the variance is spread fairly evenly over the three components and the reduction from 3 to 2 components keeps only 75% of the variation.
✓ Checked by computer We checked in Python: the eigenvalues 1.25, 1 and 0.75 and their eigenvectors, and the share 2.25/3 = 75%.
Suppose has co-variance matrix Obtain the first two principal components of .
Solution
Note. This is the same covariance matrix as in Q14 (2016). The superscript “1” in is a transpose.
Eigenvalues. is uncorrelated with , giving . The block gives , so . In decreasing order:
First two principal components.
- For : , normalised :
- For : : Together they explain of the total variance.
✓ Checked by computer We checked in Python: the same matrix as Q14, with eigenvalues 5.828, 2 and 0.172.
Bring out the relation between Hotelling’s and Mahalanobis . Explain how can be interpreted as an extension of the student’s statistic. Describe the utility of Fisher’s discriminent function in classification problems.
Solution
(This question is also listed under 3.6 Mahalanobis’s D² and Hotelling’s T². The worked solution is repeated here so that this page is complete.)
Relation between and . For samples of sizes from and , the sample Mahalanobis distance is with the pooled unbiased covariance matrix. The two-sample Hotelling statistic for is So measures the distance between the samples, and turns it into a test statistic by allowing for the sample sizes. (In the one-sample case, with .)
as an extension of Student’s .
- With one variable, the two-sample is , so . has exactly this form, with vectors and matrices in place of scalars. For it reduces to , and its distribution reduces to .
- is the maximum of the squared statistics over all linear combinations of the variables. So it tests all such comparisons at once while controlling the overall level.
- Like , it is the likelihood ratio test and is invariant under changes of scale (indeed, under any non-singular linear transformation).
Fisher’s discriminant function in classification. Fisher looked for the linear combination that separates the two groups best, in the sense of maximising The maximum is reached at and its maximum value is . To classify a new individual :
- compute and the midpoint ;
- assign to if and to otherwise (with unequal priors or costs, compare with instead).
For normal populations with a common covariance matrix this is the optimal (Bayes) rule. Its expected error rate is , so a larger Mahalanobis distance means better classification. It also reduces measurements to a single score, and shows (through the size of the coefficients for standardised variables) which characters matter most. Uses include taxonomy, medical diagnosis, credit scoring and anthropometric classification.
✓ Answer checked step by step Every step was checked: the relation T² = n₁n₂D²/(n₁ + n₂), the reduction of T² to Student’s t when p = 1, and the discriminant rule.
Explain briefly the method of factor analysis and its uses.
Solution
Idea. Factor analysis explains the correlations among observed variables in terms of a small number of unobserved common factors. Variables that are highly correlated are assumed to share a common underlying cause (for example “verbal ability” behind several language test scores).
Model. where () are the common factors, () the factor loadings, and the specific factors, with , , diagonal and uncorrelated. Then
Method.
- Compute the correlation (or covariance) matrix of the variables.
- Decide the number of factors (eigenvalues of greater than 1, scree plot, or a likelihood ratio test).
- Estimate the loadings and specific variances, by the principal component (principal factor) method or by maximum likelihood.
- Rotate the factors (for example varimax) to get a simple structure in which each variable loads heavily on few factors, making the factors interpretable.
- Name the factors from the variables that load on them, and if needed compute factor scores for each individual (Bartlett’s or the regression method).
Uses.
- Reducing many correlated variables to a few interpretable constructs: intelligence and personality traits in psychology, consumer attitudes in marketing, development indicators in economics.
- Building scales and checking whether a questionnaire measures what it claims (construct validity).
- Providing factor scores as inputs to regression or cluster analysis, avoiding multicollinearity.
✓ Answer checked step by step We checked the model X − μ = LF + ε, the covariance structure Σ = LL′ + Ψ and the estimation steps described.
Briefly explain the development and use of linear discriminant functions in the context of two multivariate populations.
Solution
Context. Two -variate populations with means and a common dispersion matrix . We want a single linear score that separates them as well as possible, so that a new individual can be classified by one number.
Development (Fisher, 1936). The separation between the populations along is measured by the squared difference of the means relative to the variance: Setting : So By the Cauchy–Schwarz inequality this is the global maximum. The function is unique up to a constant multiple. In samples, are replaced by and by the pooled , and the maximum becomes .
Use.
- Classification. Compute and assign to if , otherwise to . With priors and costs , the cut-off becomes . For normal populations this is the Bayes rule; each error has probability with equal priors.
- Testing separation. (through Hotelling’s ) tests whether the populations differ at all.
- Importance of variables. The standardised coefficients show which characters contribute most to the separation, and tests on additional variables show whether a character is worth measuring.
Examples: diagnosis (diseased or healthy), credit scoring (good or bad risk), taxonomy (species A or B), and selection (eligible or not).
✓ Answer checked step by step We checked the derivation of Fisher’s function by maximising the separation ratio, the classification rule and its error rate.
Discuss the procedure of classification of an observation into one of two known multivariate normal populations.
Solution
Problem. and are completely known, with prior probabilities and misclassification costs (assigning a member to ) and . We must split into regions .
Optimal rule. The expected cost of misclassification is This is smallest when contains exactly the points where the integrand is negative:
Normal populations with a common . So we assign to if and to otherwise. is linear in , and its coefficient vector is Fisher’s discriminant function. With equal priors and costs, .
Error probabilities. Under , ; under , , with . So both equal to when .
Unequal covariance matrices. If , the log ratio contains , and the boundary becomes quadratic (quadratic discriminant analysis).
In practice the parameters are estimated from training samples (), giving the sample rule (Anderson’s statistic), and the error rate is estimated by cross-validation.
✓ Derivation checked step by step We checked the derivation: the regions minimising the expected cost, the likelihood-ratio rule, its linear form for equal covariance matrices and the error probabilities.
What is the purpose of MANOVA? Explain the one-way MANOVA model.
Solution
Purpose. MANOVA (multivariate analysis of variance) tests whether the mean vectors of several groups differ when several correlated responses are measured on each unit. Running a separate ANOVA on each response would ignore the correlations between them and inflate the overall chance of a Type I error; MANOVA tests all responses together at a single level, and may detect differences that no single response shows clearly. Example: comparing three teaching methods on students’ scores in mathematics, reading and science.
One-way MANOVA model. With groups and units in group : where is the response, the overall mean vector, the effect of group with , and .
Hypothesis. (all the group mean vectors are equal).
Decomposition. The matrices of sums of squares and cross-products (SSP) split exactly as in ANOVA: with .
Test. Wilks’ lambda, the likelihood ratio statistic, is where are the eigenvalues of . Small leads to rejection of . For large samples, (Bartlett), and exact forms exist for small or ; for example, with , , which is the two-sample Hotelling . Other statistics are Pillai’s trace, the Lawley–Hotelling trace and Roy’s largest root.
Assumptions. Independent observations, multivariate normality within groups, and a common covariance matrix (checked with Box’s test).
✓ Answer checked step by step We checked the one-way MANOVA model, the decomposition T = B + W and Wilks’ Λ with its exact F form.
Explain the purpose of discriminant analysis. What is Fisher’s discriminant function for two populations? Give the allocation rule based on it.
Solution
Purpose of discriminant analysis.
- Separation: to describe how two or more groups differ, using linear combinations of the measured variables that separate them as much as possible.
- Classification (allocation): to build a rule that assigns a new individual, whose group is unknown, to one of the groups with as few errors as possible. Examples are medical diagnosis, credit scoring, species identification and selection of candidates.
Fisher’s discriminant function for two populations. With means and a common dispersion matrix , Fisher chose the linear combination that maximises the squared distance between the group means of relative to its within-group variance. The solution is and the maximum is . In samples, and the pooled replace : Fisher’s derivation needs no normality assumption, only a common covariance matrix.
Allocation rule. Let , the midpoint of the two group means of . For a new observation :
- allocate to if ;
- allocate to if .
If prior probabilities or unequal costs apply, compare with instead of zero. For normal populations this rule minimises the expected cost of misclassification.
✓ Answer checked step by step We checked Fisher’s function as the maximiser of the separation ratio and the allocation rule, including the version with priors and costs.
Outlining the purpose of factor analysis, describe the orthogonal factor model along with its covariance structure.
Solution
Purpose of factor analysis. To explain the covariances (correlations) among many observed variables by a few unobservable, underlying variables called common factors. It seeks to identify the latent constructs (such as intelligence, socio-economic status or customer satisfaction) that make groups of variables vary together, and so to reduce and interpret the data.
Orthogonal factor model. For a -variate with mean : where
- , , are the common factors;
- is the matrix of factor loadings ( is the loading of variable on factor );
- are specific factors (unique to each variable).
Assumptions.
Covariance structure. Element by element: So all the covariances come from the common factors, and each variance is split into the part shared with other variables () and the part unique to the variable ().
Non-uniqueness. For any orthogonal (), and give the same . This is why loadings are rotated (varimax, quartimax) to make them easier to interpret.
✓ Derivation checked step by step We checked the derivation of the covariance structure Σ = LL′ + Ψ, Cov(X, F) = L, the communalities and the rotation non-uniqueness.
What are the situations where discriminant analysis is used? Give some examples in support of your answer. Write the objectives of two group discriminant analysis. Explain how the discriminant criterion is calculated.
Solution
Situations where discriminant analysis is used. Whenever individuals belong to one of a few known groups, and we want to know which measured characteristics distinguish the groups, or to assign new individuals to a group from their measurements. Examples:
- Medicine: diagnosing a disease (present or absent) from test results and symptoms.
- Banking: classifying loan applicants as good or bad credit risks from income, debts and history.
- Marketing: separating buyers from non-buyers of a product from demographic and attitude data.
- Biology and anthropology: assigning a skull or plant specimen to a species or population from its measurements (Fisher’s iris data).
- Education and recruitment: deciding whether candidates are suitable for admission or a job from test scores.
- Agriculture: classifying soil types or crop varieties.
Objectives of two-group discriminant analysis.
- To find the linear combination of the predictor variables (the discriminant function) that best separates the two groups.
- To test whether the groups differ significantly on the predictors taken together.
- To find which predictors contribute most to the separation.
- To classify new cases into one of the two groups, and to estimate the probability of misclassification (the hit rate).
The discriminant criterion. For a linear combination , the discriminant criterion is the ratio of the between-group to the within-group variation of : where is the pooled within-group SSP matrix and the between-group SSP matrix. For two groups , so Calculation.
- Compute the group means and the pooled matrix (or ).
- Maximise : this gives , the eigenvector of for its only non-zero eigenvalue.
- The maximum value is , where .
- The canonical correlation and Wilks’ measure the strength of discrimination, and on df tests it.
✓ Answer checked step by step We checked the objectives listed and the calculation of the discriminant criterion as the ratio of between-group to within-group variance.
What are principal components? Discuss the method of finding them.
Solution
Definition. For a -variate random vector with dispersion matrix , the principal components are linear combinations , with , such that
- has the largest variance among all normalised linear combinations;
- has the largest variance among normalised combinations uncorrelated with .
Finding them.
First component. Maximise subject to . With : So must be an eigenvector of and an eigenvalue, the root of . Then , so the maximum is the largest eigenvalue , and is its normalised eigenvector.
Second component. Maximise subject to and . With : Premultiplying by gives , so again ; the best choice is the second largest eigenvalue with eigenvector .
In general, the -th principal component is , where is the normalised eigenvector for the -th largest eigenvalue .
Properties. The proportion of the total variance explained by is , and .
Practical steps.
- Compute the sample covariance matrix (or the correlation matrix if the units differ).
- Find its eigenvalues and normalised eigenvectors (by solving the characteristic equation, or by the power method / Jacobi method for larger ).
- Arrange them in decreasing order of eigenvalue and form the component scores .
- Keep the first components that explain enough of the total variance.
✓ Derivation checked step by step We checked the derivation: maximising a′Σa subject to a′a = 1 gives Σa = λa, and the successive components follow from the orthogonality constraints.
Define principal components and explain their significance in statistical practice.
Solution
Definition. The principal components of a -variate vector with dispersion matrix are the linear combinations (), where is the normalised eigenvector of for the -th largest eigenvalue . has the maximum variance among all normalised combinations, each later component has the maximum variance subject to being uncorrelated with the earlier ones, , and the components together keep all the variance: .
Significance in statistical practice.
- Dimension reduction. A few components often account for most of the variation, so many variables can be summarised by two or three, with little loss of information.
- Uncorrelated variables. The components can replace highly correlated regressors (principal component regression), removing multicollinearity.
- Visualisation. Plotting the first two component scores displays multivariate data in two dimensions and reveals clusters, trends and outliers.
- Indices. The first component often serves as a weighted composite index (for example of size, socio-economic status or development), with weights chosen by the data.
- Interpretation. The loadings show which variables move together, and the smallest components reveal near-linear relations among the variables.
- Preparing other analyses. They are a starting point for factor analysis, clustering and classification.
✓ Answer checked step by step We checked the definition and the listed uses against the standard properties of principal components.
What are principal components? Explain the differences between principal components analysis and factor analysis. Briefly indicate how you can obtain maximum likelihood estimates of the principal components, given a random sample from where has all its characteristic roots distinct.
Solution
Principal components. For with dispersion matrix , the principal components are , where is the normalised eigenvector of for its -th largest root . They are uncorrelated, , and successively have the largest possible variance.
Principal components analysis and factor analysis: differences.
| Principal components analysis | Factor analysis | |
|---|---|---|
| Aim | Explains the total variance of the variables | Explains the covariances (correlations) among the variables |
| Model | No statistical model; a transformation of the data | A model: , |
| Direction | Components are functions of the observed variables, | Observed variables are functions of the latent factors |
| Error term | None: with components, is reproduced exactly | Each variable has a specific factor with variance |
| Uniqueness | Unique (if the roots are distinct) | Loadings are unique only up to rotation |
| Variance used | Total variance, including unique variance | Only the common (shared) variance, the communalities |
| Effect of | Adding a component does not change the earlier ones | Changing the number of factors changes all the loadings |
| Interpretation | Mainly data reduction | Seeks interpretable underlying constructs |
Maximum likelihood estimates. Let be a random sample from , with the roots of all distinct. The MLE of is The eigenvalues and the normalised eigenvectors (with a sign convention, for example first non-zero element positive) are one-to-one functions of when the roots are distinct. By the invariance property of maximum likelihood estimators, the MLE of a function of is the same function of . Hence:
- the MLEs of the are the roots of ;
- the MLEs of the are the corresponding normalised eigenvectors of , from , ;
- the estimated principal components are .
The distinct-roots condition is needed because with repeated roots the eigenvectors are not unique, so they are not well-defined functions of . (If the unbiased is used instead, the eigenvectors are the same and the roots are multiplied by .) In large samples, independently of the other roots.
✓ Answer checked step by step We checked the comparison of the two methods and the maximum likelihood result: the components of the MLE of Σ are the MLEs of the components, by invariance.
Let and and linear discriminant function is sufficient for the class of normal densities , , prove it. Discuss the methods used in it.
Solution
Note on the question. We read it as: let come from with ( known, unknown). Prove that the linear discriminant function is sufficient for this family.
Proof. With , the mean is The density is Expand the quadratic form: Hence The first factor depends on only through , and the second does not involve . By the Neyman–Fisher factorisation theorem, is sufficient for , i.e. for the family , .
For a sample the same argument shows that is sufficient. The family is a one-parameter exponential family in with natural statistic , so is also complete and minimal sufficient.
Methods used and meaning.
- The method is the factorisation criterion applied to an exponential family; the family is the line of normal distributions joining and .
- So all the information in about which population (or which point on the line between the two populations) it comes from is carried by the single number . This justifies reducing the -dimensional observation to the linear discriminant score in classification: the likelihood ratio is a function of alone, and so is the optimal (Bayes) rule.
- In practice, are replaced by and the pooled , giving Fisher’s sample discriminant function.
✓ Proof checked step by step We checked the proof: expanding the normal density with mean μ₁ + β(μ₂ − μ₁) and applying the factorisation theorem to L(U).
Define fishers discriminant function and obtain a test of the adequacy of a hypothetical discriminant function.
Solution
Fisher’s discriminant function. For two -variate populations with a common dispersion matrix, Fisher’s discriminant function is the linear combination that maximises the ratio of the squared difference of the group means to the within-group variance, and the maximum is . Here is the pooled within-sample covariance matrix on df.
Adequacy of a hypothetical function. Suppose a function is proposed on prior grounds (for example from theory, or from an earlier study). We want to test whether it discriminates as well as the best function, i.e. whether the true discriminant coefficients are proportional to :
Statistic. The distance achieved by the hypothetical function alone is If is true, the remaining dimensions orthogonal to (in the metric of ) add nothing to the separation. The test is the test of additional information carried by further variables after one (): We reject the adequacy of the hypothetical function if .
Steps.
- Compute , and .
- Compute (best function) and (hypothetical function).
- Compute and compare it with the table value.
- A non-significant means the proposed function is adequate: it captures essentially all of the available separation. A significant means the variables contain discriminating information not captured by .
(Equivalently, in Fisher’s regression formulation with a dummy dependent variable, this is the test of whether the regression on all variables significantly improves on the regression on alone.)
✓ Derivation checked step by step We checked the test: D² for the hypothetical function is (a₀′d)²/(a₀′Sa₀), and the gain D²ₚ − D²₁ is tested with an F on (p − 1, n₁ + n₂ − p − 1) df.
Define Fisher’s discriminant function between two p-variate populations. Indicate the connection between the discriminant function coefficients and the -statistic. Describe a test to judge the adequacy of a preassigned discriminant function.
Solution
Fisher’s discriminant function. For two -variate populations with means and a common dispersion matrix , Fisher’s linear discriminant function is the linear combination that maximises . In samples, with and the pooled within-sample covariance matrix.
Connection with .
- The maximum is . The largest value of the separation ratio is
- in terms of the coefficients. Since , the difference between the means of the discriminant scores: . Also , the variance of . So the discriminant function measures the separation in units of its own standard deviation, .
- Regression form (Fisher). Define a dummy variable for members of and for , and regress on . The regression coefficients are proportional to , and the regression sum of squares, or , is a function of : So testing the regression ( on df) is the same as testing with Hotelling’s .
Test of a preassigned discriminant function. Suppose is specified in advance. Its distance is To test that is the true discriminant direction (it extracts all the separation): If is not significant, the preassigned function is adequate. If it is significant, the best function discriminates significantly better than , and the preassigned function should be revised.
✓ Derivation checked step by step We checked the link a = S⁻¹d with D² = d′a, the regression (dummy variable) form of the coefficients, and the adequacy test.
More on Linear Inference and Multivariate Analysis
- All Statistics PYQ solutions, topic by topic
- Linear Inference and Multivariate Analysis topic-wise PYQs (questions only, for practice)
- Statistics PYQ analysis: which units carry the marks year by year
- Year-wise question papers
- Statistics booklist
Questions: UPSC Civil Services (Main) Examination, Statistics Paper I, 1996–2026. Solutions: Optional Province. Found an error? Tell us.

