• Aucun résultat trouvé

December7th,2015 AntoineAmarilli ,SilviuManiu UncertainDataManagementRelationalProbabilisticDatabaseModels

N/A
N/A
Protected

Academic year: 2022

Partager "December7th,2015 AntoineAmarilli ,SilviuManiu UncertainDataManagementRelationalProbabilisticDatabaseModels"

Copied!
233
0
0

Texte intégral

(1)

Probabilistic instances TID BID pc-tables Conclusion

Uncertain Data Management

Relational Probabilistic Database Models

Antoine Amarilli1, Silviu Maniu2

1Télécom ParisTech

2LRI

December 7th, 2015

(2)

Probabilistic instances TID BID pc-tables Conclusion

Table of contents

1 Probabilistic instances

2 TID

3 BID

4 pc-tables

5 Conclusion

(3)

Probabilistic instances TID BID pc-tables Conclusion

Uncertain instances

Remember fromlast class:

Fix a finite set of possible tuplesof same arity A possible world: a subset of the possible tuples An uncertain relation: set ofpossible worlds

U1

date teacher room 04 Silviu C017 04 Antoine C017 04 Antoine C47 11 Silviu C017 11 Silviu C47 11 Antoine C017

U2

date teacher room 04 Silviu C017 04 Antoine C017 04 Antoine C47 11 Silviu C017 11 Silviu C47 11 Antoine C017

(4)

Probabilistic instances TID BID pc-tables Conclusion

Uncertain instances

Remember fromlast class:

Fix a finite set of possible tuplesof same arity A possible world: a subset of the possible tuples An uncertain relation: set ofpossible worlds

U1

date teacher room 04 Silviu C017 04 Antoine C017 04 Antoine C47 11 Silviu C017 11 Silviu C47 11 Antoine C017

U2

date teacher room 04 Silviu C017 04 Antoine C017 04 Antoine C47 11 Silviu C017 11 Silviu C47 11 Antoine C017

(5)

Probabilistic instances TID BID pc-tables Conclusion

Probabilistic instances

Support U: uncertain relation

Probability distributionπ onU: FunctionfromU to reals in[0,1] It mustsum upto1:

I∈Uπ(I) = 1

U1

date teacher room 04 Silviu C017 04 Antoine C017 04 Antoine C47 11 Silviu C017 11 Silviu C47 11 Antoine C017

π(U1) = 0.8

U2

date teacher room 04 Silviu C017 04 Antoine C017 04 Antoine C47 11 Silviu C017 11 Silviu C47 11 Antoine C017

π(U2) = 0.2

(6)

Probabilistic instances TID BID pc-tables Conclusion

Probabilistic instances

Support U: uncertain relation Probability distributionπ onU:

FunctionfromU to reals in[0,1] It mustsum upto1:

I∈Uπ(I) = 1

U1

date teacher room 04 Silviu C017 04 Antoine C017 04 Antoine C47 11 Silviu C017 11 Silviu C47 11 Antoine C017

π(U1) = 0.8

U2

date teacher room 04 Silviu C017 04 Antoine C017 04 Antoine C47 11 Silviu C017 11 Silviu C47 11 Antoine C017

π(U2) = 0.2

(7)

Probabilistic instances TID BID pc-tables Conclusion

Probabilistic instances

Support U: uncertain relation Probability distributionπ onU:

FunctionfromU to reals in[0,1]

It mustsum upto1:

I∈Uπ(I) = 1

U1

date teacher room 04 Silviu C017 04 Antoine C017 04 Antoine C47 11 Silviu C017 11 Silviu C47 11 Antoine C017

π(U1) = 0.8

U2

date teacher room 04 Silviu C017 04 Antoine C017 04 Antoine C47 11 Silviu C017 11 Silviu C47 11 Antoine C017

π(U2) = 0.2

(8)

Probabilistic instances TID BID pc-tables Conclusion

Probabilistic instances

Support U: uncertain relation Probability distributionπ onU:

FunctionfromU to reals in[0,1]

It mustsum upto1:

I∈Uπ(I) = 1

U1

date teacher room 04 Silviu C017 04 Antoine C017 04 Antoine C47 11 Silviu C017 11 Silviu C47 11 Antoine C017

π(U1) = 0.8

U2

date teacher room 04 Silviu C017 04 Antoine C017 04 Antoine C47 11 Silviu C017 11 Silviu C47 11 Antoine C017

π(U2) = 0.2

(9)

Probabilistic instances TID BID pc-tables Conclusion

Probabilistic instances

Support U: uncertain relation Probability distributionπ onU:

FunctionfromU to reals in[0,1]

It mustsum upto1:

I∈Uπ(I) = 1

U1

date teacher room 04 Silviu C017 04 Antoine C017 04 Antoine C47 11 Silviu C017 11 Silviu C47 11 Antoine C017

U2

