Exercise 1: Causal and statistical dependency.

For each of the following programs:

a)

webppl: v0.9.11-12c8394
packages: webppl-timeit v0.3.0-12c8394, webppl-dp v0.1.1-12c8394, webppl-agents v1.0.0-12c8394, webppl-nn v0.0.1-12c8394
seed:
compile:
run:

b)

webppl: v0.9.11-12c8394
packages: webppl-timeit v0.3.0-12c8394, webppl-dp v0.1.1-12c8394, webppl-agents v1.0.0-12c8394, webppl-nn v0.0.1-12c8394
seed:
compile:
run:

c)

webppl: v0.9.11-12c8394
packages: webppl-timeit v0.3.0-12c8394, webppl-dp v0.1.1-12c8394, webppl-agents v1.0.0-12c8394, webppl-nn v0.0.1-12c8394
seed:
compile:
run:

d)

webppl: v0.9.11-12c8394
packages: webppl-timeit v0.3.0-12c8394, webppl-dp v0.1.1-12c8394, webppl-agents v1.0.0-12c8394, webppl-nn v0.0.1-12c8394
seed:
compile:
run:

e)

webppl: v0.9.11-12c8394
packages: webppl-timeit v0.3.0-12c8394, webppl-dp v0.1.1-12c8394, webppl-agents v1.0.0-12c8394, webppl-nn v0.0.1-12c8394
seed:
compile:
run:

Exercise 2: Probabilistic programs without corresponding graphical models

As the end of the chapter mentions, some probabilistic programs do not have corresponding graphical models. This includes programs with recursion. The example below is an example of a recursive probabilistic program:

webppl: v0.9.11-12c8394
packages: webppl-timeit v0.3.0-12c8394, webppl-dp v0.1.1-12c8394, webppl-agents v1.0.0-12c8394, webppl-nn v0.0.1-12c8394
seed:
compile:
run:

a)

Write another recursive probabilistic program to model some real-world phenomenon below:

webppl: v0.9.11-12c8394
packages: webppl-timeit v0.3.0-12c8394, webppl-dp v0.1.1-12c8394, webppl-agents v1.0.0-12c8394, webppl-nn v0.0.1-12c8394
seed:
compile:
run: