Stat 330 1 Homework 10 Spring 2009 Webpage Counter Assume that hits on a webpage occur at a rate of 2 per minute. The hits occur independently, and the times between the hits have iid exponential distributions with a rate of λ. (a) Based on the problem description, what is the numerical value of λ for this scenario? (b) Suppose we start monitoring the webpage at 12:00pm. The 5 numbers below are iid realizations from a standard uniform distribution. 0.026 0.11 0.97 0.38 0.74 Use the 5 standard uniform realizations to simulate the times of the first five hits. Sketch a graph of the number of hits plotted as a function of time. (c) Suppose we monitor the webpage for two minutes. Let W be the number of hits in the first two minutes. What is the distribution of W? Explain how to use the five realizations of the standard uniform distribution above to simulate the number of hits in the first two minutes. What value of W do you get? 2 Hits on a web site The number of hits on a popular Web page follows a Poisson process with an arrival rate of 5 per minute. One begins observation at exactly noon tomorrow (WOI standard time). Let X(t) be the number of hits by time t. (a) What is the distribution of the number of hits in the first minute? Give the name of the distribution and the value(s) of parameter(s). What is the probability of 4 or less hits in the first minute? (b) What is the distribution of the time until the first hit? Give the name of the distribution and the value(s) of parameter(s). Compute the probability that the time till the first hit exceeds 10 seconds. (c) What is an appropriate distribution for the time until the 4th hit? State the distribution and parameter value(s). (d) Evaluate the probability that the time till the 4th hit exceeds 24 seconds. (e) Find the mean and the variance of the time till the 4th hit. (f) The number of hits in the first hour is Poisson with mean 300. You would like to know the probability of more than 350 hits. Exact calculation isn’t really feasible. So approximate this probability and justify your approximation. 3 Convenience Store A small but busy convenience store has room in its building for only 4 customers. It has 2 employees who work (interchangeably) waiting on customers and performing other tasks (such as stocking shelves). The work rule the employee follow is this: When there are 3 or 4 customers in the store, both wait on customers. When there are 2 or fewer customers in the store, only 1 employee waits on customers. Customers arrive at the store according to a Poisson process with rate λ = 1 (and go away if there is no room in the store). We will assume that they spend no time finding their items and that either employee can service them at a rate µ = 0.8. (a) Carefully draw an appropriate birth and death process transition rate diagram for this scenario. (b) What is the (large t) probability that there is no customer in the store? (c) Let X be the number of customers in the store (for large t). What is the probability mass function (pmf) of X? (d) What is the probability that there are less than 3 customers in the store? (e) What is the probability that an arriving customer is turned away? 4 Digital Communication System A secure digital communications system has a receiving station with a CPU that can decode messages at a rate of 1 per minute, and a buffer that will hold up to 3 of these messages. Suppose that messages arrive according to a Poisson process with rate .7 per minute. Making the assumption that decode times are exponential random variables, answer the following questions about the large t behavior of the receiving station. (a) Draw a state diagram of the number of messages in the system. (b) What fraction of the time is the CPU idle? (In other words, what is the (large t) probability that there are no messages in the system?) (c) Let X be the number of messages in the system (for large t). What is the probability mass function (pmf) of X? (d) What fraction of incoming messages are lost (i.e. arrive when the buffer is full)? (e) What is the mean number of messages in the system? What is the mean number of messages in the buffer? 5 Extra Credit: Bank Robberies Chicago has been struck by a crime wave. Alarmed by the increasing number of bank robberies and concerned about their effect on bank customers, the Banking Upper Management Society (BUMS) adopts the following policies at each bank: • one teller’s window is reserved for the exclusive use of bank robbers. • in order to conserve space, bank robberies may be committed only by a lone bandit. • if two or more robberies occur simultaneously, the robbers are served on a first-come, first-serve basis. You are engaged as a consultant by the Bank Robbers Federation (BARF). Your job is to determine if the proposed arrangement with the BUMS is adequate. The data you are given is: • Robbers arrive at random 24/7 (during open hours), the average arrival rate is 2 robberies per hour. • Teller service is exponential with an average of 10 min (special robber withdrawal forms expedite service) You are asked to determine (a) the probability that there is no robber in the bank (large t probability). 2 (b) the probability that the robber’s teller is busy. (c) the average number of robbers in the bank. (d) the average time a robber must queue for service (a robbery). (e) the average time required for a robbery (queuing time plus service time) 3