# Thread:

1. ## [SOLVED] mean and variance

Let X1,X2,X3,X4 be four iid random variables having the same pdf f(x)=2x, 0<x<1, zero elsewhere. Find the mean and variance of the sum Y of these four random variables. ??

2. Originally Posted by ninano1205
Let X1,X2,X3,X4 be four iid random variables having the same pdf f(x)=2x, 0<x<1, zero elsewhere. Find the mean and variance of the sum Y of these four random variables. ??
I think you mean to say that $Y=X_1+X_2+X_3+X_4$?

Thus, $E\left[Y\right]=E\left[X_1+X_2+X_3+X_4\right]=E\left[X_1\right]+E\left[X_2\right]+E\left[X_3\right]+E\left[X_4\right]$

Since they all have the same pdf, we can say that $E\left[Y\right]=4\int_0^1 \left[x\cdot\left(2x\right)\right]\,dx=8\int_0^1 x^2\,dx$. Can you take it from here?

For variances, $\text{Var}\left[Y\right]=\text{Var}\left[X_1+X_2+X_3+X_4\right]=\text{Var}\left[X_1\right]+\text{Var}\left[X_2\right]+\text{Var}\left[X_3\right]+\text{Var}\left[X_4\right]$

Since they all have the same pdf, we can say that $\text{Var}\left[Y\right]=4\int_0^1\left[x^2\cdot\left(2x\right)\right]\,dx=8\int_0^1 x^3\,dx$

Can you take it from here? Does this make sense?

3. ## Variance?

I got the mean = 8/3 which is right but the variance doesnt seem to be right. Following ur way the var comes out to be 2 but the answer should be 2/9. What's wrong with it?

4. Originally Posted by ninano1205
I got the mean = 8/3 which is right but the variance doesnt seem to be right. Following ur way the var comes out to be 2 but the answer should be 2/9. What's wrong with it?
Woops...I forgot something...

$Var\left[x\right]=E\left[x^2\right]-{\color{red}\left(E\left[x\right]\right)^2}$

So you would need to evaluate $4\left[\int_0^1 2x^3\,dx-\left(\int_0^1 2x^2\,dx\right)^2\right]$ to get the variance (I multiplied the value by 4 because each r.v. has the same variance). It should be $\frac{2}{9}$

Does this make sense?

5. That's right.
You found the second moment and not the variance.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 8, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "github"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "english_confidence": 0.9207192659378052, "perplexity_flag": "middle"}