# What is the conjugate prior distribution? [duplicate]

This question already has an answer here:

I am new to the bayesian statistics and I most frequently see the conjugate prior distribution. Can you explain it with clear example? I would be very thankful.

## marked as duplicate by Glen_b♦ distributions StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); Sep 29 '18 at 8:41

$$p(\theta|x) = \frac{p(x|\theta)p(\theta)}{\int{p(x|\theta)p(\theta)d\theta}}$$
The prior $$p(\theta)$$ is conjugate to the posterior $$p(\theta | x)$$ if both are in the same family of distributions.