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