StatFas emblem: a philosopher beside a rising bar chart StatFas.comAn Easy Way to Do Statistics
Upload Data, and Get Publishable Results in a Few Seconds in APA7 format Docx file

Principal Component Analysis (PCA): How to Run It Online and Report It in APA7

Principal component analysis combines many correlated variables into a smaller number of uncorrelated components that capture as much of the variance as possible.

What is Principal Component Analysis (PCA)?

Principal component analysis combines many correlated variables into a smaller number of uncorrelated components that capture as much of the variance as possible.

When to use it

Use it to reduce the number of variables, to build summary scores, to remove multicollinearity before a regression, or to visualise high-dimensional data. It is a data-reduction method, not a model of latent causes.

Example question: Can my eight survey variables be summarised by two components?

Preparing your data

One row per participant and one numeric column per variable. Variables should be continuous or approximately so. Standardise variables measured on different scales (the correlation-matrix option does this).

Example dataset (simulated; first rows of 250): id, var1 to var8 (eight numeric variables).

idvar1var2var3var4var5var6var7var8
1.09.0410.698.929.0110.919.9311.5510.78
2.010.8510.7313.1512.618.67.289.017.65
3.07.357.467.797.829.379.1410.078.54
4.011.9512.312.9812.7911.09.478.1510.37
5.010.0510.089.8110.1810.578.9710.9210.96
6.08.788.419.29.1410.8410.179.7410.15

Download the full example CSV to practise. If the tool asks for a different layout, follow the instructions on its page.

How to run it on StatFas

  1. Open the Principal Component Analysis (PCA) tool. You do not need an account to run an analysis.
  2. Enter your data or upload your file, laid out as described in Preparing your data.
  3. Select your variables. Select the numeric variables. Choose how many components to keep and whether to rotate them (varimax is common).
  4. Choose any options the tool offers (for example the confidence level, a post hoc test or the error bar type) and run the analysis.
  5. Read the results on the page. Check the assumptions first, then the test statistic, the p-value and the effect size.
  6. To save your results, log in or create a free account. Every analysis stays free; the account is only needed to download.

Assumptions and checks

  • Variables are numeric and correlated; check KMO (about .60 or higher) and Bartlett's test.
  • A sample of at least about 100–200 cases, or 5–10 cases per variable.
  • Standardise variables with different units or use the correlation matrix.
  • Choose the number of components using the scree plot, parallel analysis and interpretability.
  • Check for outliers, which can distort components.

Key numbers to look at

  • Eigenvalues and percentage of variance explained by each component.
  • Scree plot to choose the number of components.
  • Component loadings: correlations between variables and components.
  • Component scores that can be used in later analyses.

Effect size

Report the variance explained by each retained component and the cumulative variance.

Benchmarks such as small, medium and large are conventions (Cohen, 1988), not rules. Interpret size in the context of your field.

Reporting Principal Component Analysis (PCA) in APA7 style

Template

A principal component analysis with varimax rotation was conducted on the XX items. The Kaiser–Meyer–Olkin measure was .XX and Bartlett's test was significant, χ²(df) = XXX.XX, p < .001. Two components with eigenvalues above 1 explained XX.X% of the total variance. Component loadings are shown in Table 1.

Worked example (simulated data)

The numbers below were computed from the example CSV above, so you can reproduce them. They illustrate the format and are not real findings.

A principal component analysis was conducted on the eight variables. The Kaiser–Meyer–Olkin measure was .81 and Bartlett's test was significant, χ2(28) = 778.7, p < .001. Two components had eigenvalues above 1 (3.01 and 2.41) and together explained 67.8% of the total variance.

APA7 reminders: italicise statistical symbols (M, SD, t, F, p, r), report exact p-values to two or three decimals (use p < .001 for very small values), omit the leading zero for values that cannot exceed 1 (.45, not 0.45), and put degrees of freedom in parentheses. See the APA7 cheat sheet.

Common mistakes

  • Reporting PCA as if it discovered latent factors; use EFA for that.
  • Keeping components only by the eigenvalue-greater-than-1 rule.
  • Mixing variables on different scales without standardising.
  • EFA: To model latent factors.
  • CFA: To confirm a hypothesised structure.
  • Heatmap: To inspect the correlation matrix first.

Not sure which analysis you need? Use the test chooser.

Frequently asked questions

How many components should I keep?

Combine several criteria: the scree plot, parallel analysis, the variance explained and whether the components are interpretable.

Do components have to be rotated?

No. Rotation, such as varimax, often makes loadings easier to interpret.

References

American Psychological Association. (2020). Publication manual of the American Psychological Association (7th ed.). https://doi.org/10.1037/0000165-000

Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Lawrence Erlbaum Associates.

This guide is for learning and for preparing results for your own reports. You remain responsible for choosing an appropriate analysis, checking its assumptions and interpreting the results. Follow the formatting rules of your journal or institution where they differ from APA7.