Colors in panel A & B refer to motifs specified in Figure 6. (A) Transition probability matrix. Grayscale represents the log probability with which a given motif (rows) will be followed by another (columns). Clustering by minimizing Euclidean distance between rows reveals two distinct blocks of motifs. We label the top-left block as 'investigation' and the bottom-right block as 'approach'. (B) Distribution of onset times for each motif, normalized by trial duration. Investigation motifs tend to occur early in trials, while approach motifs tend to occur later (n = 9 mice). (C) Across-trial motif sequences for two behavioral sessions for one mouse, with motifs classified into investigation and approach. Trials are separated into correct trials (above) and incorrect trials (below). Motif sequences are sourced from the same data as Figure 6C. (D) Temporal details of investigation-approach transitions with overlaid sniff signal. Data come from a subset of trials shown in (C). In the sniff signal, green represents inhalations, black represents the rest of the sniff. (E) Investigation and approach motifs differ in nose speed and sniff rate. Individual markers represent one motif from one mouse. Marker shapes correspond to the individual mice (n = 4). Sniff rate and nose speed are normalized within mice. (F) Investigation and approach motifs differ in the kinematic rhythms (same parameters as in Figures 4 and 5). Thin lines represent individual mice (n = 4), thick lines and shaded regions represent the grand mean ± standard deviation. Blue: within-trial sniffs; orange: inter-trial interval sniffs. Top: nose speed modulation, defined by a modulation index calculated from the grand mean, is significantly greater for investigation motifs than approach motifs (Figure 8—figure supplement 1; p<0.001, permutation test). Middle: yaw velocity modulation is significantly greater for investigation motifs than approach motifs (Figure 8—figure supplement 1; p<0.001, permutation test). Bottom: Z-velocity modulation does not significantly differ between approach motifs and investigation motifs (p=0.31, permutation test).