MathGroup Archive 2010

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

Search the Archive

Defining a distribution

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