Expected Waiting Time in a Queue with exponential distributionExponential Distribution - memorylessaverage waiting timeExpected time, exponential distributionExponential distribution - lack of memoryAverage amount of time spend by customerExample of finding the conditional expected amount of time a person spends waiting in line given that she is eventually servedGeneralized expression for waiting time.Exponentially distributed probability at the post officeExponential Probability of customersTotal waiting time of exponential distribution is less than the sum of each waiting time, how so?

How can Internet speed be 10 times slower without a router than when using the same connection with a router?

Notation: What does the tilde bellow of the Expectation mean?

Handling Null values (and equivalents) routinely in Python

Voltage Balun 1:1

A factorization game

Is disk brake effectiveness mitigated by tyres losing traction under strong braking?

Is there a word that describes the unjustified use of a more complex word?

How do I, as a DM, handle a party that decides to set up an ambush in a dungeon?

How do LIGO and VIRGO know that a gravitational wave has its origin in a neutron star or a black hole?

Are sleeping system R-ratings additive?

Python 3 - simple temperature program

How long would it take for people to notice a mass disappearance?

Which US defense organization would respond to an invasion like this?

Feasibility of lava beings?

Is there precedent or are there procedures for a US president refusing to concede to an electoral defeat?

My first c++ game (snake console game)

Why did WWI include Japan?

Why does sound not move through a wall?

Prove that a definite integral is an infinite sum

Is an HNN extension of a virtually torsion-free group virtually torsion-free?

Is it normal for gliders not to have attitude indicators?

Adding command shortcuts to /bin

Is there a word for food that's gone 'bad', but is still edible?

Why didn't this character get a funeral at the end of Avengers: Endgame?



Expected Waiting Time in a Queue with exponential distribution


Exponential Distribution - memorylessaverage waiting timeExpected time, exponential distributionExponential distribution - lack of memoryAverage amount of time spend by customerExample of finding the conditional expected amount of time a person spends waiting in line given that she is eventually servedGeneralized expression for waiting time.Exponentially distributed probability at the post officeExponential Probability of customersTotal waiting time of exponential distribution is less than the sum of each waiting time, how so?













1












$begingroup$


I am trying to solve the following problem in my exercise sheet towards preparation of competitive exam:



A post office has 2 clerks. $A$ enters the post office while 2 other customers, $B$ and $C$, are being served by the 2 clerks. She is next in line. Assume that the time a clerk spends serving a customer has the Expo($lambda$) distribution.



What is the expected time spent by $A$ in the post office?



My take:



Total time that A spends in the office is the sum of waiting time + the time taken to serve A.



$$E(textTotal Time) = E(textWaiting Time) + E(textService Time)$$



$$E(textService Time) = frac1lambda$$



Now I computed that the Probability that A is served at any of the counter is $1/2$. Therefore,



$$E(textWaiting Time) = 1/2 times E(textService Time of B) + 1/2 times E(textService Time of C)$$



$$=frac1lambda$$



Which gives me
$$E(textTotal Time) = frac2lambda$$
But the answer given is $frac32lambda$.



Please point out the mistake in what I am thinking or if you think there's a better way to do it.



Thanks.










share|cite|improve this question











