What is the difference between PCA loadings and PCA scores?

Quick Overview

Asks for the difference between PCA loadings and PCA scores, including the shape of each matrix and what it is used for. Tests whether you can interpret principal components, project data onto them, and reconstruct the original variables.

What is the difference between PCA loadings and PCA scores?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is the difference between PCA loadings and PCA scores? ```hint Look at the shapes For a dataset with n rows and p columns reduced to k components, work out the shape of each matrix and what its rows are indexed by. ``` ### What a Strong Answer Covers - What loadings describe, their shape, and how they are used to interpret a component - What scores describe, their shape, and how they are computed from the data - How scores and loadings together reconstruct the data - Practical details such as the scikit-learn attributes, sign ambiguity, or the scaled and unscaled loading conventions ### Follow-up Questions - For standardized data, how do you turn loadings into correlations between each variable and each component? - How do you compute scores for a new observation that was not in the training data? - Why can the sign of a component flip between runs, and how would you make it stable? - How do the loadings and scores change if you only center the variables instead of standardizing them?

Overview: Asks for the difference between PCA loadings and PCA scores, including the shape of each matrix and what it is used for. Tests whether you can interpret principal components, project data onto them, and reconstruct the original variables.

General logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What is the difference between PCA loadings and PCA scores?

What a Strong Answer Covers Guidance

  • What loadings describe, their shape, and how they are used to interpret a component
  • What scores describe, their shape, and how they are computed from the data
  • How scores and loadings together reconstruct the data
  • Practical details such as the scikit-learn attributes, sign ambiguity, or the scaled and unscaled loading conventions

Follow-up Questions Guidance

  • For standardized data, how do you turn loadings into correlations between each variable and each component?
  • How do you compute scores for a new observation that was not in the training data?
  • Why can the sign of a component flip between runs, and how would you make it stable?
  • How do the loadings and scores change if you only center the variables instead of standardizing them?