ArticleslgStudy

science

Factor analysis of mixed data

Factor analysis of mixed data 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 Factor analysis of mixed data rather than just read about it. In short: In statistics, factor analysis of mixed data or factorial analysis of mixed data (FAMD, in the French original: AFDM or Analyse Factorielle de Données Mixtes), is the factorial method devoted to data tables in which a group of individuals is described both by quantitative and qualitative variables. It belongs to the exploratory methods developed by the French school called Analyse des données (data analysis) founded…

Factor analysis of mixed data — main illustration
Factor analysis of mixed data — illustration

Key takeaways

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

Reference excerpt

In statistics, factor analysis of mixed data or factorial analysis of mixed data (FAMD, in the French original: AFDM or Analyse Factorielle de Données Mixtes), is the factorial method devoted to data tables in which a group of individuals is described both by quantitative and qualitative variables. It belongs to the exploratory methods developed by the French school called Analyse des données (data analysis) founded by Jean-Paul Benzécri. The term mixed refers to the use of both quantitative and qualitative variables. Roughly, we can say that FAMD works as a principal components analysis (PCA) for quantitative variables and as a multiple correspondence analysis (MCA) for qualitative variables.

Scope When data include both types of variables but the active variables being homogeneous, PCA or MCA can be used. Indeed, it is easy to include supplementary quantitative variables in MCA by the correlation coefficients between the variables and factors on individuals (a factor on individuals is the vector gathering the coordinates of individuals on a factorial axis); the representation obtained is a correlation circle (as in PCA). Similarly, it is easy to include supplementary categorical variables in PCA. For this, each category is represented by the center of gravity of the individuals who have it (as MCA). When the active variables are mixed, the usual practice is to perform discretization on the quantitative variables (e.g. usually in surveys the age is transformed in age classes). Data thus obtained can be processed by MCA. This practice reaches its limits:

When there are few individuals ( less than a hundred to fix ideas ) in which case the MCA is unstable; When there are few qualitative variables with respect to quantitative variables (one can be reluctant to discretize twenty quantitative variables to take into account a single qualitative variable).

Criterion The data include K quantitative variables k=1,…,K and Q qualitative variables q=1,…,Q . z is a quantitative variable. We note:

r(z,k) the correlation coefficient between variables k and z ; η2(z,q) the squared correlation ratio between variables z and q . In the PCA of K, we look for the function on I (a function on I assigns a value to each individual, it is the case for initial variables and principal components) the most correlated to all K variables in the following sense:

∑kr2(z,k) maximum. In MCA of Q, we look for the function on I more related to all Q variables in the following sense:

∑qη2(z,q) maximum. In FAMD {K,Q}, we look for the function on I the more related to all K+Q variables in the following sense:

∑kr2(z,k)+∑qη2(z,q) maximum. In this criterion, both types of variables play the same role. The contribution of each variable in this criterion is bounded by 1.

Plots The representation of individuals is made directly from factors I . The representation of quantitative variables is constructed as in PCA (correlation circle). The representation of the categories of qualitative variables is as in MCA : a category is at the centroid of the individuals who possess it. Note that we take the exact centroid and not, as is customary in MCA, the centroid up to a coefficient dependent on the axis (in MCA this coefficient is equal to the inverse of the square root of the eigenvalue; it would be inadequate in FAMD). The representation of variables is called relationship square. The coordinate of qualitative variable j along axis s is equal to squared correlation ratio between the variable j and the factor of rank s (denoted η2(j,s)). The coordinates of quantitative variable k along axis s is equal to the squared correlation coefficient between the variable k and the factor of rank s (denoted r2(k,s)).

Aids to interpretation The relationship indicators between the initial variables are combined in a so-called relationship matrix that contains, at the intersection of row l and column c:

If the variables l and c are quantitative, the squared correlation coefficient between the variables l and c ; If the variable l is qualitative and the variable c is quantitative, the squared correlation ratio between l and c; If the variables l and c are qualitative, the indicator ϕ2 between the variables l and c.

Example A very small data set (Table 1) illustrates the operation and outputs of the FAMD . Six individuals are described by three quantitative variables and three qualitatives variables. Data were analyzed using the R package function FAMD FactoMineR .

In the relationship matrix, the coefficients are equal to R2 (quantitative variables), ϕ2 (qualitative variables) or η2 (one variable of each type). The matrix shows an entanglement of the relationships between the two types of variables. The representation of individuals (Figure 1) clearly shows three groups of individuals. The first axis opposes individuals 1 and 2 to all others. The second axis opposes individuals 3 and 4 to individuals 5 and 6.

The representation of variables (relationship square, Figure 2) shows that the first axis (F1) is closely linked to variables k2, k3 and Q3 . The correlation circle (Figure 3) specifies the sign of the correlation between F1, k2 and k3; the representation of the categories (Figure 4) clarifies the nature of the relationship between F1 and Q3. Finally individuals 1 and 2, individualized by the first axis, are characterized by high values of k2 and k3 and by the categories c of Q3 as well. This example illustrates how the FAMD simultaneously analyses of quantitative and qualitative variables. Thus, it shows, in this example, a first dimension based on the two types of variables.

History The FAMD's original work is due to Brigitte Escofier and Gilbert Saporta. This work was resumed in 2002 by Jérôme Pagès. A more complete presentation of FAMD in English is included in a book of Jérôme Pagès.

Software The method is implemented in the R package FactoMineR. The method is implemented in the Python library prince.

References

Illustrations

Factor analysis of mixed data: Figure2. FAMD. Test example. Relationship square.
Figure2. FAMD. Test example. Relationship square.
Factor analysis of mixed data: Figure3. FAMD. Test example. Correlation circle.
Figure3. FAMD. Test example. Correlation circle.
Factor analysis of mixed data: Figure4. FAMD. Test example. Representation of the categories of qualitative variables.
Figure4. FAMD. Test example. Representation of the categories of qualitative variables.

Worked examples

Example 1 — a first encounter with Factor analysis of mixed data

Start with the simplest possible case. Write down what Factor analysis of mixed data 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 Factor analysis of mixed data 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 Factor analysis of mixed data 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 Factor analysis of mixed data

In research
Factor analysis of mixed data 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 Factor analysis of mixed data 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
Factor analysis of mixed data is common in secondary-school and first-year university syllabi. It links to neighbouring topics Factor analysis, so understanding it makes those chapters shorter.
In everyday life
Look for Factor analysis of mixed data 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 “Factor analysis of mixed data” →

How to study Factor analysis of mixed data in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Factor analysis of mixed data 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 Factor analysis of mixed data out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Factor analysis of mixed data in simple terms?

In statistics, factor analysis of mixed data or factorial analysis of mixed data (FAMD, in the French original: AFDM or Analyse Factorielle de Données Mixtes), is the factorial method devoted to data tables in which a group of individuals is described both by quantitative and qualitative variables…

Why does Factor analysis of mixed data 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 Factor analysis of mixed data?

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 Factor analysis of mixed data.

Tags

  • Factor analysis

Keep exploring