Question

Two mechanics are changing oil filters for the arriving customers. The service time has an Exponential...

Two mechanics are changing oil filters for the arriving customers.
The service time has an Exponential distribution with mean 12 minutes for the first mechanic,
and mean 3 minutes for the second mechanic. When you arrive to have your oil filter changed,
your probability of being served by the faster mechanic is 0.8.
Use simulation to generate 10000 service times and estimate the mean service time for you.

Using R code

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Let the service time for first mechanic be X_1 and the service time for first mechanic be X_2.

Then X1~ Exp( 1/12), X2~ Exp(A = 1/3)

The resulting service time is X_2 with probability 0.8 and X_1 with probability 0.2.

The R code for simulating 10,000 resultant service times X and finding the mean is given below.

set.seed(7657)
N <- 10000
X <- array(dim=N)
for(i in 1:N)
{
u <- runif(1)
if(u<0.8)
{
X[i] <- rexp(1,rate=1/3)
}
else
{
X[i] <- rexp(1,rate=1/12)
}
}
mean(X)

The mean service time is 4816 minutes

Add a comment
Know the answer?
Add Answer to:
Two mechanics are changing oil filters for the arriving customers. The service time has an Exponential...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • A single bay car wash with an exponential arrival rate and service time has cars arriving...

    A single bay car wash with an exponential arrival rate and service time has cars arriving an average of 10 minutes apart, and an average service time of 2 minutes. The utilization factor is:

  • Consider a simple queuing system in which customers arrive randomly such that the time between successive...

    Consider a simple queuing system in which customers arrive randomly such that the time between successive arrivals is exponentially distributed with a rate parameter l = 2.8 per minute. The service time, that is the time it takes to serve each customer is also Exponentially distributed with a rate parameter m = 3 per minute. Create a Matlab simulation to model the above queuing system by randomly sampling time between arrivals and service times from the Exponential Distribution. If a...

  • A service facility has customers arriving at the rate of 8 customers per hour.  The average time...

    A service facility has customers arriving at the rate of 8 customers per hour.  The average time customers spend in the facility is 19 minutes. How many customers are in the facility on average?

  • 4. The time (in minutes) that it takes a mechanic to change oil has an exponential...

    4. The time (in minutes) that it takes a mechanic to change oil has an exponential distribution with mean 25 a) Find PX22), P(X> 15), and P(15 <X<22) b) Find the median.

  • The parts department of a large automobile dealership has a counter used exclusively for mechanics’ requests...

    The parts department of a large automobile dealership has a counter used exclusively for mechanics’ requests for parts. The time between requests can be modeled by a negative exponential distribution that has a mean of five minutes. A clerk can handle requests at a rate of 15 per hour, and this can be modeled by a Poisson distribution that has a mean of 15. Suppose there are two clerks at the counter. On average, how many mechanics would be at...

  • Sharp Discounts Wholesale Club has two service desks, one at each entrance of the store. Customers...

    Sharp Discounts Wholesale Club has two service desks, one at each entrance of the store. Customers arrive according to a Poisson distribution at each entrance at an average of one every 7.5 minutes. Without exception, when customers finish shopping, they checkout at the service desk near the entrance where they entered the store. The negative exponentially distributed service time is 6 minutes per customer. How many customers, on average, are in each service desk system (waiting and being served)?

  • JAVA CODE REQUIRED A barber shop has one or more barbers who service customers as they...

    JAVA CODE REQUIRED A barber shop has one or more barbers who service customers as they arrive on a first- come-first-serve basis. Depending on the type of haircut a customer desires the service time varies. A barber shop also has a limited number of chairs for waiting customers. If all the chairs are filled, an arriving customer leaves without entering. For this assignment you will simulate a barber shop with customers arriving at various times each requiring a variety of...

  • Rapid Bank always has three tellers on duty. Customers arrive to receive service from a teller...

    Rapid Bank always has three tellers on duty. Customers arrive to receive service from a teller at a mean rate of 45 per hour. A teller requires an average of 3 minutes to serve a customer. When both tellers are busy, an arriving customer joins a single line to wait for service. Experience has shown that customers wait in line an average of 1.5 minutes before service begins.Determine the basic measures of performance – ??, ?, ??, and ? –...

  • The time required for Quick Changers to complete an oil change service on an automobile follows...

    The time required for Quick Changers to complete an oil change service on an automobile follows a normal distribution, with a mean of 17 minutes and a standard deviation of 2.5 minutes. Quick Changers guarantees customers that the service will take no longer than 20 minutes, else the service is half-price. If Quick Changers does not want to give the discount to more than 3% of its customers, how long should it make the guaranteed time limit? (Round to the...

  • Problem 11-11 (Algorithmic) Agan Interior Design provides home and office decorating assistance to its customers. In...

    Problem 11-11 (Algorithmic) Agan Interior Design provides home and office decorating assistance to its customers. In normal operation, an average of 2.9 customers arrive each hour. One design consultant is available to answer customer questions and make product recommendations. The consultant averages 10 minutes with each customer. Compute the operating characteristics of the customer waiting line, assuming Poisson arrivals and exponential service times. Round your answers to four decimal places. Do not round intermediate calculations. Lq = L = Wq...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT