Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:

Fitting a function which describes the expected occurence of data points to real data is often required in scientific applications. A possible optimizer for this task is curve_fit from scipy.optimize. In the following, an example of application of curve_fit is given.