Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #16115
| From | "Ernst H.K. Stelzer" <ernst.stelzer@physikalischebiologie.de> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Understanding TransformedDistribution |
| Date | 2013-10-28 04:23 +0000 |
| Message-ID | <l4kosq$500$1@smc.vnet.net> (permalink) |
| Organization | Time-Warner Telecom |
Through a question on StackExchange I came to know TransformedDistribution, which allows me to sort of develop new distributions based on the ones defined in Mathematica. Instead of using my own functions, which work perfectly well, I now tried to repeat a number of older calculations using e.g. UniformDistribution.
When I combine two via
TransformedDistribution[2 (x - 4/5 y), {x \[Distributed] UniformDistribution[{-1, 1}], y \[Distributed] UniformDistribution[{-(4/5), 4/5}]}]
to generate a kind of annular function and then look at the PDF, I get
PDF[%, x]
\[Piecewise] 1/4 -(18/25)<=x<=18/25
1/256 (82-25 x) 18/25<x<82/25
1/256 (82+25 x) -(82/25)<x<-(18/25)
0 True
However, I expect, what I get when I enter
2 (PDF[UniformDistribution[{-1, 1}], x] -
4/5 PDF[UniformDistribution[{-(4/5), 4/5}], x])
2 ((\[Piecewise] 1/2 -1<=x<=1
0 True
)-4/5 (\[Piecewise] 5/8 -(4/5)<=x<=4/5
0 True
))
Does anybody have a clue which mistake I made?
Greetings
Ernst
Prof. Dr. Ernst H.K. Stelzer, Physical Biology (FB 15, IZN)
Buchmann Institute for Molecular Life Sciences (BMLS, CEF-MC)
Goethe Universit=E4t Frankfurt am Main (Campus Riedberg)
Max-von-Laue-Strasse 15, D-60438 Frankfurt am Main, Germany
Tel +49 (69) 798 42547, x42545 (Michaela Koller)
Fax +49 (69) 798 42546
Mob +49 (170) 6357 168
ernst.stelzer@physikalischebiologie.de
stelzer@bio.uni-frankfurt.de
http://www.physikalischebiologie.de
http://www.uni-frankfurt.de
http://www.bmls-institute.de
http://www.researcherid.com/rid/A-7648-2011
http://www.eigenwelten.com
http://www.youtube.com/user/physicalbiology
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Understanding TransformedDistribution "Ernst H.K. Stelzer" <ernst.stelzer@physikalischebiologie.de> - 2013-10-28 04:23 +0000
csiph-web