Sub topic 7
Building a Map from Similarity Judgments with MDS
Assume you understand brand positioning, market segmentation, averages, and basic survey scales. Basic Python and pandas are useful for the example, but the method can be used without code.
Multidimensional scaling (MDS) creates a map from judgments about how different brands seem. Instead of asking respondents to rate every brand on named attributes, you ask them to compare brands directly. The input is a dissimilarity matrix. A dissimilarity matrix is a table in which each cell records how different one brand is from another. A value of 0 means the brands seem identical. Larger values mean they seem more different.
When to use MDS
Use MDS when customers can judge overall similarity more easily than they can describe the attributes behind their judgments. This is useful when:
- Customers use several overlapping attributes.
- You do not know which attributes matter in advance.
- You want to discover the structure of the market rather than impose it.
- Respondents can compare brands reliably.
A survey might ask, “How different are Brand A and Brand B?” on a scale from 0 to 7. You collect many responses for each pair and calculate the average. The result should have a zero diagonal, because a brand is not different from itself, and matching values on opposite sides of the diagonal.
MDS places each brand as a point in a low-dimensional space. It tries to make the distances between points match the reported dissimilarities. Brands judged similar should appear close together. Brands judged different should appear far apart.
Running MDS in Python
The following example starts with an already aggregated dissimilarity matrix. In a real project, create this matrix from individual survey responses.
import numpy as np
from sklearn.manifold import MDS
brands = ["Brand A", "Brand B", "Brand C", "Brand D"]
dissimilarity = np.array(
[
[0.0, 2.0, 6.0, 5.0],
[2.0, 0.0, 5.5, 5.0],
[6.0, 5.5, 0.0, 1.5],
[5.0, 5.0, 1.5, 0.0],
]
)
mds = MDS(
n_components=2,
dissimilarity="precomputed",
n_init=4,
random_state=0,
)
coordinates = mds.fit_transform(dissimilarity)
for brand, (x, y) in zip(brands, coordinates):
print(f"{brand}: ({x:.2f}, {y:.2f})")
print("stress:", round(mds.stress_, 3))n_components=2 requests a two-dimensional map. dissimilarity="precomputed" tells scikit-learn that the input is already a pairwise matrix. The random_state makes the result repeatable.
MDS minimizes a measure called stress. Stress summarizes the mismatch between the original dissimilarities and the distances on the resulting map. Lower stress means the configuration represents the judgments more closely. Do not compare stress values blindly across studies with different numbers of brands or different scaling rules. Use stress as a diagnostic, not as proof that the map is meaningful.
> callout note > MDS coordinates have no fixed orientation. The algorithm may rotate, reflect, or shift the map without changing its meaning. The left side in one run may become the right side in another run. Interpret distances and groupings first, then label directions only after comparing them with external evidence. > ```
Reading and checking the result
A close pair suggests that customers perceive two brands as similar overall. A distant pair suggests stronger differentiation. A tight group may represent a crowded competitive position. An isolated brand may have a distinctive image.
The axes do not automatically mean “price,” “quality,” or any other attribute. To interpret them, collect attribute ratings from the same respondents or ask follow-up questions. Then compare those ratings with the coordinates. A direction that aligns with high reliability ratings, for example, may support a reliability interpretation.
Check the matrix before fitting MDS:
- Confirm that all dissimilarities are nonnegative.
- Check that the matrix is approximately symmetric.
- Inspect missing or weakly supported brand pairs.
- Run the model with multiple random starts.
- Compare two- and three-dimensional solutions.
- Test whether the main clusters remain with different respondent samples.
Exercise
Brands A and B have a dissimilarity of 2, while Brands C and D have a dissimilarity of 1.5. Which pair should usually appear closer on an MDS map, and what warning applies?
Show answer
C and D should usually appear closer. The result is only a representation of the collected judgments, so sampling noise and model stress must also be checked.