<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">AM</journal-id><journal-title-group><journal-title>Applied Mathematics</journal-title></journal-title-group><issn pub-type="epub">2152-7385</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/am.2017.85049</article-id><article-id pub-id-type="publisher-id">AM-76239</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  The Prediction of the Peak Time of People Taking School Bus Based on Martingale Process
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Yuxuan</surname><given-names>Zhou</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Shujun</surname><given-names>Liu</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Yufeng</surname><given-names>Gui</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>College of Science, Wuhan University of Technology, Wuhan, China</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>1361195693@qq.com(YG)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>15</day><month>05</month><year>2017</year></pub-date><volume>08</volume><issue>05</issue><fpage>630</fpage><lpage>636</lpage><history><date date-type="received"><day>24,</day>	<month>March</month>	<year>2017</year></date><date date-type="rev-recd"><day>15,</day>	<month>May</month>	<year>2017</year>	</date><date date-type="accepted"><day>18,</day>	<month>May</month>	<year>2017</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  As the main tool for students and professors to come and go to different districts in-campus, the school bus is of great importance. In order to improve its efficiency and convenient students and professors, a rational schedule of departure is badly needed. A model is established to predict the peak time of people taking school bus based on martingale process, and it is solved according to stopping time of martingale. Then it is applied to Wuhan University of Technology. A large amount of data is collected and the peak time for each day is predicted combined with the actual situation of the college. In doing so, suggestions are given for those who are in charge of the school buses.
 
