# Segment 8 Sanmit Narvekar

## Segment 8

#### To Calculate

1. In Segment 6 (slide 8) we used the improper prior . Show that this is just a limiting case of a (completely proper) Lognormal prior.

2. Prove that has a single mode at when .

The mode of the function is the value of x at the peak. So we simply take the derivative of the pdf of a gamma distribution, set it equal to 0, and solve for x.

Thus, one solution is at:

And solving for x gives:

3. Show that the limiting case of the Student distribution as is the Normal distribution.

We start by taking the limit:

Split the limits over the 2 terms:

For ease of exposition, we evaluate the two limits separately.

The second limit is done as follows:

Take the , where X is the quantity we are evaluating. Note that this doesn't change the original function (it also sets us up nicely for turning it into a Gaussian).

Using properties of logarithms:

Notice that if we evaluate the limit in this form, we have an indeterminate form in the exponential: . One way to deal with this is to use L'Hospital's rule. First we have to get it into the right form, which is easily done by moving the first term into the denominator:

Now we apply L'Hospital's rule by taking the derivative of the numerator and the denominator:

What's convenient is that we have also gotten rid of the ln! Now we bring the denominator back up (I'm going to start skipping a few steps, but hopefully you get the idea -- too much writing!).

And now we take the limit, which will cancel out the terms in the first and last parenthesis, giving us the desired partial result. (For the last parenthesis, divide the top and bottom by nu^2, and it's easy to see that it becomes 1).

For the first limit, I used wolfram alpha (didn't know what to do with the gamma function... might look into it later):

And putting the two together gives the final answer, a normal distribution:

#### To Think About

1. Suppose you have an algorithm that can compute a CDF, . How would you design an algorithm to compute its inverse (see slide 9) ?

One way is a binary search style method: evaluate the cdf of p(x) at some value. If we need a value that is higher, evaluate another point to the right. Otherwise, use a point on the left. At some point, you will have upper and lower bounds, and these can be used to pinpoint the value using regular binary search. This works because the cumulative distribution function is monotonically increasing.

2. The lifetime t of a radioactive nucleus (say Uranium 238) is distributed as the Exponential distribution. Do you know why? (Hint: What is the distribution of an Exponential random variable *conditioned on* its being greater than some given value?)

#### Class Activity