(in connection to my initial post in the thread)
I have to generate the CPT for a v.simple scenario using Java API, of which I am not used to.
I have this (sample) problem of calculating the conditional probability table of the scenario that "Its raining"
it has two parent conditions,
either the ground is wet or not wet, and
either clouds are present or not present.
Now, the CPT table will contain 8 values to be filled in for the case of "is it raining or not".
(as it seems, the W and C are independent )
So, to find, P(R|W,C) = P(W|R,C) P(R|C) / P(W|C)
But, this formula doesnt solve my problem, I need to assume the 8 values that if,
- ground is Wet and Clouds are present than P(raining) is 1 else 0
- ground is Wet and Clouds are not present than P(raining) is 0.8 else
0.2
- ground is not Wet and Clouds are present than P(raining) is 0.2 else 0.8
- ground is not Wet and Clouds are not present than P(raining) is 0 else 1
Can I do it via some formula/API ? If even I have to put the CPT (conditional probability table) values myself, but what to do when I have to see the effect of "Likelihood" of some event (in this case the likelihood of W and C), i.e. lets say the likelihood of W is 70% and likelihood of C is 50%. How does it affect the CPT values
??
Any formula or way to find CPT with likelihood condition ?
Thanks in advance.