</p></abstract><kwd-group><kwd>School Bus</kwd><kwd> Martingale Process</kwd><kwd> Prediction</kwd><kwd> Peak Time</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>There are more and more districts being constructed to provide students with comfortable environment to study and live in [<xref ref-type="bibr" rid="scirp.76239-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.76239-ref2">2</xref>] . In a meanwhile, it becomes further and further from one district to another, which makes it inconvenient for students and professors to travel in the campus [<xref ref-type="bibr" rid="scirp.76239-ref3">3</xref>] . As people need to come and go to different districts in a short period of time, the school bus has become the most important means of transportation [<xref ref-type="bibr" rid="scirp.76239-ref4">4</xref>] . Accordingly, the optimization of its schedule is badly needed to convenient those who take the bus [<xref ref-type="bibr" rid="scirp.76239-ref5">5</xref>] .</p><p>According to literatures, problems of the optimization of distributions of the bus stations, dispatches and routes of the buses have already been discussed for many times [<xref ref-type="bibr" rid="scirp.76239-ref6">6</xref>] . And good algorithms are given by the predecessors, such as classic VRP (Vehicle Routing Problem) Algorithm [<xref ref-type="bibr" rid="scirp.76239-ref1">1</xref>] and complex SBRP Algorithm [<xref ref-type="bibr" rid="scirp.76239-ref2">2</xref>] . However, only few literatures that focus on predicting peak time of people taking the buses can be founded. The main problem exists in school buses in some universities is that the number of buses is not big enough when it comes to peak time while it is too much when it comes to non-peak time due to the irrational dispatch. Thus, a martingale process based on collected data is established and it can predict peak time of the day according to stopping time theory [<xref ref-type="bibr" rid="scirp.76239-ref7">7</xref>] .</p></sec><sec id="s2"><title>2. The Peak Time Prediction Model</title><sec id="s2_1"><title>2.1. Definitions of Peak Time</title><p>The phenomenon of being crowded and short of buses in a time when there are a large amount of people arriving at the station continuously in adjacent period of time is of a high possibility to happen in-campus according to some literatures [<xref ref-type="bibr" rid="scirp.76239-ref3">3</xref>] . Thus, a peak time is defined as a period of time when there are more than a<sub>i</sub> people arriving at the station continuously in adjacent L unit of time. Where i is the ith workday, a<sub>i</sub> is a threshold that stands the number of people taking the school bus in adjacent L continuous unit of time on the ith workday, which is related to real situations.</p></sec><sec id="s2_2"><title>2.2. The Establishment of the Model</title><p>In order to establish our model, several variables are assumed as follows (<xref ref-type="table" rid="table1">Table 1</xref>):</p><p>As it is inferred in 3.1 that a peak time is a period of time when there are more than a<sub>i</sub> people arriving at the station continuously in adjacent L unit of time, it can be concluded that the total number of people taking the school bus in adjacent L unit of time should be L a i ( i = 1 , ⋯ , 5 ) when it comes to peak time. That is:</p><p>N i = inf { n i : ∑ j = n i − L i + 1 n X i n = L a i } (1)</p><p>Hence, the peak time prediction model on the ith workday can be expressed as:</p><p>E [ N ] = E [ inf { n i : ∑ j = n i − L i + 1 n X i n = L a i } ] (2)</p></sec><sec id="s2_3"><title>2.3. Model Solving</title><p>The stopping time theory of martingale process is applied to solve the model.</p><sec id="s2_3_1"><title>2.3.1. Establishment of Martingale Process</title><p>At first, a stochastic process L: Z n i ( 1 ) , ⋯ , Z n i ( l ) is defined, where</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Symbol description</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Variable</th><th align="center" valign="middle" >Definition</th></tr></thead><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7403566x6.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >The number of people taking the bus on the nth time unit of the ith workday.</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7403566x7.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >The exact time of a peak time.</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7403566x8.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7403566x9.png" xlink:type="simple"/></inline-formula></td></tr></tbody></table></table-wrap><p>Z n i ( l ) = { z n i ( l ) , n ≥ l } , l = 1 , ⋯ , L ; i = 1 , ⋯ , 5 .</p><p>In a meanwhile, it can be concluded that:</p><p>Z n i ( l ) = 1 − p − 1 I ( ∑ j = n i − L i + 1 n X i n = L a i ) (3)</p><p>It is obvious that E [ z n i ( l ) ] = 0 .</p><p>Then a martingale process can be stablished:</p><p>Y n i = ∑ j = L n z j i ( L ) + ∑ l = 1 L − 1 z n i ( l ) , n ≥ L , i = 1 , ⋯ , 5 (4)</p></sec><sec id="s2_3_2"><title>2.3.2. Prove of Y n i Being a Martingale Process</title><p>At first, it is known that:</p><p>E [ z n + 1 i ( l ) | X 1 i , ⋯ , X n i ] = z n i ( l − 1 ) ,   l = 1 , ⋯ , L ,   n ≥ l − 1 ,   i = 1 , ⋯ , 5 (5)</p><p>According to literature [<xref ref-type="bibr" rid="scirp.76239-ref3">3</xref>] , z n i ( 0 ) = 0 . Thus, regulate that z n i ( 0 ) = 0 .</p><p>Then it can be proved that Y n i ( i = 1 , ⋯ , 5 ) is a martingale process, that is to prove</p><p>E [ Y n + 1 i | X 1 i , ⋯ , X n i ] = Y n i ,   n ≥ L ,   i = 1 , ⋯ , 5 (6)</p><p>However,</p><p>E [ Y n + 1 i | X 1 i , ⋯ , X n i ] = E [ ∑ j = L n + 1 z j i ( L ) + ∑ l = 1 L − 1 z n + 1 i ( l ) | X 1 i , ⋯ , X n i ] = E [ ∑ j = L n z j i ( L ) | X 1 i , ⋯ , X n i ] + E [ z n + 1 i ( L ) | X 1 i , ⋯ , X n i ] + E [ ∑ l = 1 L − 1 z n + 1 i ( l ) | X 1 i , ⋯ , X n i ] = E [ ∑ j = L n z j i ( L ) | X 1 i , ⋯ , X n i ] + E [ ∑ l = 1 L z n + 1 i ( l ) | X 1 i , ⋯ , X n i ]</p><p>According to (5), it is clear that:</p><p>E [ ∑ j = L n z j n ( L ) | X 1 i , ⋯ , X n i ] = ∑ j = L n z j n ( L ) (7)</p><p>while it is known that:</p><p>E [ z n + 1 i ( l ) | X 1 i , ⋯ , X n i ] = z n i ( l − 1 ) (8)</p><p>Hence, it can be concluded that:</p><p>E [ Y n + 1 i | X 1 i , ⋯ , X n i ] = ∑ j = L n z j i ( L ) + ∑ l = 1 L z n i ( l − 1 ) (9)</p><p>As z n i ( 0 ) = 0 , it is clear that:</p><p>E [ Y n + 1 i | X 1 i , ⋯ , X n i ] = ∑ j = L n z j i ( L ) + ∑ l = 1 L z n i ( l − 1 ) = ∑ j = L n z j i ( L ) + ∑ l = 2 L z n i ( l − 1 ) = ∑ j = L n z j i ( L ) + ∑ l = 2 L − 1 z n i ( l ) = Y n i</p><p>From what have been discussed above, Y n i ( i = 1 , ⋯ , 5 ) is proved to be a mar-</p><p>tingale process and E [ Y L i ] = E [ ∑ l = 1 L z L i ( l ) ] = ∑ l = 1 L E [ z L i ( l ) ] = 0 .</p></sec><sec id="s2_3_3"><title>2.3.3. Ν ι is a Stopping Time of { X n i , n ≥ L , i = 1 , ⋯ , 5 } and Suits What Stopping Time Theory Require</title><p>The demonstration can be founded in literature [<xref ref-type="bibr" rid="scirp.76239-ref3">3</xref>] .</p></sec><sec id="s2_3_4"><title>2.3.4. Prove E [ N i ] = p i − L − 1 1 − p i , i = 1 , ⋯ , 5</title><p>At first, proof of Y N i i = N i + 1 − p i − L 1 − p i is needed.</p><p>According to (4), it can be concluded that:</p><p>Y N i i = ∑ n i = L N i z n ( L ) + ∑ l = 1 L − 1 z N ( l ) (10)</p><p>1) For z n ( L ) , n = L , L + 1 , ⋯ , N i</p><p>As ∑ j = n − L + 1 n X j i = L a i means there are continuously L units of a<sub>i</sub>, N<sub>i</sub> is the first</p><p>time of a day that have continuously L units of a<sub>i</sub> on the ith day of a week. Therefore, only when n = N i , it can concluded that ∑ j = n − L + 1 n X j i = L a i .</p><p>As for z n ( L ) , n = L , L + 1 , ⋯ , N i − 1 , as ∑ j = n − L + 1 n X j i ≠ L a i , it is clear that:</p><p>z n ( L ) = { 1 − p i − L                               n = N i 1                                     L ≤ n ≤ N i − 1 (11)</p><p>which means:</p><p>∑ n = L N i z n ( L ) = N i − L + 1 − p i − L (12)</p><p>2) For z N i ( l ) , l = 1 , ⋯ , L − 1</p><p>According to definition of z N i ( l ) , l = 1 , ⋯ , L − 1 and N i , it is obvious that z N i ( l ) = 1 − p i − l , l = 1 , ⋯ , L − 1 , i = 1 , ⋯ , 5 . Thus, it is clear that:</p><p>∑ l = 1 L − 1 z N i ( l ) = ∑ l = 1 L − 1 ( 1 − p i − l ) = L − 1 − p i − 1 ( 1 − p i − ( L − 1 ) ) 1 − p i − 1 = L − 1 + 1 + p i 1 − L 1 − p i (13)</p><p>According to what have been discussed above, it is known that:</p><p>Y N i i = N i − L + 1 − p i − L + L − 1 + 1 − p i 1 − L 1 − p i = N i + 1 − p i − L 1 − p i (14)</p><p>As N i is a stopping time of { X n i , n ≥ L , i = 1 , ⋯ , 5 } and suits what stopping time theory require, it is obvious that:</p><p>E [ Y N i i ] = E [ Y L i ] (15)</p><p>That is:</p><p>E [ N i ] = p i − L − 1 1 − p i , i = 1 , ⋯ , 5 (16)</p></sec></sec></sec><sec id="s3"><title>3. Empirical Analysis</title><sec id="s3_1"><title>3.1. Taking Wuhan University of Technology for Example</title><p>Taking Wuhan University of Technology for example, it has 4 districts in Ma Fangshan district, which are Nan Hu district, Jian Hu district, Dong Yuan district and Xi Yuan district, and it also contains an accommodation area for students outside of the campus named Shengsheng. It can be clearly seen from the distribution of the school that the need for students to take the school bus is very urgent as there are 5 districts. Therefore, a good dispatch of the school bus is of a great importance.</p><p>To collect data, the number of people those take the school bus in every 3 minutes, from Monday to Friday, 7:30 a.m. to 9:00 a.m. is recorded. By using martingale process to predict peak time for each day, the schedule of the departure time can be optimized.</p><p>The data was collected in Nan Hu district, as it is the biggest district of the 5 ones and holds the largest population. There are 14 school buses in Wuhan University of Technology. According to our research, the average traffic for each day can be obtained. After studying on the data, it appears to relate to the total number of courses of the whole school, which makes sense.</p></sec><sec id="s3_2"><title>3.2. The Determine of a<sub>i</sub></title><p>Analyzing the data, a<sub>i</sub> is related to the real situations. Therefore, the values of a<sub>i</sub> combine with the real situations are determined.</p><p>As the number of courses is of a large amount in Monday, the traffic should be largest of the weak. Thus, a peak time for Monday is a period of time when there are more than 9 people arriving at the station continuously in adjacent L unit of time.</p><p>As the number of courses is not very crowded in Tuesday and Wednesday, a peak time for Tuesday and Wednesday is a period of time when there are more than 7 people arriving at the station continuously in adjacent L unit of time.</p><p>As most professors have their meetings on Thursday, the number of courses is not very large. Thus, a peak time for Thursday is a period of time when there are more than 5 people arriving at the station continuously in adjacent L unit of time.</p><p>As there are usually have practical courses on Friday, traffic is a little larger than Thursday. Thus, a peak time for Friday is a period of time when there are more than 6 people arriving at the station continuously in adjacent L unit of time.</p><p>That is <xref ref-type="table" rid="table2">Table 2</xref>.</p></sec><sec id="s3_3"><title>3.3. The Determine of L</title><p>The value of a<sub>i</sub> has been determined by the feature of the data in section 3.2 while the value of L is not. According to what have been observed in each school bus station in Wuhan University of Technology, it will significantly be crowded when there are a<sub>i</sub> person arriving at the station to wait for the bus continuously in adjacent 3 unit of time. Thus L is determined as:</p><p>L = 3 . (17)</p></sec><sec id="s3_4"><title>3.4. Results and Conclusions</title><p>Applying the model in section 2, the peak time for each day is predicted as shown in the <xref ref-type="table" rid="table3">Table 3</xref>.</p><p>It can be seen from the table that the peak time for Monday is around 12:05 and 17:25. T the peak time for Tuesday is around 10:33, the peak time for Wednesday is around 14:33, the peak time for Thursday is around 17:25 and the peak time for Friday is around 11:23. According to our research, it is corresponded to the real situation.</p><p>As for the occurrence of 2 peak times on Monday, according to the collected data, there are usually more people taking the bus on Monday in Wuhan University of Technology, thus there are 2 peak times that 9 person arrives at the station continuously in adjacent 3 unit of time in the original data. In this way, there are 2 peak times predicted by the model.</p></sec></sec><sec id="s4"><title>4. Conclusions and Suggestions</title><p>A peak time prediction model based on martingale process is established and solved with the stopping time theory. Taking Wuhan University of Technology for example, the peak time for each day is predicted by applying the model.</p><p>The suggestion is to reduce the time for departure to increase the trips when it comes to peak times. In this way, the efficiency of the school bus will increase and the cost will decrease at the same time. It will also provide a lot of convenience for students and professors. Besides, it is also suggested that students should prevent these time to take the school bus as far as possible.</p></sec><sec id="s5"><title>Acknowledgements</title><p>The paper is financially supported by Students innovation and entrepreneurship</p><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> The determine of a<sub>i</sub></title></caption><table><tbody><thead><tr><th align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7403566x52.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle" >1</th><th align="center" valign="middle" >2</th><th align="center" valign="middle" >3</th><th align="center" valign="middle" >4</th><th align="center" valign="middle" >5</th></tr></thead><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7403566x53.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >9</td><td align="center" valign="middle" >7</td><td align="center" valign="middle" >7</td><td align="center" valign="middle" >5</td><td align="center" valign="middle" >6</td></tr></tbody></table></table-wrap><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> The prediction of the peak time for each day</title></caption><table><tbody><thead><tr><th align="center" valign="middle" ></th><th align="center" valign="middle" >Monday</th><th align="center" valign="middle" >Tuesday</th><th align="center" valign="middle" >Wednesday</th><th align="center" valign="middle" >Thursday</th><th align="center" valign="middle" >Friday</th></tr></thead><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7403566x54.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >1/5</td><td align="center" valign="middle" >2/15</td><td align="center" valign="middle" >7/30</td><td align="center" valign="middle" >1/5</td><td align="center" valign="middle" >1/6</td></tr><tr><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/3-7403566x55.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >155</td><td align="center" valign="middle" >20.9</td><td align="center" valign="middle" >101</td><td align="center" valign="middle" >155</td><td align="center" valign="middle" >39</td></tr><tr><td align="center" valign="middle" >Peak time</td><td align="center" valign="middle" >12:05 and 17:25</td><td align="center" valign="middle" >10:33</td><td align="center" valign="middle" >14:33</td><td align="center" valign="middle" >17:25</td><td align="center" valign="middle" >11:23</td></tr></tbody></table></table-wrap><p>training program, Wuhan University of Technology, China (No.166814007).</p></sec><sec id="s6"><title>Cite this paper</title><p>Zhou, Y.X., Liu, S.J. and Gui, Y.F. (2017) The Prediction of the Peak Time of People Taking School Bus Based on Martingale Process. Applied Mathematics, 8, 630-636. https://doi.org/10.4236/am.2017.85049</p></sec></body><back><ref-list><title>References</title><ref id="scirp.76239-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">Song, Y.Z. (2013) Application of Heuristic Algorithm Based on Simulated Annealing Algorithm in VRP. Master’s Thesis, Huazhong Normal University, Wuhan.</mixed-citation></ref><ref id="scirp.76239-ref2"><label>2</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>School of Economics and Management</surname><given-names> Henan University of Science and Technology </given-names></name>,<etal>et al</etal>. (<year>2013</year>)<article-title>Research on the Model and Algorithm of School Bus Routing Problem</article-title><source> Journal of Henan University (Natural Science Edition)</source><volume> 43</volume>,<fpage> 682</fpage>-<lpage>691</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.76239-ref3"><label>3</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Ma</surname><given-names> M. </given-names></name>,<etal>et al</etal>. (<year>2011</year>)<article-title>The Martingale Prediction of the Peak of Infectious Diseases</article-title><source> Practice and Understanding of Mathematics</source><volume> 41</volume>,<fpage> 103</fpage>-<lpage>107</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.76239-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Bao, L. and Li, D. (2006) School Bus Weekend Peak Traffic Volume Forecast and Special Date Adjustment. Road Traffic and Safety, 6, 29-32.</mixed-citation></ref><ref id="scirp.76239-ref5"><label>5</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Zhou</surname><given-names> Q. </given-names></name>,<etal>et al</etal>. (<year>2013</year>)<article-title>Research on Optimization of School Bus Dispatching</article-title><source> Journal of Hebei University of Technology</source><volume> 23</volume>,<fpage> 32</fpage>-<lpage>35</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.76239-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Liu, Q.S. (2013) Meta-Heuristic Algorithm Design and GIS Integration for Bus Routing Problem. Master’s Degree Thesis, Henan University, Kaifeng.</mixed-citation></ref><ref id="scirp.76239-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Liu, S.S. (2014) The Cloud Is Not Be Able to Rain. The Shijiazhuang Air Quality in the First “Severe” in June. Yanzhao Metropolis Net. 2014-06-17(3).</mixed-citation></ref></ref-list></back></article>