Expected value of the log of a uniform distribution

Gekko
Messages
69
Reaction score
0

Homework Statement



How to calculate the expected value of the log of a uniform distribution?

Homework Equations



E[X] where X=ln(U(0,1))

The Attempt at a Solution



integral from 0 to 1 of a.ln(a) da where a = U(0,1)
= -1/4

However I know the answer is -1
 
Physics news on Phys.org
Why do you integrate over a \cdot ln(a)?
 
Yes, that's not right I see.

I used this approach instead. To find the first moment of a uniform distribution it is:

1/(b-a) * integral from a to b of x

In this case it is

1/(b-a) * integral from a to b of ln(x)

Is this ok?

This approach calculates the correct value for expected value and variance
 
Last edited:
Yup, that's the correct method.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top