Defining a distribution
- To: mathgroup at smc.vnet.net
- Subject: [mg114758] Defining a distribution
- From: omri-piano <omrit1248 at gmail.com>
- Date: Thu, 16 Dec 2010 05:48:01 -0500 (EST)
Hi, I would like to define a statistical distribution of my own. I would like to sample from it, as when sampling from one of the standard Mathematica distributions, like RandomInteger[BinomialDistribution[n,p]]. The pdf of my distribution should look like: MyDistribution [j_, p_, n_]:=Binomial[n,(n*j)]*p^(n*j)*(1-p)^(n-n*j) Is that possible? Thanks, Omri.
- Follow-Ups:
- Re: Defining a distribution
- From: Barrie Stokes <Barrie.Stokes@newcastle.edu.au>
- Re: Defining a distribution