I have an M/M/1 queue. In the documentation says that one can Slice distribution of an M/M/1 queue with inexact parameters
. This slice behaves (somehow) as a ProbabilityDistribution
that can be given as a parameter to for example, PDF[]
. The relevant code is:
Q = QueueingProcess[4.3, 5];
DiscretePlot[PDF[Q[4], x], {x, 0, 10}]
I want to compute the expected value of L (number of entities in the system/length of the queue) after a finite time. However, if I try to do Mean[Q[4]]
(which seems logical if the slice is indeed a discrete probability distribution,) I don't get a result, but an unevaluated expression.
Below is a screenshot of a more complete example of the situation:
Question: Is there a function or simple expression to get the expected value, or I just have to go for an infinite summation?
NExpectation[]
instead:NExpectation[k, k \[Distributed] Q[4]]
$\endgroup$Expectation[]
but not the numeric version. Would you like to write that as an answer? $\endgroup$