ArticleslgStudy

science

Correspondence analysis

Correspondence analysis is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Correspondence analysis rather than just read about it. In short: Correspondence analysis (CA) is a multivariate statistical technique proposed by Herman Otto Hartley (Hirschfeld) and later developed by Jean-Paul Benzécri. It is conceptually similar to principal component analysis, but applies to categorical rather than continuous data.

Key takeaways

  • Correspondence analysis belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Correspondence analysis to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Correspondence analysis from memory before moving on to harder problems.

Reference excerpt

Correspondence analysis (CA) is a multivariate statistical technique proposed by Herman Otto Hartley (Hirschfeld) and later developed by Jean-Paul Benzécri. It is conceptually similar to principal component analysis, but applies to categorical rather than continuous data. In a manner similar to principal component analysis, it provides a means of displaying or summarising a set of data in two-dimensional graphical form. Its aim is to display in a biplot any structure hidden in the multivariate setting of the data table. As such it is a technique from the field of multivariate ordination. Since the variant of CA described here can be applied either with a focus on the rows or on the columns it should in fact be called simple (symmetric) correspondence analysis. It is traditionally applied to the contingency table of a pair of nominal variables where each cell contains either a count or a zero value. If more than two categorical variables are to be summarized, a variant called multiple correspondence analysis should be chosen instead. CA may also be applied to binary data given the presence/absence coding represents simplified count data i.e. a 1 describes a positive count and 0 stands for a count of zero. Depending on the scores used CA preserves the chi-square distance between either the rows or the columns of the table. Because CA is a descriptive technique, it can be applied to tables regardless of a significant chi-squared test. Although the χ2 statistic used in inferential statistics and the chi-square distance are computationally related they should not be confused since the latter works as a multivariate statistical distance measure in CA while the χ2 statistic is in fact a scalar not a metric.

Details Like principal components analysis, correspondence analysis creates orthogonal components (or axes) and, for each item in a table i.e. for each row, a set of scores (sometimes called factor scores, see Factor analysis). Correspondence analysis is performed on the data table, conceived as matrix C of size m × n where m is the number of rows and n is the number of columns. In the following mathematical description of the method capital letters in italics refer to a matrix while letters in italics refer to vectors. Understanding the following computations requires knowledge of matrix algebra.

Preprocessing Before proceeding to the central computational step of the algorithm, the values in matrix C have to be transformed. First compute a set of weights for the columns and the rows (sometimes called masses), where row and column weights are given by the row and column vectors, respectively:

wm=1nCC𝟏,wn=1nC𝟏TC. Here nC=∑i=1n∑j=1mCij is the sum of all cell values in matrix C, or short the sum of C, and 𝟏 is a column vector of ones with the appropriate dimension. Put in simple words, wm is just a vector whose elements are the row sums of C divided by the sum of C, and wn is a vector whose elements are the column sums of C divided by the sum of C. The weights are transformed into diagonal matrices

Wm=diag⁡(1/wm) and

Wn=diag⁡(1/wn) where the diagonal elements of Wn are 1/wn and those of Wm are 1/wm respectively i.e. the vector elements are the inverses of the square roots of the masses. The off-diagonal elements are all 0. Next, compute matrix P by dividing C by its sum

P=1nCC. In simple words, Matrix P is just the data matrix (contingency table or binary table) transformed into portions i.e. each cell value is just the cell portion of the sum of the whole table. Finally, compute matrix S, sometimes called the matrix of standardized residuals, by matrix multiplication as

S=Wm(P−wmwn)Wn Note, the vectors wm and wn are combined in an outer product resulting in a matrix of the same dimensions as P. In words the formula reads: matrix outer⁡(wm,wn) is subtracted from matrix P and the resulting matrix is scaled (weighted) by the diagonal matrices Wm and Wn. Multiplying the resulting matrix by the diagonal matrices is equivalent to multiply the i-th row (or column) of it by the i-th element of the diagonal of Wm or Wn, respectively.

Interpretation of preprocessing The vectors wm and wn are the row and column masses or the marginal probabilities for the rows and columns, respectively. Subtracting matrix outer⁡(wm,wn) from matrix P is the matrix algebra version of double centering the data. Multiplying this difference by the diagonal weighting matrices results in a matrix containing weighted deviations from the origin of a vector space. This origin is defined by matrix outer⁡(wm,wn). In fact matrix outer⁡(wm,wn) is identical with the matrix of expected frequencies in the chi-squared test. Therefore S is computationally related to the independence model used in that test. But since CA is not an inferential method the term independence model is inappropriate here.

Orthogonal components The table S is then decomposed by a singular value decomposition as

S=UΣV∗ where U and V are the left and right singular vectors of S and Σ is a square diagonal matrix with the singular values σi of S on the diagonal. Σ is of dimension p≤(min⁡(m,n)−1) hence U is of dimension m×p and V is of n×p. As orthonormal vectors U and V fulfill

U∗U=V∗V=I. In other words, the multivariate information that is contained in C as well as in S is now distributed across two (coordinate) matrices U and V and a diagonal (scaling) matrix Σ. The vector space defined by them has as number of dimensions p, that is the smaller of the two values, number of rows and number of columns, minus 1.

Inertia While a principal component analysis may be said to decompose the (co)variance, and hence its measure of success is the amount of (co-)variance covered by the first few PCA axes - measured in eigenvalue -, a CA works with a weighted (co-)variance which is called inertia. The sum of the squared singular values is the total inertia I of the data table, computed as

I=∑i=1pσi2. The total inertia I of the data table can also computed directly from S as

I=∑i=1n∑j=1msij2. The amount of inertia covered by the i-th set of singular vectors is ιi, the principal inertia. The higher the portion of inertia covered by the first few singular vectors i.e. the larger the sum of the principal inertiae in comparison to the total inertia, the more successful a CA is. Therefore, all principal inertia values are expressed as portion ϵi of the total inertia

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Correspondence analysis

Start with the simplest possible case. Write down what Correspondence analysis claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Correspondence analysis before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Correspondence analysis ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Correspondence analysis

In research
Correspondence analysis appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Correspondence analysis in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Correspondence analysis is common in secondary-school and first-year university syllabi. It links to neighbouring topics Dimension reduction, so understanding it makes those chapters shorter.
In everyday life
Look for Correspondence analysis outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Correspondence analysis” →

How to study Correspondence analysis in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Correspondence analysis means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Correspondence analysis out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Correspondence analysis in simple terms?

Correspondence analysis (CA) is a multivariate statistical technique proposed by Herman Otto Hartley (Hirschfeld) and later developed by Jean-Paul Benzécri. It is conceptually similar to principal component analysis, but applies to categorical rather than continuous data.

Why does Correspondence analysis matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Correspondence analysis?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Correspondence analysis.

Tags

  • Dimension reduction

Keep exploring