How are the rows and columns of a table related? (correspondence analysis, map of the table)
In brief
A large cross tabulation (for example type of school by favourite subject) is hard to survey. Correspondence analysis draws the rows and columns on a common map. Rows with a similar profile lie close together, as do columns. A row lies in the direction of the columns that occur more often than average with it. It describes the table; it tests nothing.
When
A table of counts with at least 3 rows and 3 columns. No row and no column may be empty.
How it works in Statable
- Run the card "Does something occur at different rates in different groups?" with two group columns (cross tabulation).
- Under the result open the section "Map of the table (correspondence analysis)" and click "Draw the map"; afterwards the button reads "Redraw the map". Statable calculates in the browser.
Reading the result
- The map shows the rows as circles and the columns as triangles in the first two dimensions.
- The table "Dimensions: singular value and share of inertia" says how much of the spread of the table each dimension shows. The total inertia is χ² divided by n. The text under the map gives the share of the first two dimensions together.
- The distances between rows and rows and between columns and columns are meaningful. The distance between a row and a column counts only as a direction, not as a distance.
- With small counts in single cells the map becomes unsteady.
What is often misunderstood
Whether a relationship exceeds chance is shown not by the map but by the chi-square test of the cross tabulation. The map only shows what it consists of.
Reporting the result
Report: the table (rows, columns, N), the total inertia (χ² divided by n), for each dimension the singular value and its share of the inertia, the combined share of the two dimensions shown and the map itself. In the text only distances between rows and rows or between columns and columns are interpreted; a row point points toward the columns that occur above average for it. Also: that the map describes and tests nothing, and a reservation for very small frequencies. Textbook: Greenacre 2017, Correspondence analysis in practice (3rd ed.).
The correspondence analysis of the table … (… rows × … columns, N = …) has a total inertia of … (χ² = …). The first dimension explains … % of the inertia, the second … % (together … %). The rows … lie toward the columns …; a distance between a row and a column counts only as a direction.
For specialists
S = D_r^(-1/2) (P - r cᵀ) D_c^(-1/2) with P = N / n; singular value decomposition S = U Σ Vᵀ. Principal coordinates of the rows D_r^(-1/2) U Σ and of the columns D_c^(-1/2) V Σ (symmetric map); inertia per dimension = σ², total = χ² / n. Reference values: R MASS::corresp (up to the sign).
Sources
Greenacre, M. (2017). Correspondence analysis in practice (3rd ed.). CRC Press. Venables, W. N. & Ripley, B. D. (2002). Modern applied statistics with S (4th ed.). Springer.