The 1833 formalism of Hamiltonian mechanics prescribes phase space coordinates (p,q) as momenta. https://en.wikipedia.org/wiki/Hamiltonian_mechanics
The Box-Jenkins method (1970) of time series forecasting uses similar notation (p,q) defined as "once stationarity and seasonality have been addressed, the next step is to identify the order (i.e. the p and q) of the autoregressive and moving average terms." https://en.wikipedia.org/wiki/Box%E2%80%93Jenkins_method
There is nothing in Box-Jenkins 1970 book suggesting awareness of Hamiltonian mechanics as a precedent.
Regardless, and as noted, the similarities in notation are striking. But are they accidental?