Semantics of Probabilistic and Differential Programming
Workshop on program transformations at NeurIPS
Christine Tasson (tasson@irif.fr) December 2019
Institut de Recherche en Informatique Fondamentale
Semantics of Probabilistic and Differential Programming Workshop on - - PowerPoint PPT Presentation
Semantics of Probabilistic and Differential Programming Workshop on program transformations at NeurIPS Christine Tasson (tasson@irif.fr) December 2019 Institut de Recherche en Informatique Fondamentale Every programmer can perform data analysis
Institut de Recherche en Informatique Fondamentale
1
1
2
3
4
5
6
7
8
By Matemateca (IME USP)
2
1
2
3
4
5
6
7
8
2
1
2
3
4
5
6
7
8
2
3
3
3
1
2
3
4
5
6
7
8 9
10
11 12
13
14
15 16
17
4
1
2
3
4 5
6
7
8 9
10
11
12
13
14
15
5
1
2
3
4 5
6
7
8
9
10
11
12
13
14
15
16
6
7
p
1
1/ 2
1/ 2
7
p
1
1/ 2
1/ 2
7
1
1/ 2
1/ 2
addCoins ( )
1
a = coin b = coin c = coin ( a + b + c )
1/ 2
a = 0 b = coin c = coin ( a + b + c )
1/ 2
a = 0 b = 1 c = coin ( a + b + c )
1/ 2
a = 0 b = 1 c = 1 ( a + b + c )
1
b = 1 c = 1 ( 0 + b + c )
1
c = 1 ( 0 + 1 + c )
1
( 0 + 1 + 1 )
1
2
8
1
1/ 2
1/ 2
addCoins ( )
1
a = coin b = coin c = coin ( a + b + c )
1/ 2
a=0
a = 0 b = coin c = coin ( a + b + c )
1/ 2
b=1
1/ 2
c=1 1 ∗
2
∗
1/ 8
a=1 b=1 c=0 ∗
1/ 8
a=1 b=0 c=1 ∗
1/ 8
a=0 b=1 c=1 8
1
1/ 2
1/ 2
addCoins ( )
1
a = coin b = coin c = coin ( a + b + c )
1/ 2
a=0
a = 0 b = coin c = coin ( a + b + c )
1/ 2
b=1
1/ 2
c=1 1 ∗
2
∗
1/ 8
a=1 b=1 c=0 ∗
1/ 8
a=1 b=0 c=1 ∗
1/ 8
a=0 b=1 c=1
8
1
2
3
4
5
1
2
3
4
5
1
2
3 4
5
9
10
11
P(S|W) P(R|W) P(G|S, R) t f [3/
5 2/ 5]
t f t 1/ 5 4/ 5 f 3/ 4 1/ 4
t f t 4/ 5 1/ 5 f 1/ 10 9/ 10
S,R\G t f t,t 19/ 20 1/ 20 t,f 9/ 10 1/ 10 f,t 4/ 5 1/ 5 f,f
1 Winter Sprinkle Rain Grass
a∈{t,f}
b∈{t,f} 12
P(S|W) P(R|W) P(G|S, R) t f [3/
5 2/ 5]
t f t 1/ 5 4/ 5 f 3/ 4 1/ 4
t f t 4/ 5 1/ 5 f 1/ 10 9/ 10
S,R\G t f t,t 19/ 20 1/ 20 t,f 9/ 10 1/ 10 f,t 4/ 5 1/ 5 f,f
1 Winter Sprinkle Rain Grass
12
P(S|W) P(R|W) P(G|S, R) ∆ t f [3/
5 2/ 5]
t,t t,f f,t f,f t
1
f
1
t f t 1/ 5 4/ 5 f 3/ 4 1/ 4
t f t 4/ 5 1/ 5 f 1/ 10 9/ 10
S,R\G t f t,t 19/ 20 1/ 20 t,f 9/ 10 1/ 10 f,t 4/ 5 1/ 5 f,f
1 Winter Sprinkle Rain Grass
12
a∈|X| uava ≤ 1}
13
13
13
5, 2/ 5
13
5, 2/ 5
13
5, 2/ 5
13
⊆(❘+)|X|, M·x =
a∈|X|
b∈|Y |
⊆(❘+)|Y | 14
⊆(❘+)|X|, M(x) =
a
b∈|Y |
⊆(❘+)|Y | 14
⊆(❘+)|X|, M(x) =
a
b∈|Y |
⊆(❘+)|Y |
14
⊆(❘+)|X|, M(x) =
a
b∈|Y |
⊆(❘+)|Y |
n, 0, . . . )
2
2 1
14
⊆(❘+)|X|, M(x) =
a
b∈|Y |
⊆(❘+)|Y |
n, 0, . . . )
2
2 1
14
∆ X X X
15
16
f(x) f(x0) + f ′(x0)(x − x0) x0
∂x N)
∞
TE
17
18
18
n
18
∂y ∂v is a linear map from R → R.
19
20
∞
2 + 1 2xφ(φ(x)) = 1 − √1 − x. 1
n=0 nan is the expectation of the number of times
21
22