date teacher room 04 Silviu C017 04 Antoine C017 04 Antoine C47 11 Silviu C017 11 Silviu C47 11 Antoine C017

(10)

Probabilistic instances TID BID pc-tables Conclusion

What about NULLs?

Remember that last time we saw:

Codd-tables andv-tablesandc-tables, with NULLs Boolean c-tables, with NULLsonly in conditions

Boolean variables

We focus for probabilities on models like Boolean c-tables

Easier to define probabilities on a finite space!

(11)

Probabilistic instances TID BID pc-tables Conclusion

What about NULLs?

Remember that last time we saw:

Codd-tables andv-tablesandc-tables, with NULLs Boolean c-tables, with NULLsonly in conditions

Boolean variables

We focus for probabilities on models like Boolean c-tables

Easier to define probabilities on a finite space!

(12)

Probabilistic instances TID BID pc-tables Conclusion

Relational algebra on uncertain instances

Remember fromlast class:

Extend relational algebra operators to uncertain instances The possible worldsof the result should be...

take allpossible worldsin the supports of the inputs apply the operation and get thepossible outputs

U1 04 S. C017 11 S. C47

U2 11 A. C017

V1

V2 11 A. C017

=

04 S. C017 11 S. C47 04 S. C017 11 S. C47 11 A. C017 11 A. C017

(13)

Probabilistic instances TID BID pc-tables Conclusion

Relational algebra on uncertain instances

Remember fromlast class:

Extend relational algebra operators to uncertain instances The possible worldsof the result should be...

take allpossible worldsin the supports of the inputs apply the operation and get thepossible outputs

U1 04 S. C017 11 S. C47

U2 11 A. C017

V1

V2 11 A. C017

=

04 S. C017 11 S. C47 04 S. C017 11 S. C47 11 A. C017 11 A. C017

(14)

Probabilistic instances TID BID pc-tables Conclusion

Relational algebra on uncertain instances

Remember fromlast class:

Extend relational algebra operators to uncertain instances The possible worldsof the result should be...

take allpossible worldsin the supports of the inputs apply the operation and get thepossible outputs

U1 04 S. C017 11 S. C47

U2 11 A. C017

V1

V2 11 A. C017

=

04 S. C017 11 S. C47 04 S. C017 11 S. C47 11 A. C017 11 A. C017

(15)

Probabilistic instances TID BID pc-tables Conclusion

Relational algebra on uncertain instances

Remember fromlast class:

Extend relational algebra operators to uncertain instances The possible worldsof the result should be...

take allpossible worldsin the supports of the inputs apply the operation and get thepossible outputs

U1 04 S. C017 11 S. C47

U2 11 A. C017

V1

V2 11 A. C017

=

04 S. C017 11 S. C47 04 S. C017 11 S. C47 11 A. C017 11 A. C017

(16)

Probabilistic instances TID BID pc-tables Conclusion

Relational algebra on uncertain instances

Remember fromlast class:

Extend relational algebra operators to uncertain instances The possible worldsof the result should be...

take allpossible worldsin the supports of the inputs apply the operation and get thepossible outputs

U1 04 S. C017 11 S. C47

U2 11 A. C017

V1

V2 11 A. C017

=

04 S. C017 11 S. C47 04 S. C017 11 S. C47 11 A. C017 11 A. C017

(17)

Probabilistic instances TID BID pc-tables Conclusion

Relational algebra on uncertain instances

Remember fromlast class:

Extend relational algebra operators to uncertain instances The possible worldsof the result should be...

take allpossible worldsin the supports of the inputs apply the operation and get thepossible outputs

U1 04 S. C017 11 S. C47

U2 11 A. C017

V1

V2 11 A. C017

=

04 S. C017 11 S. C47 04 S. C017 11 S. C47 11 A. C017

(18)

Probabilistic instances TID BID pc-tables Conclusion

Relational algebra on probabilistic instances

Let’s adapt relational algebra to probabilistic instances The possible worldsof the result should be...

take allpossible worldsof the inputs

apply the operation and get apossible output The probabilityof each possible world should be...

considerall input possible worldsthat give it sum up theirprobabilities

(19)

Probabilistic instances TID BID pc-tables Conclusion

Relational algebra on probabilistic instances

Let’s adapt relational algebra to probabilistic instances The possible worldsof the result should be...

take allpossible worldsof the inputs

apply the operation and get apossible output

The probabilityof each possible world should be... considerall input possible worldsthat give it sum up theirprobabilities

(20)

Probabilistic instances TID BID pc-tables Conclusion

Relational algebra on probabilistic instances

Let’s adapt relational algebra to probabilistic instances The possible worldsof the result should be...

take allpossible worldsof the inputs

apply the operation and get apossible output The probabilityof each possible world should be...

considerall input possible worldsthat give it sum up theirprobabilities

(21)

Probabilistic instances TID BID pc-tables Conclusion

