Bayes Theorem in Python
Magnus Lie Hetland
mlh at idi.ntnu.no
Mon May 28 11:57:00 EDT 2001
"Alex Martelli" <aleaxit at yahoo.com> wrote in message
news:9edlt101pih at enews1.newsguy.com...
> "Ron Stephens" <rdsteph at earthlink.net> wrote in message
> news:3B08F864.CD9EA4FB at earthlink.net...
> > Does anyone know if someone has already coded Bayes theorem into Python?
>
> You mean as in:
>
> def Bayes(P_H, P_E, P_E_given_H):
> P_H_given_E = (P_H * P_E_given_H) / P_E
> return P_H_given_E
>
> ...? I suspect somebody must have already coded one
> multiplication and one division into one Python expression,
> yes, although it's hard to be sure about the variable
> names they may have chosen. Or do you mean something
> completely different...?
>
Duncan Smith and I did some stuff on Bayesian networks in Python.
Actually -- he did some stuff. I didn't contribute much ;)
I don't think I have hist last version, but a search on deja
may turn up something, perhaps?
>
> Alex
--
Magnus Lie Hetland http://www.hetland.org
"Reality is that which, when you stop believing in
it, doesn't go away." -- Philip K. Dick
More information about the Python-list
mailing list