MathGroup Archive 2010

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

Search the Archive

Re: How to define a statistical distribution?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg108384] Re: How to define a statistical distribution?
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Mon, 15 Mar 2010 07:02:19 -0500 (EST)
  • Reply-to: hanlonr at cox.net

Use TagSetDelayed ( /:  := )

FisherNoncentralHypergeometric /: 
 PDF[FisherNoncentralHypergeometric[n_, nSucc_, nTot_, w_], x_] := 
 < your definition of PDF here >

FisherNoncentralHypergeometric /: 
 CDF[FisherNoncentralHypergeometric[n_, nSucc_, nTot_, w_], x_] := 
 < your definition of CDF here >

FisherNoncentralHypergeometric /: 
 Mean[FisherNoncentralHypergeometric[n_, nSucc_, nTot_, w_]] := 
 < your definition of Mean here >

and so on


Bob Hanlon

---- kj <no.email at please.post> wrote: 

=============


Hi!

Is there a way for a user to implement a statistical distribution
in Mathematica, so that it can be used like any other statistical
distribution in Mathematica (e.g. NormalDistribution, BinomialDistribution,
etc.)?

Specifically, I want to implement

FisherNoncentralHypergeometric[n,n_succ,n_tot,w]

TIA!

~K




  • Prev by Date: Re: Mathematica SparseArray Access Non-Default Values
  • Next by Date: Re: windows 64 vs 32 bit
  • Previous by thread: How to define a statistical distribution?
  • Next by thread: Re: How to define a statistical distribution?