Experimentian with Bayesian statistics
- To: mathgroup at smc.vnet.net
- Subject: [mg45377] Experimentian with Bayesian statistics
- From: NA <nospam at here.com>
- Date: Sun, 4 Jan 2004 04:56:09 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
I'm trying to learn some basic Bayesian statistics with Mathematica but I'm
having trouble building up the probability formulae that I need.
I tried to define
depPr[x_,y_] := (Pr[x] depPr[y,x]) / Pr[y]
but I don't even get an Out result (I thought it would have at least
redisplayed it with numerator over denominator)
(I assumed by the way that I needed a different name for the function Pr{x
| y} vs the simple Pr{x})
If I replace the ':=' with '=', then I just get a recursion error.
I've looked around on the web but there doesn't seem to be very much out
there on doing probability with Mathematica
Once I get this working, then I want to extend it (symbolically) so that I
can work with sequences of events, i.e.
Pr{Xi | Y} = Pr{Xi}*Pr{Y|Xi}
------------------------------------------------------------------------
Sigma(Pr{Xi}*Pr{Y|Xi}, 1, n)
and then create lists of items to run through it.
Bit difficult when I can't even get the basics running.
Any suggestions would be appreciated,
Thanks,
Jen B.
--
_______