Example of relational algebra on probabilistic instances

U1 04 S. C017 11 S. C47

π(U1) = 0.8

U2 11 A. C017

π(U2) = 0.2

V1

π(V1) = 0.9

V2 11 A. C017

π(V2) = 0.1

=

W1 04 S. C017 11 S. C47

π(W1) = 0.8·0.9

W2 04 S. C017 11 S. C47 11 A. C017

π(W1) = 0.8·0.1

W3 11 A. C017

π(W1) = 0.2·0.9 +0.2·0.1

(22)

Probabilistic instances TID BID pc-tables Conclusion

Example of relational algebra on probabilistic instances

U1 04 S. C017 11 S. C47

π(U1) = 0.8

U2 11 A. C017

π(U2) = 0.2

V1

π(V1) = 0.9

V2 11 A. C017

π(V2) = 0.1

=

W1 04 S. C017 11 S. C47

π(W1) = 0.8·0.9

W2 04 S. C017 11 S. C47 11 A. C017

π(W1) = 0.8·0.1

W3 11 A. C017

π(W1) = 0.2·0.9 +0.2·0.1

(23)

Probabilistic instances TID BID pc-tables Conclusion

Example of relational algebra on probabilistic instances

U1 04 S. C017 11 S. C47

π(U1) = 0.8

U2 11 A. C017

π(U2) = 0.2

V1

π(V1) = 0.9

V2 11 A. C017

π(V2) = 0.1

=

W1 04 S. C017 11 S. C47

π(W1) = 0.8·0.9

W2 04 S. C017 11 S. C47 11 A. C017

π(W1) = 0.8·0.1

W3 11 A. C017

π(W1) = 0.2·0.9 +0.2·0.1

(24)

Probabilistic instances TID BID pc-tables Conclusion

Example of relational algebra on probabilistic instances

U1 04 S. C017 11 S. C47

π(U1) = 0.8

U2 11 A. C017

π(U2) = 0.2

V1

π(V1) = 0.9

V2 11 A. C017

π(V2) = 0.1

=

W1 04 S. C017 11 S. C47

π(W1) = 0.8·0.9

W2 04 S. C017 11 S. C47 11 A. C017

π(W1) = 0.8·0.1

W3 11 A. C017

π(W1) = 0.2·0.9 +0.2·0.1

(25)

Probabilistic instances TID BID pc-tables Conclusion

Example of relational algebra on probabilistic instances

U1 04 S. C017 11 S. C47

π(U1) = 0.8

U2 11 A. C017

π(U2) = 0.2

V1

π(V1) = 0.9

V2 11 A. C017

π(V2) = 0.1

=

W1 04 S. C017 11 S. C47

π(W1) = 0.8·0.9

W2 04 S. C017 11 S. C47 11 A. C017

π(W1) = 0.8·0.1

W3 11 A. C017

π(W1) = 0.2·0.9 +0.2·0.1

(26)

Probabilistic instances TID BID pc-tables Conclusion

Example of relational algebra on probabilistic instances

U1 04 S. C017 11 S. C47

π(U1) = 0.8

U2 11 A. C017

π(U2) = 0.2

V1

π(V1) = 0.9

V2 11 A. C017

π(V2) = 0.1

=

W1 04 S. C017 11 S. C47

π(W1) = 0.8·0.9

W2 04 S. C017 11 S. C47 11 A. C017

π(W1) = 0.8·0.1

W3 11 A. C017

π(W1) = 0.2·0.9 +0.2·0.1

(27)

Probabilistic instances TID BID pc-tables Conclusion

Example of relational algebra on probabilistic instances

U1 04 S. C017 11 S. C47

π(U1) = 0.8

U2 11 A. C017

π(U2) = 0.2

V1

π(V1) = 0.9

V2 11 A. C017

π(V2) = 0.1

=

W1 04 S. C017 11 S. C47

π(W1) = 0.8·0.9 W2 04 S. C017 11 S. C47 11 A. C017

π(W1) = 0.8·0.1

W3 11 A. C017

π(W1) = 0.2·0.9 +0.2·0.1

(28)

Probabilistic instances TID BID pc-tables Conclusion

Example of relational algebra on probabilistic instances

U1 04 S. C017 11 S. C47

π(U1) = 0.8

U2 11 A. C017

π(U2) = 0.2

V1

π(V1) = 0.9

V2 11 A. C017

π(V2) = 0.1

=

W1 04 S. C017 11 S. C47

π(W1) = 0.8·0.9

W2 04 S. C017 11 S. C47 11 A. C017

π(W1) = 0.8·0.1 W3 11 A. C017

π(W1) = 0.2·0.9 +0.2·0.1

(29)

Probabilistic instances TID BID pc-tables Conclusion

Example of relational algebra on probabilistic instances

U1 04 S. C017 11 S. C47

π(U1) = 0.8

U2 11 A. C017

