Two individuals Al and Bob go to a coffee shop every one or two days. After going to the coffee shop, Al will go back to the shop in one day with probability p ; he goes back in two days with probability 1 − p . After going to the coffee shop, Bob will go back in one day with probability q ; he goes back in two days with probability 1 − q .
Let p = 3 1 , and q = 5 2 .
Suppose Al and Bob both came to the coffee shop today. What is the expected number of days until Al and Bob both come to the coffee shop on the same day again?
Source: link text
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
I am curious about how I made an error; if we think of p n q n = p × p n − 1 + ( 1 − p ) × p n − 2 , p 0 = 1 , p 1 = 3 1 = q × q n − 1 + ( 1 − q ) × q n − 2 , q 0 = 1 , q 1 = 5 2 , then we can solve p n q n = 5 1 ( ( 3 − 2 ) n 2 n + 1 + 3 ) = 8 1 ( ( 5 − 1 ) n 3 n + 1 + 5 ) . Then the answer should be 5 2 × 3 1 + N → ∞ lim n = 2 ∑ N ( n × ( k = 1 ∏ n − 1 ( 1 − p k q k ) ) × p n q n ) ≈ 2 . 8 7 3 .
This interpretation does however ignore the condition that Al and Bob must go to the coffee shop every one or two days.
Log in to reply
Here's the mistake I think you made: I am asking for when they meet given that they do not meet any other time before. I think pn, qn do not take this into account.
Or maybe you are interpreting the question wrong. Here is an example of Al's behavior. Day 0 he is at the shop. On that day he decides to go to the coffee shop 2 days later (he could have decided one day too). So he shows up at the shop on day 2. On day 2 he also decides to go to the coffee shop one day later (again he could have decided 2 days later). So he shows back up at the coffee shop on day 3. This continues. Again the decisions are made randomly with probability p.
I am not positive my answer is right but does this help? If not let me know! Thanks for your interest in this problem
Log in to reply
Thank you, I misinterpreted the problem; I assumed that the probabilities 'add'; so if Al went to the shop one day, then the next day he would go to the shop with probability p , and the next day he would go to the shop with probability ( 1 − p ) + p 2 . In other words, I misread the problem and overlooked the condition that they must go to the shop every one or two days. This made the formulae for p n and q n quite complicated - maybe this could be a follow-up problem?
Problem Loading...
Note Loading...
Set Loading...
Hint: When n > 2 , there are only two ways for Al and Bob to meet on day n and not on any day before. Consider the cases when n is even and n is odd. The desired expectation comes out to
n = 1 ∑ ∞ 2 n ( p 2 ( 1 − p ) n − 1 ( 1 − q ) n + q 2 ( 1 − p ) n ( 1 − q ) n − 1 ) + n = 0 ∑ ∞ ( 2 n + 1 ) ( 2 p q ( 1 − p ) n ( 1 − q ) n ) + 2 ( 1 − p ) ( 1 − q ) − p q = ( p − 2 ) ( q − 2 )
The case where Al chooses to come to the coffee shop k days later with probability p k , k > 0 is much more difficult (define q k similarly for Bob). I am curious if anybody has any ideas. (For clarity: ∑ k > 0 p k = ∑ k > 0 q k = 1 .) The second easiest case to consider seems to be when Al and Bob visit the shop in one and three days (rather than one and two).