Distributed
Binds a variable to a distribution, for Expectation and Probability.
Distributed(x, dist)an inert binding — x follows dist. Stays itself under evaluation; only Expectation/Probability read it.Typed signatures
| Type | Package | Applies |
|---|---|---|
(any, any) -> expression<Distributed> | statistics | always |
Details
- Wolfram's own infix
x \[Distributed] distparses to exactly this call. Only the second argument of Expectation/Probability is read as aDistributedbinding — elsewhere it is just an inert expression. - The first argument is read structurally (it must be a symbol) rather than type-checked — compute-engine PINS a parameter typed literally
symbolonto that symbol's inferred type globally, breaking later unrelated uses of the same name (confirmed empirically); typing itanyhere avoids that.
Examples
Scope #
About
| Examples | 2 |
|---|
See also: Expectation, Probability