MHB V: Understanding the Calculation of Variance for a Given CDF

  • Thread starter Thread starter Houdini1
  • Start date Start date
  • Tags Tags
    Cdf Variance
Click For Summary
The discussion revolves around calculating the variance of a random variable X defined by a specific cumulative distribution function (CDF). The key points include the calculation of the expected value E[X] using the integral of x multiplied by the derivative of the CDF, F'(x), for the interval 1 < x < 2. There is a consideration of the discrete nature of the variable at x=1, requiring the addition of 1*P[X=1] to the integral. The variance for regions where x < 0 and x ≥ 2 is stated to be zero, raising questions about their contribution to the overall variance calculation. The final clarification indicates that these regions are adequately represented in the integral, addressing concerns about missing components in the variance calculation.
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:
There is a nice little variation of the problem. The host says, after you have chosen the door, that you can change your guess, but to sweeten the deal, he says you can choose the two other doors, if you wish. This proposition is a no brainer, however before you are quick enough to accept it, the host opens one of the two doors and it is empty. In this version you really want to change your pick, but at the same time ask yourself is the host impartial and does that change anything. The host...

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
Replies
5
Views
5K
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K