I just have a simple question on scaling a uniform distribution. I know that uniform distribution has probability density of $1/(b-a)$ defined on the interval a to b.
My textbook says that we can scale the distribution to be between (0,1) and have a constant density of 1 by doing the following:
Suppose X is a random variable. Then $U=(X-a)/(b-a)$ so $X=a+(b-a)U$. Thus the expected value E(X) = E($a + (b -a)U$) which equals $(a+b)/2$.
I don't understand why we subtract a from X and then divide by b - a. The intuition just doesn't make sense to me.
-How does this make it so that the distribution is defined from 0 to 1 with density 1 instead of the original definition on (a,b) with density $1/(b-a)$?
-Also, what is the mathematically correct way to derive E(U)?