Skip to content

Allowing PROBABILITY OF * and GIVEN * #70

Open

Description

@MathieuHuot

Similarly to the currently allowed

SELECT * 
FROM data

as sugar for

SELECT data.col1, data.col2,...
FROM data

We can add

SELECT PROBABILITY OF * AS Pr_Data UNDER model 
FROM data

as sugar for

SELECT PROBABILITY OF model.col1 = data.col1 and model.col2=data.col2 and ... AS Pr_Data UNDER model 
FROM data

for all columns which appear both in model and data.

Likewise, they could be compatible with the EXCEPT keyword (that I've seen used in the AutoML paper).

Activity

  1. MathieuHuot commented on Nov 20, 2023

    @MathieuHuot
    Author

    These features came up as possibly useful when trying to write compact high-level examples in the PLDI submission.

    GIVEN * can be used for imputation or prediction, and as GIVEN Null should behave the same as not conditioning, it would work well in the presence of missing data.

    PROBABILITY OF * could e.g. be used for anomaly detection to estimate the likelihood of rows from data under a model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featpermissive

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions