V: Understanding the Calculation of Variance for a Given CDF

  • Context:
  • Thread starter Thread starter Houdini1
  • Start date Start date
  • Tags Tags
    Cdf Variance
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 9K views
Houdini1
Messages
5
Reaction score
0
I already have the full solution to this so I'm not looking for an answer, I am hoping to get an explanation of certain parts that are unclear.

Question:
A random variable X has the following CDF:

[math] f(x) =\left\{ \begin{array}{lr} 0& x<0\\ \frac{x^2-2x+2}{2} & 1 \le x < 2 \\ 1 & x \ge 2 \end{array} \right.[/math]

Calculate the variance of X.

Solution:
When [math]1<x<2[/math] then E[X] can be calculated by first finding F'(x) and taking the integral [math]\int_{1}^{2}x*F'(x)dx[/math]

Since x must take on a particular value I'm guessing that it must be considered discrete at x=1 so to account for this we must add [math]1*P[X=1][/math] to the above integral.

For x < 0 and [math]x \ge 2[/math] the variance seems to be zero but I don't see why that isn't involved somehow in the calculation since x is apparently any value from negative infinity to infinity. The solution says the the above two parts plus finding the second moments of them are enough to find the variance but it seems to me a piece is missing.
 
Physics news on Phys.org
Houdini said:
I already have the full solution to this so I'm not looking for an answer, I am hoping to get an explanation of certain parts that are unclear.

Question:
A random variable X has the following CDF:

[math] f(x) =\left\{ \begin{array}{lr} 0& x<0\\ \frac{x^2-2x+2}{2} & 1 \le x < 2 \\ 1 & x \ge 2 \end{array} \right.[/math]

Calculate the variance of X.

Solution:
When [math]1<x<2[/math] then E[X] can be calculated by first finding F'(x) and taking the integral [math]\int_{1}^{2}x*F'(x)dx[/math]

Since x must take on a particular value I'm guessing that it must be considered discrete at x=1 so to account for this we must add [math]1*P[X=1][/math] to the above integral.

For x < 0 and [math]x \ge 2[/math] the variance seems to be zero but I don't see why that isn't involved somehow in the calculation since x is apparently any value from negative infinity to infinity. The solution says the the above two parts plus finding the second moments of them are enough to find the variance but it seems to me a piece is missing.

\(F'(x)=0\) for \(x<1\) and also for \(x > 2\) so these regions can be considered to already be represented in your integral of \(xF'(x)\)

CB
 
Last edited: