https://pyqt.pythonprogramminghelp.com/how-to-bayes-rule-the-right-way/