Uniform probability dense distribution

Could anyone please demonstrate f(x) = 1/(b-a)?
Because there are a lot of observartions, how can we calculate probability?

It’s a uniform distribution, which means it’s a constant, let’s say c
You need the area under the probability distribution to be 1.
The area will be (length of interval)\times c
Hence c=1/(length of interval)

1 Like