## 0.1 Short gaps

Linear interpolation is hypothesized to work quite well in bridging short time gaps. This represents a reduction in the density of the points, but when the gaps do not exceed time intervals of 5-10 minutes, the total level of acceptable sparsity could be much higher before it impacts travel metrics of interest.

In the first study, missingness was introduced to the data at random, representing a situation in which the missingness was not functionally related to the content of the data or the user, and in which the gaps. Each period was divided into 288 five-minute time intervals. Sparsity was introduced at ten percent intervals, ranging from $q=0$$q = 0$, where no data were removed, to $q=.9$$q = .9$ in which 90% of the five minute intervals were excluded. For each period, this process was repeated 20 times at each interval to allow for different portions of the data to be removed.

Analysis steps proceeded in this order:

1. For each 24 hour period

2. For each $q$$q$

1. Sample without replacement the number of intervals to be removed

2. Replace gaps in the data longer than 3 minutes and larger than 80 meters by linear interpolation between the preceding and subsequent point at one second intervals.

3. Apply the stop detection algorithm

1. Mark as a candidate stop all points for which all points in the subsequent 180 seconds are within 80 meters.

2. Mark as being within a stop all points falling within the previous requirement

3. Determine state switches (move -> stop, stop -> move, stop -> stop)

4. Merge stops

• If a stop adjacent to another stop is not more than 100 meters distant from the mean center of the previous stop, merge all locations within this stop to the previous stop
• If two stops are separated by a move state whose summed distance between all points is less than 300 meters, merge into the previous stop.
5. Repeat until no further changes are made.

6. Calculate aggregate measures on both states

4. If there is at least one move state

• Apply top down time ratio algorithm to divide move states into segments
• Calculate aggregate measures on move states
5. Apply top down time ratio algorithm to divide data set into segments and calculate aggregate measures

6. Repeat step 2 20 times

The data with induced missingness were compared to the complete data set in order to evaluate which metrics were impacted. Table 1 shows the decrease in moved distance and number of stops with increasing sparsity. At 30% sparsity, the mean distance retained is almost 90%, and the median distance retained is 93%. Only as sparsity levels exceed 60% does the median distance lost reach 20%. Similarly, we see that linear interpolation doesnâ€™t reduce the median number of stops until sparsity reaches 50%. In fact, these short gaps become problematic only when they become long gaps, as two or more adjacent short gaps merge into one.

A table of full results can be found in the appendix. Results from this simulation study suggest a fairly robust response from the data with increasing levels of $q$$q$. See ??.

Table 1: Selected MCAR Short Gap Results (Median)
q Delta Moved Distance (Km) Delta Radius of Gyration Delta Number of Stops
0.1 -0.4 (-1.2%) 1.2 (5%) 0 (0%)
0.2 -1.1 (-3.8%) 2.8 (11.3%) 0 (0%)
0.3 -1.8 (-6.9%) 4.7 (18.9%) 0 (0%)
0.4 -2.6 (-10.2%) 7.1 (28.1%) 0 (0%)
0.5 -3.8 (-14.2%) 10 (40.2%) -1 (-9.1%)
0.6 -4.9 (-18.4%) 13.7 (55.3%) -1 (-16.7%)
0.7 -6.5 (-24%) 19.1 (77.5%) -1 (-20%)
0.8 -8.5 (-31.7%) 26.9 (111.4%) -2 (-30%)
0.9 -11.9 (-47.7%) 39.8 (173.1%) -2 (-43.7%)

We see relatively large increases in the calculated Radius of Gyration, ${r}_{g}\left(t\right)$$r_{g}(t)$, both of the stops and of the movements. This metric indicates the mobility tendency of a person, and is presented in kilometers. The increase is due to â€¦ ?

## 0.2 Long gaps

A second simulation study was designed to investigate whether or not the same method of linear interpolation worked for gaps of increasing length. It was hypothesized that, in comparison to short gaps, longer gaps would exhibit a more linear relationship between sparsity and the travel metrics of interest. Rather than decreasing the location density uniformly, gaps of increasing length have a greater potential to eliminate entire trips, greatly distorting metrics such as travel distance and number of stops.

Analysis steps proceeded in this order:

1. For each 24 hour period

2. For each of 20 iterations

3. Select a random time point from the 24 hours

1. Remove 10 percent of the remaining data following from this time point

2. Replace gaps in the data longer than 3 minutes and larger than 80 meters by linear interpolation between the preceding and subsequent point at one second intervals.

3. Apply the stop detection algorithm

1. Mark as a candidate stop all points for which all points in the subsequent 180 seconds are within 80 meters.

2. Mark as being within a stop all points falling within the previous requirement

3. Determine state switches (move -> stop, stop -> move, stop -> stop)

4. Merge stops

• If a stop adjacent to another stop is not more than 100 meters distant from the mean center of the previous stop, merge all locations within this stop to the previous stop
• If two stops are separated by a move state whose summed distance between all points is less than 300 meters, merge into the previous stop.
5. Repeat until no further changes are made.

6. Calculate aggregate measures on both states

4. If there is at least one move state

• Apply top down time ratio algorithm to divide move states into segments
• Calculate aggregate measures on move states
5. Apply top down time ratio algorithm to divide data set into segments and calculate aggregate measures

Table 2: Selected MCAR Long Gap Results (Median)
q Delta Moved Distance (Km) Delta Radius of Gyration Delta Number of Stops
0.1 0 (0%) 1.2 (2.5%) 0 (0%)
0.2 0 (0%) 2.4 (5.3%) 0 (0%)
0.3 -2.3 (-8.7%) 3.4 (8.8%) 0 (0%)
0.4 -6.5 (-25.3%) 4.2 (14.4%) -1 (-25%)
0.5 -11 (-46%) 3.1 (14.6%) -2 (-33.3%)
0.6 -17 (-52.3%) 1.3 (9.2%) -2 (-50%)
0.7 -24.3 (-68.3%) -0.2 (-12.7%) -3 (-54.5%)
0.8 -31.9 (-97.3%) -7.8 (-65%) -4 (-66.7%)
0.9 -38 (-100%) -25.9 (-96.2%) -4 (-75%)

## 0.3 Finding a cutoff point

Short gaps that react favorably to linear interpolation must be distinguished from long gaps, which do not. A more in-depth look at the variation between gap lengths varying from one minute to fifteen minutes was conducted. For each complete data set, 15 iterations were conducted, in which gaps were created within each hour of varying length, after which the comparison of metrics against the full data was made.

## 0.4 Covariates allow varying cutoff points

Finally, we sought to establish a set of covariates that could impact this relationship. This could allow for extending the boundaries of what we consider the maximum acceptable gap time.

### 0.4.1 Time

Of central importance was the investigation of time as a metric. Both Android and iOS operating systems employ mechanisms for reducing device activity during times of lesser activity levels, contributing to long gaps during nights that are unlikely to contain travel behavior.

### 0.4.2 Urbanicity

The urbanicity of a personâ€™s home might also impact the cutoff point decision. Persons living in more rural areas are more likely to make longer trips, which may allow for a longer gap time before significant data losses are incurred.

### 0.4.3 Age

The age of a participant may impact the tendency towards certain travel behaviors.