Atualização Posterior Bayes

P(H|D) = P(D|H)·P(H)/P(D).
Created by
Renato Passos, Eng. de Software
Reviewed by
Renato Passos, Eng. de Software

Last updated: Apr 18, 2026

P(H|D)
0,1111

Formula

P(H|D) = P(D|H)·P(H)/P(D)

About this calculator

Bayesian posterior updating is a fundamental concept in Bayesian statistics, which allows updating the probability of a hypothesis (H) after observing new data (D). This is done using the formula P(H|D) = P(D|H)·P(H)/P(D), where P(H|D) is the posterior probability of the hypothesis given the data, P(D|H) is the probability of the data given the hypothesis, P(H) is the prior probability of the hypothesis, and P(D) is the probability of the data.

The formula works as follows: first, it is necessary to define the prior probability of the hypothesis (P(H)), which reflects the initial belief in the hypothesis before observing the data. Then, it is necessary to calculate the probability of the data given the hypothesis (P(D|H)), which is the probability of observing the data if the hypothesis is true. With this information, it is possible to calculate the posterior probability of the hypothesis given the data (P(H|D)).

Bayesian posterior updating is useful in a variety of situations, such as in medical testing, analysis of failures in complex systems, and in machine learning models. However, it is essential to be careful with the choice of prior probability of the hypothesis and with the interpretation of the results, as the posterior update can be sensitive to these factors.

It is also important to note that the probability of the data (P(D)) can be difficult to calculate directly, but it can be circumvented using techniques such as marginal integration or using approximations.

Frequently asked questions

What is the prior probability of the hypothesis (P(H))?

The prior probability of the hypothesis (P(H)) is the probability of a hypothesis being true before observing the data.

How to calculate the probability of the data given the hypothesis (P(D|H))?

The probability of the data given the hypothesis (P(D|H)) depends on the statistical model used and the observed data.

What is the posterior probability of the hypothesis given the data (P(H|D))?

The posterior probability of the hypothesis given the data (P(H|D)) is the probability of a hypothesis being true after observing the data.

When to use Bayesian Posterior Updating?

Bayesian Posterior Updating is useful in situations where it is necessary to update the probability of a hypothesis based on new data.

What are the cautions when using Bayesian Posterior Updating?

It is essential to be careful with the choice of prior probability of the hypothesis and with the interpretation of the results.

Other Bayes calculators