Factor analysis with varimax rotation: a worked example

Updated

Factor analysis explains the correlations among many observed variables with a few unobserved factors. Each variable is modeled as a combination of the common factors plus a part unique to it. When six survey questions really measure two things, say product quality and service, factor analysis finds those two factors and shows which questions belong to each. A rotation, most often varimax, turns the solution so that each variable loads strongly on as few factors as possible, which makes the factors easy to name.

When to use it

  • You have a questionnaire (customer, employee, supplier audit) and want to know which questions measure the same thing.
  • You want to build a few summary scores from many correlated measurements.
  • You want to check that a survey designed around certain themes really measures them.
  • You have many correlated test results and suspect a few underlying causes.

How it works

The factor model for standardized variables z with m common factors F is:

zᵢ = ℓᵢ₁F₁ + ℓᵢ₂F₂ + … + ℓᵢₘFₘ + εᵢ

The ℓ's are loadings, the correlations between variables and factors when the factors are uncorrelated. The communality of a variable, hᵢ² = Σ ℓᵢⱼ², is the share of its variance explained by the common factors; 1 − hᵢ² is its unique variance.

The steps:

  1. Choose the number of factors. Look at the eigenvalues of the correlation matrix: a common rule keeps factors with eigenvalues above 1, checked against a scree plot and against what makes sense.
  2. Extract. This example uses the principal component method: the loadings for factor j are the j-th eigenvector times the square root of its eigenvalue. Maximum likelihood and principal axis factoring are common alternatives and give somewhat different loadings.
  3. Rotate. Any rotation of the factors fits the correlations equally well, so you choose the one easiest to interpret. Varimax (Kaiser, 1958) is an orthogonal rotation that maximizes the variance of the squared loadings within each factor, pushing each loading toward 0 or toward ±1. This example applies Kaiser normalization (rows scaled by their communality during rotation). Communalities do not change with rotation.
  4. Name the factors from the variables with large rotated loadings.

Example

A fastener distributor surveys 120 industrial customers with six statements, each answered on a 1 to 7 agreement scale:

  • Q1: Parts meet specification on arrival.
  • Q2: Surface finish is consistent from lot to lot.
  • Q3: Parts last as long as we expect.
  • Q4: Complaints are answered quickly.
  • Q5: Technical support is helpful.
  • Q6: We are told about delivery changes in time.

Correlation matrix:

Q1Q2Q3Q4Q5Q6
Q110.580.600.340.270.19
Q20.5810.480.330.260.20
Q30.600.4810.290.190.17
Q40.340.330.2910.520.60
Q50.270.260.190.5210.60
Q60.190.200.170.600.601

The eigenvalues are 2.879, 1.402, 0.523, 0.472, 0.382 and 0.342. Two are above 1, so the analysis keeps two factors, which together explain (2.879 + 1.402) / 6 = 71.3% of the variance.

ItemUnrotated F1Unrotated F2Rotated: ProductRotated: ServiceCommunality
Q10.7200.4930.8570.1610.761
Q20.6850.4320.7900.1790.656
Q30.6500.5170.8250.0940.690
Q40.751−0.3570.2790.7830.692
Q50.683−0.4830.1410.8250.700
Q60.662−0.5870.0530.8830.783
Variance2.8791.4022.1402.1414.281

Before rotation, every item loads 0.65 or more on the first factor (a general satisfaction factor), and the second factor contrasts Q1 to Q3 with Q4 to Q6. That is correct but hard to use. After varimax rotation (about 45° here), the picture is clean: Q1, Q2 and Q3 load on one factor, product quality, and Q4, Q5 and Q6 on the other, service.

Rotated factor loadings of the six survey items0.20.40.60.8Loading on service0.20.40.60.8Loading on product quality
Rotated factor loadings of the six survey items

The three points at the lower right are Q1 to Q3; the three at the upper left are Q4 to Q6. Q4 ("complaints answered quickly") has a small secondary loading on product quality (0.279), which makes sense: complaints usually concern product problems.

How to read the results

  • Read rotated loadings. Loadings above about 0.5 in absolute value usually define a factor; below 0.3 are usually ignored.
  • Check communalities. A variable with a low communality (say below 0.3) is not explained by the common factors and may measure something else.
  • Look for cross-loadings. An item that loads similarly on two factors is ambiguous; consider rewording it.
  • Name factors from content, then check reliability. Once items are grouped, use item analysis to check that each group forms a consistent scale.

Common mistakes

  • Reading unrotated loadings. The first unrotated factor is often a general factor that loads on everything.
  • Too few respondents. With fewer than about 5 to 10 respondents per item, and fewer than about 100 overall, loadings are unstable.
  • Keeping factors because of the eigenvalue rule alone. A factor with one item, or one you cannot name, is usually noise.
  • Treating factor analysis and PCA as the same thing. PCA summarizes total variance; factor analysis models shared variance. They often agree, as here, but not always.

Frequently asked questions

What is the difference between varimax and oblique rotations?

Varimax keeps the factors uncorrelated. Oblique rotations, such as promax or oblimin, let factors correlate, which is often realistic (customers happy with the product tend to be happier with service too). Then you read a pattern matrix and a factor correlation matrix.

How many factors should I keep?

Use several guides together: eigenvalues above 1, the scree plot, the share of variance explained and, most important, whether each factor is interpretable and has at least three items.

What are factor scores?

They estimate each respondent's position on each factor, for example a product-quality score and a service score. You can then chart, compare or regress them like any other variable.

Can I use factor analysis on process data?

Yes, when many measurements are driven by a few causes, such as temperature zones or raw material properties. In process work, PCA is more common because it needs fewer assumptions.

Try it with your own data

StatLab SPC is free, open-source statistics for engineers. It runs in your browser, works offline, and never uploads your data.

Open StatLab