To estimate the posterior we have
$$p(\theta|x) = \frac{p(\theta)*p(x|\theta)}{\sum p(\theta ')*p(x|\theta ')}$$
$x$ is usually the experimentally sampled data, and $\theta$ is the model, but both $p(x|\theta)$ and $p(\theta)$ is unknown, how do you usually measure those two quantities?
These quantities are known as part of the model. $p(\theta)$ is the prior, which you chose (a classic example is the Beta distribution), and $p(x|\theta)$ is the density function of $X|\theta$, for example the model is such that $X|\theta\sim\mathcal{N}(\theta,1)$.