Docsity

Understanding Confidence Intervals: A Comprehensive Lecture, Summaries of Accounting

Toggle sidebar
bg1
- Hello, everybody.
Well, we've finally come down to the last lesson
in the various boot camps.
In this lesson, I'll be talking about confidence intervals,
which is one of my favorite topics.
So what we did last time is
I reviewed maximum likelihood estimators,
and these were just point estimators,
wussy old point estimators,
for some unknown parameter theta.
This time I'm gonna do a lot better.
Not only am I gonna give you a point estimator,
I'm gonna enhance that by giving
confidence intervals for theta.
And we'll be using confidence intervals, CIs,
throughout the course,
especially when we do output analysis,
which is gonna encompass a major module later on.
Before I can actually show you confidence intervals,
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Understanding Confidence Intervals: A Comprehensive Lecture and more Summaries Accounting in PDF only on Docsity!

  • Hello, everybody. Well, we've finally come down to the last lesson in the various boot camps. In this lesson, I'll be talking about confidence intervals, which is one of my favorite topics. So what we did last time is I reviewed maximum likelihood estimators, and these were just point estimators, wussy old point estimators, for some unknown parameter theta. This time I'm gonna do a lot better. Not only am I gonna give you a point estimator, I'm gonna enhance that by giving confidence intervals for theta. And we'll be using confidence intervals, CIs, throughout the course, especially when we do output analysis, which is gonna encompass a major module later on. Before I can actually show you confidence intervals,

let's go through a couple definitions of distributions that we'll be needing later on when we do the confidence intervals. And you probably have some recollection of these things. So I'll go through the definitions fairly succinctly. I'm not gonna go over lots of properties of these things. So first of all, suppose in the standard normal notation that I've used earlier, suppose that X1 through... Z1, not Xs, Z1 through Zk, are iid normal 0,1 random variables, iid normal 0,1. Well, let's square them and add them up. Just take my word for this. Take the Zis, square them, add them up. So let's let Y equal the sum of the squares. Well, that thing is said to have a chi square distribution with k degrees of freedom.

The notation for this is T is distributed little t with k degrees of freedom. You may be recognizing these things. Chi squared, student t. These are arising in statistical distributions. It turns out that t with one degree of freedom is what's called this Cauchy distribution, which causes a lot of issues later on. But I just wanted to define that. Finally, if Y1 is chi squared with m degrees of freedom, and Y2 is chi squared with n degrees of freedom, and if Y1 and Y2 are both independent of each other, then the ratio Y1 over Y2, with these additional m and n terms. So Y1 over m divided by Y2 over n. Well, that thing has the F distribution, F as in Frank distribution, with m and n, mommy and Nancy, degrees of freedom, respectively.

The notation for this is F is distributed F(m,n). So these distributions, chi squared, Student t, and F, all arise in confidence intervals, and also in hypothesis testing. So why would we use these? Because they can be used to constrict confidence intervals for u, mu, and sigma squared under lots of different assumptions. What is a confidence interval? Well, a 100 times one minus alpha percent two-sided confidence interval for that parameter theta, which we don't know, it's a random interval. Let's call the interval L and U, lower bound, upper bound, such that the probability that that unknown parameter is in the interval, that probability equals one minus alpha. So you would say, well,

So if alpha is .05, then a 95% confidence interval for mu is of the form mu is between X bar minus this thing, X bar plus this thing. This thing is the half-length, it's called, and the half-length is almost always of the form some constant, z, which we'll define in a minute, times the square root of sigma squared over n. Sigma squared over n is the variance of X bar, you might remember. Now, in real life, we probably wouldn't know sigma squared, but for this example, I'm assuming sigma squared is known. So this is a perfectly reasonable confidence interval. The z thing is a normal quantile, which I can look up. Normal quantile is defined over here. But this is usually something like 1.96,

one of our old friends, 1.96, that we look up. Okay, so X bar plus or minus z times the square root of sigma squared over n. That is my confidence interval for mu. Very, very easy. Here's another confidence interval for mu, but this time it's assuming that sigma squared is unknown. I'll give a numerical example for this a little bit later on. The confidence interval now looks exactly like the interval before, except instead of sigma squared, I'm estimating sigma squared by S squared, and instead of z, I'm estimating by a t distribution quantile. Just like before, except I don't know sigma squared. So the price I pay is that I have to estimate

These are in the back of the book, or you can get them in Excel, you can get them from Minitab. But these are things that you look up. Okay, so that's the confidence interval for sigma squared, which is widely used. So here's an example. I'm gonna give 20 observations. These are residual flame times in seconds of treated specimens of children's nightwear. In other words, how long does it take for these things to burst into flames? And it turns out when we took the data, children were not actually in the nightwear when the clothing was set on fire, so don't worry about that. No children were harmed. Here's the data. These are just 20 numbers.

These were all independent observations, and I wanna get a 95% confidence interval for the mean of these guys. There's some underlying mean. We don't know what it is. Let's get a confidence interval. Here I'll just cut to the chase. After performing the algebra, it turns out that the sample mean is 9. and the sample, this is the sample standard deviation is .0954. I didn't wanna give you the sample variance, because that would've had too many zeroes in it. I now plug and chug into either Excel or Minitab to get this t inverse, the quantile. Turns out to be t alpha over two n minus one. Let's take alpha equals 5% and n is 20, so n minus one is 19. I look that up, 2.093.

And the nice thing is we are finally done with Module 2. We did these calculus, probability, and statistics boot camps, and I snuck in some simulation here and there, so that'll speed things up a little bit later on. In Module 3, we're gonna devote that entirely to simulation, both hand and spreadsheet simulations. And this'll be kind of fun. You'll get to do a little programming, as well. So looking forward to that, and we will see you soon for Module 3.