Expontential distribution

In summary: The computer program showed me that c=2 is the limit for when the mean time for Naomi is less than the maximum of (1/lamda1, 1/lamda2). So it looks like c=2 is the smallest value for c which makes this true. What do you think
  • #1
skwey
17
0

Homework Statement


3 people John, Paul and Naomi enter simultaniously a postoffice. There are only 2 clerks there, john and paul go first. The service time is exponentially distributed with parameters lamda1 and lamda2. Naomi must wait uintil either John or Paul is finised.

The time that Naomi spends in the post office is less than for John or Paul provided that
max(lamda1,lamda2)>c*min(lamda1,lamda2) for some constant c. What is this constant?


Homework Equations


E(X1)=1/lamda1, E(X2)=1/lamda2, x1 and x2 are the service times

I also use P(clerk one finish first)=P(X1>X2)=X1/(x1+X2)


The Attempt at a Solution



I tried to do this by saying that the expected service time for Naomi has to be less than the expected service time for the "oponent", this is the person of John or Paul left standing. I compare expected values from when Naomi starts, because it is a meomryless distribution. So when Naomi is serviced I can say that the oponents distribution starts from scratch. The oponent can be either John or Paul, depending on who finishes first.

E(Naomi service time-oponent service time)=

E(Naomi service time-oponent service time|Naomi gets service with the fastest clerk)*P(Naomi gets service with the fastest clerk)+
E(Naomi service time-oponent service time|Naomi gets service with the slowest clerk)*P(Naomi gets service with the slowest clerk)
=
max(lamda1,lamda2)/(lamda1+lamda2)*[1/max(lamda1,lamda2)-1/min(lamda1,lamda2)]
+min(lamda1,lamda2)/(lamda1+lamda2)*[1/min(lamda1,lamda2)-1/max(lamda1,lamda2)]
I say that this has to be less than 0 (<0) because then it means that Naomi has the lowest extected time

this gives max(lamda1,lamda2)>min(lamda1,lamda2)

so c=1

But the answer is supposed to be 2-sqrt(3),can anyone please help?
 
Physics news on Phys.org
  • #2
The question is not posed that well...

Do you mean find c, such that the average time Naomi waits is less than the average of one of John or Paul?

Also are you counting the time she waits whilst they are being served, before her service begins? If so early one of them must be quicker than Naomi, each time and on average.

As a start you could simplify notation wlog by setting lamda2>lambda1

Note also if required you could easily find the joint pdf, as the diffferent tellers finishing are independent events.

And whilst you know the probability of each teller finishing first, the tricky part may be working out how much time she spends waiting on average prior to the teller finishing with Paul (or John)...
 
  • #3
Here is the question.

Consider a post office with two clerks. John, Paul and Naomi enter simultaneously. John and Paul fo directly to the clerks, while Naomi must wait until either John or Paul is finished before she begins service.

a. If all the service times are independent exponentially distributed random variable with the same mean 1/lamda, what is the probability that Naomi is still in the post office after the other two have left.

b. Hoes does your answe change if the two clerks have different service rates, say lamda1=3, and lamda2=47.

c. The mean time that Naomi spends in the post office is less than that for John or Paul provided that max(lamda1,lamda2)>cmin(lamda1, lamda2) for a certain onstant c.

What is the value of this constant.

I think my calculations in the first post is wrong, there I look at the mean of the difference of each run(where we look at both naomis time vs john or pauls.) but I think we should look at the difference of the means of Naomi vs the slowest of paul or john. That is mean[difference on each run] is not the same as difference of means. So to your question, in the first postI didnt have to look at the service time before Naomi got serviced, because it would cancel in the difference, but when I look at difference of total means, I take it into account:
I tried it agan and looked at the mean waiting time for Naomi, and said like you that lamda2>lamda1. x1, and x2 are service times for the two clerks for John and Paul, x3 is service time for naomi at either clerk 1 or 2
-
E(Naomi, time)=E(Naomi|x1<x2)*P(x1<x2)+E(Naomi|x2<x1)*P(x2<x1)
=E(x1+x3|x1<x2)*P(x1<x2)+E(x2+x3|x2<x1)*P(x2<x1)
=[E(x1|x1<x2)+E(x3)]*P(x1<x2)+[E(x2|x2<x1)+E(x3)]*P(x2<x1)
Here I used that x3 is independent of x1 and x2, but the expected value of x1 and x2(given x1<x2 or x2<x1) depends on the fact that x1<x2 or x2<x1. Also note the fact that x3 either has paramter lamda1 or lamda 2, in the first part it has paramtere lamda1 for the first clerk, and in the second part, it has paramtere lamda 2 for the second clerk.

=1/lamda1+1/lamda2+2/(lamda1+lamda2)-lamda2/(lamda1+lamda2)^2-lamda2/lamda1/(lamda1+lamda2)-lamda1/(lamda1+lamda2)^2-lamda1/lamda2/(lamda1+lamda2).

There was some integration involved here. i wrote a MATLAB program which simulates this process, and the formula agrees, the avarage of many Naomi times, agrees with the formula. But what is correct to do now? Is it correct to set this smaller than 1/lamda1?(since it would be the mean of the longest of johns or pauls time) If I do that I get that lamda2>2*lamda1, that is the constant c=2. It is not then 2+sqrt(3) as the answer appendix says. The interesting part is that in the omputer program the mean time for Naomi is less than the maximum of (1/lamda1, 1/lamda2) when c=2, at c=2 it changes from bigger to smaller.
 
Last edited:

1. What is the exponential distribution?

The exponential distribution is a probability distribution that describes the time between events in a Poisson process, where events occur continuously and independently at a constant average rate. It is often used to model the lifespan of electronic components, the time between earthquakes, and the waiting time in a queue.

2. How is the exponential distribution different from other distributions?

The exponential distribution is unique in that it has a constant failure rate, meaning that the probability of an event occurring in a given time period is independent of the length of the time period. This is in contrast to other distributions, such as the normal or binomial distribution, where the probability of an event changes based on the length of the time period.

3. What is the formula for the exponential distribution?

The probability density function (PDF) for the exponential distribution is given by f(x) = λe^(-λx), where λ is the rate parameter and x is the time interval between events. The cumulative distribution function (CDF) is F(x) = 1 - e^(-λx). These formulas can be used to calculate the probability of an event occurring within a certain time interval.

4. How is the exponential distribution used in real-world applications?

The exponential distribution has many practical applications, such as in reliability engineering to model the failure rate of components, in queuing theory to model the waiting time in a queue, and in finance to model the time between market crashes. It is also commonly used in survival analysis to estimate the probability of an individual surviving past a certain age or time point.

5. Can the exponential distribution be applied to non-time based events?

While the exponential distribution is commonly used to model the time between events, it can also be used for non-time based events as long as the events occur continuously and independently at a constant rate. For example, it can be used to model the number of defects per unit in a manufacturing process or the distance between occurrences of a certain type of behavior.

Similar threads

  • Calculus and Beyond Homework Help
Replies
1
Views
910
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
762
  • Calculus and Beyond Homework Help
Replies
3
Views
3K
  • Calculus and Beyond Homework Help
Replies
12
Views
2K
  • Calculus and Beyond Homework Help
Replies
6
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
10
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
840
Back
Top