Uniform-Pareto model evidence (source code)

= Uniform-Pareto model evidence
{title2=$p(y\mid\alpha,\beta)=\alpha\beta^\alpha/[(\alpha+n)m^{\alpha+n}]$}

Let <independent> observations have <uniform distributions> on $(0,\theta)$ and let $\theta$ have a <Pareto distribution> with <shape parameter> $\alpha>0$ and lower bound $\beta>0$. For positive observations put $m=\max(\beta,\max_jy_j)$. Integrating the <likelihood function> against the <prior density> gives the <Bayesian model evidence>
$$
p(y\mid\alpha,\beta)=\int_m^\infty\theta^{-n}\alpha\beta^\alpha\theta^{-\alpha-1}\,d\theta
=\frac{\alpha\beta^\alpha}{(\alpha+n)m^{\alpha+n}}.
$$
For <independent> <groups> with shared fixed <hyperparameters>, the <Bayesian model evidences> multiply. With $I$ <groups> and $m_i=\max(\beta,\max_jy_{ij})$, the exact <hyperparameter> <log-likelihood function> is
$$
\ell(\alpha,\beta)=I\log\alpha-\sum_i\log(\alpha+n_i)
+I\alpha\log\beta-\sum_i(\alpha+n_i)\log m_i.
$$
The term $-\sum_i n_i\log m_i$ may be omitted when optimizing $\alpha$ with $\beta$ fixed. It must remain when $\beta$ varies: each $m_i$ then changes whenever $\beta$ exceeds that <group>'s <sample maximum>. Calling this term a constant in a joint fit would change the <maximum-likelihood estimator>.