sympy/sympy — pull request #1811 by mrocklin (2013-02-20 18:54:36+00:00)
Title: Bugfix in sympy.stats - add support for random parameters

This PR supports random expressions with random parameters e.g.

```Python
mu = Normal('mu', 0, 1)
x = Normal('x', mu, 3)
```

This allows for good statistical questions dealing with priors given data

````
density(mu, Eq(x, data))
```

Doing this exposed some issues with the core (or with the design of stats depending on your perspective).

SymPy.stats.RandomSymbol is an Expr with args that are not themselves Exprs. Much of the core assumes `all(isinstance(arg, Expr) for arg in expr)`.