Sub topic 6
Building a Map from Attribute Ratings with PCA
Prerequisites and working model
This chapter assumes you understand brand positioning, market segments, averages, and survey rating scales. You also need basic Python and pandas knowledge.
An attribute-rating map starts with customer ratings. Customers rate each brand on attributes such as affordable, premium, innovative, and reliable. You then summarize the ratings for each brand and reduce many attributes to two dimensions.
Principal component analysis (PCA) is a method that finds directions through the data that preserve as much variation as possible. The first principal component captures the largest share of variation. The second captures the largest remaining share while staying independent of the first. The resulting coordinates place every brand on a two-dimensional map.
flowchart TD
A[Customer attribute ratings] --> B[Average ratings by brand]
B --> C[Standardize each attribute]
C --> D[Run PCA]
D --> E[Brand coordinates]
D --> F[Attribute directions]
E --> G[Plot perceptual map]
F --> GPrepare the rating data
Use one row per brand and one column per attribute. The example uses mean ratings on a seven-point scale.
Standardization puts every attribute on a comparable scale. It subtracts each column's mean and divides by its standard deviation. This matters when attributes have different spreads or measurement units.
import pandas as pd
from sklearn.decomposition import PCA
from sklearn.preprocessing import StandardScaler
ratings = pd.DataFrame(
{
"affordable": [6.1, 5.4, 2.3, 3.0, 4.2],
"premium": [2.0, 3.1, 6.4, 5.8, 4.0],
"innovative": [3.2, 5.9, 5.1, 2.5, 4.4],
"reliable": [5.0, 3.3, 5.6, 6.0, 4.1],
},
index=["Brand A", "Brand B", "Brand C", "Brand D", "Brand E"],
)
scaled = StandardScaler().fit_transform(ratings)
pca = PCA(n_components=2)
coords = pd.DataFrame(
pca.fit_transform(scaled),
index=ratings.index,
columns=["dim1", "dim2"],
)
loadings = pd.DataFrame(
pca.components_.T,
index=ratings.columns,
columns=["dim1", "dim2"],
)
print(coords.round(2))
print(loadings.round(2))
print(pca.explained_variance_ratio_.round(2))The coords table contains the position of each brand. Brands with similar coordinates have similar rating profiles across the chosen attributes. A large coordinate means that a brand lies far from the average in that dimension.
The loadings table shows how strongly each attribute contributes to each component. Attributes with large positive or negative values help you name the axes. The explained-variance output shows the share of standardized rating variation captured by each dimension.
Interpret the axes carefully
PCA does not name the dimensions. You must inspect the attribute directions.
Suppose affordable has a large positive value on Dimension 1, while premium has a large negative value. You might label the horizontal axis “value to premium.” This label is an interpretation, not a fact produced by PCA.
The sign of a PCA axis is arbitrary. The software could reverse every sign and produce the same map. Therefore, interpret relative positions and oppositions, not whether an axis is inherently positive or negative.
| PCA output | What it tells you | How to use it |
|---|---|---|
| Brand coordinates | Relative brand positions | Find similar brands and separation |
| Attribute directions | Attributes associated with each dimension | Name the axes |
| Explained variance | Variation retained by each dimension | Judge information loss |
Read the resulting map
Brands close together have similar perceived attribute profiles. A crowded region suggests intense perceptual competition. An empty region may indicate an opportunity, but it may also represent a position customers do not want or consider credible.
To draw a map, plot coords["dim1"] against coords["dim2"] and label each point. Add axis labels only after examining the attribute directions. Check whether the labels match the brands' positions.
Use enough respondents and a relevant attribute list. A map based on too few respondents, vague attributes, or highly correlated attributes can be unstable. Re-run the analysis on a different sample or with resampled data. If brands move substantially, avoid precise strategic claims.
Exercise
Brand X and Brand Y are close together on the map, but both are far from Brand Z. What is the safest conclusion?
Show answer
Customers gave Brand X and Brand Y more similar attribute ratings than either brand received relative to Brand Z. The map alone does not explain why they are similar or predict which brand customers will buy.