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.
 
Thread 'Use greedy vertex coloring algorithm to prove the upper bound of χ'
Hi! I am struggling with the exercise I mentioned under "Homework statement". The exercise is about a specific "greedy vertex coloring algorithm". One definition (which matches what my book uses) can be found here: https://people.cs.uchicago.edu/~laci/HANDOUTS/greedycoloring.pdf Here is also a screenshot of the relevant parts of the linked PDF, i.e. the def. of the algorithm: Sadly I don't have much to show as far as a solution attempt goes, as I am stuck on how to proceed. I thought...
Back
Top