V: Understanding the Calculation of Variance for a Given CDF

  • Context: MHB 
  • Thread starter Thread starter Houdini1
  • Start date Start date
  • Tags Tags
    Cdf Variance
Click For Summary
SUMMARY

The discussion centers on calculating the variance of a random variable X defined by a cumulative distribution function (CDF) given as f(x). The CDF is piecewise defined, with specific behavior for intervals: f(x) = 0 for x < 0, f(x) = (x^2 - 2x + 2)/2 for 1 ≤ x < 2, and f(x) = 1 for x ≥ 2. The calculation of the expected value E[X] involves finding the derivative F'(x) and integrating the product x*F'(x) from 1 to 2, while also considering the discrete value at x=1. The variance is determined by the contributions from these intervals, with the regions outside 1 < x < 2 contributing zero variance.

PREREQUISITES
  • Understanding of cumulative distribution functions (CDFs)
  • Knowledge of expected value and variance calculations
  • Familiarity with integration techniques in probability
  • Basic concepts of discrete and continuous random variables
NEXT STEPS
  • Study the properties of cumulative distribution functions (CDFs) in depth
  • Learn about the calculation of expected values for piecewise functions
  • Explore variance calculations for mixed discrete and continuous distributions
  • Investigate the implications of zero variance in probability distributions
USEFUL FOR

Students and professionals in statistics, data science, and mathematics who are looking to deepen their understanding of variance calculations in probability theory, particularly with piecewise-defined random variables.

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:

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
4K
  • · 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