π(U2) = 0.2

V1

π(V1) = 0.9

V2 11 A. C017

π(V2) = 0.1

=

W1 04 S. C017 11 S. C47

π(W1) = 0.8·0.9

W2 04 S. C017 11 S. C47 11 A. C017

π(W1) = 0.8·0.1

W3 11 A. C017

π(W1) = 0.2·0.9 +0.2·0.1

(30)

Probabilistic instances TID BID pc-tables Conclusion

Example of relational algebra on probabilistic instances

U1 04 S. C017 11 S. C47

π(U1) = 0.8

U2 11 A. C017

π(U2) = 0.2

V1

π(V1) = 0.9

V2 11 A. C017

π(V2) = 0.1

=

W1 04 S. C017 11 S. C47 π(W1) = 0.8·0.9

W2 04 S. C017 11 S. C47 11 A. C017

π(W1) = 0.8·0.1

W3 11 A. C017

π(W1) = 0.2·0.9 +0.2·0.1

(31)

Probabilistic instances TID BID pc-tables Conclusion

Example of relational algebra on probabilistic instances

U1 04 S. C017 11 S. C47

π(U1) = 0.8

U2 11 A. C017

π(U2) = 0.2

V1

π(V1) = 0.9

V2 11 A. C017

π(V2) = 0.1

=

W1 04 S. C017 11 S. C47 π(W1) = 0.8·0.9

W2 04 S. C017 11 S. C47 11 A. C017 π(W1) = 0.8·0.1

W3 11 A. C017

π(W1) = 0.2·0.9 +0.2·0.1

(32)

Probabilistic instances TID BID pc-tables Conclusion

Example of relational algebra on probabilistic instances

U1 04 S. C017 11 S. C47

π(U1) = 0.8

U2 11 A. C017

π(U2) = 0.2

V1

π(V1) = 0.9

V2 11 A. C017

π(V2) = 0.1

=

W1 04 S. C017 11 S. C47 π(W1) = 0.8·0.9

W2 04 S. C017 11 S. C47 11 A. C017 π(W1) = 0.8·0.1

W3 11 A. C017 π(W1) = 0.2·0.9

+0.2·0.1

(33)

Probabilistic instances TID BID pc-tables Conclusion

Example of relational algebra on probabilistic instances

U1 04 S. C017 11 S. C47

π(U1) = 0.8

U2 11 A. C017

π(U2) = 0.2

V1

π(V1) = 0.9

V2 11 A. C017

π(V2) = 0.1

=

W1 04 S. C017 11 S. C47 π(W1) = 0.8·0.9

W2 04 S. C017 11 S. C47 11 A. C017 π(W1) = 0.8·0.1

W3 11 A. C017 π(W1) = 0.2·0.9

(34)

Probabilistic instances TID BID pc-tables Conclusion

Representation system

Remember that if we have Npossible tuples

there are2N possible instances

there are22N possible uncertain instances

writing outan uncertain instance isexponential

Last time we saw Boolean c-tablesas a concise way to representuncertain instances

For probabilistic instances:

there areinfinitely manypossible instances

writing outa probabilistic instance is stillexponential

How to representprobabilistic instances?

(35)

Probabilistic instances TID BID pc-tables Conclusion

Representation system

Remember that if we have Npossible tuples

there are2N possible instances

there are22N possible uncertain instances

writing outan uncertain instance isexponential

Last time we saw Boolean c-tablesas a concise way to representuncertain instances

For probabilistic instances:

there areinfinitely manypossible instances

writing outa probabilistic instance is stillexponential

How to representprobabilistic instances?

(36)

Probabilistic instances TID BID pc-tables Conclusion

Representation system

Remember that if we have Npossible tuples

there are2N possible instances

there are22N possible uncertain instances

writing outan uncertain instance isexponential

Last time we saw Boolean c-tablesas a concise way to representuncertain instances

For probabilistic instances:

there areinfinitely manypossible instances

writing outa probabilistic instance is stillexponential

How to representprobabilistic instances?

(37)

Probabilistic instances TID BID pc-tables Conclusion

Representation system

Remember that if we have Npossible tuples

there are2N possible instances

there are22N possible uncertain instances

writing outan uncertain instance isexponential

Last time we saw Boolean c-tablesas a concise way to representuncertain instances

For probabilistic instances:

there areinfinitely manypossible instances

writing outa probabilistic instance is stillexponential

How to representprobabilistic instances?

(38)

Probabilistic instances TID BID pc-tables Conclusion

Representation system

Remember that if we have Npossible tuples

there are2N possible instances

there are22N possible uncertain instances

writing outan uncertain instance isexponential

Last time we saw Boolean c-tablesas a concise way to representuncertain instances

For probabilistic instances:

there areinfinitely manypossible instances

writing outa probabilistic instance is stillexponential

How to representprobabilistic instances?

(39)

