I am bit rusty on probability and I was refreshing on uniform probability distribution.
I wanted to calculate $P( 0.5 < x \leq 1.5 )$ given Uniform$(0, 4)$.
I would normally follow the formula, that would give $\frac{ 4 - 0 }{ 1.5 - 0.5 } $
But it doesn't seem right to have probability of $4$.
Should the upper bound be trimmed? How would you approach this problem?
Uniform $(0;4)$ has a rectangular density wiht base 4 and height $\frac{1}{4}$ so the requested probability is
$$(1.5-.5)\times\frac{1}{4}=\frac{1}{4}$$
This is a useful drawing