Results 1 to 2 of 2

Math Help - Queueing Query with Maple

  1. #1
    Junior Member
    Joined
    Nov 2009
    Posts
    64

    Queueing Query with Maple

    I have a queue with 1000 time intervals.

    The average length over 1000 intervals was 2.718

    I'm looking for the probabilities that a given state will jump up, p_1, or down, p_2

    I ran the following through maple to count the number of times the queue moved up or down (qdata is the list of 1000 queue values):

    nup:=0;
    ndown:=0;

    for i from 1 to 999 do
    if qdata[i+1]>qdata[i] then
    nup:=nup+1;
    elif qdata[i+1]<qdata[i] then
    ndown:=ndown+1;
    end if;
    end do:

    p1:=evalf(nup/1000);
    p2:=evalf(ndown/1000);


    I ended up with p_1 = 417 and p_2 =421

    I'm wondering if there is a problem here. Am I not taking into account when the queue length is zero and it has no probability of moving down?

    Would it make sense to add this into the do loop:

    elif qdata[i]=0 then
    ndown:=ndown-1;

    Or does the original code give the proper values? Am I missing something?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Junior Member
    Joined
    Nov 2009
    Posts
    64
    Am I going about this the wrong way? Since there are 1000 intervals, should I be thinking about the normal distribution...
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 0
    Last Post: November 30th 2011, 03:25 PM
  2. queueing theory
    Posted in the Discrete Math Forum
    Replies: 0
    Last Post: March 8th 2011, 08:51 PM
  3. Little's law Queueing system
    Posted in the Advanced Statistics Forum
    Replies: 0
    Last Post: May 24th 2010, 04:14 AM
  4. Queueing
    Posted in the Advanced Statistics Forum
    Replies: 0
    Last Post: November 18th 2008, 04:46 AM
  5. Queueing system
    Posted in the Advanced Statistics Forum
    Replies: 1
    Last Post: August 18th 2007, 05:50 PM

Search Tags


/mathhelpforum @mathhelpforum