BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
1 ACCEPTED SOLUTION

Accepted Solutions
sasor902
Calcite | Level 5
2 REPLIES 2
sasor902
Calcite | Level 5
 
Reeza
Super User

Note that you do not need to post your question multiple times for assistance. 

 

Since this is clearly homework, can you please show what you've attempted so far, so we can provide advice and direction? I'm not comfortable providing answers to homework questions. 

 

 

EDIT: it's important to understand the approach to this question because you're likely required to use the methods you were taught in class, but there's several ways to accomplish this, either in Base SAS, IML or SAS/OR procs. Posting a solution in a different approach than you need isn't going to be helpful to you.


@sasor902 wrote:

The problem: A petrol station opens at 8pm and closes at 11pm. All through the evening, the inter-arrival time of customers has an exponential distribution with mean 1.3 minutes. Until 9.30pm customers are served inside the shop, with a service time that has an exponential distribution with mean 1 minute. Customers who arrive after 9.30pm are served through a hatch, with a service time that has an exponential distribution with mean 1.55 minutes.

 

(i) Simulate the arrivals at the petrol station throughout the 3-hour period (it is acceptable to simulate more than required, then discard those who arrive after 11pm). Simulate the corresponding service-times, and calculate the total waiting and service times for each customer. Explain carefully the meaning of each value you calculate.


 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Discussion stats
  • 2 replies
  • 1960 views
  • 0 likes
  • 2 in conversation