MathGroup Archive 2002

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

Search the Archive

Re: Bayesian?


Having precedently defined a P[varsList,varsObservedList] function, i use
this:

P[x___, y_Alternatives, z___] :=
  P[Sequence @@ ({{x, y[[1]]}, {y[[2]], z}})]

In[2]:=
P[C1 == "y" | C2 == "y", C3 == "n"]

Out[2]=
P[{C1 == "y"}, {C2 == "y", C3 == "n"}]

Regards,
Raf.

<rlsmith at his.com> ha scritto nel messaggio news:a8tu0c$fp5$1 at smc.vnet.net...
> Anyone using Mathematica to work on Bayisian probability?
> Has anyone developed the Bayesian notation, P(H|A, B,C) etc. for
> Mathematica?
>
>



  • Prev by Date: How to specify a parameter
  • Next by Date: How to Return from within a Table[]-Command?
  • Previous by thread: Bayesian?
  • Next by thread: Re: Bayesian?