Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16753
| From | CHARLES GILLINGHAM <cgillingham1@me.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Bug with ProbabilityDistribution |
| Date | 2014-04-09 08:15 +0000 |
| Message-ID | <li2via$pdi$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
Evaluate this:
ProbabilityDistribution[
Piecewise[{{0, x1 == 1 && x2 == 1}, {1/2, x1 == 1 && x2 == 0}, {0, x1 == 0 && x2 == 1}, {1/2, x1 == 0 && x2 == 0}}],
{x1, 0, 1, 1}, {x2, 0, 1, 1}
]
PDF[%][{1, 1}]
And you get:
Undefined
But the probability is obviously 0
Is there something I am misunderstanding about how simple Boolean probability distributions should be set up?
Thanks.
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar
Bug with ProbabilityDistribution CHARLES GILLINGHAM <cgillingham1@me.com> - 2014-04-09 08:15 +0000
csiph-web