MathGroup Archive 2010

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

Search the Archive

Re: Re: How to define a statistical distribution?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg108496] Re: [mg108474] Re: How to define a statistical distribution?
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Sat, 20 Mar 2010 02:45:35 -0500 (EST)
  • Reply-to: hanlonr at cox.net

x is distributed IAW your distribution when

    CDF[dist, x] == RandomReal[ ]

Solve this symbolically or numerically depending on the complexity of the CDF.


Bob Hanlon

---- ValeX <rjovale at gmail.com> wrote: 

=============
Hello,

I have a numerical PDF of this form:

pdfconv[dem, z, s]

where dem is the variable of the PDF and z and s are parameters.
Doing what was suggested above i get:

distconv /: PDF[distconv[z_, s_], dem_] := pdfconv[dem, z, s];

but when i try to generate a random number like:

RandomReal[distconv[1, .1]]

i get an error. Were i get it wrong?

many thanks


--

Bob Hanlon



  • Prev by Date: Peculiar output from Union ?
  • Next by Date: Re: need something like ReplaceAllIndexed[]
  • Previous by thread: Re: How to define a statistical distribution?
  • Next by thread: Video compression