A small purple cartoon fish.

littlefish


Generate predictions with littlefish

Littlefish is an experimental tool for analyzing sequences of numbers and predicting the next values in the sequence. For example, if given ...100, 110, 120 littlefish can predict the next likely number is 130.

Enter at least 10 numbers. Please separate your numbers with some whitespace or commas. Longer inputs will take longer to analyze, but might be more accurate.



Sample predictions

A simple linear pattern.

   In: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
  Out: 11, 12, 13, 14, 15
Ideal: 11, 12, 13, 14, 15

A step pattern.

   In: 10, 10, 20, 20, 30, 30, 40, 40, 50, 50
  Out: 59.73, 59.90, 69.81, 70.22, 79.54
Ideal: 60,    60,    70,    70,    80

A rising sawtooth pattern.

   In: 1, 2, 3, 2, 3, 4, 3, 4, 5, 4, 5, 6, 5, 6, 7, 6, 7, 8, 7, 8, 9, 8, 9, 10, 9, 10, 11, 10, 11, 12, 11, 12, 13, 12, 13, 14, 13, 14, 15, 14, 15, 16, 15, 16, 17, 16, 17
  Out: 18, 17, 18, 19, 18
Ideal: 18, 17, 18, 19, 18

A sine wave.

   In: sin(x/5) * 10 (x from 1 to 45)
  Out: 2.37, 0.03, -1.37, -2.93, -4.59
Ideal: 2.23, 0.25, -1.74, -3.66, -5.44

Nice Numbers (user submitted)

   In: 69, 420, 69, 420, 69, 420, 69, 420, 69, 420
  Out: 69, 420, 69, 420, 69
Ideal: 69, 420, 69, 420, 69

Fibonacci (user submitted)

   In: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89
  Out: 139.64, 224.78, 363.00, 572.57, 923.93
Ideal: 144,    233,    377,    610,    987

Squares Wave (user submitted)

If a pattern repeats over a wide period littlefish is unlikely to find a good solution if there isn't enough data.

   In: 1, 4, 9, 16, 25, 16, 9, 4, 1, 4, 9
  Out: 15.75, 17.98, 16.69, 14.41, 20.67
Ideal: 16,    25,    16,    9,     4

   In: 1, 4, 9, 16, 25, 16, 9, 4, 1, 4, 9, 16, 25, 16, 9, 4, 1, 4, 9
  Out: 14.86, 24.07, 14.88, 9.96, 5.26
Ideal: 16,    25,    16,    9,    4

About

Littlefish performs its analysis on the fly using a mix of genetic and consensus algorithms. Every run is isolated, so you will get slightly different predictions if you run it repeatedly with the same data. It doesn't use a pre-trained ML model or typical modern ML techniques (or even libraries for that matter - littlefish has no dependencies).

Questions? Comments? Have a pattern that stumped littlefish? Get in touch here or send me a message on Twitter.