Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4188

more problems with TransformedDistribution

From Andrzej Kozlowski <akoz@mimuw.edu.pl>
Newsgroups comp.soft-sys.math.mathematica
Subject more problems with TransformedDistribution
Date 2011-08-06 06:13 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j1im2p$cnd$1@smc.vnet.net> (permalink)

Show all headers | View raw


I don't understand this behaviour. Consider:

D1 =
  TransformedDistribution[{u, v + 1}, {u \[Distributed] UniformDistribution[{0, 1}],  v \[Distributed] UniformDistribution[{0, 1}]}];

RandomVariate[D1, {3}]

{{0.7615750941433532, 1.3679530660935457},
   {0.244892942700228, 1.060960354163685},
   {0.7802933339717009, 1.5833190582890353}}

Fine, as expected. Next:

D2 =
  TransformedDistribution[{u, v^2}, {u \[Distributed] UniformDistribution[{0, 1}], v \[Distributed] UniformDistribution[{0, 1}]}];

RandomVariate[D2, {3}]

{{0.06686173309743126, 0.21489944889140244},
   {0.38263698808007707, 0.45277199160209924},
   {0.07060737924762184, 0.10567112037126829}}

Again fine. Now let's try a simple product:

D3 = TransformedDistribution[{u,v}, {u \[Distributed] UniformDistribution[{0, 1}], v \[Distributed] UniformDistribution[{0, 1}]}];

RandomVariate[D3, {3}]

RandomVariate[TransformedDistribution[{\[FormalX]1,\[FormalX]2},{\[FormalX]1\[Distributed]UniformDistribution[{0,1}],\[FormalX]2\[Distributed]UniformDistribution[{0,1}]}],{3}]

Doesn't work. Why?

(Of course one I can get the answer using ProductDistribution etc. but that is not the point ....)


Andrzej Kozlowski

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

more problems with TransformedDistribution Andrzej Kozlowski <akoz@mimuw.edu.pl> - 2011-08-06 06:13 +0000

csiph-web