U have come to the conclusion that it is really easier to do the integrals of the complete pdf, rather than combining two separate portions of it. Let me recap.
f(x)=⎩⎪⎨⎪⎧1/8x/80if 0≤x<2if 2≤x<4otherwise⎭⎪⎬⎪⎫
The general moment (about 0) is
νn=∫xn f(x) dx=81∫02xn dx+81∫24xn+1 dx
......=8(n+1)2n+1+8(n+2)4n+2−2n+2
ν0=41+43=1
ν1=41+37=1231
ν2=31+215=647
Whereas the
moments for the two pieces of
f(x) DO add, the partial Variances do NOT. If you have computed two separate Variances, you may have to undo that calculation to get back to the second moments before you can combine them. At the very least you will have to add another term to the sum, giving the Variance for the separation of the two partial means. Consider
μ=ν1/ν0.
1/4 of the statistical weight is centered at
x=(1/4)/(1/4)=1, and
the remaining 3/4 is centered at
x=(7/3)/(3/4)=28/9.
The overall mean is
μ=(31/12)/(1)=31/12.
The second moment (with respect to the mean is
....\(\displaystyle \displaystyle \nu_2(1,2) = \frac{1}{4} \left( \frac{31}{12} - 1 \right)^2 + \frac{3}{4} \left( \frac{28}{9} - \frac{31}{12} \right)^2
= \frac{1}{4} \left( \frac{19}{12}\right)^2 + \frac{3}{4} \left( \frac{19}{36}\right)^2
= \frac{1}{3}\left( \frac{19}{12}\right)^2 \)
Thus I can picture three components of Variuance.
V1=34−12=1/3
V2=10−(928)2=26/81
V3=31(1219)2−02
Trying
V=41V1+43V2+V3
.............=121+5413+432361=43236+104+361=144167
SURPRISE! That is the correct answer. Piece of cake.