Log in Sign up
Back to Discover
🔢

Principal component analysis

math Maturity 11-13

Sometimes we have too much data.

GaussianScatterPCA.svg
GaussianScatterPCA.svg
It can be hard to see. We can find the best way to look at it. This helps us find patterns. It makes big groups easier to see. Can you find a pattern?

40 words

Sometimes we have too much information.

GaussianScatterPCA.svg
GaussianScatterPCA.svg
This can be hard to see. We can find a better way to look at it. This helps us find patterns.

We can pick the best directions to show the data. This makes big groups easier to see. It can help us see how things are related.

Karl Pearson first made this idea in 1901. Harold Hotelling also worked on it later.

Scientists use this to study many things. They use it to look at tiny germs. They also use it to study the air.

It helps us turn many facts into just a few. This makes the data much simpler to use.

110 words

Sometimes we have too much information to see clearly.

GaussianScatterPCA.svg
GaussianScatterPCA.svg
Imagine a cloud of many points in space. It is hard to find the pattern. Principal component analysis, or PCA, helps us find that pattern.

PCA looks for the best directions in the data. These directions are called principal components. The first component shows the direction where the data is most spread out. This is called variance. The second component shows the next best direction. It must be at a right angle to the first one. This helps us turn many facts into just a few. We call this dimensionality reduction. It makes big groups easier to see on a simple graph.

PCA of Haplogroup J using 37 STRs.png
PCA of Haplogroup J using 37 STRs.png

Karl Pearson invented PCA in 1901. Harold Hotelling also worked on it in the 1930s. Scientists use PCA in many fields. They use it to study genetics and the air. They also use it to study tiny germs.

SCREE plot.jpg
SCREE plot.jpg
A scree plot can help a scientist decide how many components to keep.

171 words

Imagine you are looking at a huge cloud of dots floating in space. Each dot represents a piece of information, but there are too many details to see a pattern.

GaussianScatterPCA.svg
GaussianScatterPCA.svg
This is where Principal Component Analysis, or PCA, becomes very useful. PCA is a way to simplify large amounts of data without losing the most important parts. It does this by finding new directions in the data called principal components. These components show us how the data is spread out. By focusing on these directions, we can turn a messy cloud of points into a clear picture. This process is known as dimensionality reduction.

To make PCA work, the math follows a specific set of steps. First, the data is centered by subtracting the average value from every point. This moves the middle of the data cloud to zero. Next, a special tool called a covariance matrix is used to see how the variables relate to each other.

PCA versus Factor Analysis.jpg
PCA versus Factor Analysis.jpg
The math then finds things called eigenvectors and eigenvalues. The eigenvectors act like arrows that point in the best directions. The eigenvalues tell us how much information is in each direction. The first component captures the most spread, or variance. The second component captures the next most, but it must be at a right angle to the first.

People have been using these ideas for a long time. Karl Pearson invented PCA in 1901. He was inspired by ideas in mechanics. Later, in the 1930s, Harold Hotelling developed the idea again on his own.

SCREE plot.jpg
SCREE plot.jpg
Because of this, some people call it the Hotelling transform. PCA is a very simple type of analysis compared to other methods like factor analysis. It is closely related to other math tools like singular value decomposition. Different scientists in different fields even have different names for it. For example, weather scientists might call it empirical orthogonal functions.

There are many ways to use PCA in the real world.

PCA of Haplogroup J using 37 STRs.png
PCA of Haplogroup J using 37 STRs.png
In biology, scientists use it to study population genetics and tiny germs called microbiomes. Atmospheric scientists use it to study the air around our planet. It can even help doctors look at patterns in breast cancer studies.
Elmap breastcancer wiki.png
Elmap breastcancer wiki.png
When scientists have too much data, they use a tool called a scree plot. This plot helps them decide how many principal components are worth keeping. It shows a bend in a line, often called a knee, to guide them. This ensures they keep the most important information while throwing away the noise.

PCA helps us see connections that are otherwise hidden. It takes many different measurements and combines them into a few important ones.

AirMerIconographyCorrelation.jpg
AirMerIconographyCorrelation.jpg
This makes it much easier to create a simple graph. Instead of a complicated 3D shape, we can often use just two components to draw a flat map. This map can show clusters, which are groups of points that stay close together. By looking at these clusters, we can see how different things are related. It turns a mountain of numbers into a story we can actually see and understand.

517 words

