Mini project developed as part of the course of Fundamentals of AI and Knowledge Representation of University of Bologna.
Tested on python3.
pip install pgmpy matplotlib
All the code used is available in the jupyter notebook, the first cells are examples of use of 'pgmpy', while the last one have been used to gather data for the plots.
For further details please refer to the pdf file available in the repository, it offers a description of the problem along with a few plots and a few possible use cases for this kind of methods.