Probabilistic instances TID BID pc-tables Conclusion

Representation system

Remember that if we have Npossible tuples

there are2N possible instances

there are22N possible uncertain instances

writing outan uncertain instance isexponential

Last time we saw Boolean c-tablesas a concise way to representuncertain instances

For probabilistic instances:

there areinfinitely manypossible instances

writing outa probabilistic instance is stillexponential

How to representprobabilistic instances?

(40)

Probabilistic instances TID BID pc-tables Conclusion

Representation system

Remember that if we have Npossible tuples

there are2N possible instances

there are22N possible uncertain instances

writing outan uncertain instance isexponential

Last time we saw Boolean c-tablesas a concise way to representuncertain instances

For probabilistic instances:

there areinfinitely manypossible instances

writing outa probabilistic instance is stillexponential

How to representprobabilistic instances?

(41)

Probabilistic instances TID BID pc-tables Conclusion

Table of contents

1 Probabilistic instances

2 TID

3 BID

4 pc-tables

5 Conclusion

(42)

Probabilistic instances TID BID pc-tables Conclusion

Tuple-independent databases

The simplestmodel: tuple-independent databases Annotate each instance factwith a probability

U

date teacher room 04 Silviu C017

0.8

04 Antoine C017

0.2

11 Silviu C017

1

(43)

Probabilistic instances TID BID pc-tables Conclusion

Tuple-independent databases

The simplestmodel: tuple-independent databases Annotate each instance factwith a probability

U

date teacher room

04 Silviu C017

0.8

04 Antoine C017

0.2

11 Silviu C017

1

(44)

Probabilistic instances TID BID pc-tables Conclusion

Tuple-independent databases

The simplestmodel: tuple-independent databases Annotate each instance factwith a probability

U

date teacher room

04 Silviu C017 0.8

04 Antoine C017 0.2

11 Silviu C017 1

(45)

Probabilistic instances TID BID pc-tables Conclusion

Semantics of TID

Each tuple is kept or discardedwith the probability Probabilistic choices are independentacross tuples

U

date teacher room

04 Silviu C017 0.8

04 Antoine C017 0.2

11 Silviu C017 1

U

date teacher room

04 Silviu C017

04 Antoine C017

11 Silviu C017

What’s theprobabilityof this outcome? 0.8×(10.2)×1

(46)

Probabilistic instances TID BID pc-tables Conclusion

Semantics of TID

Each tuple is kept or discardedwith the probability Probabilistic choices are independentacross tuples

U

date teacher room

04 Silviu C017 0.8

04 Antoine C017 0.2

11 Silviu C017 1

U

date teacher room

04 Silviu C017

04 Antoine C017

11 Silviu C017

What’s theprobabilityof this outcome? 0.8×(10.2)×1

(47)

Probabilistic instances TID BID pc-tables Conclusion

Semantics of TID

Each tuple is kept or discardedwith the probability Probabilistic choices are independentacross tuples

U

date teacher room

04 Silviu C017 0.8

04 Antoine C017 0.2

11 Silviu C017 1

U

date teacher room

04 Silviu C017

04 Antoine C017

11 Silviu C017

What’s theprobabilityof this outcome? 0.8×(10.2)×1

(48)

Probabilistic instances TID BID pc-tables Conclusion

Semantics of TID

Each tuple is kept or discardedwith the probability Probabilistic choices are independentacross tuples

U

date teacher room

04 Silviu C017 0.8

04 Antoine C017 0.2

11 Silviu C017 1

U

date teacher room

04 Silviu C017

04 Antoine C017

11 Silviu C017

What’s theprobabilityof this outcome? 0.8×(10.2)×1

(49)

Probabilistic instances TID BID pc-tables Conclusion

Semantics of TID

Each tuple is kept or discardedwith the probability Probabilistic choices are independentacross tuples

U

date teacher room

04 Silviu C017 0.8

04 Antoine C017 0.2

11 Silviu C017 1

U

date teacher room

04 Silviu C017

04 Antoine C017

11 Silviu C017

What’s theprobabilityof this outcome? 0.8×(10.2)×1

(50)

Probabilistic instances TID BID pc-tables Conclusion

Semantics of TID

Each tuple is kept or discardedwith the probability Probabilistic choices are independentacross tuples

U

date teacher room

04 Silviu C017 0.8

04 Antoine C017 0.2

11 Silviu C017 1

U

date teacher room

04 Silviu C017

04 Antoine C017

11 Silviu C017

What’s theprobabilityof this outcome? 0.8×(10.2)×1

(51)

Probabilistic instances TID BID pc-tables Conclusion

Semantics of TID

Each tuple is kept or discardedwith the probability Probabilistic choices are independentacross tuples

U

date teacher room

04 Silviu C017 0.8

04 Antoine C017 0.2

11 Silviu C017 1

U

date teacher room

04 Silviu C017

04 Antoine C017

