- #1
tmonk
- 3
- 0
I am attempting to derive the formula for the variance of a continuous uniform distribution where [tex]f(x) = \left\{ \begin{array}{ll}
\frac{1}{b-a} & \mbox{$a \leq $x$ \leq b$};\\
0 & \mbox{otherwise}.\end{array} \right.[/tex]
I was successful, but only after using Wolfram Alpha to factorise the cubic.
By using [tex]Var[x] = \int_a^b \! x^{2}f(x)\, \mathrm{d}x - \mu^{2}[/tex]
I got this:[tex]\frac{b^{3} - a^{3} + 3a^{2}b - 3ab^{2}}{12(b-a)}[/tex]
The numerator just factorises to give (b-a)3, which gives the correct formula of [tex]\frac {(b-a)^{2}}{12}[/tex]
I tried using algebraic division to divide by the common factor of b-a, but I don't think I did it right. Is there an easy way to factorise the cubic?
\frac{1}{b-a} & \mbox{$a \leq $x$ \leq b$};\\
0 & \mbox{otherwise}.\end{array} \right.[/tex]
I was successful, but only after using Wolfram Alpha to factorise the cubic.
By using [tex]Var[x] = \int_a^b \! x^{2}f(x)\, \mathrm{d}x - \mu^{2}[/tex]
I got this:[tex]\frac{b^{3} - a^{3} + 3a^{2}b - 3ab^{2}}{12(b-a)}[/tex]
The numerator just factorises to give (b-a)3, which gives the correct formula of [tex]\frac {(b-a)^{2}}{12}[/tex]
I tried using algebraic division to divide by the common factor of b-a, but I don't think I did it right. Is there an easy way to factorise the cubic?