Physics, Data Science, Least Squares, Chemometrics, Spectroscopy.
component_a + c_b * component_b + c_c *component_c # Let's add it some noise for a bit of realism: query_spectra = query_spectra + np.random.normal(0, 0.02, len(x_range)) plt.plot(x_range, query_spectra, color = 'black', label = 'Mixture spectrum with noise') plt.title('Mixture spectrum', fontsize