Hello,
I have an equation node of a distribution of possible infection rate = p.
I have another equation node of number of sampled = n.
These two nodes connect to an equation node - bernoulli(n,p) -> gives a distribution of positive cases.
I want to create an equation node that is 1 (quarantine) if expectation of positive case >=1 and 0 otherwise... but I can't figure out a way to do so (this quarantine node also becomes a distribution).
Is there a way to convert distribution to its expectation in the subsequent node?
Many thanks.
Getting expectation from distirbution node
-
marek [BayesFusion]
- Site Admin
- Posts: 450
- Joined: Tue Dec 11, 2007 4:24 pm
Re: Getting expectation from distirbution node
You can operate on values but on on their statistical properties (i.e., results) in your equations. Please keep in mind that a Bayesian network is equivalent to a system of simultaneous equations. Your new variable could have a conditional statement that compares the number of positive cases to something (e.g., function If()) but you cannot refer in your equation to the expectation of another node.
I hope this helps,
Marek
I hope this helps,
Marek
Re: Getting expectation from distirbution node
Thank you so much!