0

So, I tried to compute the expected value of continous random variable X using an integral and the typical formula given here:

$\mathbb{E}$(X)=$\int_{-\infty}^{\infty} x*f(x)) dx$

And I plugged a function in there:

$\mathbb{E}$(X)=$\int_{1}^{\infty} x*ln (\frac{\theta}{x^{\theta+1}}) dx$

with domain ranges $\theta=[2,\infty]$ and $x=[0,\infty]$

I got

$[\frac{1}{2}x^2* ln(\theta)-(\theta+1)\frac{1}{4}*x^2*(2*ln(x)-1)]_{1}^{\infty} $

Is it possible to evaluate it even further? It is far too large and not very elegant to look at if I want to compute the variance starting with this, I will have a very messy and convoluted calculation method.

  • Done. Sorry for being downgraded. I hope I get upgraded again due to my edits. – TheAverageAnne Apr 13 '17 at 22:04
  • 2
    Are you sure the information here is correct? $f(x)$ is a probability density function, it can not go negative and its integration should be 1. The $f(x)$ in your problem goes negative for large enough $x$. – Guangliang Apr 13 '17 at 22:37
  • See page 2. http://www.math.ucsd.edu/~jschwein/contdist.pdf for the first formula. – TheAverageAnne Apr 14 '17 at 06:02
  • If you have any question to the exercise of the previous question your a welcome. https://math.stackexchange.com/questions/2230807/function-of-probability-density-function – callculus42 Apr 14 '17 at 14:14

1 Answers1

0

So let's take a look. I think you want the integral to be evaluated from $1$ to $\infty$, in which case the answer is not a function of $x$, it is a function of $\theta$

$$I(\theta)=I=\int_1^\infty x\ln\left(\frac{\theta}{x^{\theta+1}}\right)dx=\int_1^\infty x(\ln(\theta)-(\theta+1)\ln(x))dx=\int_1^\infty \ln(\theta)x-x(\theta+1)\ln(x)dx$$

We split these apart to get:

$$\ln(\theta)\int_1^\infty xdx - (\theta+1)\int_1^\infty x\ln(x)dx=\left[\frac12\ln(\theta)x^2-\frac12x^2(\theta+1)(\ln(x)-\frac12)\right]_1^\infty=\left[\frac12x^2\left(\ln(\theta)-(\theta+1)(\ln(x)-\frac12)\right)\right]_1^\infty=\left(\frac12\cdot\left(\ln(\theta)+\frac12(\theta+1)\right)\right)-\lim_{x\rightarrow\infty}\frac12x^2\left(\ln(\theta)-(\theta+1)(\ln(x)-\frac12)\right)=$$

I could evaluate the limit here, but it should be clear that for all values of $\theta$, the limit diverges. Since we have a finite number from which infinity is being subtracted, this integral diverges.