This repository contains materials for the tutorial on WebPPL -- a probabilistic programming language embedded in Javascript (see webppl.org for more information)
A web book on Probabilistic Models of Cognition written by Noah D. Goodman and Joshua B. Tenenbaum is available here probmods.org
Another great online resource is agentmodels.org which illustrates how WebPPL can be used to model decision-making, planning, inference, etc.
Please contact Tobias Gerstenberg (gerstenberg@stanford.edu) or Kevin Smith (k2smith@mit.edu) in case you have any questions.
- Presentation slides in .key and .pdf format
- declaring variables; basic operations; if-then statements; writing functions
- building simple models; random primitives; recursion; memoization
- conditioning on variables; conditioning on arbitrary expression; rejection query, enumeration query and other kinds of inference
- http://webppl.readthedocs.io/en/master/ Function reference for WebPPL.
- http://forestdb.org/ Repository for generative models.
- http://dippl.org/ Additional information about WebPPl.
- http://probabilistic-programming.org/wiki/Home Information about different probabilistic programming languages.
- https://lodash.com/docs/4.17.4 Function reference.