Data Aggregation: How Useful Summaries Can Mislead You
A computer can record each failed sign-in as a separate event. Data aggregation turns those individual records into summaries, such as the number of failures for each account during an hour.
An aggregate is a combined result calculated from a group of records. Counts, totals, averages, and highest or lowest values are common examples; a dashboard showing daily sales or hourly security alerts is using this idea.
What Counts as Personal Information?
Choose the group and the calculation
To make a useful summary, decide which records belong together and what you want to calculate. Grouping orders by day and adding their prices answers a different question from grouping them by customer and counting purchases.
Database software can do this work automatically. The PostgreSQL tutorial shows how aggregate functions—built-in calculations over multiple records—produce results such as counts and averages for each group.
The result depends on which records you include. A sales total that leaves out refunds or counts the same order twice can be mathematically correct for the input and still give a misleading picture of the business.
An average of averages can go wrong
Suppose two help desks report how long they took to handle requests during the same period:
| Help desk | Requests handled | Average time per request |
|---|---|---|
| A | 1 | 100 minutes |
| B | 9 | 10 minutes |
It's tempting to average 100 and 10 and announce a combined average of 55 minutes. But that gives each desk equal weight even though one handled nine times as many requests.
Desk A's request took 100 minutes, while desk B's nine requests took 90 minutes in total. Across both desks, that's 190 minutes for 10 requests: 19 minutes per request.
This is a weighted average: each group's average contributes according to how many requests it represents. Keeping the counts alongside the averages makes the combined calculation possible.
The example is deliberately small, but the same issue can affect reports covering thousands of people, transactions, or devices.
A security summary needs its context
In security work, teams aggregate logs, the event records produced by software and devices. The National Institute of Standards and Technology describes event aggregation as consolidating similar entries into a count of their occurrences.
A count of 240 failed sign-ins could help a team choose what to investigate first. But 240 attempts against one account in a minute tell a different story from 240 attempts spread across a large organization all day.
The count also measures attempts, not necessarily people. One person or an automated program can generate many events, and an account name alone doesn't prove who was using it.
A summary can point an investigator toward a problem while leaving details behind. Keep an appropriate way to examine the underlying records, with access and storage periods suited to the organization's needs.
- Work on a plane or train without the next seat reading along.
- Cut glare and fingerprints with the matte surface.
- Flip it up in a second when you want to share your screen.
A group total can still reveal private information
Combining records doesn't automatically make a report anonymous. If a table lists total pay for a department with only one employee, someone who knows that employee can learn the person's pay without seeing a name in the table.
Comparing several releases can reveal details, too. A change between two group summaries may disclose something about a known person who joined or left the group.
NIST's guidance on de-identifying data explains why aggregation alone can't guarantee privacy. Before sharing a summary, consider small groups, other available information, and what someone could infer by comparing reports.
Useful summaries also need clear labels. State what was counted, how it was grouped, and the time period covered, so the next reader knows whether “240” means attempts, accounts, or something else entirely.
Data Mining: How Patterns Become Useful—and Misleading

Inference Attacks: When Separate Facts Reveal a Private Answer

Privacy: What Happens to Your Data After You Share It?

QUOTE:
"Amateurs hack systems, professionals hack people."
