MathGroup Archive 2012

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

Search the Archive

Characteristics of a TransformedDistribution

  • To: mathgroup at
  • Subject: [mg128734] Characteristics of a TransformedDistribution
  • From: leigh pascoe <leigh at>
  • Date: Wed, 21 Nov 2012 19:50:55 -0500 (EST)
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:
  • Delivered-to:

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


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.


  • Prev by Date: Re: Removing rows from a table
  • Next by Date: Cannot calculate with Dynamic variables
  • Previous by thread: Problem with NonlinearModelFit
  • Next by thread: Cannot calculate with Dynamic variables