Re: How to define a statistical distribution?
- To: mathgroup at smc.vnet.net
- Subject: [mg108397] Re: How to define a statistical distribution?
- From: kj <no.email at please.post>
- Date: Tue, 16 Mar 2010 04:46:32 -0500 (EST)
- References: <hnl7kb$at3$1@smc.vnet.net>
Thanks! ~K P.S. Thanks also for fixing the n_succ, n_tot goofs in my original post. In <hnl7kb$at3$1 at smc.vnet.net> Bob Hanlon <hanlonr at cox.net> writes: >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