As far as I can tell, the probability density of Uniform is 1/width, making the integral one. Flat returns 0 for the log probability density. If you’re after a proper probability density (for a continuous probability density function), I’d opt for Uniform.
Uniform requires you to specify lower and upper bounds, whereas Flat does not. As mentioned above Uniform is a proper distribution and Flat is improper (its integral is not 1)
Thank you ricardo! Can you provide an example use case for the two?
I understand that a Flat distribution is a special case of the Uniform distribution where the limits of the distribution are infinite. I can think of examples for uniform but when would we something with infinite bounds to solve a real-world problem? Or is it used exclusively for theoretical analysis?