08-20-2002 02:07 PM
03-08-2023 11:45 AM
Hi
Well, this is a 20 years old post but hopefully someone will look into this.
I am wondering if this is true : I have a fitting procedure with standard nonlinear LM vi (thanks to Altenbach that posted some gaussian fitting in this forum). Anyway, my vi works fine and the fit is pretty good but the chi square (calculated with RMSE/DOF) is very large (10^8 or so). The same data fitted with other (more professional) programs gave very similar fits but with small chi2, as I expect since the fit is rather good.
Am I making a mistake in calculations or this guy is right ?
Thanks
03-08-2023 11:51 AM
Hi nitad,
@nitad54449 wrote:
this guy is right ?
Are you still using LV6i as that guy in 2002, 21 years ago?
@nitad54449 wrote:
Am I making a mistake in calculations
Well, we don't know your VI.
We don't know your data.
We don't know those "other more professional programs".
How should we judge if you made a mistake?
03-08-2023 01:01 PM - edited 03-08-2023 01:02 PM
Hi
Thanks for your email. I am not using LV6 (funny thing is that I think I still have it somewhere).
So, let me give more details.
I made a vi to show an example (it may have useless things, it's just a part of a big state machine).
The fitting procedure is in ComplexFit 3zarcs.vi and the data (a simulated set) is in 3_zarcs_sim_data.txt.
A zarc is the impedance of a capacitor and a rezistor, so a complex, it is calculated in Zarc.vi
With my program I get a very good fit (see the vi) and the reported chi2 is 99 or so.
By using a commercial program, called ZsimpWin, I get 10^-10.
Same hing by using Zview, very small chi^2
I have no ideea why, but I believe I am making a mistake somewhere
Thanks for any suggestions
N
03-11-2023 01:18 PM
Hi guys
Anyone know where the problem comes from ? (see my previous post with an example of the problem)
Thanks