Presentation is loading. Please wait.

Presentation is loading. Please wait.

Nested Problem and extra. How to solve a probability problem 1. Read the problem carefully. 2. Answer the following questions:  A. What is the random.

Similar presentations


Presentation on theme: "Nested Problem and extra. How to solve a probability problem 1. Read the problem carefully. 2. Answer the following questions:  A. What is the random."— Presentation transcript:

1 Nested Problem and extra

2 How to solve a probability problem 1. Read the problem carefully. 2. Answer the following questions:  A. What is the random variable of interest in the problem?  B. How can I find the pmf of the r.v.?  1. If this r.v. follows a specific distribution (binomial, Poisson, HG), find the parameters.  2. If can not tell the distribution, create the pmf chart.  C. Whether the problem asks for probability, expected value or variance? 3. Check the cheat sheet for corresponding formula 4. Always remember some tricks: e.g. use complement

3 Example I A corner of the library was on fire and a librarian was trying to remove as many books from that place as possible. There are 120 volumes of tax code and 80 textbooks stored in that. After the mission is done, a count shows that there are 100 books rescued and 60 of them are textbooks. Do you think the librarian had some selection bias when he/she was rescuing those books?

4 Example I Following the steps 1. What is the random variable of interest in this problem? Is it discrete or continuous? 2. What probability distribution does this r.v. follow? What is/are the parameter(s) for that distribution? 3. Answer the question.

5 Example II Peter, the family guy, is fishing at a pond. In the pond, two thirds of the fish are white bass and one third are rainbow trout. He decides to stop when he gets the first trout or 3 white bass. Assuming that he will get a fish each time trying regardless of the time. 1. Let X be the number of times Peter has to try before he stops, find the pmf of X.

6 Example II Let Y be the number of fish Peter may take home. Find the pmf of Y. If Peter does that every week, on average, how many fish can he take home each time?

7 Example II On the 10 th time Peter went fishing, before he got any fish, he was caught by a policeman. Peter was told that it is illegal to fish in the pond and a fine will be imposed based on the number of fish he has got from the pond. Peter was scared and confessed EVERYTHING, but he could not remember how many fish he has got from the pond. The policeman therefore decided to square the number of fish Peter got each time and fine him $60 per fish based on that. How much do you think Peter will pay?

8 Example III Two players, A and B, are playing a card game. They start with a deck of 26 cards with all clubs and diamonds removed. A will deal 13 cards at random to B and A wins if he gets more Ace than B. If both A and B get one Ace, the one with spade Ace wins. They repeat the game 10 times. Find the probability that A wins 6 times. Assuming each game is independent, the number of games A wins follows a binomial distribution with parameters (10 and p)

9 Example III Step 1, find p. A wins when he has two Aces or spade Ace, let’s find the probability of each event separately.  A. A has two Aces: let X1 be the number of Ace at A’s hand, then apparently, X1~HG(26, 13, 2), therefore P(X1=2)=2C2*24C11/26C13=0.24  B. A has only the spade Ace: we can calculate the probability directly, which is 24C12/26C13 =0.26(note that, we don’t want to use 25C12 on the top since in that case, it will also include the possibilities with 2 Aces)  Finally, P(A wins)=0.24+0.26

10 Example III Step 2, find the probability that A wins 6 times.  Let Y be the number of times A wins and Y~BIN(10, 0.5)  P(Y=6)=10C6*0.5^10=0.205 What if we want to calculate the probability that A wins 5 times? Then P(Y=5)=10C5*0.5^10=0.246

11 Example III If they repeat the game 100 times, how many times do you expect B to win?

12 Example IV Someone wants to open a store at downtown Lafayette. He has decided to have his store open Monday through Saturday but has not decided the hours yet. He was torn between opening at 8 or 9. He is willing to open the store at 8 if there are more than 6 customers visiting between 8 and 9 for at least four days of a week. A quick research told him that on average, there are about 8 customers visiting a store in the neighborhood between 8 and 9. What is the probability that the storekeeper starts his business at 8?

13 Example IV This is also an example of a nested problem. The storekeeper’s decision is based on the number of days from Mon. to Sat. that there are more than 10 customers visiting his store. This number follows a binomial distribution. For a binomial r.v., we need to figure out the two parameters, n and p to be able to work on it. In this case, n=6, Monday through Saturday. p depends on the number of customers visiting, that is a Poisson r.v. with a mean of 8.

14 Example IV Assume after a week’s trial business, the shop keeper finally decided to open the store at 9am instead of 8, then what is the probability that he had 6+ customers visiting between 8 and 9 on only three days of the week.


Download ppt "Nested Problem and extra. How to solve a probability problem 1. Read the problem carefully. 2. Answer the following questions:  A. What is the random."

Similar presentations


Ads by Google