I am trying to check the agreement of a dataset against a theoretical curve, specifically a bandstop filter in an RLC circuit.
I have generated a function which describes the curve we expect from the filter, and a set of datapoints (amplitude and phase) by experiment. The two agree qualitatively by inspection of the plot.
Is there a way to quantitatively confirm the agreement of the experimental data with the function I have defined? I looked at
curve_fit but it seemed to want to use a predefined function.
Apologies if this has been asked before.