Luis A. Afonso
Posts:
4,758
From:
LIsbon (Portugal)
Registered:
2/16/05


Re: Conditional probability problem in the context of a simulation
Posted:
Jan 26, 2011 8:01 AM


The quantity p(C(AorB)) could be provided by repeating an huge times n the calculation unit:
k=0 if A occurs then k=1 if B occurs then k=1 if k=0  > fail if k=1 and C occurs then count=count +1
The number of counts/n is the frequency of the event C(AorB), therefore its *probability*.
Luis A. Afonso

