Expectation of a function of a continuous random variable

AI Thread Summary
The expectation of a function of a continuous random variable, E(W) = E[g(X)], can be expressed as an integral involving the probability density function fX(x). If W is a discrete random variable, the integral can still be used, but it is often simpler to replace it with a summation over discrete values. The continuity of g(X) does not affect the validity of the expectation formula. In cases where g(x) is defined over specific intervals, the expectation can be calculated using the probabilities of those intervals. Overall, while integrals can be applied to discrete variables, using summations is generally more straightforward.
kingwinner
Messages
1,266
Reaction score
0
If W=g(X) is a function of continuous random variable X, then E(W)=E[g(X)]=

∫g(x) [fX(x)] dx
-∞
============================
Even though X is continuous, g(X) might not be continuous.

If W happens to be a discrete random variable, does the above still hold? Do we still integrate ∫ (instead of sum ∑)?

Does it matter whether W itself is discrete or continuous?

Thanks!
 
Physics news on Phys.org
If the variable is discrete you can still express in terms of integrals using dirac delta functions though it is simpler to replace the integral with a sum over values.
 
kingwinner said:
If W=g(X) is a function of continuous random variable X, then E(W)=E[g(X)]=

∫g(x) [fX(x)] dx
-∞
============================
Even though X is continuous, g(X) might not be continuous.

If W happens to be a discrete random variable, does the above still hold?
Yes. Consider the simplest case, where g(x) = 1 if x is in [a,b] and 0 otherwise. Then

\begin{align*}<br /> E[W] &amp;= 1\cdot P(W = 1) + 0\cdot P(W = 0)\\<br /> &amp;= P(g(X) = 1)\\<br /> &amp;= P(X\in [a,b])\\<br /> &amp;= \int_a^b f_X(x)\,dx.<br /> \end{align*}

On the other hand, the formula also gives

\int_{-\infty}^\infty g(x)f_X(x)\,dx = \int_a^b f_X(x)\,dx.
 
Go for summations...that will solve ur problem and rest all may complicate
 
I was reading documentation about the soundness and completeness of logic formal systems. Consider the following $$\vdash_S \phi$$ where ##S## is the proof-system making part the formal system and ##\phi## is a wff (well formed formula) of the formal language. Note the blank on left of the turnstile symbol ##\vdash_S##, as far as I can tell it actually represents the empty set. So what does it mean ? I guess it actually means ##\phi## is a theorem of the formal system, i.e. there is a...
Back
Top