I struggled to find a clear solution online so I'm resorting to asking a fresh question.
I have two finite datasets (call them 40x1 vectors) that are equal in length and generate non-linear curves, when plotted.
What are some methods for determining a 'best fit' equation that can convert dataset A into dataset B? I figure there must be some Matlab or python function out there, but I seem to be unable to identify it. Also, I realize that there are infinite valid equations to meet this criteria. Primarily, I'm looking for a tool that let me choose a function type (polynomial, exponential, log, etc) and test out different options until I find an ideal match.
Some context: I have captured an experimental dataset A and an experimental dataset B. These trends are similar in shape, but have varying steepness, curvature, intercept, etc. Specifically, dataset A is the output voltage of a sensor based on a particular gas-species. Dataset B is the output of the same sensor, but with a different gas-species. If the sensor is the same (it is), we expect a dependent relationship to exist between A and B.
In the future, I would like to be able to capture a new dataset B, and to rely on a relationship equation to generate calculated values for what a corresponding dataset A would look like. Essentially, this is a regression problem.
The tools that I'm most comfortable with are Matlab and Python, but I am open to all suggestions. Thanks!