Measure how spread out categorical data are, from 0 when everyone is in one category to 1 when every category is equally common, the standard dispersion measure for nominal variables.
IQV = K ÷ (K − 1) × (1 − Σp²)
Set this if some categories had no one in them.
The index of qualitative variation (IQV) measures how varied a categorical variable is: 0 when every case falls in one category, 1 when cases are spread equally across all categories.
Variables like religion, party, transport mode or eye colour have no mean or standard deviation. The IQV fills that gap. It's widely used in sociology to compare how mixed different places or groups are.
It starts from the index of diversity, 1 − Σp², the chance two randomly chosen cases fall in different categories. Dividing by the largest value possible for that number of categories puts every variable on a 0–1 scale.
As given in Mueller, Schuessler & Costner, Statistical Reasoning in Sociology, and Agresti & Agresti (1978). See Sources.
K is the number of possible categories, including any that happen to be empty.
Town A's commuting is far more mixed. In Town B, car dominance leaves little variation. A useful baseline before and after investing in cycle lanes or buses.
Shares of 100 cases across 4 categories.
| Distribution | 1 − Σp² | IQV |
|---|---|---|
| 100 / 0 / 0 / 0 | 0 | 0 |
| 85 / 5 / 5 / 5 | 0.27 | 0.36 |
| 70 / 10 / 10 / 10 | 0.48 | 0.64 |
| 50 / 20 / 15 / 15 | 0.665 | 0.887 |
| 40 / 30 / 20 / 10 | 0.7 | 0.933 |
| 25 / 25 / 25 / 25 | 0.75 | 1 |
Every category has exactly the same number of cases: maximum variation.
All cases are in a single category: no variation at all.
1 − Σp², the probability that two cases picked at random are in different categories. IQV rescales it to run up to 1.
The index of diversity is Simpson’s index (the large-sample version). IQV is that index divided by its maximum.
Both measure categorical spread. IQV is based on squared proportions and is easier to explain; Shannon’s uses logarithms and weights rare categories more.
Yes. Percentages or counts give the same result, because only the proportions matter.
There’s no target; it depends on the question. It’s most useful for comparing groups, places or years.
Because the largest possible index of diversity with K categories is 1 − 1/K; dividing by it makes the maximum exactly 1.