MathGroup Archive 2014

[Date Index] [Thread Index] [Author Index]

Search the Archive

Bug with ProbabilityDistribution

  • To: mathgroup at smc.vnet.net
  • Subject: [mg132536] Bug with ProbabilityDistribution
  • From: CHARLES GILLINGHAM <cgillingham1 at me.com>
  • Date: Wed, 9 Apr 2014 04:14:46 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net

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.






  • Prev by Date: Very simple question
  • Next by Date: Try to choose an informative subject line. Was: Re: question
  • Previous by thread: Re: Very simple question
  • Next by thread: Re: Bug with ProbabilityDistribution