I have a list of inputs and outputs, and I need to somehow find a function that will match them. There's two inputs and one output per set. At first I considered using a Neural Network, but it might be difficult to get a mathematical function from it, and it wouldn't be perfect.
Patterns I've noticed: All of the values are always positive integers, and when input 1 and input 2 are the same, the output is always 1. Typically, the higher input 1 and input 2 are, the higher the output is, but I can't figure out by how much exactly.
This is a sample of my data: |Input 1|Input 2|Output| |-------|-------|------| |5 |5 |1 | |4 |5 |6 | |3 |5 |2 | |2 |5 |4 | |6 |5 |8 | |6 |6 |1 | |6 |7 |10 |
I'm not quite sure how to go about this. Does anybody have any suggestions?
Edit: The above table is rendering in the question editor, but it won't render for me on the actual question. I'm not sure if this is a local issue or if I messed up the markdown; here's an ASCII version:
|Input 1|Input 2|Output|
|-------|-------|------|
|5 |5 |1 |
|4 |5 |6 |
|3 |5 |2 |
|2 |5 |4 |
|6 |5 |8 |
|6 |6 |1 |
|6 |7 |10 |
Edit 2: As fedja suggested, I compiled a grid of the data (below). There were a few interesting trends that I spotted quickly, like the fact that all the values were mirrored (e.g. 1x3 and 3x1 contain the same value). There was also a pattern I noticed that I put in grey and blue, where it alternates between adding 1 and 2.
