Can you calculate the probability of a complex logic expression?

Click For Summary
SUMMARY

The discussion centers on the calculation of the probability of a complex logic expression, specifically the expression ((A ∨ ~B) ∨ (C -> D)). It simplifies to A + ~B + ~C + D using Boolean algebra. Given the probabilities p(A) = 0.3, p(B) = 0.99, and p(C) = 0.92, the probability of the overall expression is p(A ∪ ~B ∪ ~C ∪ D) = 1. However, it is concluded that without knowing the dependencies or conditional probabilities among A, B, C, and D, the probability p(D) cannot be calculated definitively.

PREREQUISITES
  • Understanding of Boolean algebra and logical expressions
  • Knowledge of probability theory, particularly union and intersection
  • Familiarity with conditional probabilities and independence
  • Basic concepts of probabilistic logic programming
NEXT STEPS
  • Study Boolean algebra simplifications in depth
  • Learn about conditional probability and independence in probability theory
  • Explore probabilistic logic programming techniques and applications
  • Investigate Bayesian networks and their implications in probability calculations
USEFUL FOR

Mathematicians, data scientists, computer scientists, and anyone interested in the intersection of logic and probability theory.

yeet991only
Messages
9
Reaction score
1
TL;DR
Any logical expression can be simplified to AND , NOT , OR. But these are same as intersection , negation and reunion in probability.
Suppose this expression : ((A ∨ ~B) ∨ (C -> D))
This simplifies to : A + ~B + ~C + D , using boolean algebra.
Now suppose i know that this expression is true: p( ((A ∨ ~B) ∨ (C -> D)) ) = 1;
and I also know that p(A) = 0.3 , p(B) = 0.99 , p(C) = 0.92 .
but the probability of the expression is actually: p(A ∪ ~B ∪~C ∪ D) = 1
So can you calculate D from that? (Normally you could, but the question is if combining logic and probability like this is valid).

Also clearly (C -> D) isnt the kind of arrow that you would use in a bayesian network or stuff, because it reduces to p( ~C or D) , but in graphs it is the bayes formula for such arrow : p(C | D) = p(D|C) * p(C) / p(D).
 
Physics news on Phys.org
yeet991only said:
TL;DR Summary: Any logical expression can be simplified to AND , NOT , OR. But these are same as intersection , negation and reunion in probability.

So can you calculate D from that?
No. From just the information given we don’t know if the probabilities of one are dependent on the others. Without knowing that they are independent or mutually exclusive or knowing their conditional probabilities, ##p(D)## cannot be calculated from the given information
 
yeet991only said:
TL;DR Summary: Any logical expression can be simplified to AND , NOT , OR. But these are same as intersection , negation and reunion in probability.

Suppose this expression : ((A ∨ ~B) ∨ (C -> D))
This simplifies to : A + ~B + ~C + D , using boolean algebra.
Now suppose i know that this expression is true: p( ((A ∨ ~B) ∨ (C -> D)) ) = 1;
and I also know that p(A) = 0.3 , p(B) = 0.99 , p(C) = 0.92 .
but the probability of the expression is actually: p(A ∪ ~B ∪~C ∪ D) = 1
So can you calculate D from that? (Normally you could, but the question is if combining logic and probability like this is valid).

Also clearly (C -> D) isnt the kind of arrow that you would use in a bayesian network or stuff, because it reduces to p( ~C or D) , but in graphs it is the bayes formula for such arrow : p(C | D) = p(D|C) * p(C) / p(D).
A related area is probabilistic logic programming https://en.m.wikipedia.org/wiki/Probabilistic_logic_programming
 
yeet991only said:
TL;DR Summary: Any logical expression can be simplified to AND , NOT , OR. But these are same as intersection , negation and reunion in probability.
Any logical expression can also be simplified to NAND only, NOR only, and if one allows ##c\to\text{false}##, also by implication only as ##c\to\text{false}## is NOT c.

yeet991only said:
Suppose this expression : ((A ∨ ~B) ∨ (C -> D))
That expression can be write as ##((A\vee \neg B) \vee (\neg C \vee D))##, and now one can dispense with the parentheses, yielding ##(A\vee \neg B \vee \neg C \vee D)## -- and also ##((A \vee \neg B \vee \neg C) \vee D)##. I'll use that final form in just a bit.
yeet991only said:
Now suppose i know that this expression is true: p( ((A ∨ ~B) ∨ (C -> D)) ) = 1;
and I also know that p(A) = 0.3 , p(B) = 0.99 , p(C) = 0.92 .
but the probability of the expression is actually: p(A ∪ ~B ∪~C ∪ D) = 1
So can you calculate D from that? (Normally you could, but the question is if combining logic and probability like this is valid).
One obvious solution is that D is always true, in which case P(D) = 1. There are other solutions. Note that it doesn't matter what D is in the case that ##(A \vee \neg B \vee \neg C)## is true. However, we must have D being true whenever ##(A \vee \neg B \vee \neg C)## is false. Note that D always being true satisfies this requirement, but so does ##D = \neg(A \vee \neg B \vee \neg C) = (\neg A \wedge B \wedge C)##. Given the sited probabilities, that D is true (but not necessarily always true) seems quite likely.
 
Last edited:

Similar threads

  • · Replies 7 ·
Replies
7
Views
838
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 12 ·
Replies
12
Views
7K
  • · Replies 36 ·
2
Replies
36
Views
5K
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 21 ·
Replies
21
Views
4K