Figure 8. Observed and fitted trajectories for age-varying behavioral data. Observed data (solid lines) and spherical functional principal component analysis fitted behavioral trajectories (dashed lines) for six randomly selected medflies, with three selected components. The close alignment demonstrates a good fit.