$endgroup$
















    1












    $begingroup$


    I am trying to solve the following problem in my exercise sheet towards preparation of competitive exam:



    A post office has 2 clerks. $A$ enters the post office while 2 other customers, $B$ and $C$, are being served by the 2 clerks. She is next in line. Assume that the time a clerk spends serving a customer has the Expo($lambda$) distribution.



    What is the expected time spent by $A$ in the post office?



    My take:



    Total time that A spends in the office is the sum of waiting time + the time taken to serve A.



    $$E(textTotal Time) = E(textWaiting Time) + E(textService Time)$$



    $$E(textService Time) = frac1lambda$$



    Now I computed that the Probability that A is served at any of the counter is $1/2$. Therefore,



    $$E(textWaiting Time) = 1/2 times E(textService Time of B) + 1/2 times E(textService Time of C)$$



    $$=frac1lambda$$



    Which gives me
    $$E(textTotal Time) = frac2lambda$$
    But the answer given is $frac32lambda$.



    Please point out the mistake in what I am thinking or if you think there's a better way to do it.



    Thanks.










    share|cite|improve this question











    $endgroup$














      1












      1








      1





      $begingroup$


      I am trying to solve the following problem in my exercise sheet towards preparation of competitive exam:



      A post office has 2 clerks. $A$ enters the post office while 2 other customers, $B$ and $C$, are being served by the 2 clerks. She is next in line. Assume that the time a clerk spends serving a customer has the Expo($lambda$) distribution.



      What is the expected time spent by $A$ in the post office?



      My take:



      Total time that A spends in the office is the sum of waiting time + the time taken to serve A.



      $$E(textTotal Time) = E(textWaiting Time) + E(textService Time)$$



      $$E(textService Time) = frac1lambda$$



      Now I computed that the Probability that A is served at any of the counter is $1/2$. Therefore,



      $$E(textWaiting Time) = 1/2 times E(textService Time of B) + 1/2 times E(textService Time of C)$$



      $$=frac1lambda$$



      Which gives me
      $$E(textTotal Time) = frac2lambda$$
      But the answer given is $frac32lambda$.



      Please point out the mistake in what I am thinking or if you think there's a better way to do it.



      Thanks.










      share|cite|improve this question











      $endgroup$




      I am trying to solve the following problem in my exercise sheet towards preparation of competitive exam:



      A post office has 2 clerks. $A$ enters the post office while 2 other customers, $B$ and $C$, are being served by the 2 clerks. She is next in line. Assume that the time a clerk spends serving a customer has the Expo($lambda$) distribution.



      What is the expected time spent by $A$ in the post office?



      My take:



      Total time that A spends in the office is the sum of waiting time + the time taken to serve A.



      $$E(textTotal Time) = E(textWaiting Time) + E(textService Time)$$



      $$E(textService Time) = frac1lambda$$



      Now I computed that the Probability that A is served at any of the counter is $1/2$. Therefore,



      $$E(textWaiting Time) = 1/2 times E(textService Time of B) + 1/2 times E(textService Time of C)$$



      $$=frac1lambda$$



      Which gives me
      $$E(textTotal Time) = frac2lambda$$
      But the answer given is $frac32lambda$.



      Please point out the mistake in what I am thinking or if you think there's a better way to do it.



      Thanks.







      probability probability-theory conditional-expectation expected-value exponential-distribution






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited 4 hours ago







      Vizag

















      asked 4 hours ago









      VizagVizag

      920113




      920113




















          1 Answer
          1






          active

          oldest

          votes


















          5












          $begingroup$

          The mistake is that the waiting time is not distributed in the way that you have proposed, because the waiting time is the lesser of the service times of $B$ and $C$. This is because $A$ takes the first available opening, so whoever finishes first, $A$ chooses that clerk. That is to say, if $W_A$ is the waiting time of $A$ and $S_B$, $S_C$ are the service times of $B$ and $C$ respectively, then $$W_A = min(S_B, S_C),$$ and it is not generally true that $operatornameE[W_A] = operatornameE[S_B]/2$.



          Rather, you must compute the minimum order statistic of $B$ and $C$'s service times. Since these are iid exponentially distributed with rate $lambda$, it follows that $$Pr[W_A > t] = Pr[min(S_B, S_C) > t] = Pr[(S_B > t) cap (S_C > t)] oversettextind= Pr[S_B > t] Pr[S_C > t] oversettextid= (e^-lambda t)^2.$$ That is to say, the probability that $A$ waits more than $t$ to begin service is the product of the probabilities that both $B$ and $C$ take more than $t$ to be finished. And this makes perfect intuitive sense--because if $A$ must wait more than $t$, then that means both $B$ and $C$ are still occupied, which means their service times are also more than $t$.



          Now that you know $Pr[W_A > t] = e^-2lambda t$, what can you say about $operatornameE[W_A]$?






          share|cite|improve this answer









          $endgroup$












          • $begingroup$
            Many thanks to you :)
            $endgroup$
            – Vizag
            4 hours ago






          • 1




            $begingroup$
            You say "it is not generally true that $operatornameE[W_A] = operatornameE[S_B]/2$". It does seem to be true here because you have two servers with exponential distributions, so twice the rate and thus half the service time.
            $endgroup$
            – Henry
            4 hours ago











          • $begingroup$
            @Henry Yes, but that assertion nevertheless needs justification, which the explicit calculation of the order statistic furnishes. Moreover, my statement remains correct.
            $endgroup$
            – heropup
            1 hour ago











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "69"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3212816%2fexpected-waiting-time-in-a-queue-with-exponential-distribution%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          5












          $begingroup$

          The mistake is that the waiting time is not distributed in the way that you have proposed, because the waiting time is the lesser of the service times of $B$ and $C$. This is because $A$ takes the first available opening, so whoever finishes first, $A$ chooses that clerk. That is to say, if $W_A$ is the waiting time of $A$ and $S_B$, $S_C$ are the service times of $B$ and $C$ respectively, then $$W_A = min(S_B, S_C),$$ and it is not generally true that $operatornameE[W_A] = operatornameE[S_B]/2$.



          Rather, you must compute the minimum order statistic of $B$ and $C$'s service times. Since these are iid exponentially distributed with rate $lambda$, it follows that $$Pr[W_A > t] = Pr[min(S_B, S_C) > t] = Pr[(S_B > t) cap (S_C > t)] oversettextind= Pr[S_B > t] Pr[S_C > t] oversettextid= (e^-lambda t)^2.$$ That is to say, the probability that $A$ waits more than $t$ to begin service is the product of the probabilities that both $B$ and $C$ take more than $t$ to be finished. And this makes perfect intuitive sense--because if $A$ must wait more than $t$, then that means both $B$ and $C$ are still occupied, which means their service times are also more than $t$.



          Now that you know $Pr[W_A > t] = e^-2lambda t$, what can you say about $operatornameE[W_A]$?






          share|cite|improve this answer









          $endgroup$












          • $begingroup$
            Many thanks to you :)
            $endgroup$
            – Vizag
            4 hours ago






          • 1




            $begingroup$
            You say "it is not generally true that $operatornameE[W_A] = operatornameE[S_B]/2$". It does seem to be true here because you have two servers with exponential distributions, so twice the rate and thus half the service time.
            $endgroup$
            – Henry
            4 hours ago











          • $begingroup$
            @Henry Yes, but that assertion nevertheless needs justification, which the explicit calculation of the order statistic furnishes. Moreover, my statement remains correct.
            $endgroup$
            – heropup
            1 hour ago















          5












          $begingroup$

          The mistake is that the waiting time is not distributed in the way that you have proposed, because the waiting time is the lesser of the service times of $B$ and $C$. This is because $A$ takes the first available opening, so whoever finishes first, $A$ chooses that clerk. That is to say, if $W_A$ is the waiting time of $A$ and $S_B$, $S_C$ are the service times of $B$ and $C$ respectively, then $$W_A = min(S_B, S_C),$$ and it is not generally true that $operatornameE[W_A] = operatornameE[S_B]/2$.



          Rather, you must compute the minimum order statistic of $B$ and $C$'s service times. Since these are iid exponentially distributed with rate $lambda$, it follows that $$Pr[W_A > t] = Pr[min(S_B, S_C) > t] = Pr[(S_B > t) cap (S_C > t)] oversettextind= Pr[S_B > t] Pr[S_C > t] oversettextid= (e^-lambda t)^2.$$ That is to say, the probability that $A$ waits more than $t$ to begin service is the product of the probabilities that both $B$ and $C$ take more than $t$ to be finished. And this makes perfect intuitive sense--because if $A$ must wait more than $t$, then that means both $B$ and $C$ are still occupied, which means their service times are also more than $t$.



          Now that you know $Pr[W_A > t] = e^-2lambda t$, what can you say about $operatornameE[W_A]$?






          share|cite|improve this answer









          $endgroup$












          • $begingroup$
            Many thanks to you :)
            $endgroup$
            – Vizag
            4 hours ago






          • 1




            $begingroup$
            You say "it is not generally true that $operatornameE[W_A] = operatornameE[S_B]/2$". It does seem to be true here because you have two servers with exponential distributions, so twice the rate and thus half the service time.
            $endgroup$
            – Henry
            4 hours ago











          • $begingroup$
            @Henry Yes, but that assertion nevertheless needs justification, which the explicit calculation of the order statistic furnishes. Moreover, my statement remains correct.
            $endgroup$
            – heropup
            1 hour ago













          5












          5








          5





          $begingroup$

          The mistake is that the waiting time is not distributed in the way that you have proposed, because the waiting time is the lesser of the service times of $B$ and $C$. This is because $A$ takes the first available opening, so whoever finishes first, $A$ chooses that clerk. That is to say, if $W_A$ is the waiting time of $A$ and $S_B$, $S_C$ are the service times of $B$ and $C$ respectively, then $$W_A = min(S_B, S_C),$$ and it is not generally true that $operatornameE[W_A] = operatornameE[S_B]/2$.



          Rather, you must compute the minimum order statistic of $B$ and $C$'s service times. Since these are iid exponentially distributed with rate $lambda$, it follows that $$Pr[W_A > t] = Pr[min(S_B, S_C) > t] = Pr[(S_B > t) cap (S_C > t)] oversettextind= Pr[S_B > t] Pr[S_C > t] oversettextid= (e^-lambda t)^2.$$ That is to say, the probability that $A$ waits more than $t$ to begin service is the product of the probabilities that both $B$ and $C$ take more than $t$ to be finished. And this makes perfect intuitive sense--because if $A$ must wait more than $t$, then that means both $B$ and $C$ are still occupied, which means their service times are also more than $t$.



          Now that you know $Pr[W_A > t] = e^-2lambda t$, what can you say about $operatornameE[W_A]$?






          share|cite|improve this answer









          $endgroup$



          The mistake is that the waiting time is not distributed in the way that you have proposed, because the waiting time is the lesser of the service times of $B$ and $C$. This is because $A$ takes the first available opening, so whoever finishes first, $A$ chooses that clerk. That is to say, if $W_A$ is the waiting time of $A$ and $S_B$, $S_C$ are the service times of $B$ and $C$ respectively, then $$W_A = min(S_B, S_C),$$ and it is not generally true that $operatornameE[W_A] = operatornameE[S_B]/2$.



          Rather, you must compute the minimum order statistic of $B$ and $C$'s service times. Since these are iid exponentially distributed with rate $lambda$, it follows that $$Pr[W_A > t] = Pr[min(S_B, S_C) > t] = Pr[(S_B > t) cap (S_C > t)] oversettextind= Pr[S_B > t] Pr[S_C > t] oversettextid= (e^-lambda t)^2.$$ That is to say, the probability that $A$ waits more than $t$ to begin service is the product of the probabilities that both $B$ and $C$ take more than $t$ to be finished. And this makes perfect intuitive sense--because if $A$ must wait more than $t$, then that means both $B$ and $C$ are still occupied, which means their service times are also more than $t$.



          Now that you know $Pr[W_A > t] = e^-2lambda t$, what can you say about $operatornameE[W_A]$?







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered 4 hours ago









          heropupheropup

          66.1k866104




          66.1k866104











          • $begingroup$
            Many thanks to you :)
            $endgroup$
            – Vizag
            4 hours ago






          • 1




            $begingroup$
            You say "it is not generally true that $operatornameE[W_A] = operatornameE[S_B]/2$". It does seem to be true here because you have two servers with exponential distributions, so twice the rate and thus half the service time.
            $endgroup$
            – Henry
            4 hours ago











          • $begingroup$
            @Henry Yes, but that assertion nevertheless needs justification, which the explicit calculation of the order statistic furnishes. Moreover, my statement remains correct.
            $endgroup$
            – heropup
            1 hour ago
















          • $begingroup$
            Many thanks to you :)
            $endgroup$
            – Vizag
            4 hours ago






          • 1




            $begingroup$
            You say "it is not generally true that $operatornameE[W_A] = operatornameE[S_B]/2$". It does seem to be true here because you have two servers with exponential distributions, so twice the rate and thus half the service time.
            $endgroup$
            – Henry
            4 hours ago











          • $begingroup$
            @Henry Yes, but that assertion nevertheless needs justification, which the explicit calculation of the order statistic furnishes. Moreover, my statement remains correct.
            $endgroup$
            – heropup
            1 hour ago















          $begingroup$
          Many thanks to you :)
          $endgroup$
          – Vizag
          4 hours ago




          $begingroup$
          Many thanks to you :)
          $endgroup$
          – Vizag
          4 hours ago




          1




          1




          $begingroup$
          You say "it is not generally true that $operatornameE[W_A] = operatornameE[S_B]/2$". It does seem to be true here because you have two servers with exponential distributions, so twice the rate and thus half the service time.
          $endgroup$
          – Henry
          4 hours ago





          $begingroup$
          You say "it is not generally true that $operatornameE[W_A] = operatornameE[S_B]/2$". It does seem to be true here because you have two servers with exponential distributions, so twice the rate and thus half the service time.
          $endgroup$
          – Henry
          4 hours ago













          $begingroup$
          @Henry Yes, but that assertion nevertheless needs justification, which the explicit calculation of the order statistic furnishes. Moreover, my statement remains correct.
          $endgroup$
          – heropup
          1 hour ago




          $begingroup$
          @Henry Yes, but that assertion nevertheless needs justification, which the explicit calculation of the order statistic furnishes. Moreover, my statement remains correct.
          $endgroup$
          – heropup
          1 hour ago

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Mathematics Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3212816%2fexpected-waiting-time-in-a-queue-with-exponential-distribution%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

          Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

          Tom Holland Mục lục Đầu đời và giáo dục | Sự nghiệp | Cuộc sống cá nhân | Phim tham gia | Giải thưởng và đề cử | Chú thích | Liên kết ngoài | Trình đơn chuyển hướngProfile“Person Details for Thomas Stanley Holland, "England and Wales Birth Registration Index, 1837-2008" — FamilySearch.org”"Meet Tom Holland... the 16-year-old star of The Impossible""Schoolboy actor Tom Holland finds himself in Oscar contention for role in tsunami drama"“Naomi Watts on the Prince William and Harry's reaction to her film about the late Princess Diana”lưu trữ"Holland and Pflueger Are West End's Two New 'Billy Elliots'""I'm so envious of my son, the movie star! British writer Dominic Holland's spent 20 years trying to crack Hollywood - but he's been beaten to it by a very unlikely rival"“Richard and Margaret Povey of Jersey, Channel Islands, UK: Information about Thomas Stanley Holland”"Tom Holland to play Billy Elliot""New Billy Elliot leaving the garage"Billy Elliot the Musical - Tom Holland - Billy"A Tale of four Billys: Tom Holland""The Feel Good Factor""Thames Christian College schoolboys join Myleene Klass for The Feelgood Factor""Government launches £600,000 arts bursaries pilot""BILLY's Chapman, Holland, Gardner & Jackson-Keen Visit Prime Minister""Elton John 'blown away' by Billy Elliot fifth birthday" (video with John's interview and fragments of Holland's performance)"First News interviews Arrietty's Tom Holland"“33rd Critics' Circle Film Awards winners”“National Board of Review Current Awards”Bản gốc"Ron Howard Whaling Tale 'In The Heart Of The Sea' Casts Tom Holland"“'Spider-Man' Finds Tom Holland to Star as New Web-Slinger”lưu trữ“Captain America: Civil War (2016)”“Film Review: ‘Captain America: Civil War’”lưu trữ“‘Captain America: Civil War’ review: Choose your own avenger”lưu trữ“The Lost City of Z reviews”“Sony Pictures and Marvel Studios Find Their 'Spider-Man' Star and Director”“‘Mary Magdalene’, ‘Current War’ & ‘Wind River’ Get 2017 Release Dates From Weinstein”“Lionsgate Unleashing Daisy Ridley & Tom Holland Starrer ‘Chaos Walking’ In Cannes”“PTA's 'Master' Leads Chicago Film Critics Nominations, UPDATED: Houston and Indiana Critics Nominations”“Nominaciones Goya 2013 Telecinco Cinema – ENG”“Jameson Empire Film Awards: Martin Freeman wins best actor for performance in The Hobbit”“34th Annual Young Artist Awards”Bản gốc“Teen Choice Awards 2016—Captain America: Civil War Leads Second Wave of Nominations”“BAFTA Film Award Nominations: ‘La La Land’ Leads Race”“Saturn Awards Nominations 2017: 'Rogue One,' 'Walking Dead' Lead”Tom HollandTom HollandTom HollandTom Hollandmedia.gettyimages.comWorldCat Identities300279794no20130442900000 0004 0355 42791085670554170004732cb16706349t(data)XX5557367