Getting expectation from distirbution node

The front end.
Post Reply
kjung2
Posts: 2
Joined: Fri Oct 10, 2025 6:42 pm

Getting expectation from distirbution node

Post by kjung2 »

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.
marek [BayesFusion]
Site Admin
Posts: 450
Joined: Tue Dec 11, 2007 4:24 pm

Re: Getting expectation from distirbution node

Post by marek [BayesFusion] »

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
kjung2
Posts: 2
Joined: Fri Oct 10, 2025 6:42 pm

Re: Getting expectation from distirbution node

Post by kjung2 »

Thank you so much!
Post Reply