Bayesian probability is a way of representing uncertainty about the likelihood of an event happening, based on prior knowledge or evidence…