Likelihood and Prior density scales I have a question about priors and likelihoods and their visualisation.
A Bernoulli likelihood is $$\theta^{N_1}(1 - \theta)^{N_0}$$
where $N_1$ and $N_0$ are number of success and failures, respectively.
I want to visualise (in R) a conjugate Beta prior $Beta(2, 2)$ and Likelihood:
N_1 = 4
N_0 = 1

N = N_1 + N_0

curve(dbeta(x, 2, 2),
      col = 'red')


So far so good, but when I try to add the Likelihood function:
likelihood = function(theta) theta^N_1 * (1 - theta)^N_0
curve(likelihood,
      add = T)


They are definitely on different scales. But what multiplication constant am I missing here? Thanks.

First of all, in this case, you have the likelihood function of a discrete random variable, so it shows probabilities between zero and one, and the prior is here a continuous random variable with a probability density function that doesn't have an upper bound. Probability density function shows "probability per foot" and it depends on the units of the variable. Even if you had two probability density functions, their units would not be the same, but here there is no reason to expect them to have the same units.
Second, as you noticed, you are not using a normalizing constant for the likelihood, so it doesn't integrate to unity and can take any units. Normalizing constants are not needed for optimization or sampling. You would need them for applying the Bayes theorem directly.
For plotting, you can always re-scale one of the functions by multiplying it by some constant, so they have comparable height on the plot.
