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.

Compare the simulated and the theoretical results. The theoretical mean can be calculated by weighting the two mean times with weights being the probabilities.

Homework Answers

Answer #1

SOLUTION:-

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

Then

The R code for simulating 10,000 resultent service times 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)

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 4.816 minutes

Please give thumb up...

Thank you in advance....

Know the answer?
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
Similar Questions
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
Customers arrive at a two server system at an exponential rate 10 customers per hour. However,...
Customers arrive at a two server system at an exponential rate 10 customers per hour. However, customers will only enter the resturant for food if there are no more than three people (including the two currently being attended to). Suppose that the amount of time required to service is exponential with a mean of five minutes for each server. (a) Write its transition diagram and balance equations. (b) What proportion of customers enter the resturant? (c) What is the average...
State Bank always has two tellers on duty. Customers arrive to receive service from a teller...
State Bank always has two tellers on duty. Customers arrive to receive service from a teller at a mean rate of 40 per hour. A teller requires an average of 2 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 minute before service begins. (a) Describe why this is a queueing system. (b) Determine the basic...
Agan Interior Design provides home and office decorating assistance to its customers. In normal operation, an...
Agan Interior Design provides home and office decorating assistance to its customers. In normal operation, an average of 3.2 customers arrive each hour. One design consultant is available to answer customer questions and make product recommendations. The consultant averages 12 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 =  minutes W =  minutes...
Agan Interior Design provides home and office decorating assistance to its customers. In normal operation, an...
Agan Interior Design provides home and office decorating assistance to its customers. In normal operation, an average of 2.7 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 = ____minutes W...
1. Willow Brook National Bank operates a drive-up teller window that allows customers to complete bank...
1. Willow Brook National Bank operates a drive-up teller window that allows customers to complete bank transactions without getting out of their cars. On weekday mornings, arrivals to the drive-up teller window occur at random, with an arrival rate of 6 customers per hour or 0.1 customers per minute. Also assume that the service times for the drive-up teller follow an exponential probability distribution with a service rate of 54 customers per hour, or 0.9 customers per minute. Determine the...