Principal Component Analysis, or PCA, is a powerful linear dimensionality reduction technique. It is used to simplify complex datasets by transforming many variables into a smaller set of new ones. This process is essential for exploratory data analysis, visualization, and data preprocessing. When scientists face a massive cloud of data points, they often struggle to see patterns. PCA solves this by finding a new coordinate system. In this new system, the directions are called principal components. These components capture the largest amounts of variation within the data.

GaussianScatterPCA.svg
GaussianScatterPCA.svg

The mechanism of PCA relies on a specific mathematical sequence. First, the data must be centered. This is done by subtracting the mean of each variable from its observed values. This shifts the data so that the center of the cloud sits at zero. Next, researchers compute a covariance matrix. This matrix describes how the different variables in the dataset change together. The core of the process involves finding the eigenvectors and eigenvalues of this matrix. The eigenvectors represent the directions of the principal components. They act as an orthonormal basis, meaning they are all at right angles to one another. The eigenvalues indicate the amount of variance captured by each corresponding direction.

PCA versus Factor Analysis.jpg
PCA versus Factor Analysis.jpg

PCA works through a series of distinct, ordered stages. The first principal component is the direction that explains the most variance in the original variables. It is a linear combination of those variables that maximizes the spread of the projected data. The second principal component explains the most remaining variance after the first component is removed. This second direction must be orthogonal, or perpendicular, to the first. This process can continue through many iterations until all the variance in the dataset is explained. Each subsequent component captures less information than the one before it. This creates a hierarchy of importance among the new variables.

The history of PCA involves several key figures and different names. Karl Pearson invented the method in 1901. He designed it as an analogue to the principal axis theorem used in mechanics. Later, in the 1930s, Harold Hotelling independently developed the method. Because of his work, it is sometimes called the Hotelling transform in multivariate quality control. Depending on the scientific field, PCA goes by many different names. In signal processing, it is known as the discrete Karhunen–Loève transform. Meteorological scientists call it empirical orthogonal functions. Mechanical engineers often refer to it as proper orthogonal decomposition.

SCREE plot.jpg
SCREE plot.jpg

Understanding the significance of PCA requires looking at how much information is retained. Scientists often use a tool called a scree plot to interpret their results. This plot shows the amount of explained variance for each component. A researcher looks for a point of inflexion, often called a "knee," in the plot. This knee indicates how many components should be kept to represent the data accurately. By choosing the right number of components, researchers can reduce dimensions while keeping the most important details. This allows them to turn high-dimensional data into simple, two-dimensional plots.

PCA of Haplogroup J using 37 STRs.png
PCA of Haplogroup J using 37 STRs.png

There are many notable examples of PCA in various scientific disciplines. In population genetics, it can separate different lines of genetic descent. For instance, it can be used to analyze Y-chromosomal markers in individuals. In biology, PCA helps researchers study the microbiome. Atmospheric science uses PCA to understand complex weather patterns. It is also used in medical research, such as analyzing patterns in breast cancer studies.

Elmap breastcancer wiki.png
Elmap breastcancer wiki.png
These applications show how PCA turns a mountain of numbers into a visible, understandable structure.

Finally, PCA is closely related to several other mathematical concepts. It is a simple type of eigenvector-based multivariate analysis. It shares a relationship with factor analysis, though factor analysis uses different assumptions about data structure. PCA is also linked to canonical correlation analysis, or CCA. While PCA describes the variance within a single dataset, CCA describes the cross-covariance between two different datasets. Additionally, PCA is related to singular value decomposition, which is a way to decompose a data matrix. These connections show how PCA fits into the broader world of linear algebra and statistics.

AirMerIconographyCorrelation.jpg
AirMerIconographyCorrelation.jpg

683 words
🖼️ Images & Media (7)
File:GaussianScatterPCA.svg
GaussianScatterPCA.svg
File:SCREE_plot.jpg
SCREE_plot.jpg
File:PCA of Haplogroup J using 37 STRs.png
PCA of Haplogroup J using 37 STRs.png
File:PCA_versus_Factor_Analysis.jpg
PCA_versus_Factor_Analysis.jpg
Fractional Residual Variances comparison,...
File:AirMerIconographyCorrelation.jpg
AirMerIconographyCorrelation.jpg
File:Elmap breastcancer wiki.png
Elmap breastcancer wiki.png
Up Next
🔢
Multivariate normal distribution
Math
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.