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


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

more problems with TransformedDistribution

Started byAndrzej Kozlowski <akoz@mimuw.edu.pl>
First post2011-08-06 06:13 +0000
Last post2011-08-06 06:13 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

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

#4188 — more problems with TransformedDistribution

FromAndrzej Kozlowski <akoz@mimuw.edu.pl>
Date2011-08-06 06:13 +0000
Subjectmore problems with TransformedDistribution
Message-ID<j1im2p$cnd$1@smc.vnet.net>
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

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web