travelinedata


A method of calculating the traveline data measures

Several people have asked for advice on how to calculate the measures. This worked example is intended to provide clarity and a simple method of setting up a spreadsheet or database to do the calculations. If you automate the calculation all you do is merge the source records, set the dates and print off the results.
County Identifier Category Date received Date registered Date processed Date on Journey Planner Date starts
PATS number can be used the registration or route number whether to be reported - see Defined Minimum the date received by the transport authority - date stamp this is only useful to show if there has been some delay in submitting the registration the date processed that all ambiguities have been resolved and the data is ready to submit this can be an estimated date based on knowledge of the processing schedule the date the bus service change is due to take effect
If each transport authority keeps similar records they can be gathered and merged into one file whenever analysis is to take place. There is no need to concern the authority with what the date period for the analysis is, the file for the whole year can be sent, for the appropriately dated records to be extracted later. With apologies to Northumberland, Nexus and Durham, the following table shows ficticious data received from three authorities.
B C D E F G H I
County Identifier Category Date received Date registered Date processed Date on Journey Planner Date starts
310PC23456A5.12.20052.12.200519.12.20056.1.200629.1.2006
310PC23556C6.12.20052.12.200519.12.20056.1.200629.1.2006
310PC23656C18.12.20052.12.200520.12.20056.1.200629.1.2006
310PC23756A18.12.20052.12.200520.12.20056.1.200629.1.2006
310PC23856A19.12.20052.12.20059.1.200620.1.200629.1.2006
310PC23956A12.1.20062.12.200510.1.200620.1.200629.1.2006
310PC24456A12.1.20062.12.200511.1.20063.2.200629.1.2006
410PC25456A19.12.200516.12.20052.1.200620.1.200612.2.2006
410PC26456A20.12.200516.12.20052.1.200620.1.200612.2.2006
410PC27456A1.1.200616.12.20053.1.200620.1.200612.2.2006
410PC28456A1.1.200616.12.20053.1.200620.1.200612.2.2006
410PC29456C2.1.200616.12.200523.1.20063.2.200612.2.2006
410PB43456C26.1.200616.12.200524.1.20063.2.200612.2.2006
410PB53456A26.1.200616.12.200525.1.200617.2.200612.2.2006
130PB63456A2.1.200630.12.200516.1.20063.2.200626.2.2006
130PB73456A3.1.200630.12.200516.1.20063.2.200626.2.2006


For each registration you can establish by date arithmetic
B C D J K L M
County Identifier Category 56 days notice 28 days notice Timely By start date
If(I-E>50,"y",)If(I-E>28,"y",)IF(I-H>14,"y",)IF(I-H>0,"y",)
310PC23456Ayyyy
310PC23556Cyyyy
310PC23656Cyyy
310PC23756Ayyy
310PC23856Ayy
310PC23956Ay
310PC24456A
410PC25456Ayyyy
410PC26456Ayyyy
410PC27456Ayyy
410PC28456Ayyy
410PC29456Cyy
410PB43456Cy
410PB53456A
130PB63456Ayyyy
130PB73456Ayyyy


Some of the data measures look for two conditions to be true. Therefore a further calculation can establish:
B C D N O P Q
County Identifier Category 56 days & timely 28 days & timely 56 days by start 28 days by start
if(J="y"&L="y","y",)if(K="y"&L="y","y",)if(J="y"&M="y","y",)if(K="y"&M="y","y",)
310PC23456Ayyyy
310PC23556Cyyyy
310PC23656Cyy
310PC23756Ayy
310PC23856Ay
310PC23956A
310PC24456A
410PC25456Ayyyy
410PC26456Ayyyy
410PC27456Ayy
410PC28456Ayy
410PC29456Cy
410PB43456C
410PB53456A
130PB63456Ayyyy
130PB73456Ayyyy


It is then possible to calculate a table with results for each authority. You can either sort the file on Column G to delete all registrations not processed in the monitoring period or you can build the date range into the calculations. In our example the calculation is of processing from 20 December 2005 to 19 February 2006, thus excluding the first two records.
CategoryA
56&timely28&timelytotal timely56&start28&starttotal at startTotal
Authority
1302222222
3100110234
4102442445
Region47748911
CategoryC
56&timely28&timelytotal timely56&start28&starttotal at startTotal
Authority
1300000000
3100110111
4100000122
Region0110233
CategoryAll
56&timely28&timelytotal timely56&start28&starttotal at startTotal
Authority
1302222222
3100220345
4102442567
Region4884101214


Some of the difficulty calculating the measures may be getting the percentages right. Therefore "What is the appropriate total to use to calculate the various percentages?"
Which total? 56&timely 28&timely total timely 56&start 28&start total at start
Authority Authority total processed of appropriate category, that had been received with 56 days notice Authority total processed of appropriate category, that had been received with 28 days notice Authority total processed of appropriate category Authority total processed of appropriate category, that had been received with 56 days notice Authority total processed of appropriate category, that had been received with 28 days notice Authority total processed of appropriate category
Region Region total processed of the appropriate category, that had been received with 56 days notice Region total processed of the appropriate category, that had been received with 28 days notice Region total processed of the appropriate category Region total processed of the appropriate category, that had been received with 56 days notice Region total processed of the appropriate category, that had been received with 28 days notice Region total processed of the appropriate category


In terms of our example these totals for Category A equate with the following numbers:
CategoryA
Relevant Totals
all 56 daysall 28 daysall regsall 56 daysall 28 daysall regs
Authority
130222222
310024024
410245245
Region48114811


The actual values divided by the total and multiplied by 100 give the following percentage figures:
CategoryA
Percentages
56&timely28&timelytotal timely56&start28&starttotal at startTotal
Authority
130%100%100%100%100%100%100%
310%050%25%0100%75%
410%100%100%80%100%100%80%
Region100%87.5%64%100%100%82%


In the end you return the percentage figures from above which equate with the following target figures:
CategoryA
Targets
56&timely28&timelytotal timely56&start28&starttotal at startTotal
Region100%75%50%80%60%





Go back to traveline measures
Go back to traveline data

© traveline 2005, Last updated: 12 September 2006