Docsity

Unbiased Estimation and Mean Squared Error Explained, Summaries of Accounting

Toggle sidebar
bg1
- Hi, everybody.
So now we're entering the last leg
of our primers and boot camps.
In this lesson we'll be doing
the start of a statistics review.
Here's our overview.
Last time I finally completed that Probability Boot Camp.
I bet that was a lot of fun for everyone.
And this time, I'm gonna be starting
a review of the stats basics.
And specifically I'll be talking
about unbiased estimation and mean squared error,
a couple of concepts that are important.
If you are not yet, or no longer
a stats maven, I would just suggest
going through this leisurely.
If you kind of know all this stuff,
feel free to skip ahead a little bit.
Here's our fundamental definition:
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Unbiased Estimation and Mean Squared Error Explained and more Summaries Accounting in PDF only on Docsity!

  • Hi, everybody. So now we're entering the last leg of our primers and boot camps. In this lesson we'll be doing the start of a statistics review. Here's our overview. Last time I finally completed that Probability Boot Camp. I bet that was a lot of fun for everyone. And this time, I'm gonna be starting a review of the stats basics. And specifically I'll be talking about unbiased estimation and mean squared error, a couple of concepts that are important. If you are not yet, or no longer a stats maven, I would just suggest going through this leisurely. If you kind of know all this stuff, feel free to skip ahead a little bit. Here's our fundamental definition:

a statistic is just a function of the observations X1 through Xn that's not explicitly dependent on any unknown parameters. So these are things that you can actually observe. There's nothing unknown about the Xs. Here's some examples. The sample mean, which is just summation of the Xis over n, and the sample variance. Summation of Xi minus Xbar squared over n minus one. There is nothing unknown that you can't observe there. Statistics are random variables. So if I take two different samples of observations, I'm gonna get two different values of the stat. And a statistic is usually used to estimate some unknown parameter from the underlying probability distribution of the Xs. So for instance, I use the sample mean to estimate the true mean, which I won't normally know. So for instance, if mu is the true mean

for the true variance, sigma squared equals variance of SI which I would not know in practice. Now, it would be nice if this statistic had certain properties. For instance, I would hope that its expected value should equal the thing that we're trying to estimate, so the expected value of Xbar ought to equal mu. That's called unbiasness, it should also have low variance. It doesn't do me any good if T of X is just bouncing around all the time, depending on which sample I take. So, like I said, we say that T of X is unbiased for theta, if the expected value of T of X equals theta, the thing that it is trying to estimate. Here's an example, I'm not gonna go through every step here, because we've actually already done this a bit, but the expected value of Xbar, if the Xs are iid, equals the expected value of the sum over n. I'll pull the 1 over n outside, and the expected value inside.

All these E of Xis are equal to mu, and so when the smoke clears, the darn thing equals mu. The expected value of Xbar equals mu. Therefore, Xbar is unbiased for mu. Va-voom, that's why we call Xbar the sample mean cause it's a good estimator for the mean. Very nice. As a baby example, let's suppose that X1 through Xn are iid exponential lambda. Well, I said in the previous example theorem, the Xis can be iid anything, so that means that Xbar is unbiased for mu, and we happen to know that for the exponential, mu equals 1 over lambda. Now lambda's unknown, but at least Xbar is a good unbiased estimator for 1 over lambda. Little bit of a warning, just because Xbar is unbiased from 1 over lambda, does not mean that 1 over Xbar, the reciprocal, is unbiased for the reciprocal for 1 over lambda, namely lambda.

and because this isn't really a stats class, I will just walk us through this very quickly. All we do here, is I'm gonna find the expected value of this thing, S squared. If it equals sigma squared then I'm done, because I wanna show that it's unbiased. So before I start taking expected values, just believe me when I say this thing, after some algebra, equals this thing. If you just go through and do the algebra, that's what you come up with, so now, I can start doing some algebra using the fact that the expected value of Xi equals the expected value of Xbar, the variance of Xbar equals the expected value of X1 over n, equals sigma squared over n, so keeping these two facts in mind, here we go. The expected value of S squared equals, plug in to the equation on the top. Put the expected values in, this expected value is the same

for every value of i, there are n of them. Pull the n outside. Already, it's starting to look easier. Now, use the fact that the expected value of X squared equals the variance of X plus the expected value of X quantity squared, that's what that is. So it looks a little awful, we're taking one step back to go two steps forward, and now, the variance of X1 is sigma squared, the variance of Xbar is sigma squared over n. The expected value of X1 squared is mu squared. The expected value of Xbar squared is mu squared, get some cancellation. Va-voom, sigma squared, and we are done with the proof. You can go through the details again on your own during the commercials. So, a remark, unfortunately, S is biased for the standard deviation, so even though S squared is unbiased, S is biased, too bad.

Let's at least look at that first estimator. The expected value of Y1 equals 2 times the expected value of Xbar by definition, remember Xbar is always unbiased for the mean, it's always unbiased for the expected value of Xi, so expected value of Xbar equals expected value of Xi for the uniform distribution between zero and theta, that has mean theta over 2, so theta over 2 cancels with that 2 to give me a theta. So we see that Y1 is unbiased for theta, so that's fantastic, Y1 is an unbiased estimator for theta. It's also the case that Y2 is unbiased, but it takes quite a bit more work. What I could do, I'll go through all the steps in the notes and you can follow along on your own. What I would do is as a first step, I'd get the CDF of the maximum of the Xis, that's the first step. Here's what that looks like, that's the probability that M is less than or equal to little y,

that's by definition the CDF. It equals, if the maximum is less than little y, all of the Xis are less than little y. Since they're independent, I can take the product. I can then calculate for each individual probability, the exact answer, the exact value that the probability of X is less than or equal to y. That turns out to be y over theta. All that's raised to the nth power. I then take the derivative to get the probability density function. Here's the derivative. Once I have the probability density function of M, I'm kinda set, I can get the expected value of M. By definition, that's just the integral of Y times F of Y, and that turns out to be n theta over n plus 1. And this is where I get the funny n plus 1 over n term. If I take Y

T of X, is just how far the expected value of the estimator differs from the parameter. So, it's biased if the expected value of the estimator minus the parameter, is not equal to zero. And so the mean squared error is defined as MSE equals the expected value of the squared deviation of the estimator from the parameter, that's what that is. The expected squared deviation after a little bit of algebra, the mean squared error of an estimator is the variance plus the square of the bias, so that's why I was interested in bias and variance in the last example. So lower mean squared is better, even if there's a little bias. Cause I usually compare things based on mean squared error so a little bias is okay if the variance is dominant. And let's make one last definition, the relative efficiency of two estimators,

T2 to T1, is just the ratio of the mean squared errors, so if the mean squared error of T is less than the mean squared error of T2, that's great, then we want T1. In our previous example, X1 through Xn uniform zero theta, remember both estimators, Y1 and Y2, they were both unbiased, va-voom! In addition, the variance of Y1 was sigma squared over 3n and the variance of Y2 was sigma squared over basically n squared, so because they weren't biased, the mean squared error of Y1 is the same as the variance, sigma squared over 3n, and the mean squared error of Y2, is sigma squared over that n squared thing. So, Y2 is better, it's got a lower mean squared error. Well, here's a summary of what we just did. We began our Stats Attack lesson with an intro to point estimation, and we paid special attention to unbiases and mean squared error.