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


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

Characteristics of a TransformedDistribution

From leigh pascoe <leigh@evry.inserm.fr>
Newsgroups comp.soft-sys.math.mathematica
Subject Characteristics of a TransformedDistribution
Date 2012-11-22 00:51 +0000
Message-ID <k8jsup$5pc$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


Could someone please help me to plot a transformed distribution?

Assuming we have 2 independent random variables, x1 and x2, distributed
as Binomial[n,p],

We would like to plot the pdf of the distribution of the random variable

    var=x1(1-x2)/x2(1-x1)

for various values of N (large) and p. This is a discrete distribution
with n2 possible values.

I have tried this numerous times, but always encounter either a syntax
error or a calculation that times out, even for small values of n.

I have defined the transformed distribution as follows.

or[n_, p_] :=
 TransformedDistribution[(y1/(n - y1))/(y2/(n -
       y2)), {y1 \[Distributed] BinomialDistribution[n, p],
   y2 \[Distributed] BinomialDistribution[n, p]}]

but have been unsuccessful trying to plot it, or determine its PDF, CDF,
Mean, Variance etc.

Any suggestions appreciated.

LP


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


Thread

Characteristics of a TransformedDistribution leigh pascoe <leigh@evry.inserm.fr> - 2012-11-22 00:51 +0000

csiph-web