Docsity

Probability Distributions: Bernoulli, Binomial, Geometric, Poisson, Exponential, Gamma, Be, Summaries of Accounting

Toggle sidebar
bg1
- Hello everybody.
In this lesson we'll be going over some
favorite probability distributions.
Here's the lesson overview.
Last time I went through
and defined covariance and correlation,
gave a couple of quick practical examples.
In this lesson I'm gonna talk
about a few of my favorite distributions.
And we'll go through a little list
of these important distributions,
I'll talk about both discrete and continuous distributions.
Here are some discrete distributions.
We'll go through these pretty quickly 'cause we've kind of
mentioned them already some of them.
The easiest distribution, which my cat can do,
is the Bernoulli distribution with parameter p.
It takes two values, x equals 1,
with probability p,
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15

Partial preview of the text

Download Probability Distributions: Bernoulli, Binomial, Geometric, Poisson, Exponential, Gamma, Be and more Summaries Accounting in PDF only on Docsity!

  • Hello everybody. In this lesson we'll be going over some favorite probability distributions. Here's the lesson overview. Last time I went through and defined covariance and correlation, gave a couple of quick practical examples. In this lesson I'm gonna talk about a few of my favorite distributions. And we'll go through a little list of these important distributions, I'll talk about both discrete and continuous distributions. Here are some discrete distributions. We'll go through these pretty quickly 'cause we've kind of mentioned them already some of them. The easiest distribution, which my cat can do, is the Bernoulli distribution with parameter p. It takes two values, x equals 1, with probability p,

and x equals zero, with probability one minus p, or some people would call that q. The expected value of the distribution, I think we already showed this, is p, the variance, is p times q, p times one minus p, and the moment generating function which we sort of did in some bonus slides, was pet q, pe to the t plus q. You can go and calculate them on your own if you've forgotten how, it's not too bad, you just do a plug and chug. The Bernoulli generalizes to the binomial, so let's define that and go over a couple of its properties. If x one through x n are iid Bernoulli, so we've a done of independent Bernoulli p trials, we've conducted the same zero one experiment over n times,

in n Bernoulli trials, and just very quickly, here's how you calculate that. The probability of having y successes in a row, is p to the y, followed by n minus y failures in a row, q to the n minus y, but the probability of having y successes out of n trials, you're not gonna necessarily have y successes in a row, so the number of ways that can scramble up that one particular set of successes and failures, is n choose y. And that's how you get f of y. Using the fact that I can add up a bunch of Bernoullis to get a binomial, well the expected value of the Bernoulli is n times p, I'm just adding up p n times. The variance of iid Bernoullis added up is n times p and I won't go through the calculation,

but the moment generating function just turns out to be pe to the t plus q to the n'th power. Turns out, moment generating functions multiply together if the the random variables are independent, you add 'em up. Don't worry about that for now. The next distribution I'll look at is the Geometric distribution. X is geometric, and that corresponds to the number of Bernoulli trials until I finally get a success. So for example, FFFS, failure, failure, failure, success, means that I had to do Bernoulli trials four times before I got my first success. As we've mentioned before, the pmf is q to the x minus one times p, for x equals one, two, dot, dot, dot, because you need to take at least one trial

how many Bernoulli trials do I have to take until the rth success occurs, like a pirate. rth success. So for instance, if I have this FFFSSFS, that implies that it took me seven trials to get my third success. If you're interested, here's the pmf, and the expected value is r over p, ah look at that, on over p which is the geometric expected value, times r, the variance is r times q over p squared, which was the answer for the geometric, so it kinda makes sense. The next example is very useful, Poisson. Before I talk about the Poisson I'm gonna define something called a counting process, and then we'll get to the Poisson distribution in a minute. A counting process, N of t,

just keeps track of the number of arrivals that we observed during the interval zero to t, it's a time interval. So if seven people showed up by time three, then N of three equals seven. There's lots of different types of counting processes, I mean you could have the number of people showing up at a restaurant, turns out that's not quite Poisson. Number of people showing at the restaurant as the day proceeds, it stays the same for a while, then it increases every time somebody shows up, people could show up in groups, so sometimes it jumps, maybe you start out at three customers, and then a party of six shows up so it jumps to nine, well here's what a Poisson process has to satisfy. It's a counting process such that I'm gonna do this in English, not in math,

