Giter Site home page Giter Site logo

Comments (3)

sebastian avatar sebastian commented on August 26, 2024

The answer is: No – we do not need all AIDs to be non-null!

Example

Consider we have a LEFT OUTER JOIN between two tables: A and B.
The JOIN results in a table such as this:

a.value b.value AIDs
10 20 a[1], b[1]
11 21 a[2], b[2]
12 NULL a[3]
13 NULL a[4]

There are two things we could do:

  • aggregate a.value
  • aggregate b.value

Aggregating a.value

All rows are non-null

When there is data from both tables A and B then the aggregation happens as specified
in other documents. All is good.

Only A has data - B is null

In the cases where there is no value from table B, there is also no information about
any entity from table B that we need to consider! This is OK.
It could in the extreme (if the entire table B section is empty) be the equivalent of
aggregating strictly over table A, which is fine.

Only B has data - A is null

This does not occur in this scenario.

Aggregating b.value

All rows are non-null

Same as above in "All rows are non-null"

Only A has data - B is null

null values are ignored for the purposes of aggregation, so this is fine. It's a noop.

Only B has data - A is null

Doesn't occur in this scenario

Consideration

Our algorithm reports null for an aggregator when there is insufficient data from
any of the AIDs. This behavior needs adjusting.

We now have three different modes:

  • There is sufficient data for all AIDs (i.e. enough to fill the outlier and top groups): all is good
  • There is insufficient data for one or more of the AIDs (i.e. we cannot form both the outlier and top groups): the aggregate value should be returned as null
  • The new case: there was absolutely no data for an AID: this is also fine, and should not cause the aggregate value to be rejected!

from reference.

sebastian avatar sebastian commented on August 26, 2024

Relevant update to docs: #126

from reference.

sebastian avatar sebastian commented on August 26, 2024

Ok, revisiting this again, and the relevant pull request for docs (#126) it seems my design was broken.
The current reference is right.

So:

  • For anonymizing aggregators all AIDs need to have sufficiently many AID values to produce a top and extreme value group. If this is not the case, then return null in place of the aggregate value
  • For non-anonymizing aggregators the story is different and the algorithm explains the shortcuts that are taken

from reference.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.