modlit lawsPaste a time series and see which equations could be behind it, and how far to trust them.

1The data

Starting the engine…
Use your own data

A time column, then 2 or 3 measured columns; comma, semicolon or tab separated; a header row is optional. 10 to 5,000 rows. It stays in this page and is never sent anywhere.

    Loading…
    Figure 1. Pelts traded each year by the Hudson's Bay Company, in thousands. Hares are the prey, lynx the predator. Solid, the proposed law run from 1900; dashed, the same terms fitted to the whole run.

    2The proposed law

    Each rate of change is fitted as a weighted sum of candidate terms; every term whose weight falls below the threshold is dropped. Drag the threshold to see which terms survive.

    –
    Loading…
    Figure 2. Every candidate term's weight against the threshold. The shaded range keeps the same terms as the threshold set above; the dashed line is the setting. Defaults (degree 2, threshold 0.2, columns scaled to mean size 1) are the same for every dataset.

    3Rival models

    Every model with one or two terms, ranked by how much of each rate of change it explains.

    4Does it come back?

    The fit repeated with part of the data left out each time.

    5Run forward

    The equations started from the first row and left to run on their own, against the data.

    Loading…
    Figure 3. Circles, the data; solid lines, the proposed law run forward from the first row.