Relationship square
# Relationship square

In statistics, the relationship square is a graphical representation for use in the factorial analysis of a table individuals x variables. This representation completes classical representations provided by principal component analysis (PCA) or multiple correspondence analysis (MCA), namely those of individuals, of quantitative variables (correlation circle) and of the categories of qualitative variables (at the centroid of the individuals who possess them). It is especially important in factor analysis of mixed data (FAMD) and in multiple factor analysis (MFA).

## Definition of relationship square in the MCA frame

The first interest of the relationship square is to represent the variables themselves, not their categories, which is all the more valuable as there are many variables. For this, we calculate for each qualitative variable $j$ and each factor $F_{s}$ ($F_{s}$ , rank $s$ factor, is the vector of coordinates of the individuals along the axis of rank $s$; in PCA, $F_{s}$ is called principal component of rank Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://localhost:6011/en.wikipedia.org/v1/":): s ) , the square of the correlation ratio between the $F_{s}$ and the variable $j$, usually denoted : $\eta ^{2}(j,F_{s})$

Thus, to each factorial plane, we can associate a representation of qualitative variables themselves. Their coordinates being between 0 and 1 , the variables appear in the square having as vertices the points (0,0), ( 0,1), (1,0) and (1,1).

## Example in MCA

Six individuals ($i_{1},\ldots ,i_{6})$ are described by three variables $(q_{1},q_{2},q_{3})$ having respectively 3, 2 and 3 categories. Example : the individual $i_{1}$ possesses the category $a$ of $q_{1}$, $d$ of $q_{2}$ and $f$ of $q_{3}$.

Table 1. Minute data set for MCA. :

| | $q_{1}$ | $q_{2}$ | $q_{3}$ |
| - | - | - | - |
| $i_{1}$ | $q_{1}$-a | $q_{2}$-d | $q_{3}$-f |
| $i_{2}$ | $q_{1}$-b | $q_{2}$-d | $q_{3}$-f |
| $i_{3}$ | $q_{1}$-c | $q_{2}$-d | $q_{3}$-g |
| $i_{4}$ | $q_{1}$-a | $q_{2}$-e | $q_{3}$-g |
| $i_{5}$ | $q_{1}$-b | $q_{2}$-e | $q_{3}$-h |
| $i_{6}$ | $q_{1}$-c | $q_{2}$-e | $q_{3}$-h |

Applied to these data, the MCA function included in the R Package FactoMineR provides to the classical graph in Figure 1.

| Figure 1. MCA of table 1 via FactoMineR. Representation of individuals (blue) and categories (colour according to the variable). | Figure 2. MCA of table 1 via FactoMineR. Relationship square. |
| - | - |

The relationship square (Figure 2) makes easier the reading of the classic factorial plane. It indicates that:

* The first factor is related to the three variables but especially $q_{3}$ (which have a very high coordinate along the first axis) and then $q_{2}$.
* The second factor is related only to $q_{1}$ and $q_{3}$ (and not to $q_{2}$ which has a coordinate along axis 2 equal to 0) and that in a strong and equal manner.

All this is visible on the classic graphic but not so clearly. The role of the relationship square is first to assist in reading a conventional graphic. This is precious when the variables are numerous and possess numerous coordinates.

## Extensions

This representation may be supplemented with those of quantitative variables, the coordinates of the latter being the square of correlation coefficients (and not of correlation ratios). Thus, the second advantage of the relationship square lies in the ability to represent simultaneously quantitative and qualitative variables.

The relationship square can be constructed from any factorial analysis of a table individuals x variables. In particular, it is (or should be) used systematically:

* in multiple correspondences analysis (MCA);
* in principal components analysis (PCA) when there are many supplementary variables;
* in factor analysis of mixed data (FAMD).

An extension of this graphic to groups of variables (how to represent a group of variables by a single point ?) is used in Multiple Factor Analysis (MFA)

## History

The idea of representing the qualitative variables themselves by a point (and not the categories) is due to Brigitte Escofier. The graphic as it is used now has been introduced by Brigitte Escofier and Jérôme Pagès in the framework of multiple factor analysis

## Conclusion

In MCA, the relationship square provides a synthetic view of the connections between mixed variables, all the more valuable as there are many variables having many categories. This representation iscan be useful in any factorial analysis when there are numerous mixed variables, active and/or supplementary.

