probmods / dippl

The Design and Implementation of Probabilistic Programming Languages
http://dippl.org/
175 stars 30 forks source link

Make introduction of factor notation more intuitive #16

Open stuhlmueller opened 9 years ago

stuhlmueller commented 9 years ago

In webppl issue #18, Tomer wrote:

I'm not sure what level of readership you're aiming at, but taking probmods.org as a benchmark, it feels like towards the end of Chapter 2 you're assuming a great deal of background knowledge for a casual reader.

In particular, while the introduction of inference through the binomial function feels 'standard' and normal, this paragraph suddenly shows up after it:

"What if we wanted to adjust the above binomial computation to favor executions in which a or b was true? The factor keyword re-weights an execution by adding the given number to the log-probability of that execution. For instance:"

What 'given number' are we adding here? How much does a change of -2 correspond to? Why would we want to make that specific inference or assumption? In Church/probmods when inference was introduction the conditioning was on a pretty simple notion that 'the sum of the heads is 2 or greater'.

MikeTam1021 commented 7 years ago

I fell upon the same problem. To me 'Factor' is not intuitive. More examples would be helpful