the numbers of arrivals in those two intervals have nothing to do with each other, they're independent. Whoever shows up between 12 and two, has nothing to do with the number of people who show up later on in the day. And finally, we have something called stationary increments. So the distribution of the number of arrivals only depends on the length of the time period, doesn't really depend on where it starts, just depends on the length of the time period. So whereas intervals have to be disjoint to be independent, that's assumption number two, assumption number three only has to do with the length of the time interval, so stationary increments deals with that. Here's the definition of the Poisson distribution.

X is said to be Poisson lambda, if the number of arrivals comes from a Poisson process in one time unit. So the Poisson distribution is just N of one. If N of t is a Poisson process with rate lambda. You may recall from previous lessons that the pmf f of x equals equals e to the minus lambda, lambda to the x, over x factorial, x is zero, one, two, dot, dot, dot, The expected value in variance are both lambda, and there's the mgf which I'm not even gonna worry about. Some continuous distributions now. Here's the Uniform distribution, f of x equals one over b minus a for x between a and b, here's the Exponential distribution, f of x equals lambda e to the minus lambda x, we've already seen the expected value in variance and the moment generating function so many times

the probability that it survives t more is just the unconditional probability that it woulda survived t to begin with. Here's an example. If X is exponential one over 100, that means lambda equal one over 100, then the probability that X is greater than 200, given that X is greater than 50, by the memoryless property, it's the probability that X is greater than 150, and that equals e to the minus lambda t, 'cause remember we have the cdf as one minus e to the minus lambda t, this is the compliment of the cdf, so e to the minus lambda t, do a plug and chug with lambda equals one over 100, and t equals 150, and there's your answer,

I won't even bother calculating that. Here's the Gamma distribution. Take a look at this mess. What an awful thing. But that's what it looks like, this gamma of a, is the gamma function, which you might've learned in calculus class, the expected value turns out after a lot of algebra, is alpha over lambda, the variance is alpha over lambda squared, Mx of t, the mgf, equals this slight mess, and you may notice that if you take alpha equals one, the exponential is a special case, so if alpha equals one, then the exponential distribution is a special case. That's just very clear, and another special case arises from what's called the Erlang distribution, let's talk about that.

x is distributed triangular, if it has this pdf, which if you plot it out looks like a triangle, and the expected value's just a plus b plus c over three. X has the Beta distribution, if it's got this awful looking pdf, really not so bad, this mess right here is a bunch of gamma functions, and those taken together believe it or not are a generalization of a binomial coefficient, and I've courteously written down the expected value and variance for ya. And now let's talk about the most important distribution in the universe, the Normal distribution. F of x is this beautiful bell shaped distribution that you've seen a million times, and the mean of this thing is mu, right there, no mus is good news, the variance is sigma squared,

and the moment generating function after a little bit of algebra, calculus, is e to the mu t, plus a half sigma squared t squared. Just take my word for that. Here's a theorem, if X is normal, then a linear function of x, also normal. aX plus b has mean a mu plus b, aX plus b, has variance a squared plus sigma squared. Very nice result. In particular, if X is normal, then if I take a equal to one over lambda, or one over sigma, and mu equal to negative mu over sigma, I get this special case, Z distributed normal zero, one, so if I subtract off the mean, and I divide by the standard deviation sigma, I get a standard, normal, normal zero, one distribution,

So here's a quick example, suppose that X is normal three, four, Y is normal four, six, and X and Y are independent, then let's look at the distribution of two x minus three y plus one. Well if X is normal with mean three, then two x is normal with mean six, let's remember that. Mean six. If Y is normal with mean four, then minus three y is normal with mean negative 12. So we've got a six here, and a minus 12 here, and a plus one here, so when you add 'em all up, six minus 12 plus one, that gives me a mean of minus five. And that's where that comes from. The variance takes a little more work, but you can

easily calculate a variance of 70, it's a good exercise and I'll probably give one of those for homework. A corollary of a previous theorem is that if the Xis are iid normal mu, sigma squared, then the sample mean, remember the sample mean you just add up the Xis and divide by n, the sample mean has the same mean mu and the variance is sigma squared over n, that's a corollary of a previous theorem. So the sample mean has the same mean as the regular observations X one through Xn, but the variance of the sample mean is sigma squared over n. What that means is as you get more information, the sample mean becomes less variable, becomes a better estimator of mu. So this is a special case of what's called the Law of Large Numbers,