Question

In: Electrical Engineering

Submit your calculation/answer for Part 1 and MATLAB code/result/answer for Part 2 below: Servicing Customers A...

Submit your calculation/answer for Part 1 and MATLAB code/result/answer for Part 2 below:

Servicing Customers A supermarket you work part-time at has one express lane open from 5 to 6 PM on weekdays (Monday through Friday). This time of the day is usually the busiest since people tend to stop on their way home from work to buy groceries. The number of items allowed in the express lane is limited to 10 so that the average time to process an order is fairly constant at about 1 minute. The manager of the supermarket notices that there is frequently a long line of people waiting and hears customers grumbling about the wait. To improve the situation he decides to open additional express lanes during this time period. If he does, however, he will have to "pull" workers from other jobs around the store to serve as cashiers. Hence, he is reluctant to open more lanes than necessary. Knowing that you are a college student studying probability, your manager asks you to help him decide how many express lanes to open. His requirement is that there should be no more than one person waiting in line 95% of the time. With the task at hand, you set out to study the problem first. You start by counting the number of customer arrival in the express lane on a Monday from 5 to 6pm. There are a total of 81 arrivals. You repeat the experiment on the following four days (Tuesday through Friday) and note the total arrivals of 68, 72, 61 and 66 customers, respectively.

Part 1: Analysis (2% of final grade) In order to solve the problem, you decide to answer the following set of questions:

1)

2)Ans= 1.16

3) Ans = 67.71%

4) Ans= 96.53%

Part 2: Simulation (2% of final grade)

Before telling your manager your recommendation, you decide to simulate the problem first to verify your solution:

1) You decide to approximate the customer arrival process as follows. You treat each one-second interval as a Bernoulli trial. Assign it to be a one, if there is a customer arrives during that interval, zero if no customer arrives.

2) You count the number of customers arrives during a one-minute interval.

3) You count the total number of minutes out of a one-hour period that have two or fewer customers arrive. Does this number give your probability close to your calculation in Part 1 Prob 3?

4) Now based on your answer to Part 1 Prob 4, assign the arrivals in Part 2 Prob 1 with equal probabilities to the number of express lanes you recommend.

5) You count the number of customers arrives at each lane during a one-minute interval.

6) You count the total number of minutes out of a one-hour period that all lanes have two or fewer customers arrive. Does this number give you probability close to your calculation in Part 1 Prob 4?

Done in MatLab please.

Solutions

Expert Solution

  • ANSWER FOR 1:

Average number of customer arrivals at the express lane from

  1. to 6pm on weekdays = (81+68+72+61+66)/5 = 69.6
  • ANSWER FOR 2:

          Average number of customer arrivals

  • in a one-minute interval = 69.6/60 = 1.16

for the number of customers PMF arrived during a one-minute interval in this period

               P(X=k) = e-1.16 * 1.16k / (k!)

  • ANSWER FOR 3:
  • P(X<=2) = P(X=0) + P(X=1) + P(X=2)

                             = 0.3135 + 0.3636 + 0.2109

                             = 0.888

  • for about 88.8% of the time, here TWO or fewer customers in queue
  • P(X<=1) = P(X=0) + P(X=1)

                               = 0.3135 + 0.3636

                              = 0.6771

  • there are 1 or lesser persons in queue about 67.71% of the time.
  • This does not satisfy the manager's requirement of no more than one person waiting in line 95% of the time.
  • ANSWER FOR 4:
  • If there are 2 lanes, average number of persons in a one-minute interval = 1.16/2 = 0.58
  • P(X<=1) = P(X=0) + P(X=1)

                        = 0.5599 + 0.3247

                       = 0.8846

  • If there are 3 lanes, average number of persons in a one-minute interval = 1.16/3 = 0.3866
  • P(X<=1) = P(X=0) + P(X=1)

= 0.6793 + 0.2627

= 0.942

  • If there are 4 lanes, average number of persons in a one-minute interval = 1.16/4 = 0.29
  • P(X<=1) = P(X=0) + P(X=1)
  • = 0.7483 + 0.217
  • = 0.9653

So about 96.53% of the time, there are 1 or fewer persons in queue

  • So to satisfy the manager's requirement of of no more than one person waiting in line 95% of the time, there should be 4 lanes.

