jupytext | kernelspec | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
FIZ228 - Numerical Analysis
Dr. Emre S. Tasci, Hacettepe University
It is strictly forbidden to contact anybody outside your group or seeking the direct answer on the internet. Every member of the group is responsible for every one of the questions.
+++
Fit the {download}Silica FTIR data<data/05_Silica_FTIR.csv>
[Silica FTIR data] for the wavenumber range [900,1500] cm-1:
- Using 3 Gaussians
- Using 4 Gaussians
- Using 5 Gaussians
- Using 3 Lorentzians
- Using 2 Gaussians & 2 Lorentzians
Calculate the coefficient of determination (
+++
Information:
A Gaussian characterized by (
whereas, a Lorentzian characterized by (
+++
Hints:
- Once you solve one of the items, it will be pretty straightforward to apply the same routing to the rest.
- If at first you don't get any result or error from the
curve_fit()
or any other fit function you are using, it is most likely due to a bad starting point. Trial & error is a good approach but taking a hint from Cappeletti et al.'s graph is the best one! ;) - It's always a good idea to separately plot all the components to see if the components make sense (e.g., absorbance can never take negative values!)
+++
As an example for the last one, check the following fit of 5 Gaussians, with r2 = 0.998:
Even though it seems very good, here are its components, separately drawn:
which doesn't make any sense as G3 & G5 Gaussians indicate a negative absorption!