11 Silviu C017

What’s theprobabilityof this outcome?

0.8×(10.2)×1

(52)

Probabilistic instances TID BID pc-tables Conclusion

Semantics of TID

Each tuple is kept or discardedwith the probability Probabilistic choices are independentacross tuples

U

date teacher room

04 Silviu C017 0.8

04 Antoine C017 0.2

11 Silviu C017 1

U

date teacher room

04 Silviu C017

04 Antoine C017

11 Silviu C017

What’s theprobabilityof this outcome?

0.8

×(10.2)×1

(53)

Probabilistic instances TID BID pc-tables Conclusion

Semantics of TID

Each tuple is kept or discardedwith the probability Probabilistic choices are independentacross tuples

U

date teacher room

04 Silviu C017 0.8

04 Antoine C017 0.2

11 Silviu C017 1

U

date teacher room

04 Silviu C017

04 Antoine C017

11 Silviu C017

What’s theprobabilityof this outcome?

0.8×

(10.2)×1

(54)

Probabilistic instances TID BID pc-tables Conclusion

Semantics of TID

Each tuple is kept or discardedwith the probability Probabilistic choices are independentacross tuples

U

date teacher room

04 Silviu C017 0.8

04 Antoine C017 0.2

11 Silviu C017 1

U

date teacher room

04 Silviu C017

04 Antoine C017

11 Silviu C017

What’s theprobabilityof this outcome?

0.8×(10.2)

×1

(55)

Probabilistic instances TID BID pc-tables Conclusion

Semantics of TID

Each tuple is kept or discardedwith the probability Probabilistic choices are independentacross tuples

U

date teacher room

04 Silviu C017 0.8

04 Antoine C017 0.2

11 Silviu C017 1

U

date teacher room

04 Silviu C017

04 Antoine C017

11 Silviu C017

What’s theprobabilityof this outcome?

0.8×(10.2)×1

(56)

Probabilistic instances TID BID pc-tables Conclusion

Getting a probability distribution

Thesemanticsof a TID instance is a probabilistic instance...

thepossible worlds are the subsets

always keeping tuples withprobability 1 Formally, for a TID instance I, theprobability of J:

we must haveJ⊆I

product of pt for each tuple tkept in J

product of 1−pt for each tuple t not keptin J

(57)

Probabilistic instances TID BID pc-tables Conclusion

Getting a probability distribution

Thesemanticsof a TID instance is a probabilistic instance...

thepossible worlds are the subsets

always keeping tuples withprobability 1

Formally, for a TID instance I, theprobability of J: we must haveJ⊆I

product of pt for each tuple tkept in J

product of 1−pt for each tuple t not keptin J

(58)

Probabilistic instances TID BID pc-tables Conclusion

Getting a probability distribution

Thesemanticsof a TID instance is a probabilistic instance...

thepossible worlds are the subsets

always keeping tuples withprobability 1 Formally, for a TID instanceI, theprobability ofJ:

we must haveJ⊆I

product of pt for each tuple tkept in J

product of 1−pt for each tuple t not keptin J

(59)

Probabilistic instances TID BID pc-tables Conclusion

Getting a probability distribution

Thesemanticsof a TID instance is a probabilistic instance...

thepossible worlds are the subsets

always keeping tuples withprobability 1 Formally, for a TID instanceI, theprobability ofJ:

we must haveJ⊆I

product of pt for each tuple tkept in J

product of 1−pt for each tuple tnot kept in J

(60)

Probabilistic instances TID BID pc-tables Conclusion

Is it a probability distribution?

Do the probabilities alwayssum to 1?

0 tuples: vacuous 1 tuple: p+ (1−p) = 1

2 tuples: p1p2+p1(1−p2) + (1−p1)p2+ (1−p1)(1−p2)

p1(p2+ (1p2)) + (1p1)(p2+ (1p2))

(p1+ (1p1))(p2+ (1p2))

p2+ (1p2)

More tuples: p1(· · ·) + (1−p1)(· · ·)andinduction hypothesis

(61)

Probabilistic instances TID BID pc-tables Conclusion

Is it a probability distribution?

Do the probabilities alwayssum to 1?

0 tuples: vacuous

1 tuple: p+ (1−p) = 1

2 tuples: p1p2+p1(1−p2) + (1−p1)p2+ (1−p1)(1−p2)

p1(p2+ (1p2)) + (1p1)(p2+ (1p2))

(p1+ (1p1))(p2+ (1p2))

p2+ (1p2)

More tuples: p1(· · ·) + (1−p1)(· · ·)andinduction hypothesis

(62)

Probabilistic instances TID BID pc-tables Conclusion

Is it a probability distribution?

Do the probabilities alwayssum to 1?

0 tuples: vacuous 1 tuple: p+ (1−p) = 1

2 tuples: p1p2+p1(1−p2) + (1−p1)p2+ (1−p1)(1−p2)

