Techniquecore
Microaggregation
Also called microaggregation masking.
Groups numerical records into clusters of at least k and replaces each value by its cluster mean, with least loss of information.
Microaggregation is a masking method for numerical microdata, the tables of one row per person or per firm that a statistical office releases. It puts the records into groups of at least similar records and replaces the values of each record by the mean of its group. If the values that a quasi-identifier uses are aggregated together, every released record has at least others with the same values, so the release is k-anonymous. The cost is a loss of detail, which is measured by the within-group sum of squared errors. The best partition is NP-hard to find for more than one attribute, so in practice a heuristic such as MDAV builds it.
In plain words
A survey office wants to publish the income and the age of each firm, but a very large firm is easy to recognize from its numbers. So the office makes small groups of firms that have close values, for example three firms in each group. In each group it writes the average income and the average age for every firm of the group. A reader now sees each value at least three times and cannot tell which firm of a group is which.
The averages of the whole table stay the same. The spread of the values goes down a little. Small groups of close records lose the least detail. The hard part is to choose the groups, because there are very many ways to cut a table into groups.
When it applies
- The attributes to protect are numerical, or ordinal with a median, and the analyst cares about means, totals and regressions more than about single values.
- The release is a table of records, not a table of counts. For tables of counts and magnitudes see the cell suppression problem and controlled tabular adjustment.
- The goal is k-anonymity, or a lower risk of linkage with a smaller loss than generalization and suppression gives on numbers. Microaggregation keeps a numerical scale, while generalization turns a value into an interval.
- The protection is not differential privacy. The group means depend on each record, and the method gives no bound on what one record changes. See differential privacy for that guarantee.
The template
Let be records with numerical attributes, and the least group size. The value of is a policy choice. A k-partition of is a partition into groups of at least records. Its loss is the within-group sum of squared errors,
where is the mean of group . The usual relative measure is , where is the sum of squared distances to the mean of all of .
MICROAGGREGATE(X, k)- 1
X ← SCALE(X) ▷ hole: put the attributes on one scale, for example z-scores - 2
P ← PARTITION(X, k) ▷ hole: a k-partition with groups of k to 2k - 1 records - 3
for each group g of P do - 4
a ← AGGREGATE(g) ▷ hole: the mean; the median or the mode for ordinal or nominal values - 5
for each record x of g do - 6
replace the values of x by a ▷ in the original units, not the scaled ones - 7
return X with the replaced values
The holes are SCALE, PARTITION and AGGREGATE. The choice of PARTITION decides the loss:
- An optimal partition. It minimizes the SSE. Domingo-Ferrer and Mateo-Sanz (2002) show that an optimal k-partition has groups of to records. The reason is a theorem on sums of squares: for a group split into and , . The last term is at least 0, so a split never adds loss, and a group of or more records can be split into two groups of at least .
- One attribute. In an optimal partition of sorted values, each group is a run of consecutive values. So the optimum is a shortest path from node 0 to node in the graph with an arc from to for , weighted by the SSE of values to (Hansen and Mukherjee 2003). The graph has arcs, and with prefix sums each weight takes time.
- Several attributes. Optimal multivariate microaggregation is NP-hard (Oganian and Domingo-Ferrer 2001). The methods in use are heuristics: MDAV, variants of Ward's clustering with a least group size, and projections to one dimension followed by the univariate optimum. Their loss is a measured quantity on test data, not a proved bound.
Example (one attribute). Take the values 1, 2, 4, 9, 10, 12, 19, 20 and . Let be the least SSE of the first values. The arcs have length 2 or 3, and
| j | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|
| 1/2 | 14/3 | 13 | 31/6 | 28/3 | 89/3 | 59/6 |
The path is , so the groups are , and , with SSE . The SST is , so the relative loss is about 2.7 percent. The released values are three times, three times and two times. The sum of the values, 77, does not change.
Classic examples
- MDAV. The standard multivariate heuristic. It builds groups of around the record farthest from the centroid and then around the record farthest from that one, in distance work.
- The univariate optimum. The shortest path method above, used on one attribute or on the first principal component of several.
- Ward's method with a least group size. Domingo-Ferrer and Mateo-Sanz (2002) adapt Ward's hierarchical clustering, which merges the two clusters with the least growth of SSE, to groups of at least .
- Individual ranking. Each attribute is microaggregated alone with the univariate method. The loss is low, but the result is not k-anonymous (see Pitfalls).
- k-means is a near relative. It minimizes the same SSE for a fixed number of clusters, with no least size, so its clusters can hold one record and give no protection.
Variations
- Fixed and variable group size. Fixed-size heuristics such as MDAV make groups of exactly , except one group. Variable-size heuristics let a group grow up to when the data has a natural cluster of that size, and often have a lower SSE.
- Ordinal and nominal data. Domingo-Ferrer and Torra (2005) aggregate an ordinal attribute by the median and a nominal attribute by the mode, with a distance for each type.
- Joint and partial microaggregation. For k-anonymity, all quasi-identifiers are aggregated together. Attributes outside the quasi-identifier are left as they are, so the analyst keeps their full detail.
- Microaggregation for t-closeness. The partition can also bound the distance between the sensitive values of a group and those of the whole table, as in t-closeness. This needs larger groups.
Pitfalls
- Individual ranking is not k-anonymous. Take the records (1, 1), (2, 3), (3, 2), (4, 4) and . The first attribute gives the groups of records and , the second gives and . The released records are (1.5, 1.5), (1.5, 3.5), (3.5, 1.5) and (3.5, 3.5): each one is unique.
- No scaling at line L1. With income in euros and age in years, the distance is almost only income. Groups are then close in income and far apart in age, and the loss of age is large.
- Attribute disclosure. If all records of a group have about the same sensitive value, a reader who knows that a person is in the group learns the value. The group sizes say nothing about this. See l-diversity and t-closeness.
- The variance goes down. The masked data has the between-group variance only: the total sum of squares falls by the SSE. Estimates of variances and of correlations are biased toward 0 unless the analyst corrects them.
- An outlier in the last group. A heuristic that fills groups in turn can put a far record in the last group with records far from it. Its value then moves far, and the SSE grows. The MDAV page has an example.
- Groups larger than 2k - 1 at line L2. They are never needed. By the split identity above, such a group can be cut in two with no more loss.
Exercises
- Prove the split identity of the template: for a set with , .
- Show that for one attribute, some optimal k-partition has groups that are runs of consecutive sorted values. Hint: if with and in one group and in another, swap with or with .
- Compute the optimal 3-partition of 1, 2, 4, 9, 10, 12, 19, 20 by the shortest path method. With 8 values, only the group sizes 3 and 5, 4 and 4, or 5 and 3 are possible. Compare the loss with that of the 2-partition.
- Find a table of 4 records with 2 attributes where individual ranking with gives a 2-anonymous release, and one where it does not.
References
- Anco Hundepool, Josep Domingo-Ferrer, Luisa Franconi, Sarah Giessing, Eric Schulte Nordholt, Keith Spicer and Peter-Paul de Wolf, Statistical Disclosure Control, Wiley, 2012, Chapter 3, Microdata, pp. 23 to 130, the perturbative masking methods for continuous data and the measures of information loss
- Josep Domingo-Ferrer and Josep Maria Mateo-Sanz, Practical data-oriented microaggregation for statistical disclosure control, IEEE Transactions on Knowledge and Data Engineering 14(1), 2002, pp. 189 to 201, the optimal k-partition problem, the bound of 2k - 1 on the group size, and the multivariate heuristics
- Anna Oganian and Josep Domingo-Ferrer, On the complexity of optimal microaggregation for statistical disclosure control, Statistical Journal of the United Nations Economic Commission for Europe 18(4), 2001, pp. 345 to 353, the proof that optimal multivariate microaggregation is NP-hard
- Stephen Lee Hansen and Sumitra Mukherjee, A polynomial algorithm for optimal univariate microaggregation, IEEE Transactions on Knowledge and Data Engineering 15(4), 2003, pp. 1043 to 1044, the reduction of optimal univariate microaggregation to a shortest path in a graph on the sorted values
- Josep Domingo-Ferrer and Vicenc Torra, Ordinal, continuous and heterogeneous k-anonymity through microaggregation, Data Mining and Knowledge Discovery 11(2), 2005, pp. 195 to 212, k-anonymity by joint microaggregation of the quasi-identifiers, the MDAV-generic heuristic, and the aggregation of ordinal and nominal values
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W3 standard |
|
Tag CKSR6M Edit this page History Report an error Markdown