Related Solutions

please answer part 2 . the code for part 1 is provided at the end. Part...
please answer part 2 . the code for part 1 is provided at the end. Part 1 There is a pair of functions in stdlib.h (make sure to include it) that are used for generating pseudo-random numbers. These are "srand" and "rand". Examples are on pages 686 and 687. E.g., function "srand(3)" provides the seed value of 3 to the srand function. (3 is just a number, and probably isn't even a good number for this purpose, but that's a...
Part 1: Determining Costs For part 1 Submit your answer showing the appropriate calculations! This way...
Part 1: Determining Costs For part 1 Submit your answer showing the appropriate calculations! This way I can tell if it was a math error or if you were not able to calculate costs. Mrs. A. Smith has requested records from her last inpatient stay in the hospital and states that she will pick the records up when they are ready. Her stay was a result of a motor vehicle accident and she is requesting the films of her head...
USING MATLAB Part 2: Insert coins For this part, you are going implement the code that...
USING MATLAB Part 2: Insert coins For this part, you are going implement the code that asks the user to enter coins until they have entered enough for the NAU power juice. Open the insert_coins.m file. Initialize total to 0. We do this because initially, no coins have been entered. Using a loop, ask the user to enter a coin until the total matches or exceeds 115 cents. The input should be a char or string, so make sure that...
Fill in the blanks in the MATLAB code below.
Fill in the blanks in the MATLAB code below. (Do not type unnecessary words or blank spaces in your response. The correct answers are case-sensitive.) % Consider a row vector v. % Complete the lines of code below to find the average and standard deviation of the elements of vector v such that these two values are assigned to variables M and S, respectively. E = G =
Please submit a screenshot of where your code got compiled, executed, showing the execution result Write...
Please submit a screenshot of where your code got compiled, executed, showing the execution result Write a program/function in python that will perform the following functions, when the program is executed, to demonstrate the features of an OOP language—ADT, inheritance, and polymorphism: Prompt a list of options—the main menu, below to compute the area of selected shape with input parameters: triangle rectangle square circle parallelogram Exit Per the selected option, prompt grader to enter the corresponding required parameters as described...
Implement the steffenson method in matlab. The code must be in MATLAB DOnt answer if you...
Implement the steffenson method in matlab. The code must be in MATLAB DOnt answer if you cannot give correct MATLAB
Chapter 4 Assignments - Part #1 (Part #2 is on next page) Submit an HTML file...
Chapter 4 Assignments - Part #1 (Part #2 is on next page) Submit an HTML file attached to an email with your web page containing the elements below. - Create a web page with a comment containing your name after this line. o - In the head section, add character encoding. - Add the title "Chapter 4 Web Page #1 - by yourname" - Create a file called myStyles.css as the style sheet for the web page. - Add the...
Using the R package to answer the following two questions. You MUST submit your R code...
Using the R package to answer the following two questions. You MUST submit your R code for analysis. 2. Below are heights for a simple random sample of n = 15 young trees (in cm). (50 pts) 27, 33, 33, 34, 36, 37, 39, 40, 40, 41, 41, 42, 44, 46, 47. (a) Test the hypothesis that the mean tree height is equal to 38 cm. (b) Calculate the 95% confidence interval for the population mean of young trees. (c)...
Using the result of table-1 and table- 2, make the following ratio calculation (use the 1.2...
Using the result of table-1 and table- 2, make the following ratio calculation (use the 1.2 N-m characteristics as the full load values) a. Starting current to full load current b. Starting torque to full load torque c. Full load current to no load current 13. What is a squirrel phase induction motor? 14. How do you start squirrel phase induction motor? 15. Suggests that you buy a motor rated for twice the torque you need so as to be...
[Only answer part 2] part 1: What is the public IP address of your machine? How...
[Only answer part 2] part 1: What is the public IP address of your machine? How can you know your public IP address of the machine? (Hint: ask Google.) How does a website know your public IP address? Is it different from the IP address shown on the network interface obtained by ifconfig? part2: Why are they different? (Hint: NAT.) What does this NAT thing do (briefly explain it in one sentence)? Who did it? (Hint: the VirtualBox software may...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT