For an uniform distribution between [a,b], find the first quartile Q1, as P(X>Q1)=0.75.
How do I proof that in this uniform distribution f(x)=1/(b-a), the Q1 is 0.25?
For an uniform distribution between [a,b], find the first quartile Q1, as P(X>Q1)=0.75.
How do I proof that in this uniform distribution f(x)=1/(b-a), the Q1 is 0.25?
On
The second fact is more general. In your case, if $U \sim \text{Unif}(0,1)$, then $X \sim \text{Unif}(a,b)$.
First problem: Let $X \sim \mathsf{Unif}(a, b).$ In the first problem you seek $q_1$ such that $P(X > q_1) = 0.75.$ That is $$P(X > q_1) = \int_{q_1}^b \frac{1}{b-a}\,dx = \frac{1}{b-a}\int_{q_1}^b 1\,dx = \frac{b-q_1}{b-a}.$$ So $\frac{b-q_1}{b-a} - .75$ and $q_1 = .75a + .25b.$
Second problem: Then the second problem starts with $$P(X \le q_1)= \int_a^{q_1} \frac{1}{b-a}\,dx = .25.$$
Solve for $q_1$ in terms of $a$ and $b.$ Do you get the same answer as above?
Numerical computations and graph. Consider the specific case with $a=2, b=6.$ In R a uniform CDF is denoted
punifand a quantile function (inverse CDF) is denotedqunif. Then we have: