
2 GETTING OFF AND
BOARDING AT THE STOP
There are ξ
2n−1
passengers in the bus arriving at the
n − th stop. Some of these passengers may get off.
The remaining member is denoted by ξ
2n
. Next some
new passengers board the bus and the total number
of passengers in the bus after boarding is denoted by
ξ
2n+1
. The time during which the bus waits be de-
noted by t
2n+1
. The probabilities for passengers leav-
ing the bus are related as
P (2n) = Π
1
(n)P (2n − 1), (n = 1, . . . , N)
where the stochastic matrix Π
1
(n), for leaving the bus
has the form ( 3)
Here α
k
(n)denotes the probability of k passengers
getting off at the n − th stop. Next we consider new
passengers boarding the bus at the n − th stop. The
probability may be written by the vector equation
P (2n + 1) = Π
2
(n)P (2n), (n = 1, . . . , N ) (6)
where the stochastic matrix Π
2
(n) of boarding has the
form ( 4)
Here β
k
(n) denotes the probability of k passengers
boarding the bus at the n − th stop.
It is clear that α
k
(n), β
k
(n) depend on the number
of the stop, since at some stops more passengers gett
off or board than at other stops. The coefficients
α
k
(n), β
k
(n), λ may be set by experiments
3 CALCULATION OF THE
INCOME FROM RUNNING THE
BUS
The waiting time of the bus at the n − th stop will be
denoted by t
2n−1
and the time for the run along the
n − th segment of the route — by t
2n
(n =
1, . . . , N).
We will take into account the expenses for paying
the driver. If the driver works for a time t, he is paid
p
1
= bt
where b is some coefficient.
If the bus runs for a time t, we assume that the cost of
the fuel consumed and other operating costs is given
by
p
2
= ct,
where c is some coefficient.
A passenger buy a ticket with the cost a.
The price of a ticket for a ride is assumed to be inde-
pendent of length of the ride.
If we denote by x
2n−1
(n = 1, . . . , N) the income
derived from passenger transport at the beginning of
the n − th segment of the route and by x
2n
— the
income remaining at the end of the n − th segment of
route, then we obtain the system of difference equa-
tions
x
1
= x
0
− bt
1
+ a(ξ
1
− ξ
0
), x
0
= 0
x
2
= x
1
− (b + c)t
2
........................
x
2n−1
= x
2n−2
− bt
2n−1
+ a(ξ
2n−1
− ξ
2n−2
)
x
2n
= x
2n−1
− (b + c)t
2n
, (n = 2, . . . , N )
(7)
with the random inhomogeneous part depending on
the Markov process ξ
n
.
4 OBTAINING THE MOMENT
EQUATIONS
Consider the system of difference equations (7) writ-
ten in general form by letting
x
n+1
= x
n
+ g(n, ξ
n+1
, ξ
n
) (n = 0, 1, 2, . . .) (8)
where ξ
n
is a Markov chain taking values θ
0
= 0,
θ
1
= 1, . . . , θ
q
= q.
Let
P (n + 1) = Π(n)P (n), dim P (n) = q + 1, (9)
where the stochastic matrix Π(n) has the form ( 5)
The density distribution of the system (x
n
, ξ
n
)
may be described by the generalised funktion
(K.G. Valeev, 1996)
f(n, x, ξ) =
q
X
k=0
f
k
(n, x)δ(ξ − θ
k
). (10)
Funktions f
k
(n, x) (k = 0, . . . , q) are called the par-
ticular density disrtibutions. They may be defined by
the formula
P {x
n
< y, ξ
n
= θ
k
} =
Z
y
−∞
f
k
(n, x)dx (11)
(k = 0, 1, . . . , q).
We now obtain equations connecting particular den-
sity distributions (K. Janglajew, 2003)
P {x
n+1
< y, ξ
n+1
= θ
k
} =
Z
y
−∞
f
k
(n + 1, x)dx =
=
q
X
s=0
P {x
n+1
< y, ξ
n+1
= θ
k
, ξ
n
= θ
s
} =
=
q
X
s=0
P {ξ
n+1
= θ
k
|x
k+1
< y, ξ
n
= θ
s
} ×
× P {x
n
+ g(n, θ
k
, θ
s
) < y, ξ
n
= θ
s
} =
=
q
X
s=0
π
ks
(n)
Z
y−g(n,θ
k
,θ
s
)
−∞
f
s
(n, x)dx.
ICINCO 2004 - SIGNAL PROCESSING, SYSTEMS MODELING AND CONTROL
200