Probability Logic Test

This Demonstration presents a simple test for probability logic. The value of compound propositions is evaluated according to probability laws.
A simple two-dimensional area is occupied by white or gray triangles, squares, and pentagons. A disk indicates that the shape of the element is not known; in this case a proposition of type Shape() has value 1/3. A gray-white figure means that the color of the figure is not known; in this case a proposition of type Color(x) has value 1/2.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


The procedure used should work on any propositional sentence. Using Mathematica's built-in function LogicalExpand eliminates all propositional connectives except ¬, ∧, and ∨. Negation is eliminated by rules, such as . Another application of LogicalExpand gives a disjunctive normal form without negations, that is a disjunction of conjunctions. There are special cases if the form reduces to a single conjunction, a single atomic statement, or True or False.
A conjunction is treated as a list of statements . In case the same figure appears with different shapes or colors, the probability of the conjunction is 0. (For instance: ) If no such case occurs, the set of statements is independent.
The shape and color of the same figure are independent of each other; the shapes of two different figures are independent, and so on. In these kinds of cases, and the basic formula for disjunction is .


    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+