p1(p2+ (1p2)) + (1p1)(p2+ (1p2))

(p1+ (1p1))(p2+ (1p2))

p2+ (1p2)

More tuples: p1(· · ·) + (1−p1)(· · ·)andinduction hypothesis

(63)

Probabilistic instances TID BID pc-tables Conclusion

Is it a probability distribution?

Do the probabilities alwayssum to 1?

0 tuples: vacuous 1 tuple: p+ (1−p) = 1

2 tuples: p1p2+p1(1−p2) + (1−p1)p2+ (1−p1)(1−p2)

p1(p2+ (1p2)) + (1p1)(p2+ (1p2))

(p1+ (1p1))(p2+ (1p2))

p2+ (1p2)

More tuples: p1(· · ·) + (1−p1)(· · ·)andinduction hypothesis

(64)

Probabilistic instances TID BID pc-tables Conclusion

Is it a probability distribution?

Do the probabilities alwayssum to 1?

0 tuples: vacuous 1 tuple: p+ (1−p) = 1

2 tuples: p1p2+p1(1−p2) + (1−p1)p2+ (1−p1)(1−p2)

p1(p2+ (1p2)) + (1p1)(p2+ (1p2))

(p1+ (1p1))(p2+ (1p2))

p2+ (1p2)

More tuples: p1(· · ·) + (1−p1)(· · ·)andinduction hypothesis

(65)

Probabilistic instances TID BID pc-tables Conclusion

Is it a probability distribution?

Do the probabilities alwayssum to 1?

0 tuples: vacuous 1 tuple: p+ (1−p) = 1

2 tuples: p1p2+p1(1−p2) + (1−p1)p2+ (1−p1)(1−p2)

p1(p2+ (1p2)) + (1p1)(p2+ (1p2))

(p1+ (1p1))(p2+ (1p2))

p2+ (1p2)

More tuples: p1(· · ·) + (1−p1)(· · ·)andinduction hypothesis

(66)

Probabilistic instances TID BID pc-tables Conclusion

Is it a probability distribution?

Do the probabilities alwayssum to 1?

0 tuples: vacuous 1 tuple: p+ (1−p) = 1

2 tuples: p1p2+p1(1−p2) + (1−p1)p2+ (1−p1)(1−p2)

p1(p2+ (1p2)) + (1p1)(p2+ (1p2))

(p1+ (1p1))(p2+ (1p2))

p2+ (1p2)

More tuples: p1(· · ·) + (1−p1)(· · ·)andinduction hypothesis

(67)

Probabilistic instances TID BID pc-tables Conclusion

Is it a probability distribution?

Do the probabilities alwayssum to 1?

0 tuples: vacuous 1 tuple: p+ (1−p) = 1

2 tuples: p1p2+p1(1−p2) + (1−p1)p2+ (1−p1)(1−p2)

p1(p2+ (1p2)) + (1p1)(p2+ (1p2))

(p1+ (1p1))(p2+ (1p2))

p2+ (1p2)

More tuples: p1(· · ·) + (1−p1)(· · ·)andinduction hypothesis

(68)

Probabilistic instances TID BID pc-tables Conclusion

Strong representation system

Remember fromlast class:

Uncertain instance: set of possible worlds

Uncertainty framework: concise way to represent uncertain instances Query language: here, relational algebra Definition (Strong representation system) For any query in the language,

on uncertain instances represented in the framework, the uncertain instance obtained by evaluating the query can also be represented in the framework.

Are TID instances a strong representation system?

(69)

Probabilistic instances TID BID pc-tables Conclusion

Strong representation system

Remember fromlast class:

Uncertain instance: set of possible worlds Uncertainty framework: concise way to represent

uncertain instances

Query language: here, relational algebra Definition (Strong representation system) For any query in the language,

on uncertain instances represented in the framework, the uncertain instance obtained by evaluating the query can also be represented in the framework.

Are TID instances a strong representation system?

(70)

Probabilistic instances TID BID pc-tables Conclusion

Strong representation system

Remember fromlast class:

Uncertain instance: set of possible worlds Uncertainty framework: concise way to represent

uncertain instances Query language: here, relational algebra

Definition (Strong representation system) For any query in the language,

on uncertain instances represented in the framework, the uncertain instance obtained by evaluating the query can also be represented in the framework.

Are TID instances a strong representation system?

(71)

Probabilistic instances TID BID pc-tables Conclusion

Strong representation system

Remember fromlast class:

Uncertain instance: set of possible worlds Uncertainty framework: concise way to represent

uncertain instances Query language: here, relational algebra Definition (Strong representation system) For any query in the language,

on uncertain instances represented in the framework, the uncertain instance obtained by evaluating the query can also be represented in the framework.

Are TID instances a strong representation system?

(72)

Probabilistic instances TID BID pc-tables Conclusion

Strong representation system

Remember fromlast class:

