I need help in finding the variance of a joint probability function. The probability density function in this case is $f(x)$ which is created by $$\frac{125x^2}{18},\; 0\le x\le 0.6,\;\frac{9}{10x^2},\; (0.6\le x\le 0.9), \text{ and } 0 \text{ elsewhere}.$$ I know how to find the variance for a single probability function, however not when they consist of two functions.
Help will be appreciated. Thanks.
You are given a piecewise probability density function: $$f_X(x)=\begin{cases} 125 x^2/18 &:& ~~~0\leq x\lt 0.6\\ 9/(10x^2)&:& 0.6\leq x\leq 0.9\\0&:&\textrm{elsewhere}\end{cases}$$
To find an expected value, you simply integrate over the partitions using the relevant function and add: $$\mathsf E(g(X)) = \int_0^{0.6} 125x^2~g(x)/18~\mathsf dx + \int_{0.6}^{0.9} 9~g(x)/(10x^2)~\mathsf d x$$
Now evaluate: $\mathsf{Var}(X)=\mathsf E(X^2)-\mathsf E(X)^2$