This project is a Python application that visualizes conditional probabilities using tree diagrams. It uses the tkinter library for the graphical user interface and sympy for symbolic mathematics.
- Interactive tree diagrams for visualizing conditional probabilities.
- Shows inverted tree on the right.
- Input fields for setting probabilities and events.
- Automatic calculation of missing probabilities based on provided values.
- Reset functionality to clear all input values.
- Support of fractions and decimal probabilities.
- Python 3.x
tkinterlibrarysympylibrary
(see requirements.txt)
-
Run the application
-
The main window will open, displaying two tree diagrams. The left frame contains input fields for setting event names. The right will show the probability tree and it's reversed tree.
-
Enter the names for events A, A', B, and B' in the respective input fields. A‘ and B’ are the complementary events.
-
Enter the probabilities in the input fields within the tree diagrams.
-
Click the "Calculate" button to calculate the missing probabilities.
-
Click the "Reset" button to clear all tree values.
This project is licensed under the MIT License. See the LICENSE file for details.