Uncertain instance: set of possible worlds Uncertainty framework: concise way to represent

uncertain instances Query language: here, relational algebra Definition (Strong representation system) For any query in the language,

on uncertain instances represented in the framework,

the uncertain instance obtained by evaluating the query can also be represented in the framework.

Are TID instances a strong representation system?

(73)

Probabilistic instances TID BID pc-tables Conclusion

Strong representation system

Remember fromlast class:

Uncertain instance: set of possible worlds Uncertainty framework: concise way to represent

uncertain instances Query language: here, relational algebra Definition (Strong representation system) For any query in the language,

on uncertain instances represented in the framework, the uncertain instance obtained by evaluating the query

can also be represented in the framework.

Are TID instances a strong representation system?

(74)

Probabilistic instances TID BID pc-tables Conclusion

Strong representation system

Remember fromlast class:

Uncertain instance: set of possible worlds Uncertainty framework: concise way to represent

uncertain instances Query language: here, relational algebra Definition (Strong representation system) For any query in the language,

on uncertain instances represented in the framework, the uncertain instance obtained by evaluating the query can also be represented in the framework.

Are TID instances a strong representation system?

(75)

Probabilistic instances TID BID pc-tables Conclusion

Strong representation system

Remember fromlast class:

Uncertain instance: set of possible worlds Uncertainty framework: concise way to represent

uncertain instances Query language: here, relational algebra Definition (Strong representation system) For any query in the language,

on uncertain instances represented in the framework, the uncertain instance obtained by evaluating the query can also be represented in the framework.

(76)

Probabilistic instances TID BID pc-tables Conclusion

Implementing select

U

date teacher room

04 Silviu C47 0.8

04 Antoine C47 0.2

11 Silviu C47 1

σteacher=“Silviu”(U) date teacher room

04 Silviu C47 0.8

11 Silviu C47 1

Is this correct?

So far, so good.

(77)

Probabilistic instances TID BID pc-tables Conclusion

Implementing select

U

date teacher room

04 Silviu C47 0.8

04 Antoine C47 0.2

11 Silviu C47 1

σteacher=“Silviu”(U) date teacher room

04 Silviu C47 0.8

11 Silviu C47 1

Is this correct?

So far, so good.

(78)

Probabilistic instances TID BID pc-tables Conclusion

Implementing select

U

date teacher room

04 Silviu C47 0.8

04 Antoine C47 0.2

11 Silviu C47 1

σteacher=“Silviu”(U) date teacher room

04 Silviu C47 0.8

11 Silviu C47 1

Is this correct?

So far, so good.

(79)

Probabilistic instances TID BID pc-tables Conclusion

Implementing select

U

date teacher room

04 Silviu C47 0.8

04 Antoine C47 0.2

11 Silviu C47 1

σteacher=“Silviu”(U) date teacher room

04 Silviu C47 0.8

11 Silviu C47 1

Is this correct?

So far, so good.

(80)

Probabilistic instances TID BID pc-tables Conclusion

Implementing select

U

date teacher room

04 Silviu C47 0.8

04 Antoine C47 0.2

11 Silviu C47 1

σteacher=“Silviu”(U) date teacher room

04 Silviu C47 0.8

11 Silviu C47 1

Is this correct?

(81)

Probabilistic instances TID BID pc-tables Conclusion

Implementing project

U

date teacher room

04 Silviu C47 0.8

04 Antoine C47 0.2

11 Silviu C47 1

11 Antoine C47 0.1

18 Silviu C47 0.9

πdate(U) date

04

1(10.2)·(10.8)

11

1

18

0.9

Is this correct?

So far, so good

Références

Documents relatifs

Afin de déterminer les valeurs optimums des différents paramètres d’adsorption, pour une meilleure purification de l’acide phosphorique; nous présentons dans ce

While the ocean worlds of the outer solar system may harbor plenty of liquid water and the elements needed to build life, the habitability of these oceans may be constrained by

It is organized as follows: the next section describes some related works; Section 3 introduces the Abductive Logic Programming framework; our Probabilistic Ab- ductive Logic

rénovation des biens immobiliers destinés à la vente, la location ou la satisfaction de besoins propres. Les biens immobilèrs concernés peuvent être des locaux à usage

▪ Se présenter en utilisant a structure nouvellement connue ▪ Manipuler la structure de phrase basique anglaise ▪ Utiliser le vocabulaire nouvellement acquis ▪ Apprendre

In fact the dynamic of the particle‟s trajectory on its random walk is completely determined by the graph‟s topological structure: after t steps, every node s at

• Verbo-nominal patterns with chance(s) ‘enrich’ the “greater modal system” • Onomasiologically: new patterns that are functionally equivalent to basic modal auxiliaries

We also believe that PWE and tools like it may play an increasing role in future data science and AI applications (cf. QASP [27]) by combining declarative problem solving in the