Probability and Statistics Practice
Transcript
hi everybody in this video i'm going to go through a bunch of exam one practice problems and solutions for probability and statistics this course happens to be calculus based but many of these problems do not require calculus so you can still get benefit out of it even if you don't know calculus the problem types run the gamut from as you can see here basic laws of probability problems we'll use a venn diagram to help us solve this one combinatorial probability where we need to use combinations and perhaps permutations we also get into for example laws of probability like the independence rule bayes's theorem we get into discrete and a little bit with continuous random variables particularly random variables like binomial poisson and exponential so let's go ahead and get started you can see in problem one we are supposing that we've got some information here
the probability of a union b meaning a or b is 0.6 the probability of the complement of a is 0.6 and the probability of a intersect the complement of b is 0.3 our goal is to find the probability of a intersect b showing our work circling our final answer now it's tempting to look at a problem like this and say okay what formulas do i need to use however in this kind of situation it really is best to probably try a venn diagram first and i think that's really the way to go here so
draw a box this box this rectangle represents the sample space and it doesn't look like a very good rectangle there draw a couple of circles that are overlapping representing the events a and b okay and see if you can fill in numbers in these four spots here here here here and here representing the probabilities of each of these sectors individually the probability associated with this part this crescent moon shape would be for a intersect the complement of b that's outside of b over here this crescent moon shape it would be b intersect the complement of a this part in here would be a intersect b which is what we're after over here and out here would be the complement of a union b start filling in numbers if you can i'm going to search and see if i can fill in one of the numbers that would go with the one of these four spots right away and in fact i see this one
the probability of a intersect the complement of b is 0.3 that's a number that can go right here right away and that's good these two numbers cannot be filled in right away but maybe with a little bit of algebra and perhaps some guesswork i can quickly figure them out and i can also hopefully figure out what the answer to the question the probability of a intersect b which i'm going to represent with the letter x call this x call this y call this z and then write down some equations that you know have to be true based on the laws of probability for example the sum of all the probabilities has to equal one so .3 plus x plus y plus z equals one and therefore you can quickly say that x plus y plus z is one minus point three which is 0.7 you also know that the probability of a union b is 0.6 therefore 0.3 plus x plus y
equals 0.6 and therefore x plus y equals 0.6 minus 0.3 x plus y is 0.3 uh we haven't used this bit of information yet the probability of the complement of a is 0.6 that's everything outside of a y plus z will be two probabilities that will add to the probability of the complement of a is 0.6 okay what's our goal again is to find this that is represented by the letter x i can pretty quickly solve it looks like for example i can take this equation and this equation
replace the y plus z in this equation with 0.6 so i get x plus 0.6 equals 0.7 therefore x equals 0.1 0.7 minus 0.6 and that is the probability that i'm after that is the probability of a intersect b you may want to just double check your work by perhaps finding the values of y and z if you can as well for example this equation just see if everything is consistent this equation would imply
based on this one as well that y is 0.3 minus 0.1 is 0.2 and then i could combine this equation in that one to say that z is .4 is everything consistent do all the probabilities add to one point one plus point two plus point four is point seven plus the point three right there is indeed one it does look like everything is consistent but the answer to the question is the value of x the probability of a intersect b is 0.1 okay and i didn't really use the laws in their more abstract form i'm thinking about trying to solve this as quickly as i can based on a diagram and the diagram really helps you understand it pretty quickly
all right on to this problem number two a contractor has nine suppliers from which to purchase tools she will select four of these at random and ask each supplier to submit a project bid okay so it's this woman doing the collecting of these different suppliers that want to oh she wants to purchase tools from them part a in how many ways so this is a combination and or permutation problem can the selection of bitters be made and if your firm is one of the nine suppliers saying you your firm what is the probability so we have to calculate a probability as well that you will get the opportunity to bid on the project okay so i always find these problems a little bit tricky you need to really think carefully here first of all let's look at part a and how many ways can the selection of bitters be made not thinking about giving favoritism for example we're not thinking about probability at the moment
we're just trying to enumerate the possibilities we have nine suppliers to choose from and we're selecting four of them evidently based on the way this is phrased the order that we choose them in doesn't matter therefore this is not a permutation problem this is a combination problem the answer to part a is 9 choose 4. in alternative notation you can write can write it like this 9 choose four that is not nine divided by four it's nine choose four the formula for combinations would say this is the number of suppliers in this case factorial divided by the number of that you're selecting 4 4 factorial times 9 minus 4 factorial which of course is 5 factorial you can use your calculator and in fact i let my students use the calculator here if they want although i might ask them to show all the details and it is kind of fun actually
to show all the details for example 9 factorial is 9 times 8 times 7 times 6 times 5 factorial that can cancel with the 5 factorial there what is 4 factorial it's 4 times 3 times 2 times 1. these are going to divide out leaving me with 9 times 8 times 7 times 6 all divided by 4 times 3 times 2 times 1 have a little fun with it go ahead and do some more cancellation the 4 cancels with the 8 to leave it 2. that 2 cancels with this 2 to leave a 1. this 3 cancels with either the 6 or 9. let's cancel with the 9 to leave a 3. so it looks like we're left with 3 times 7 times 6 21 times 6
and that will be what 126 is the value of 9 choose 4. let's just double check it with a calculator and if i didn't ask my students to actually show that work they could just use their calculator straight away on a ti 84 if i type 9 then go to the math mode and go over to probability which i could have gone backwards with and go down to ncr i press that and then go 4 and yes 126 is the value of 9 choose 4 and that would be the answer to part a on to part b what is the probability that your firm gets the opportunity to bid on the project okay now this might seem like it's pretty tricky pretty hard and i think if you think about it systematically it is it turns out the answer is pretty simple but let's see if we can be systematic and let's in fact do it in two ways okay first of all let's go ahead and do it directly how do you figure out the
probability that you will get the opportunity your company you are a supplier to bid on the project what you want to do again this is the total number of ways of choosing four suppliers out of this of these nine you want to think about how many ways there are choosing eight uh choosing three out of eight because you're pretending you are one of the ones that has already been we can figure out 8 choose 3 then the ratio of 8 choose 3 divided by 9 choose 4 should be the answer you got that again you're pretending that you have been chosen you're trying to think about how many groups of four out of nine are there where you are one of the ones chosen so pretend you've been chosen then there are eight suppliers left to choose from and you're going to choose three of them because one you have already been selected eight choose 3 in terms of factorials that's going to be 8 factorial divided
by 3 factorial times 5 factorial that'll be 8 times 7 times 6 times 5 factorial all divided by 3 times 2 times 1 times 5 factorial the 5 factorials will cancel 3 times 2 times 1 is 6 that cancels with this 6. looks like we're left with 56 for the answer of the number of groups of 4 of which you are one of them and therefore the probability that you will get the opportunity to bid looks like it's the ratio assuming these are equally likely 56 divided by 126
that's the same as 28 divided by 63. both of those are divisible by 7 that's the same as 4 9. and look at that 4 9 that's the same as the number selected divided by the number of suppliers however i really think you should go ahead and go through a derivation like this to really confirm that it is that simple in the end it's not necessarily obvious that it was going to turn out that simple let's do one more this problem in one more way that would be instructive as well let's first find the probability that you will not get the opportunity to bid and then we'll take which will evidently be five nines because to get the final answer we'll take one minus that
so what's the probability that you will not get the opportunity to bid think of it as a stepwise manner we're going to use conditional probability here and that's why i wanted to do it as well what is the first of all what's the probability not getting to bed means you're not the first supplier chosen and you're not the second and you're not the third and you're not the fourth connecting with the word and there we can multiply the probabilities but they're conditional probabilities these are not independent when there's nine suppliers to begin with and you're choosing the first one you have an eight out of nine chance of not being chosen the conditional probability that you are not chosen in the second step of choosing the second one is seven out of eight the conditional probability of not being chosen the third choice is 6 out of 7
and the conditional probability of not being chosen for the fourth supplier is 5 out of 6. and lo and behold a bunch of stuff cancels here you're left with 5 9 and then the answer that we're after is 1 minus 5 9 which is 4 9. okay so it's nice to see this work out in a couple different ways it's not i think it's again not completely obvious that the answer would have been 4 9 to begin with it does work out nicely in this particular kind of problem but be careful in general sometimes these problems don't work out so nicely all right we're on to the next problem which is also combinatorial feel like you can never get quite enough practice with these combinatorial problems
we've got six soccer players and five football players okay i am in the united states of america and to us soccer is what everybody else calls football and football is american football um and we have 11 people um that are six soccer players and five football players that are on the bus okay but we're going to take some people off the bus we're going to choose a group consisting of three soccer players and two football players chosen from this group show the details of your work to figure out how many ways that can be done okay so we are choosing without respect to order so this is a combination problem again but it's also a problem where you want to think of this in two steps because you got these two different groups of people soccer players and football players and you're choosing from both
groups you want to sort of imagine maybe choosing the soccer players first and then choosing the football players that would be a fine way to do it to help ultimately use also the the fundamental counting rule to multiply the combinations to get the total number of possibilities here's what i mean okay that was a mouthful first choose the soccer players there are six choose three ways to do that then choose the football players there are five choose two ways to do that all together you would multiply those two numbers to get the final answer for the first question here for part a okay these are quick enough to do by hand maybe even in just in your head um the 6 factorial here will cancel we'll have a 6 times 5 times 4 times 3 factorial and that will cancel with one of those and 3 factorial down there is 6 which cancels with that 6. this is a 20 here
and then with 5 factorial that's 5 times 4 times 3 factorial cancel the 3 factorials you have 20 divided by 2 factorial which is 20 divided by 2 which is 10. 20 times 10 is 200 the answer to part a is 200 that's the ways you can get groups of three soccer players out of six and two football players out of five part b find a probability that a group of five players selected at random from these 11 people on the bus will consist of exactly three soccer players and two football
players okay so you think about it here this was our number of ways of choosing um six three soccer players out of six and two soccer two football players out of five if we're going to use that to figure out the probability of getting that that exact kind of group of five people we are also going to need to know the total ways of getting five people out of a group of 11. does that make sense where you might have maybe four soccer players and one football player five soccer players and zero football players two soccer players and three football players etc
you don't have to think about the breakdown in terms of soccer and football players you can just say i have 11 people and i'm choosing five of them to figure out the denominator for the frac for the uh probability so that's 11 factorial divided by five factorial times six factorial again you should feel comfortable doing that without technology or at least doing some factoring for fun but let's go ahead and just use the technology here 11 go to math mode choose 5 that's 462 that's not the final answer we are after our probability so we need to do the ratio the probability of this thing here where you've got three soccer players and two football players is going to be the ratio 200 divided by 462 that's the same as 100 divided by 231 and it looks like that cannot be reduced anymore one approximation 100 divided by 231 and get it to four places after the decimal as is requested here it looks like it's going to be 0.4329
okay the fraction is the exact answer the decimal is an approximation though you're thinking about it in terms of real life approximations well in this case this is the exact but in many situations you have to round to a certain number of significant digits we're not worrying about that here number four a softball play player has a batting average of 300 is what you say here which means she gets a hit in 30 of her official at bats so by official you're ignoring getting a walk that kind of thing suppose she gets six official at bats during a long extra inning game what is the probability that she got two hits assume that bats are identical and independent okay you can try to figure this out using basic principles using ultimately the addition rule for mutually exclusive events and also the multiplication rule for independent events however that's quite a bit of work okay because there are lots of ways of getting two hits
in six at bats you could get the first two at bats you could get hits in the next next four you could not get a hit you could get hits on the say the second and fifth at bats and not the other ones there are lots of ways it can happen so trying to derive this from scratch is not so nice instead what you want to do is you want to recognize we should use a particular kind of binomial a random variable it's a binomial random variable is the answer because we're counting we're going to let capital x be the number of successes in this case number of hits in six at bats so we have a fixed number of trials six the probability of success on each trial which is each at bat is the same the truck because the trials are identical and independent so
we know this is a binomial random variable and therefore we can use a formula that says the probability that capital x equals a particular number call it little x is n choose little x where n is the number of trials and six in this case times the probability of success raised to the little x power because we're having little x successes times 1 minus the probability of success which is the probability of failure to the n minus x power x is the number of successes and minus x would be the number of failures
so you should certainly be able to use this formula if i request you to show your work like this or if your teacher asks you to show work like this here's the way it would look we're getting two successes probability of success is 0.3 probability of failure is 0.7 that would be the calculation to do this is going to be 6 factorial divided by 2 factorial times 4 factorial let's go ahead and just write down what these things are 0.3 squared of point of course is point zero nine point seven to the fourth is not so easy to do in your head point seven to the fourth power is point two four one this product right there is .021609 what is this that'll be 6 factorial 6 times 5 times 4 factorial the 4 factorials cancel
you're ultimately going to divide 6 times 5 divided by 2. 30 divided by 2 is 15. and so we need to multiply this number by 15 to get the final answer our probability is about 0.324 that's just rounded to that .324 chance that she gets two hits out of six at bats okay which is not surprising that that should be relatively high with a 300 average per expected value this is not requested in the problem for a binomial random variable is n times p which makes good intuitive sense if she gets six at bats and her probability of success on each at bat is 0.3
you would expect 1.8 successes out of six at bats of course that can't literally happen this is a long run average but 1.8 is 30 of 6 2 is 33 percent of 6. those num those percentages are fairly close you should expect a fairly high probability here okay the next problem is a type of problem i ask a lot it's a disease testing animal okay we're talking about covet 19 here everybody's favorite disease not okay suppose 1.2 percent of the population test positive for the coronavirus causing the disease cause it covered 19.
um you know at a particular moment in time but there's a new test that's come on the market that they're testing to see how accurate it is it's a new test and in people that are known to have the virus it comes back positive correctly saying they have the virus 98 of the time in people are known to not have the virus it comes back negative correctly 99 of the time so it sounds kind of accurate okay these are conditional probabilities that's the conditional probability of getting a positive test result if it is given that you definitely have the virus c19
and this is the probability of a negative test result the complement of positive i'll call it pos prime i could also call it neg for negative given that you do not have covert 19 that's 0.99 but that's not what we want to know we want to know if you take the new test and it comes back positive saying you have carbon 19 the virus at least what is the probability that you actually do have the virus it's not 99 it's not 98 okay it's something different i gave them the hint to use bayes's theorem or a tree diagram to help you solve this but you should be able to solve it even if you didn't get that hint
we are after um the probability that you actually have the disease the probability that you have the virus i should say c19 virus is what i imply by this doesn't mean you're necessarily sick given that the test comes back positive that's a different conditional probability than these two bayes's theorem is really based on the definition of conditional probabilities plus some more laws of probability i will write out the formula but it's nice to draw a tree diagram as well and the first set of branches represents having the virus for kelvin 19 or not having the virus for code 19. the second set of branches representing represents testing positive or not testing positive in other words testing negative pause and pause prime the complement of pause
it's good to label the branches in the tree with the corresponding probabilities one piece of information i haven't dwelled on is the fact that only 1.2 percent of the population test positive for the virus by some other test um so the probability associated with having the virus would be 0.012 and the probability with that would be 1 minus 0.012 which would be 0.988 doing calculations in my head hopefully don't make a mistake when it's known you have have the virus c19 what is the probability comes back positive that's the 98 percent this is 0.98
therefore this is 0.02 and when you actually do not have it um it comes back negative correctly 99 of the time this is a 0.99 and this would be then zero 0.01 and if you set up the tree diagram this way you wanna put the probabilities of both events happening the product of these probabilities along each of the branch paths over here i'm really using the multiplication rule the general one there's nothing about independence here this these products are going to involve conditional probabilities so the probability of having the virus and testing positive is the probability of having the virus times the conditional probability of testing positive given that you have the virus that's the 0.98 both here and here and multiply those and that product
0.012 times 0.98 is 0.01176 and you're going to do the same kind of products along the other ones that you don't you actually don't need all of them but i'll do them all anyway point is here it's .012 times .02 along this path it's 0.988 times 0.01 and the biggest product is going to be along this bottom path 0.988 times 0.99 let's go ahead and figure out all these anyway 0.012 times 0.02 first of all is well it's that's scientific notation there if i convert it to decimal notation that's going to be .00024 because it's 2.4 times 10 to the negative four power point okay i can do this one without calculator this is going to be 0.00988 and this bottom 1.988 times 0.99
is the biggest probability of 0.9781 by the way these four probabilities here here here and here should add to one but let's not bother let's now find the probability that we're after we'll just based on this information we'll just use the definition of conditional probability the conditional probability of having the virus for covert 19 when the test is known to come back positive by definition is the probability of have both having the virus and the test coming back positive divided by the probability that the test comes back positive this one right here is this first number up here 0.01176
this one bayes's theorem breaks that apart into the sum of some products of conditional probabilities with ordinary probabilities in fact that we get up here i hope it makes intuitive sense i'm not going to write it out that it goes with the numbers that go with the positive result these two numbers we need to add up those probabilities .01176 plus .00988 i didn't give myself much room here this is point zero one one seven six divided by point zero one one seven six plus point zero zero nine eight eight is point zero two one six four hopefully no mistakes i'll try to put a note if there's a mistake .01176 divided by that
is about .5434 as your approximate probability of actually having the virus when this new test comes back positive so you know and it's possible sometimes in these problems that this probability could even be a lot lower so you you know this is has practical importance just because these probabilities are high doesn't mean when you get a positive test result that you have the virus or have some other disease okay and it's worth getting a second second opinion oftentimes especially when you're using a new test number six when you play darts you hit the bullseye with probability of 0.0625 on a given any given throw suppose the throws are identical and independent hmm
sounds like we're dealing with a random variable here look kind of like the softball find the probability that it takes you ten throws until the first time you hit the bullseye show your work okay then once again just like with the softball one with the binomial random variable we can either show work from first principles or use a known formula it's easier to do either one in this case if i let x the number of throws until the first time you hit the bullseye that is not a binomial random variable
from hopefully what you've learned it's called a geometric random variable when you have a probability of success that stays the same on every trial in this case every throw and it's independent of what's happened before so we can apply the multiplication rule that's called a geometric random variable when x counts the number of trials until the first success in this case the first bullseye all right and the probability the general formula that capital x the random variable equals the particular number little x turns out to be um if p is the probability of success it's one minus p to the x minus 1 power because you're going to have x minus 1 failures 1 minus p is going to be the probability of failure on any given trial times one success which is has probability p that would be the formula that we need that's the general formula for
the probability that a geometric random variable the number of trials to the first success equals a particular number x means you again had x minus one failures and one success at the very end so it's the the product of those probabilities of failure x minus one times times the probability of one success at the end so 1 minus 0.0625 that my head is 0.9375 needs to go to the 10 minus 1 power that's the 9th power and then 0.0625 that will be the probability that it takes you 10 throws until the first time
so 0.9375 to the ninth power times .0625 this is approximately 0.03496 okay for the probability that takes you 10 trials to the first success part b asks for the mean expected value number of attempts until the first time you hit the bullseye for a geometric random variable where p is the probability of success on any given trial that mean turns out to be 1 over p in this case 1 over .0625 and that is a nice number 1 divided by .0625 is 16.
in fact you know 0.0625 is 1 16. i've got a probability of success on any given throw of 1 16 you should it should make intuitive sense that on average it's going to take you about 16 throws to get your first success okay so i hope that makes sense it's using uh known formulas for geometric distribution including probability the pdf pmf for property probability mass function and the mean the expected value all right two more pages four more problems
we have a discrete random variable with probability density function also called probability mass function f of x defined by this table below for discrete random variables little f of x is called some oftentimes probability mass function that's really a better name the book i use calls it still a probability density function i do think that's better reserved for continuous random variables because with probability mass functions or pmfs it's the value of little f of x that gives you probabilities whereas with continuous random variables you have to integrate the discrete density function or the continuous density function to find probabilities
all right part a says fill in the remaining one value of f little f part b fill in the four values of the cumulative distribution function the cdf capital f of x when the continuous case capital f is an antiderivative of little f this is notation similar to what you see in calculus show how to find the mean using the summation formula the definition of e of x and part d find a formula for the moment generating function and confirm your answer to part c by finding that derivative if you know about moment generating functions so this problem you may or may not know how to do all of it but it's all worthwhile of course what goes here if these are the only possibilities for x 1 2 3 and 4 is going to be 1 minus the sum of these things i'm going to go ahead and fill in the cdf first and that'll help me fill in the top number for the this number over here for the pdf so for
the cdf the capital f i'm just accumulating values of little f i'm just adding them so the first value capital f of one just equals little f of one then i need for capital f of two to l add the value little f of 2 to capital f of 1. the number that goes right there is 0.22 plus 0.35 0.57 for the next one i add on 0.28 that'll be zero point what will be eight five hopefully no mistakes and then these numbers for the pdf or pmf have to add to one so far they've added to 0.85 therefore what goes here is 0.0.15 and what goes right here for the cdf is 1.00 okay so that's filling in the table that's parts a and b on to part c show to find the mean with the summation formula really the definition of the mean
part c the mean mu also called the expected value of x the summation formula looks like this sum the values of the products little f of x times or little x times little f of x over all x where little f of x is positive so that's going to be 1 times 0.22 that's the first value of x the second value of x is 2 times the corresponding probability is 0.35 plus the next value of x 3 times its corresponding probability is 0.28 times the last value of x4 times its corresponding probability from the little f of x function 0.15 so this is 0.22 plus 0.70 plus point what would that be eight four plus zero point six zero hoping i don't make any mistakes
that's a point nine two there plus that is going to be what uh point 1.76 plus that is 2.36 hopefully i better double check 0.22 plus 0.7 plus 0.84 plus 0.6 is yes 2.36 is going to be the mean as we saw before the mean doesn't have to be one of the possible values of x x can only be 1 2 3 or 4. it's not a possible value it's the long run average value of x if you did this experiment of many many times of observing the value of the random variable capital x based on this pdf its distribution in the long run the average of the numbers you get for little x sometimes 1 sometimes the 2 sometimes 3 sometimes 4 would average out close to 2.36 that's part c on to part d
find a formula for the moment generating function which by definition is the expected value of the function e to the t x and when you compute this you treat the t as a constant but ultimately in the end after you've done that you treat the t as a variable whether something's a constant or variable is all in your head it's all how you're thinking about it as a summation over all x where little f is positive this is going to be the sum of these values so the probabilities are the same as they were in part c it's these things that are different first value of x is 1 so this becomes e to the t times the corresponding probability 0.22 plus next value of x is 2 e to the 2t replace x with 2 times 0.35
next value of x is 3. you get e to the 3t times 0.28 and the last value of x is 4 we get e to the 4t times the corresponding probability little f of 4 is 0.15 and that actually is the answer you don't have to bother simplifying it i mean we usually put the numbers in front of the e's of the exponential functions there but it's fine to leave it like that what does the moment generating function do one thing it does is it generates moments by taking derivatives and plugging in zero you can find the expected value of x expected value of x squared expected value of x cubed et cetera so i need to find the derivative of this function and plug in t equals zero those expected values of x x squared x cubed are called moments y goes back to physics though i don't know why physicists call them moments
we just they generate moments by plugging taking derivatives and plugging in zero so i differentiate this i'll go ahead and put the numbers in front this time the derivative of that term is itself the derivative of this term you need to multiply by two oh it's now it's not so surprising that this is coming out the way it is 2 times 0.35 is 0.7 then i need to i'm using the chain rule i need to multiply by an extra factor of 3 there yes you know e to the 0 is 1. this is going to work out nice i'm going to get 0 point again 8 4 e to the 3t and then multiply by 4 from the chain rule in the last term when i differentiate i get 0.60 times e to the 4t yeah now plug in 0 the expected value of x is the derivative of the moment generating function evaluated at 0. you're going to get
the same sum as before 0.22 plus 0.70 plus 0.84 plus 0.6 same answer as before 2.36 okay so it's nice to see it work out nicely you know you'd never guess this would work in the abstract perhaps but in discrete examples like this where especially where you've got only got finally many possibilities it's easy to see how it works out and gives you the same answer number eight is an abstract question assume you know some properties of the expected value operator that is linear for example e of x plus y is e of x plus e y the mean of x plus y is the sum of the means of x and y individually and you can factor out constants goal is to show the details of calculations to confirm this formula here which is also known as the variance of x
where does this equality come from is the key you need to also remember that these symbols are interchangeable that's key to getting the final answer it's just a matter of expansion and properties like the expectation operator so i take the expected value of the random variable x minus its mean squared i just expand the inside with the binomial formula or you can think of it as the foil method f o i l first times first is x times x is x squared outside times outside and inside tim's inside are both minus mu times x so i get minus 2 mu x and the last times last over here is mu squared linearity comes in right away this is the expected value of a linear combination that's the corresponding linear combination of the
expected values and i can factor out the minus 2 mu here because that's a constant like this i could also factor out the mu squared there and be left with a 1 in there so that's linearity of the expected value operator if you were asked to explain why now replace this with a mu remember those are interchangeable replace this thing with mu squared because mu squared is a constant you could think of it as a constant random variable that always takes the same value mu squared its expected value certainly is mu squared
so i get the expected value of x squared minus two mu squared plus mu squared which simplifies to the expected value of x squared minus mu squared squared but mu once again is the expected value of x so i get the final answer the second moment the expected value of x squared minus the expected value of x quantity squared okay and that's the formula for the variance of x though i didn't emphasize that in the problem statement this is the definition of the variance this is the formula that you often use all right last page last couple problems second last one looks kind of long the the very last one is not as long
and i think the second one is a little second to last a little tricky here got to get your mind around it you have just bought a car insurance policy through aarp which is the associate american association of retired persons yes you're a new retiree in the past i'm not saying this is true in the future you have averaged three car accidents over any five-year period okay it's just been your average and you're trying to get some sort of five-year policy evidently not saying anything about how severe the accidents are just saying they're three accidents the insurance company makes your provisional customers saying we'll continue to offer you insurance maybe after the five year period
if you don't drive too badly they're going to drop your coverage if you have three or more accidents during the five year period the coming five-year period part a what is the probability that they will drop your coverage okay let's go ahead and start that one then we'll look at part b if x is the random variable counting the number of accidents you have during the next five year period the probability that we're after is that x is greater than or equal to three okay x is the number of accidents you have in the coming five year period going to be easiest to do that using the complement rule n using the fact that x is discrete to say that this is true x is discrete so and in fact it can only take on whole number values with whole number values integer values they're sometimes called
that allows us to say this in general with continuous random variables you'd want to make these two numbers the same so this is one minus probability that x is less than or equal to two is the sum of the probability that x is zero you might have zero accidents or one accident or two accidents so by the summation rule the addition rule for mutually exclusive events it's that what kind of distribution do we need though x the number of accidents is counting the number of accidents what distribution does it have this is a situation with where you end up using something called a poisson random variable
or maybe poisson in french poisson random variable and you need to know the pdf for it it is a discrete random variable because it's counting the number of occurrences of an event in this case having an accident it's pdf little f of little x probability that capital x equals little x turns out to be um e to the negative power of the mean in this case over this five year period let me write the mean you could write it as negative new power it's also written commonly as negative lambda power and in fact for my students in our book it's written as negative k power sometimes times lambda to the little x power that's not x to the x it's lambda to the x power divided by little x factorial
so in the case of when little x is 0 it's going to be and lambda is 3 e to the negative 3 times 3 to the 0 over 0 factorial which is of course dividing by 1 0 factorial is 1. when x is 1 i get e to the negative 3 times 3 to the first divided by 1 factorial and when x is 2 i get e to the negative 3 times 3 to the second power divided by 2 factorial okay zero factorial is one three to the zero is one this first term is e to the negative three

Ask anything
We've read this whole study set, so questions about it get the best answers.