If I can get N unbiased samples $x$ from $p(x)$ how can I approximate the Differential entropy:
$$H(X) = -\displaystyle\int_{x} p(x)\log p(x) dx$$
I'm not very knowledgeable in statistics so I'm not sure whether or not this is possible without making assumptions about the form of $p(x)$.
I forgot to mention that $X$ is a continuous random variable.
EDIT: Changed to Differential entropy thanks to correction from @gunes