By observing some system list of inputs and outputs is collected. Is there a general algorithm in mathematics for finding (approximate) polynomial function that will map inputs to outputs? It would be great if the procedure can be generalized to more than one variable.
For a polynomial, you can do Lagrange interpolation to any desired order. If you do one to a given order and the next point(s) fit, that would give you good confidence.