I was thinking about Bayesian statistics, and one thought bothered me:
In Bayesian statistics, we assume that the pdf $p(x)$ can be described as:
\begin{equation} p(x)=\int f(x|\theta)g(\theta)d\theta \end{equation}
usually when $x\in[l,u]$, people choose $f$ to be beta distribution \begin{equation} p(x)=\int_l^u f(x|\alpha,\beta)g(\alpha)h(\beta) d\alpha d\beta \end{equation}
(where $1=\int_{-\infty}^\infty g=\int_{-\infty}^\infty h$ and $h,g\geq 0$)
After that short intro, My question is:
Can we model any continuous function like that ?
In other words:
If $p: [l,u]\longrightarrow[0,1]$ is a continuous function, does that mean that we can find two functions $g,h$ such that \begin{equation} p(x)=\int_l^x f(x|\alpha,\beta)g(\alpha)h(\beta)d\alpha d\beta \end{equation}
First, The representation $p(x)=\int{f(x|\alpha,\beta)g(\alpha)h(\beta)}$ can span the entire $[l,u]$ segement if $g()$ and $h()$ are allowed to be negative.
This can be seen by extending polynomial approximation.
However, if $h,g \geq 0$, the answer is simply no.
$p(x)\equiv 1$ cannot be obtained