Chapter 17 - Køteori Flashcards
What is the basic queueing process?
We have customers that require some kind of service. Customers are generated over time by some kind of input source. These customers enter the queueing system and join a queue IF service is not immediately available.
At certain times, the queueing discipline determines some customer to serve.
The required service is then performed by the “service mechanism”.
After service, the customer leaves the queuing system.
Elaaborate onthe input source
The input source generates customers. We usually just consider infinite popluations, because this is more easy. However, there are important cases where we cannot do this.
We MUST use finite input source popluations if the “rate” at which the source generates customers is significantly affected by the size.
We must also specify the distribution by which the source generates customers. We usually assume Poisson. This means that the number of customers generated will follow some mean rate per time, but randomly.
If we have unusual characteristics, we must also specify them. for instance, “balking” is the process of avoiding a queue if it is too long. This could impact the queueing system.
What is balking?
balking is the process of avoiding a queue if it is too long.
What is the queue?
The queue is where customers wait BEFORE being served.
A queue is charactersized by its capacity, the maximum number of customers it can serve. Sometimes we just assume inifnite.
What is QUEUE DISCIPLINE?
Queue discipline refers to how the queueing process selects custoemrs t obe served. FIFO, LIFO, prioirity.
Elaborate on the service mechanism
The service mechanism refers to the unit(s) serving the customers. It can be a single station, or multiple i parallell. We can also have sequential stations.
It is important to characterize the service time. The service time follow a probability distribution as well. Typically exponential.
Why do we use exponential distribution rather than others?
it is “better” than others. It is not perfect.
we want the markov property. The markov property says that the next state should only depend on the current state, and not on anything else. We can get this exact result from the memoryless property found in the exponential distribution.
How do we typically label a queueing model?
We use the “Kendall-notation”.
Distribution of arrival times / Distribution of service times / Number of servers / Capacity of queue / Size of input source
We use the following letters:
M : Expo
D : Degenerate
Ek : Erlang k
G : General distribution
For instance: M/G/3/8/infinity
We typically omit the last one if it is infinity:
M/G/3/8
What is the “state of the system”?
The state of the system refers to the number of customer in the queuing system.
What is “queue length”?
The number of customers waiting for service to begin
What is N(t)?
The number of custoemrs in the queueing sytem at time t. Basically just “state at time t”.
What is Pn(t)?
The probability of there being exactly “n” customers in the queueing system at time t.
What is “s”?
S is the number of service stations, or “servers”.
What is lambda n?
Lambda n is the mean arrival rate of customers into the queueing system when the number of customers in the queueing system is already “n”.
What is µ n?
µ n is the mean service rate when there are n custoemrs in the queueing system. This is: The expected number of service completions per time when there are n people in the queueing system.
When lambda n is constant, what do we have?
We omit the “n”, and just use lambda. Same with µ
Use lambda and µ, when they are constant, to find expressions for the expected interarrival time, and the expected service time
1/lambda, 1/µ
What is the utilization factor of the service facility?
p = lambda / (sµ)
Recall that s is the number of servers, µ is the mean rate of service completion, lambda is the mean rate of arrivals.
Elaborate on transient and steady states
If enough time pass, the queueing system will become independent of the initial state. It will reach a steady state.
During the time the system is still affected by the initial state, we say the system is in a transient state.
What is Pn?
The probability of there being exactly n customers in a queueing syustem in its steady state.
What is L?
Provide the formula
L is the expected number of customers in the queueing system.
L = ∑nPn [n=0, infinity]
What is Lq?
Lq is expected queue length. It excludes the customers that are currently being served.
Lq = ∑(n-s)Pn [n=s, infinity]
What is W with fucked up notation?
The waiting time in the system for each individual custoemr, including service time.
What is W?
W =ExpectedValue(WfuckedNotaiton)
What is Wq?
Expected waiting time in the queue for some customer.
Give Little’s formula
L = lambdaW
[expected number of customers in the entire system] = [mean rate of arrivals]x[expected waiting time for each customer]
the following is also true:
Lq = lambda Wq
IF lambda is not the same (constant) for all n, we need to use the average lambda.
What is the relationship between W and Wq?
W = Wq + 1/µ
µ is the total server capacity. Important to include the fact that there might be more than one single server.
Why are L, Lq, W, Wq important+
Assuming we know lambda and µ, we just need one of these quentities, and we can use that one to find the remaining ones.
I suppose we do it like this:
1) We find L. L is usually the easiest to find.
2) Then we use Little to find W.
3) Then we use W=Wq+1/µ to find Wq.
4) Then we use Little to find Lq.
THe operating characteristics of queueing systems are determined largely by two factors:
1) Distribution of arrivals
2) Distribution of service times.
We use random variables that denote the time between arrivals, and time between services
What does the exponential probability function look like? how about its cumulative?
What is the mean of the exponential distribution?
1/alpha.
What is the variance of the expo?
1/alpha^2
What is the standard deviation of the expo?
1/alpha, the same as the mean.
When we assume that the queueing factors (interarrival times and service times) follow exponential distributions, what are the implications?
we consider 6 properties that are important for our models.
1) The expo is a strictly decreasing function of t. Therefore, it has a long tail. this tail represent outliers of customers that take a LOT of time to be serviced, or outliers in terms of LONG interarrival times.
Mathematically, the tail property means that “the probability of T being between 0 and ∆t is GREATER than the probability of T being between t and t+∆t”.
The RESULT of this is that T is likely to have a small value. This is the important outcome.
One problem with this representation is that if all server-operations for all customers is the same, we would expect most customers to be within the mean. But, in queueing where the operations are not necessarily the same, the expo is good.
2) Lack of memory.
The probability of T being greater than some value t+∆t , given that T>∆t, is the same as the probability of T being greater than t.
This means that the probability of “waiting t more time” is the same regardless of how long we have already waited. This is an important property of the exponential function.
3) The minimum of several expo random variables is a random variables with parameter a=∑ai, for all i=1 to n.
4) Relationship to Poisson distribution.
5) For all positive values of t,
fuck off
What is a birth and death process?
Arrivals and departures of customers before and after they have been served.
The entire point about birth and death processes, is the implication of state transitions. The point is that we can only increment or decrement the state. We move along a rate diagram of the states. We cannot go from state 5 to 15 in a sudden move. It is all controlled. Going from state 1 to state 3 involves going THROUGH state 2.
What does a birth and death process dsescribe?
Birth and death processes are a type of queueing process where a state can only increment or decrement by one at a time.
It is a simple system that assumes a simple way of looking at a state and state transitions.
What are the assumptions of a birth and death process?
1) Given a state N(t) = n, the current probability distribution of the remaining time until next “birth” (arrival) is exponential with parameter lambda n.
2) given a state N(t) = n, the current probability distribution of the remaining time until service completion (death) is exponential with parameter µn.
3) The random variable of assumption 1 and assumption 2, are mutually independent. The next transition is either n = n+1, or n = n-1, dependent on whether the former or latter random variable is smaller.
Lambda n and µn is typically the same for all values of n. But, what could make thm not the same?
Some queueing systems are more likely to experience “balking” or “reneging”. Balking is fucking off when looking at the queue. Reneging is leaving the queue at some point if they are pissed.
Of course we also have cases of multiple servers and finite calling populations which gives different rules for lambda n and mu n.
What is the outcome of the assumptions of the birth and death process?
The prrobabilities involving how the process will evolve in the future depends only on the current state. This lack of memory property is a key feature of the markov chain.
What is En(t)
The number of times that some process enters state n by time t.
What is Ln(t)
The number of times that some process Leaves state n during time between 0 and t.
We can never enter some state n two times in a row. If we want to enter state n, and we are currently in state n, we must enter either n+1 or n-1. What is the result of this?
|En(t) - Ln(t)| <= 1
We can then divide by t on all sides, and we get:
|En(t)/t - Ln(t)/t| <= 1/t
Then we let t go large.
lim t-> large |En(t)/t - Ln(t)/t | = 0
To elaborate on what this actually means: it means that we can use the principle of alternating states to create a probabilistic model that describes the probability of being in some state by looking at the probabilities of being in neighboring states as well as their rates.
Then we use the markov chain property to extend on the fact that each probability of being in some state can be found by using only previous state. This allows us to backtrack all the way until the beginning, where we have no probabilities involved. This is insane, and it is the entire foundation for that our queueing system model relies on. Without it, we would have required probabilities, which are extremely difficult to find. This makes birth and death processes very easy and elegant.