Probabilistic Databases

Evaluate a correlated query result from tuple-independent inputs and see where factorized lineage makes exact inference tractable.

Source
Anbloq
Language
English
Created
Updated
Chapters
3
Reading time
1 min
In this article3 chapters
  1. Independence belongs to the input model
  2. Factorization exposes valid evaluation steps
  3. Query structure predicts some complexity boundaries

Independence belongs to the input model

In a tuple-independent database, each base tuple is present as an independent Bernoulli event. A positive Boolean query is true in the possible worlds whose selected tuples witness its existential conditions. Consider a query that requires a booking record \(A\) and at least one of two independently registered seats \(B,C\). The explanation is \(A\land(B\lor C)\), so its probability is

\[ \Pr(A\land(B\lor C)) =p_A(p_B+p_C-p_Bp_C). \]

With \(p_A=p_B=p_C=1/2\), this gives \(3/8\). The two witness events share \(A\). Treating those events as independent would give \(1-(1-1/4)^2=7/16\). The arithmetic differs even though the input tuples are truly independent in the model.

Conditional probability makes the independence assumption in a product of marginals explicit. Relational operators describe which alternatives and joint witnesses the query produces before their probabilities are evaluated.

Factorization exposes valid evaluation steps

Build lineage from projections and joins as in database provenance. A conjunction of expressions depending on disjoint base variables can be evaluated by multiplication. A disjunction of independent expressions uses the complement-product identity. Preprocessing can find factorizations or compile lineage into structures exposing tractable evaluations. An unfactored expansion can contain exponentially many alternatives, and factoring a shared variable such as \(A\) recovers the compact calculation above.

Query structure predicts some complexity boundaries

For standard tuple-independent inputs and Boolean conjunctive queries without self-joins, hierarchical structure of variable occurrences gives an exact polynomial-time data-complexity class. Outside that class, examples have #P-hard exact data complexity even with a fixed query. Query variants with repeated relations, richer dependencies or negation need their own results. Cost-based optimization can choose physical evaluation plans, but cardinality estimates and exact possible-world probabilities solve different tasks.[1][2]

References

  1. Nilesh Dalvi and Dan Suciu, Efficient Query Evaluation on Probabilistic Databases ↩
  2. Nilesh Dalvi and Dan Suciu, The Dichotomy of Conjunctive Queries on Probabilistic Structures ↩