# Thread: 3rd continous random variable question

1. ## 3rd continous random variable question

Consider the continuous random variable X with probability density function as:

Find
a) the value of C
b) the moment generating function of X
c) the second moment about origin of X

I could do parts b and c, but I don't know how to find C unless it is in the f(x) function.

2. Think of question A this way: what is the value of C that solves the equation $\int _0 ^C 2(1-x) \, dx = 1$?

3. Nevermind, I screwed up a negative. I got C=1. Thank you for your explanation!

4. We have:

$\int _0 ^C 2(1-x) \, dx = 1$

$\int _0 ^C 2 - 2x \, dx = 1$

$2x - x^2 | _0 ^C = 1$

$(2C - C^2) - (2(0) - 0^2) = 1$

$2C - C^2 = 1$

$C^2 - 2C + 1 = 0$

$(C - 1)(C - 1) = 0$

$C = 1$

Good job on getting that before I did.

5. Thanks. I had screwed up a negative in my original calculations. I got it. You made it very easy.

6. Okay, so for the moment generating function, I found the integral to be

Since the denominator is t squared, and we're evaluating from 0 to 1, does this mean that the mgf doesn't exist?

7. Originally Posted by ban26ana
Okay, so for the moment generating function, I found the integral to be

Since the denominator is t squared, and we're evaluating from 0 to 1, does this mean that the mgf doesn't exist?
$m(t) = E\left( e^{tX} \right) = \int_{-\infty}^{+\infty} e^{xt} f(x) \, dx = 2 \int_{0}^{1} e^{xt} (1 - x) \, dx = \frac{2(e^t - t - 1)}{t^2}$.

Confirm that $E(X) = \frac{dm}{dt}$ evaluated at t = 0.