Waiting in Grocery Store Lineup: Find Expected Time & Probability

  • Thread starter Thread starter neglogp
  • Start date Start date
neglogp
Messages
1
Reaction score
0

Homework Statement



There are two queues at a checkout in a grocery store. You are in Q1, behind 2 people (one of them is just starting to be served). Your friend is in Q2, behind 1 person (who just started to be served). The expected service time is \lambda minutes. The service at each checkout is independent, identical, and exponentially distributed.

(a) What is the expected time until you check out?

(b) What is the probability that your friend is still waiting when you start to be serviced at the checkout?

Homework Equations



Mean of exponential distribution is \frac{1} { \lambda } [\itex], whenever the parameter is \lambda.<br /> The PDF for an exponential distribution is: p(t) = \lambda e^{-\lambda t}<br /> <br /> The CDF for an exponential distribution is: P(t) = 1 - e^{- \lambda t}<br /> <br /> <h2>The Attempt at a Solution</h2><br /> <br /> (a) I think this is 3 \lambda[\itex], because of the memoryless property. Not sure how to formalize this, though.&lt;br /&gt; &lt;br /&gt; (b) I was thinking that I should use the CDF here. Suppose that Q1 is composed of person A and person B. Person A finishes at time s. Person B finishes at time t, t &amp;gt; s. Q2 is composed of person C, who does not finish by time t.&lt;br /&gt; &lt;br /&gt; Pr ($Q1 done by time $t) = Pr($B done by time $t - s) \cdot \int_0^t {Pr(A done by time s)ds}[\tex]&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; And then Pr(our event) = integral over t from 0 to infinity {Pr(Q1 done by time t) Pr(C not done by time t)}&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; Using the CDF in all cases. Is this the correct approach?&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; P.S. How do I write in Latex on these forums?
 
Last edited:
Physics news on Phys.org
neglogp said:

Homework Statement



There are two queues at a checkout in a grocery store. You are in Q1, behind 2 people (one of them is just starting to be served). Your friend is in Q2, behind 1 person (who just started to be served). The expected service time is \lambda minutes. The service at each checkout is independent, identical, and exponentially distributed.

(a) What is the expected time until you check out?

(b) What is the probability that your friend is still waiting when you start to be serviced at the checkout?

Homework Equations



Mean of exponential distribution is \frac{1} { \lambda } [\itex], whenever the parameter is \lambda.<br /> The PDF for an exponential distribution is: p(t) = \lambda e^{-\lambda t}<br /> <br /> The CDF for an exponential distribution is: P(t) = 1 - e^{- \lambda t}<br /> <br /> <h2>The Attempt at a Solution</h2><br /> <br /> (a) I think this is 3 \lambda[\itex], because of the memoryless property. Not sure how to formalize this, though.&lt;br /&gt; &lt;br /&gt; (b) I was thinking that I should use the CDF here. Suppose that Q1 is composed of person A and person B. Person A finishes at time s. Person B finishes at time t, t &amp;gt; s. Q2 is composed of person C, who does not finish by time t.&lt;br /&gt; &lt;br /&gt; Pr ($Q1 done by time $t) = Pr($B done by time $t - s) \cdot \int_0^t {Pr(A done by time s)ds}[\tex]&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; And then Pr(our event) = integral over t from 0 to infinity {Pr(Q1 done by time t) Pr(C not done by time t)}&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; Using the CDF in all cases. Is this the correct approach?&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; P.S. How do I write in Latex on these forums?
&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; It is weird that you use ##\lambda## for the mean; the usual convention is to use ##\lambda## as a rate, so the mean is ##1/ \lambda##. However, if that is what your book or your prof. wrote then you are stuck with it.&amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; For (a) there is nothing much to formalize: it is a fact that ##E \sum_i X_i = \sum_i E X_i##, whether or not the ##X_i## are independent or identically distributed. The only thing you need worry about is whether all ##E X_i## are equal to ##\lambda##, or whether there is something special about the customer currently being served (as compared with the other, as-yet-unserved customers). &amp;lt;br /&amp;gt; &amp;lt;br /&amp;gt; For (b): what is the probability that the leading customer (i.e., the one currently in service) in your line finishes before the leading customer in your friend&amp;amp;#039;s line? Remember, all service times are iid and exponential. Now, if the leading customer in your line finishes first, you are back to a situation where both you and your friend are next in line. Of course, the customers in front of you both in your respective lines will have completed different amounts of service, but does that really matter in this problem?
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top