Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2010

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

Search the Archive

Defining a distribution

  • To: mathgroup at
  • Subject: [mg114758] Defining a distribution
  • From: omri-piano <omrit1248 at>
  • Date: Thu, 16 Dec 2010 05:48:01 -0500 (EST)

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?

  • Prev by Date: Re: Idiomatic use of Reduce in a physics problem
  • Next by Date: Placing the "&"
  • Previous by thread: Re: FindRoot failing in v8 on a system easily solvable in v7
  • Next by thread: Re: Defining a distribution