On Individual Repositioning Distance along Platform during Train Waiting

Out of waiting times spent in rail stations on boarding platforms, some part can be reinvested by the trip-makers to optimize their positions of boarding and save on travel time for the rest of their trips. This paper provides a stochastic model, in which user’s journey is decomposed into phases of, successively, walking in the access station, platform positioning, waiting for boarding, train riding, and walking in the egress station. Walking speed and target position are modeled as individual factors, and in-station distances as random variables. Service timetable is exogenous. This makes egress times and exit instants random variables that are characterized by distribution and mass probability functions under closed-forms, for both single and distributed walking speeds. Specific statistical distributions are shown to ease computation.The resulting PDF formulaemake likelihood functions of themodel parameters.Maximum likelihood estimation is proposed and applied to a case study of commuter rail line in Paris: journeys between stations Vincennes and La Défense along line A of the Regional Express Railways. Based on data from Automated Fare Collection and Automatic Vehicle Location systems and pertaining to an individual user, satisfactory results were obtained.


Introduction
Passenger waiting time is one of the most crucial factors for transit design and planning, related to passenger satisfaction and to measure public transport (PT) quality of service [1][2][3][4].However, it was significant at the trip level in urban PT, and the ratio of passenger actual waiting time to actual journey time was between 10 and 30% [5][6][7].Furthermore, waiting time is most often spent at standing, often so in a crowded place.That makes passenger less comfortable.In the literature, social sciences tried to reduce perceived or actual waiting time, or emotional and psychological costs, whereas operations research investigated waiting time reduction strategies [8][9][10][11][12], as waiting time could be considered scarce, economic resource and unavoidable [13,14].In order to maximize time utility, some passengers allocate waiting time to activities/preoccupations. However, beyond the waiting time investigations, existing research does not sufficiently explore how to reuse the actual waiting time to perform an efficient travel, especially in high-frequency urban rail PT system.That has received only some attention in cognitive aspect [10,[15][16][17][18].
Despite the attention paid so far to individual waiting time reuse in PT station, a related issue seemed to remain unexplored: the reuse of waiting time for passenger repositioning along the boarding platform.Of course, this is of interest for railway-based transit submodes only, since the platform lengths of these modes extend from some dozen meters up to some hundred meters, e.g., up to 200 m in Paris.Assuming that individual walking speeds range from 0.8 to 1.7 m/s, repositioning time from one platform end to another may reach 0.5 to 3.5 min, indeed a valuable gain for passengers in their daily schedules.The influence of waiting time on individual walk on boarding platform can be significant.Such extent makes the "longitudinal" positioning of individual passengers along their trains a matter of significance for their journeys, since it involves walking times along the platform at both access and egress stations, together with waiting time and comfort on the boarding platform as well as in-vehicle in relation to the distribution of passengers along the train.This pushed frequent passengers (e.g., commuters) to optimize their longitudinal position along the boarding platform with respect to their egress station [19], and also "travel assistant" applications (such as CityMapper, RATP, Paris ci la sortie du Métro) to deliver positioning advice to every passengers, including occasional ones (e.g., tourists).
Railway operators, on their side, consider the longitudinal positioning of candidate riders in relation to train dwelling times: higher passenger densities at some spots along the platform will not only require more boarding time but also slow down the egress of alighting passengers.Dynamic information via travel assistants or specific signage such as with variable color panels has recently been implemented on an experimental basis [20].From a recent survey in the Paris area of passengers boarding in a suburban train station about their eagerness to reposition themselves in relation to platform crowding, it was shown that the acceptable shift amounts to 2.4 cars on average, about 50 m [19].
The objective of this paper is to estimate passenger longitudinal repositioning distance on boarding platform during train waiting and underlying distributions of individual walking speed and distances.Building upon our previous stochastic models [21][22][23] based on smartcard data, a stochastic modeling approach about passenger individual repositioning distance with posterior analysis is proposed in this paper, by extending our primary model about passenger longitudinal repositioning [24].
Concerning the proposed passenger flow stochastic model, over the last decade, a new branch of knowledge was emerged, the modern data measurement and data-driven statistical analysis in PT field.Modern data, Automated Fare Collection (AFC) data and Automatic Vehicle Location (AVL) data, among others have become available either for PT service evaluation and improvement, or for passenger flow analysis.Passenger flow study has given rise to the stochastic modeling and statistical estimation of fine individual passenger travel phenomena by trip leg or in station in rail transit system, a closed black-box.Several relevant studies are reviewed in greater details as below; for other applications about AFC data see [25,26].
The stochastic features of passenger journeys were modeled by [27], who decomposed every journey into separate stages, walking-in, wait, walking-out, and transfer between Origin-Destination (O-D) pairs.A regression model was proposed to generate distributions of walking-in and walkingout times in access and egress stations (gamma distributions) and distributions of waiting times at access and transfer stations (uniform distributions) including the additional waiting time caused by fail-to-board.Based on Poisson arrival assumption, a mixed-weight inference of passenger path choice behavior, gate-to-gate journey time distribution, and crowding metrics on platform were derived from AFC data between two O-D pairs in Beijing.Based on this study, Sun and Schonfeld [28] further developed a schedule-based assignment model by extending the fail-to-board (or left behind) model of [29], and then the transfer penalty.Since simplified assumptions were taken, that constrained the model application.
A key element in the transit model is the probability of matching between a given train run serving the boarding station and a given passenger journey.To generalize the previous works in [27,28], Zhu et al. [30][31][32][33] devised a probabilistic individual Passenger-to-Train Assignment Model (PTAM), in which the matching probability between train runs and individual journeys was emphasized, for rail transit service estimation.A regression model of passenger walking speeds was considered.The PTAM was developed so as to provide estimators of the main state variables of passenger flows both in-station (waiting loads) and in-vehicle (loading snakes) times as well as in passenger in access and egress stations.Within this wide scope, the issue of passenger positioning was mentioned: Zhu [30] suggested modeling it as a Random Variable (RV), yet apparently with no further development.The model was applied on a five-station metro line segment using AFC data and AVL data of HongKong and validated by synthetic data.The authors proposed estimation for several factors, the distributions of passenger walking-in and walking-out speeds by trip leg, the distribution of failto-board (left behind) on boarding platform (the number of trains/times a passenger unable to board due to capacity constraint), and in-station crowding level.Nevertheless, this study considered explicitly only distributions of walkingin and walking-out speeds (as normal distributions) and a two-itinerary choice scenario without transfer.To integrate transfer in crowding discomfort analysis, Hörcher et al. [34] combined the probabilistic assignment model of [31][32][33] with the standing and sitting choice models [35,36] and applied to a PT network of HongKong.A group of transfers and their choices are modeled in a Bayesian framework at the journey level to model complex trips that could involve transfers hence combine legs (journeys), in order to study route choice between station pairs and reveal the influence of in-vehicle congestion on route disutility to passengers.
In the meanwhile, in more recent studies, econometric methods were also applied for modeling and estimating individual passenger in-station underlying statistical distributions.Inspired from the econometric approach using highway individual vehicle toll data in [37,38], Leurent and Xie [21] modeled explicitly constant or uniform-distributed passenger walking speed with shifted exponential-distributed distances by trip leg.Individual passenger movement was integrated to train run.Parameters were estimated by the Maximum Likelihood Estimation (MLE) by using AFC data and timetable of the line RER A in Paris area.These two models in [21] were further developed by adding a shifted exponential-distributed waiting time in [22], which made computation tractable and yielded consistent estimates with formers.Xie and Leurent [23] demonstrated that normaldistributed walking speed reduced likelihood function computation complexity.Our stochastic models and related MLE were much analogous to those in [30][31][32][33].Their independent development led to respective assets: the authors had a wide scope of traffic variables and considers fail-to-board an arriving train, which we did not take into account.Nevertheless, on our side, there was a linkage between the tap-in and tapout (TITO) times based on the individual walking speed, in addition to the explicit consideration of individual positioning.Moreover, the consideration of passenger individual distances in the model resolved the conservative assumption that the minimum access and egress time were zero (infinite passenger speed) in [27,28,[31][32][33].Simultaneously, [39] provided a stochastic frontier model by extending the model in [40] for estimating Erlang-distributed waiting time and service reliability.Walking times and in-vehicle travel time were normal distributions.Parameters were also estimated by the maximum likelihood method using AFC data and timetable of the Piccadilly line of London's underground network.
Since the study on passenger longitudinal repositioning distance along boarding platform during train waiting was scarce, passenger longitudinal repositioning distance was primarily modeled in our most recent work [24].By extending this model, a novel approach about passenger individual repositioning distance with posterior analysis is proposed in this paper.To simplify computation complexity and save model optimization time, the passenger longitudinal repositioning distance is modeled explicitly, but implicit for waiting times.It brings about an explicit model that is both physical and probabilistic: longitudinal repositioning distance is modeled in relation to walking distances on the boarding and alighting platforms and to the individual passenger walking speed and the time available to the passenger for walking along the platform up to the train arrival hence prior to boarding it.The influence of longitudinal position is traced out on the passenger journey time between selected points in the access and egress stations, such as tap gates.Analytical formulae are obtained for related Probability Density Functions (PDFs) of tap-out times conditioning on tap-in time and walking speed, or on tap-in time only.They are analytical closed-form PDFs that provide likelihood functions, which are tractable by MLE under a simple specification of the basic statistical distributions.To accomplish that, computation and optimization are detailed.Posterior analysis imitated Bayesian analysis is applied.Train occurrence and passenger trips are reanalyzed.
This paper is organized as follows.Section 2 provides the physical and stochastic model in a bottom up way from elementary bricks by journey phase to individual journey time.The analytical formulae of the probability to take a given train, the distribution of repositioning distances and the distributions of egress times are built.In Section 3, particular statistical distributions are selected as inputs in order to obtain closed-form formulae for the PDFs of interest, thus easing the computation of the model outcomes.Section 4 puts forward the statistical estimation scheme.MLE with optimization is involved on the basis of AFC and AVL datasets in order to estimate the parameters of the statistical distributions.The resulting estimates can then be used for ex-post analysis of individual journeys so as to infer their most likely features.A real case study on the commuter line RER A in Paris area, France, is provided in Section 5. Estimation results are provided for boarding positions, walking speeds and in-station walking distances, and applied to posterior analysis for inferring passenger individual journey details.Lastly, Section 6 assesses the outreach and limitations of our approach and points to directions for further research.

Physical and Stochastic Models of Passenger Repositioning along the Platform
Stochastic models on passenger repositioning between a pair of O-D stations (called also a trip leg) are depicted in this section.This study is built upon the time-space diagram of traffic flow theory, the kinematic theory, and basic econometric theory to understand passenger individual instation movement related to train run choice by trip leg along an urban rail transit line.
We first state the physical model of one individual passenger making a train journey by availing oneself of train runs and waiting time prior to boarding (Section 2.1).The in-station walking distances are salient features, which are modeled as RVs (Section 2.2).This makes the passenger access to train runs a stochastic process.We derive the probability distributions of passenger-to-train assignment, of the walking (positioning) distance along boarding platform, and of the residual waiting time up to boarding.The egress phase is also a stochastic process, in which the distance that remains to walk along the alighting platform is a RV, the total walking-out time from train alighting to tap-out gate and the tap-out instant from the egress station as well.Lastly, we model the walking speed as a RV and derive the consequences on access and egress processes (Section 2.3).The main notations used in this study are introduced in Table 1.

Physical Model of a Passenger
Journey.Consider here a noncyclic urban rail transit line with  stations.There are several itineraries between station platform and tap gates with different kinds of pedestrian facilities (flat road, stair, escalator, lift, etc.).
Let us consider a transit passenger (user), denoted by index , with individual walking speed V that is a "cruising speed."The passenger makes a simple journey by train along a line from access station  to egress station .The instants of passage at selected points in each station at TITO gates are denoted as ℎ +  and ℎ −  (Figure 1), respectively, and called TITO instants.
In access station, the walking-in distance from tap-in gate O to boarding platform entrance A is denoted as  + , whereas the walking distance is denoted as  on boarding platform from A to boarding (also waiting) point M. In egress station, the walking-out distance from alighting platform exit E to tap-out gate D is denoted as  − , whereas the walking distance is denoted as   on alighting platform from alighting points N to E. Passenger walking paths in stations are called "walking links," green arrows in Figure 1.The total walking-in and total walking-out times in access and egress stations are   =  + + /V and   =  − + /V, respectively, where  + =  + /V and  − =  − /V.Passenger's journey time on this trip leg is equal to ℎ −  − ℎ +  .Let us now consider the longitudinal dimension of platforms.In urban rail transit system, station platforms are long objects of relatively modest width (e.g., several meters), whereas their lengths range from some dozen meters in tramway stations to a couple of hundred meters in stations of metro, urban or suburban train.In the latter case, passengers are expected to walk up to a given position for waiting and boarding, boarding point M with abscissa   along the platform from a "starting point" A (platform entrance) with abscissa   .The walking-in distance  on boarding platform amounts to |  −  |.If a passenger does not make a significant longitudinal move on the train, passenger's boarding point (door) M and alighting point (door) N is the same door of the train.Along egress platform, the walking-out distance   amounts to |  −   | by using the same scale to measure abscissas along platforms of a given line.Thus, the total distance walked by the passenger on both the access and the egress station platforms amounts to Given boarding platform entrance A and alighting platform exit E, this is a function of the boarding abscissa   only, made up of two parts.
Let us denote by  ≡ |  −   | the maximum distance for passenger longitudinal repositioning, called longitudinal repositioning distance.Postulating that the passenger is wellaware of positions, rational and unimpeded by crowding, then it holds that  =  +   and the function does not vary with   .However,   influences the walking times prior to and posterior to running aboard train: passenger  can decide to invest time /V in order to save on   /V = (−)/V just after alighting.For example, assuming that the platform entrance is at one end of the station platform (that of train head or tail) and the platform exit is at the other end of the train (that of train tail or head).
The time available to  for positioning oneself may be limited by the instant of train departure.Indexing by  the train run of interest to the passenger, let us denote as ℎ +  its departure time from access station and ℎ −  its arrival time at egress station.Train travel time from access station to egress station along the train trajectory (red arrows in Figure 1) is equal to ℎ −  − ℎ +  .Train travel time is considered as invehicle travel time for all passengers who take the same train.The frequency of each service is heterogeneous: Peak Hour (PH) is different from Off-Peak Hour (OPH).Trains along passengers' travel direction consist in a set  for all train runs  during the studied period   =  2 −  1 .The traffic conditions and line service quality (punctuality, regularity, etc.) depend on passengers' conditions in all served stations.
Then, on boarding platform, the apparent waiting time of passenger  amounts to    = (ℎ +  − ℎ +  ) −  + .By selecting a particular location along the platform, the passenger succeeds to turn part of that apparent waiting time    into "useful" time for the rest of his trip.His "distance investment"  is limited by both  and the available time before the train departure.Letting Δℎ + , ≡ ℎ +  − ℎ +  > 0 passenger total time cost in access station for boarding train run , the time available to the passenger for positioning himself along the platform is limited by  , ≡ Δℎ + , −  + .So, the maximum distance for repositioning on boarding platform amounts to  , ≡ V , = VΔℎ + , −  + .Assume that the passenger is a rational decision-maker willing to minimize his or her exit time and walks along boarding platform as much as possible, yielding  = min{, VΔℎ + , −  + }.This optimizing behavior induces an adjustment of the passenger to the temporal prism of opportunities that are opened by the respective times ℎ +  and ℎ +  +  + /V.The waiting time until train departure on boarding point M is called residual waiting time ŵ  and amounts to The time-space diagram (Figure 1) depicts both passenger trajectory and train trajectory between the access and egress stations.

Models Conditioning on Distributed Walking Distances.
We model firstly passenger journey with distributed walking distances and constant walking speed; the stochastic model is integrated with respect to walking (positioning) distance  on boarding platform.

In-Station Walking Distances Probabilistic Models.
As a general notation, for a Random Variable (RV) , its Cumulative Distribution Function (CDF) is denoted as X, and its Probability Density Function (PDF) as Ẋ.Recall that X() = ∫  Ẋ(z)d, where Ẋ is regular enough.
Urban rail transit stations vary from simple stations at grade providing access to one line only, to complex transit hubs connecting several lines and equipped with several platforms on several floors.Most of them are underground.Whatever the case, the distances between station tap gates and platform entrances or exits extend to some dozen meters at least and up to some hundred meters.Since the walkingin distance  + is variable, it is modeled as a RV with CDF S + and PDF Ṡ + .The same hypothesis is applied to walking-out distance  − , as a RV with CDF S − and PDF Ṡ − .

Access Model.
A passenger  is characterized by the (ℎ, V) pair, where ℎ = ℎ +  , that is taken as exogenous.Train run  is taken if and only if Then, the probability to take train run  is as follows: The positioning distance on boarding platform depends on the train run that is taken and the walking-in distance Two cases must be distinguished

The former case of total positioning can happen only if
In the alternative case of partial positioning  =  < , the associated PDF is Bringing together the two cases, a CDF S ℎ,V  for the positioning distance  is built up, as S ℎ,V  () = ∫ min{,,V(ℎ ( Thus the positioning distance  is an RV conditioning on V and ℎ on the passenger side and on  on the train side It is endowed with a closed-form CDF that involves the tap-in instant ℎ +  , the train departure time ℎ +  , the CDF S + of walking-out distance from tap-in gate to the boarding platform entrance, and the target distance of repositioning .
Of course, the RV does only exist when the matching probability is strictly positive, i.e., iff Δℎ + , > 0. We denote as the subset   of train runs  that are feasible for , i.e., such that Δℎ + , > 0 and ℎ +  < ℎ +  .

Egress Model.
The positioning distance  that stems from the access model makes an input to the egress model.The distance to walk in the egress station includes   =  −  on the alighting platform plus  − .The conditional egress time The resulting value T  ,ℎ,V () is a probability conditioning on , ℎ, V. Let us define  ,ℎ (, V) ≡ Pr{  V,ℎ ≤  ⋂(  )}.From the definition of conditional probability, we have that On replacing S ℎ,V  () with its expression in (5), we get The first term is zero if ŝℎ,V  = Vℎ + ,−1 ; i.e.,  ≥ V(ℎ +  − ℎ + −1 ).Thus the total walking-out time   as an RV   ,V,ℎ conditioning on V, ℎ, and admissible run  ∈   is endowed with a closed-form CDF that involves the tap-in instant ℎ +  , the train departure time ℎ +  , the target distance of repositioning , and both distributions of in-station walk distances S + and S − in access and egress stations, respectively.The product between S − and Ṡ + in the formula exhibits the influence of V on both the egress and access times.In other words, the individual walk speed links together the egress and access times.
To integrate with respect to , the CDF T  ℎ,V () = ∑ ∈  ℎ,V  T  ,ℎ,V () is considered.From ( 5), it satisfies that Concerning the tap-out instant ℎ −  , conditioning on , we have . By integrating with respect to , we get the unconditional , which satisfies the fact that Thus the tap-out instant ℎ −  is an RV conditioning on V and ℎ, which is endowed with a closed-form CDF that involves not only the tap-in instant ℎ +  , the train departure time ℎ +  , the target distance of repositioning , and the distributions of instation walk distances S + and S − in access and egress stations but also the instants of train arrival at the egress station ℎ −  .From the CDF of the total walking-out time and tap-out instant, either conditioning on  or not, it is easy to derive the associated PDF by straightforward differentiation with respect to argument .That is, The associated PDFs are It should be noted that the above stochastic model assumes that a passenger has constant velocity motion in access and egress stations.From a practical point of view, this assumption may not be realistic and thus too restrictive.Extensions will be considered in next subsection to consider a distributed walking speed.

Models Conditioning on Distributed Speed and Walking
Distances.When passenger walking speed V is a distributed variable, the stochastic model is integrated with respect to walking speed as well.

In-Station
Walking Speed Probabilistic Model.The walking speed V of one passenger  is a notional speed, averaged for that passenger on that journey over a range of travel situations.It may be called an individual "cruising speed" during walking.Although personal walking habits may be consistent, as a fact, the cruising walking speed fluctuates from one occasion to another, for instance, between journeys reiterated on a given access and egress pair from day to day.
In addition to this intraindividual diversity, there is an even larger diversity between individual passengers, since people differ in their respective walking abilities.Young adults can walk faster than elderly people and are likely to be more hurried.People with luggage or young child either walking or in a stroller walks more slowly than the average adult.A rough indication about the statistical distribution of walk speeds for a typical population of transit users in the urban setting was close to a normal distribution with mean of about 0.90 m/s and standard deviation of about 0.20 m/s or to a uniform distribution ranging from 0.58 to 1.24 m/s in the Appendix, the cases with waiting time integrated in walking time.
Assuming that passengers' walking speeds on walking links in access and egress stations obey the same statistical distribution, it is easy to extend the stochastic model of passenger repositioning to a diversity of walking speeds, by considering walking speed in a given population  of passengers as a RV, with CDF V and PDF V.
We still denote S + and S − the distribution functions of in-station walking distances.In fact, they can be expected to have different average values and wider spreads as compared to their individual counterparts.Such differences between intra-individual and inter-individual distributions were classical in the stochastic modeling of socioeconomic behaviors of highway individuals in Chapter 6 of [38].

Access Model.
To integrate with respect to V, the probability to take train run  is still conditioning on the tapin time ℎ = ℎ +  and is Then, conditioning on  and ℎ, the distribution of walking speeds has PDF as follows:

Egress Model.
Conditioning on  and ℎ, the egress time Denoting ψ,ℎ () ≡ ∫  ,ℎ (, V)dV(V), it is then easy to integrate with respect to .As {  ℎ ≤ } = ⋃ ∈ {  ,ℎ ≤  ⋂ }, there is Pr{  ℎ ≤ } = ∑ ∈ Pr{  ,ℎ ≤ }Pr{} from the composition of conditional probabilities.Thus, The exit instant ℎ −  has CDF as follows: Thus, both the total walking-out time and the tap-out instant are endowed with closed-form CDF that involve the tap-in instant ℎ and the statistical distribution of  + ,  − , and V.This enables us to derive their PDF by differentiation with respect to their argument .Denoting ψ,ℎ () ≡ (/) ψ,ℎ (), it holds that

Distribution Specification for Tractable Computation
The analytical formulae obtained so far involve the integration of specific functions along one or two scalar dimensions, namely one dimension of space (with respect to distance ) and eventually another dimension of speed (with respect to walking speed V).The outcomes can be obtained by numerical integration along the said axes.This can be circumvented by availing ourselves of ad hoc distributions that yield straightforward formulae for the respective PDFs of total walking-out time and tap-out instant, though it is not so simple.
In this section, we firstly put forward specific distributions that are suitable to our purpose (Section 3.1).Then, we provide a lemma (Section 3.2) for the core computation to deal with distributed speed by providing formulae for   → ψ ,ℎ (, V) and   → ψ,ℎ () functions (Section 3.3).Finally, the variations of those two functions are illustrated (Section 3.4).

Ad Hoc Specification of the Distributions.
The obtained general PDF functions constitute the likelihood functions of all assumed parameters.To prepare for further work on the MLE of those parameters, some hints of PDF computation under ad hoc selection of distributions are provided.
For a given pair of access and egress stations, we take V as either a variable or a normal-distributed walking speed, together with shifted exponential-distributed walking distances and the variable .The distribution functions of V,  + , and  − are specified as follows: (i) Individual speed follows a normal (Gaussian) distribution with mean  and variance  2 , since a normal distribution reduces likelihood function complexity [23].
(iii) Walking-out distance  − is also a shifted exponential distribution, with main parameter  − and shift

Lemma.
Let us establish a property for a normal RV (,  2 ) combined with a consumption function that is the product of V and an exponential function  −V+ .The aim is to obtain a straightforward formula for integral function for   =  −  2 , we can put aside the constant factor  +−(1/2) 2  2 and focus on , − )d.This function is in two parts, left and right, respectively.
The left part is computed firstly and produces the two terms: So the product of the two terms is ready to compute the left part in ψ ,ℎ (, V).
In the other case where V < /(ℎ +  − ℎ + −1 ), the subdomain of integration is empty if /(ℎ The formula is the same as for (L-a).
Concerning the right part, there is  where  ≡ 1 min{,V(ℎ This gives the right part in ψ ,ℎ (, V) as a tractable analytical formula.It is thus easy to compute function ψ ,ℎ (, V).
As for integration over the distribution of walking speeds, the right part breaks into two bricks to which the lemma applies.

Illustration.
By taking into account the previous distributions of V,  + ,  − , the parameter vector is a six-or seven-fold vector  = {, ,  + ,  + ,  − ,  − , } (without  for a constant speed V = ).During a studied period [ 1 ,  2 ] and a given ℎ +  (black circle), Figure 2(a) depicts the variations of functions   → ψ ,ℎ (, V) and   → ψ,ℎ () with respect to tap-out instant ℎ −  starting from that of a given train arrival time ℎ −  at the egress station (green dashed lines), either conditioning on constant (blue dashed line) or normal-distributed (red solid line) walking speed V.The brown dashed lines represent train departure times in access station.Figure 2(b) provides the corresponding integral functions   →  ,ℎ (, V) and   → ψ,ℎ ().The difference between conditional and unconditional looks minor though discernible.For a given tap-in moment ℎ +  , the functions relate to each train run  which the passenger could take.The most feasible train is the first arrival train at egress station: the latter the train arrival, the smaller the probability.

Statistical Estimation
Previous analytical formulae constitute the cores of our stochastic models.They derive analytical closed-form formulae that provide likelihood functions, which are tractable under a specification of basic statistical distributions.The stochastic models are theoretical constructs that involve human behaviors of trip-making in relation to the dynamic process of train runs.Such a theoretical model can be applied to particular cases, notably so by estimating the values of its parameters so as to make its outcomes replicate observed values well.
As reported by [25,26], AFC data provide ample information on users' pairs of tap instants in stations, while AVL data provide both departure and arrival times in stations for each train run along its route [41].
In this section, we put forward an approach of MLE (Section 4.1).Its implementation involves a scheme for practical application (Section 4.1).Then, we build upon model estimation by proposing an inference method to enrich the observed data by adding "most likely predictions" of unobserved items (Section 4.1).

Maximum Likelihood
The joint observation of a sample {(ℎ +  , ℎ −  ) :  ∈ } of journeys provides a joint/total likelihood function, denoted L  ().If the observations are independent, then The MLE consists to set up the value of parameter vector  so as to maximize the likelihood function of the observed sample, or equivalently to maximize the log-likelihood function as follows: That simplifies the computation of MLE.
The estimator of MLE can be applied to our stochastic models for either an individual passenger observed on several journeys or a set of passengers to differentiate 'intra-' versus 'inter-' individual cases.In the former case [24], the underlying statistical distributions are related to the particular passenger: his walking speed as either a constant or a distribution to allow for fluctuations and his own conditions for in-station walking distances and repositioning target .In the latter case [21][22][23][24]42], the condition is aimed to ensure statistical independence within the sample.The O-D stations must be shared by the passengers so as to give consistency to the , S + , and S − notions.The former will be further investigated in this paper.
The estimator of MLE is endowed with powerful statistical properties that are well known in econometrics [43].
Although it has often some bias, this bias vanishes when the sample size tends to infinity; and the estimator variance is minimal.An especially valuable property is that the Hessian matrix of the log-likelihood function evaluated at the global optimum, up to a minus sign, contains the estimated covariance by pair of scalar parameters Λ  () ≡ ln L  () = ∑ ∈ Λ  ().As these properties pertain to points of global maximization, a suitable optimization algorithm must be used.Furthermore, the properties rely upon a requirement of parameter-free domain for the RVs in the model.The requirement is satisfied by the normal distribution of speeds, but not by the shift in a shifted exponential distribution.So the application of MLE to our model is somewhat heuristic.However, under given  + and  − , the estimation of the remaining parameters meets the domain condition.

Optimization.
In practice, the estimator searches for the estimate θ within an admissible space Θ with bounds of vector components.To improve the optimization approach, a global pre-estimation of the space is proposed to find the optimal initial point.The pseudocode by nonlinear constrained optimization is shown in Figure 3.
The available AFC dataset was exploited by a specific dynamic O-D matrix inference scheme devised in [44], which extended previous works of [45,46].The scheme involves three principal steps as in [22]: (i) extracting the data of a given line from the dataset of the transit network, (ii) data filtering to exclude one-tap individual records and data inferring process for other oddities, and (iii) generating O-D pairs by scanning individual records to select appropriate trips.

Guidelines for Posterior Analysis.
Based on parameter estimates, we can model each journey in the observed sample.The outcomes fall into three categories: (i) user's attributes of walking speed V and maximum longitudinal repositioning distance ; (ii) matching probabilities between train runs and passengers; and (iii) the level of probability associated with a pair of TITO times (ℎ +  , ℎ −  ).Matching probabilities associated with a given journey may be analyzed in three steps: (i) to identify the number   of feasible train runs   per trip by the model below from the number  0  of hypothetical train runs compatible with ℎ +  < ℎ +  < ℎ −  < ℎ −  ; (ii) among the feasible train run probabilities, to identify the biggest one; (iii) to evaluate the "dominance ratio" of the most likely run, the ratio between the second biggest and the biggest probabilities when the feasible train runs is more than 1.
Furthermore, based on the parameter estimates, we can make inference about some journey items that are not observed per se.Such ex-post analysis in a given journey of a passenger can be performed along the passenger's trajectory in the following way.In this model, assume that in each trip  of passenger, the train run with the biggest probability is taken, but conditioning on estimated average speed E(V).Main terms of passenger trajectory are derived directly by the following calculations: (i) mean of truncated exponential distribution, E( + ()), between  + and  + plus maximum value compatible with times and speed Hence, tap-out time ℎ −  is equal to ℎ +  +  + + ŵ  + /E(V) + (ℎ +  − ℎ +  ) +  − , where  + = E( + ())/E(V) and  − = E( − ())/E(V).Once the tap-in times are given, the tap-out times are calculated.

Case Study of a Commuter Rail Line in Paris Area
The models are applied to a real case study, the busiest urban rail transit line RER A in Paris area, France, on the basis of AFC data provided by IdFM (ex STIF) and AVL data provided by RATP.After introducing the case, observations of trip-making, and train traffic (Section 5.1), we estimate the model parameters with distributed walking speed for two samples of journeys (Section 5.2).Then, building upon the data and the estimated parameters, we infer the distance and time components for every sampled journey (Section 5.3).

Case Presentation: Navigo System, Line RER A, and Related
Datasets.There are two main systems of urban rail transit in Paris area [47]: (i) the semiclosed metro system including 14 lines, equipped only tap-in gates, (ii) the heavier train system, including the "Transilien" and RER (Réseau Express Regional, the Regional Express Network) systems, and the closed RER system including 5 lines equipped both TITO gates, except for connected transfer stations between RER lines.The Paris transit system is integrated as concerns fares, and there is a unique smartcard called Navigo.Thus, the AFC system of transit in Paris area is called Navigo system.The Navigo system records anonymous passenger information including the smartcard number which is anonymized (with anonymous number that is maintained for only 3 months), the date, the validation instant at tap-in or tap-out gate, the gate ID, and the access or egress station name.During the PHs on workdays, more than 90% of the trips taken PT were home-work or home-study trips using network subscription hence the smartcard.
The line RER A is the busiest urban rail transit line in Paris area and maybe Europe, carrying more than one million passengers every workday [44].It contains 46 stations in total 109 km and is structured around a central trunk into which are grafted five branches [48]: two eastward branches, northeast terminal Chessy and southeast terminal Boissy; and three westward branches, northwest terminal Cergy, central-west terminal Poissy, and southwest terminal Saint-Germain.The central trunk between stations Vincennes and La Défense passes through the largest underground mass transit hub, Châtelet-Les Halles, and serves the major business district La Défense in France.
The train time headways on the central trunk range from 2 min at peak to 10 min off peak.Our study focused on the O-D pair between Vincennes and La Défense on the central trunk.Each station has a number of entrances in relation to its importance, from 2 at Vincennes to 6 at La Défense.The topological structures of O-D pair Vincennes and La Défense are detailed in Figure 4, in which depicts the line platform at either station and indicates some of the passenger walking paths (green arrows) between tap gates and train doors.The 'Copy' nodes connect to the same destination nodes as the 'Copied' one to form in-station itineraries.There are more route choices in egress station.The complexity of rout choice in egress station comes from the choices between alighting doors and the platform exit points.There is another source of route choice in egress station, the choices between tap gates and station exits, which could not be considered only by the AFC data.The diversity of passenger paths is a source about the variability of in-station walking distance.
AVL and AFC datasets were made available to us by the line operator RATP and the mobility authority IdFM, respectively, for a period in March 2015 from the 16th to the 29th, excluding the 21st, 22nd, and 23rd.AVL data of RATP includes trains' arrival and departure times in stations.Out of the AFC data pertaining to the O-D pair Vincennes and La Défense in either direction, we selected one sample per direction, both for a given passenger with maximum number of such journeys during the period.As it turns out, the two busiest cards are identical, with 15 trips in Case 1 from La Défense to Vincennes and 16 trips in Case 2 from Vincennes to La Défense. Figure 5(a) exhibits the TITO times of the 31 trips (5 trips in 1 day, 4 trips in 4 days, 3 trips in 3 days, 2 trips in 0 day, 1 trip in 1 day, and 0 trips in 2 days).All trips are during workdays, except one trip on Sunday March 29th 2015.Indeed, the trip pattern is peculiar since every trip from Vincennes to La Défense is followed by a return trip after a short period of about two hours in the morning or one hour in the evening; those trips would be home-work trips.Figure 5(b) evaluates the related journey times: on average, the journey takes more time from Vincennes to LaDéfense during PHs than that from La Défense to Vincennes during OPHs.

Estimations.
The admissible spaces of scalar parameters were specified on the basis of field measurement or literature on urban mobility.As for in-station walking distances, a range of [4,325] m applies to  + in Vincennes, and a range of [4,525] m applies to  − in La Défense.Platform lengths amount to 225 m in each station: yet we allowed a feasible space of [0, 600] m for , as it may be bigger than the sum of access and egress station platform lengths 450 m.A feasible range of (0, 4] m/s is imposed on average walking speed V or , based on the last household travel survey in Paris area [49].This walking speed V includes the relative speed of escalator or lift.Based on previous given bounds of variables, reasonable ranges for all estimated parameters are defined, as reported in Table 2. While the log-likelihood function of the model gets its maximum value, parameters' estimates and their Standard Deviations (SDs, approximations) are obtained in Table 2.The results show averaged day-to-day dynamic variation of this passenger.It appears that the estimates of the target repositioning distances, L1 and L2 , are relatively consistent and fairly precise.The same applies to the distance shifts B+  from zero.As for speed estimates, the average values are fair in Case 2 and tolerable in Case 1.However, the discrepancy between the two cases calls for further investigation, since the data pertain to the same user for whom an identical walking speed is expected in both directions.The parameter of speed dispersion, , has a low estimate in Case 2 but a bigger one in Case 1.
In all, the consideration of an individual passenger enabled us to recover meaningful information about his or her trip-making behavior.The target repositioning distances are significant, at about 101 or 76 m depending on the direction.Combined to the respective estimates of average speeds, these distances correspond to repositioning time of about 60 s in both cases.This value is close to half of a time headway at peak hours.The in-station distances exhibit a mirror effect at Vincennes station (similarity between  + 2 and  − 1 ), but there is a discrepancy at La Défense station between  + 1 and  − 2 .A potential reason may pertain to high passenger crowding that occurs at La Défense during PHs, which makes individual walking more dependent on crowd dynamics, especially so at station egress.The difference between the parameter values in the same station indicates the difference of walking-in and walking-out routes.The difference of values between different stations depicts the station topological structures.
Mean walking speed and mean walking distances are calculated based on parameter estimates and illustrated in Table 3. Passenger's mean walking speed with normal distribution is equal to μ with SD σ.As regards the walking distances with shifted distributions, the mean values are recovered as B + 1/ λ with SD 1/ λ.The mean value of longitudinal walking distance is estimated directly by the model.Table 3 provides also some more indications about instation mean walking times, derived directly by E( + )/E(V) and E( − )/E(V).The results are consistence with the above comments.It suggests that, for a given passenger, walking times may be more reliably estimated than the pair of walking distances and walking speed.
In the Appendix, estimation results for a former model neglecting the repositioning behavior are recalled, for the same O-D pair but a single day of observation and a population set of passengers.The journey is from Vincennes to La Défense, which corresponds to Case 2 here.There is much agreement between the intraindividual estimates of Case 2 and the interindividual estimates of model M1 (normal-distributed walking speed) in the Appendix, except for the shift parameter of in-station distances on the egress side.In fact, L2 + B− 2 ≈ 140 m are closer to B−  ≈ 204 m, which seems to confirm that repositioning strategy on the boarding platform constitutes a distance investment by the users for the rest of the journey.

Posterior Analysis to Infer Journey Details. Similar to
Bayesian analysis, parameter estimates are used for reanalyzing train run occurrences and passenger trip attributes.It will check the rationality of previous results.
Based on the sampled data and parameter estimates, the journey elements are inferred following the lines given in Section 4.3.About the matching probabilities, Figures 6(a) and 6(b) depict the numbers of hypothetical  0  and feasible   train runs per trip, respectively.Figure 6(b) confirms that the postulate in the Bayesian analysis will be a good approximation.Figure 6(c) shows the maximum probability to take a train run among all   feasible train runs.The maximum probability for a tip to take a train is equal to 1 when there are only one feasible train.For the rest, the results show that most of the maximum probabilities to take a train are bigger than 70.66%, but one is 1 × 10 −16 .on March 17th.This exception can be caused by the bias of AVL data measurement.Figure 6(d) calculates the dominance ratios among   while   > 1.Since the ratios are so small, smaller than 1 × 10 −3 , it shows that there is only one train that is feasible while   > 1 as well.
A disaggregate analysis of passenger individual trip attributes is proposed by using the passenger trip model proposed in Section 4.3.Passenger trajectories are reproduced by the simple inference model based on previous estimated values.Figure 7 gives each observed trip and its referred result, Case 1 in the left column and Case 2 in the right column.To confront the real tap-out times, Figures 7(a1) and 7(a2) compare the inferred tap-out times (red circle) to the observed ones (blue asterisk).Since the differences (black cross) between them are very small, the agreement is very good, which indicates that the stochastic model has good   period.Valuable information was recovered from statistical estimation and posterior inference, notably a time saving of about 1 min owing to platform repositioning along 70 or 100 m, depending on the journey direction.This indicated that the estimation scheme was able to capture fine phenomena and also that the repositioning phenomenon had a limited importance on the journey travel time of this individual user.
This also demonstrated once again the positioning behavior of train users along boarding platforms, which was of interest to railway operators for passenger traffic management under severe crowding.The consequences for station layout and flow orientation ware traced out in related work [19].

Potential Applications and Limitations.
Where AFC and AVL datasets are available, our model can easily be applied to estimate the distance and time components of users' journeys in a gate-to-gate setting which represents quality of service better than just the service quality of the train runs.The identification of positioning will make the estimation of the remaining time components more realistic and reliable.The individual behavior, as postulated and estimated on the basis of empirical data, can easily be simulated for users' journeys whatever the availability status of observations is, because the behavioral structure is endowed with replicability.
Despite its finesse, the stochastic model in its current version does not capture congestion phenomena: neither in-vehicle crowding or the potential restrictions (i.e., the probability of fail-to-board and the related issue of passengers "left behind" by trains), the crowding of platforms and its potential influence on individual positioning, nor the

Figure 2 :
Figure 2: With respect to tap-out instant: (a) bricks of PDFs and (b) bricks of CDFs.

Figure 3 :
Figure 3: Modeling and optimization schema based on MLE.

Table 1 :
Notations.Passenger walking-out distance and time from platform egress point to tap-out gate in egress station   and   Total walking-in and total walking-out times in access and egress stations   Passenger total time cost in access station for boarding train run , Δℎ + , =   + ŵ Train and Train run number and train run set along a line  0  and  0  Number and subset of train runs for passenger    and   Feasible number and subset of train runs for passenger  ℎ +  and ℎ −  Train run 's departure time at access station and arrival time at egress station V  Train run speeds between access and egress stations Network  and  Station number and station set along a line  and  Access station and egress station Auxiliary variables or functions X Cumulative Distribution Function (CDF) of variable  Ẋ Probability Density Function (PDF) of variable   ℎ,V  Probability to take train run , conditioning on ℎ and V ŝℎ,V  Threshold value of repositioning distance  ,ℎ (, V) Kernel function of repositioning on platform   Studied period,   = [ 1 ,  2 ]  and θ Parameter vector and its estimated value Θ Space of parameter vector (, V) with respect to .As  ,ℎ (, V) ≡ (S + (ŝ ℎ,V

Table 2 :
Parameter estimation for a single passenger by MLE.