CDP of a function of a continuous RV

IniquiTrance
Messages
185
Reaction score
0
REVISED: Expectation of a function of a continuous RV

Given:

f_{X}(x)=1

0 \leq x \leq 1

and 0 everywhere else.

We are asked to find E[eX]

The way my book does it is as follows:
page 191 in A First Course in Probability 8th ed by Sheldon Ross said:
Y = e^{X}

F_{Y}(x) = P(X\leq Ln (x)) = \int_{0}^{ln x} f_{Y}(y) dy = ln (x)

f_{Y}(x) = \frac{d}{dx} \left[ln (x)\right]=\frac{1}{x}

1 \leq x \leq e

E[e^{X}] = \int_{-\infty}^{\infty} x f_{Y}(x) dx = \int_{1}^{e} dx = e - 1

I understand how to do it as follows. I don't understand the author's way of doing it.

Y = e^{X}

0 \leq x \leq 1

1 \leq y \leq e

F_{Y}(y) = P(X\leq Ln (y)) = \int_{0}^{ln y} f_{X}(x) dx = \int_{0}^{ln y} dx = ln (y)

f_{Y}(y) = \frac{d}{dy} \left[ln (y)\right]=\frac{1}{y}

E[e^{X}] = \int_{-\infty}^{\infty} y f_{Y}(y) dy = \int_{1}^{e} dy = e - 1

Can someone please explain to me why the author does it his way instead of mine?

I know I can make life easier by just taking:

\int_{-\infty}^{\infty}g(x)f(x) dx

but I want to understand what's going on here.

Any help is much appreciated!
 
Last edited:
Physics news on Phys.org
Any ideas? Sorry to bump, just redid the whole post, so it's essentially a new question :).
 
A general rule if you're given f_{X}(x) to calculate E[g(X)] is:


<br /> E[g(X)] = \int{g(x) \, f_{X}(x) \, dx}<br />
 
Dickfore said:
A general rule if you're given f_{X}(x) to calculate E[g(X)] is:


<br /> E[g(X)] = \int{g(x) \, f_{X}(x) \, dx}<br />

Yeah, I noted that I'm aware of that at the bottom of my post. :smile:

I just want to understand why the book does it this way.
 
IniquiTrance said:
Yeah, I noted that I'm aware of that at the bottom of my post. :smile:

I just want to understand why the book does it this way.

I think the book did it the same way as you, but used a different dummy variable in the last integral.
 
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...
Back
Top