The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum
 Origin Forum
 Suggestions for fit - solver Excel

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
zazza123 Posted - 04/16/2018 : 08:11:05 AM
Origin Ver. and Service Release: OriginPro 2018
Operating System: Win10 pro

Good morning, I'm writing here because I'm a new Origin user and I have little confidence with the software. I have an issue which I'm not able to solve, regarding a non-linear fit procedure.

Before, I have to sum up what I'm doing and what I did till now with Excel. Basically I have a calibrated sample (NIST traceable) which let's say give me the value of a physical quantity M in the range from 0 to 4 (arbitrary units). For my purposes and daily applications, I can measure the quantity M even to values of 7, because my instruments allow me to do so. Now, in order to calibrate my instruments to such values I perform this task: firstly I only measure the calibrated sample and secondly one I add to the calibrated sample another sample that I can make in the lab which is 2.6 in units. In this way I can extend the range of my "calibration measurement" instead of 0 to 4, from 0 to 6.5. (The values are fictional).

Set1(ref)
0
1
2
3
4
2.6 (0 + 2.6)
3.6 (1 + 2.6)
4.6 (2 + 2.6)
5.6 (3 + 2.6)
6.6 (4 + 2.6)

Set2(measured value with my instrument)
0.02
1.06
2.18
3.08
4.06
2.48
3.69
4.46
5.57
6.75

The second step is to measure and store the values that I obtain with my instrument for such "nominal values" together with their uncertainties. To fit the data I have a non-linear function, which is a linear function which has a saturation at high levels (there's a bending or knee of the curve). My function has in total 2 parameters.
In my model function I put the values of Set1 and I obtain the "theoretical values". Then I perform the Chi-square test (squared difference between measured value vs therotetical value) and finally I use the solver function of excel asking to minimize the sum of the chi-squared, changing the 2 parameters plus the value that I measured for my internal sample, namely 2.6

In this way, the solver change these 3 values and find the parameters and also the "real" value of my internal sample, which suppose after the fit is 2.32, thus changing the second part of set1 in this way:

Set1(ref+internal sample)
0 + 2.32 = 2.32
1 + 2.32 = 3.32
2 + 2.32 = 4.32
3 + 2.32 = 5.32
4 + 2.32 = 6.32


Unfortunately Excel is not able to retrieve me the standard error of the parameters, which is something that I need, of course.


I hope you can give me some hints or advices to solve this problem... I know that my independent variables are actually not really independent, since just set1 is truly independent, while set2 depends in a way from this internal sample value, which is not included in the equation for the fit.


At this moment I don't know how to parametrize my data in order to obtain the desired outcome. Hope you could give me a hint.
Best regards
3   L A T E S T    R E P L I E S    (Newest First)
yuki_wu Posted - 04/17/2018 : 11:30:38 PM
Hi,

I think you hope to create a user-defined fitting function and then carry out nonlinear curve fit with user-defined fitting function, right?

Please take a look at this knowledge base item and see if this applies to you:
https://www.originlab.com/doc/Origin-Help/NLFit-QuickStart
https://www.originlab.com/doc/Tutorials/UserDef-FitFunc

Hope it helps.

Regards,
Yuki
OriginLab
zazza123 Posted - 04/17/2018 : 10:07:14 AM
@yuki_wu I'm sorry but I did not get your question. I'd like to get the best estimate of my fit parameters, and of course I know that Origin can retrieve the SE.
The problem is that I don't know how to set origin, to perform a task which is very easy to do in Excel.
yuki_wu Posted - 04/17/2018 : 04:42:04 AM
Hi,

I suppose you already know this is Origin Forum, right? Do you want to get the value of standard error after performing non-linear fitting in Origin?

Regards,
Yuki
OriginLab

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000