Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted
Shannon
Level II

How to find best fit values for a and b in following function y=1-exp((-x/a)^b) to fit data points

I have data, I'd like to find the values of a and b in the following function that best fits the data: y=1-exp((-x/a)^b). 

I'd also like to fit y=1-exp(-x/a) to see which function has the better fit. 

Is there a way to do this?  I'm using JMP 14.

Relaxation function vs hours annealed in attached file. 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Jeff_Perkinson
Community Manager Community Manager

Re: How to find best fit values for a and b in following function y=1-exp((-x/a)^b) to fit data points

@markbailey is right. The Nonlinear platform is flexible and can fit any model you can parameterize in the Formula Editor.

 

Fit Curve and Nonlinear can work together since Fit Curve can save a parametric prediction formula.

 

So, after using Fit Curve to fit your Weibull Growth model you can save the parametric prediction formula. Use the Formula Editor to edit the formula and remove the exponent parameter (set set it to 1).

 

2020-02-16_09-31-58.091.png

Then use the Nonlinear platform with your original column in the Y role and the new predictor function column in the X role.

2020-02-16_09-32-32.244.png

Click the Go button at the top of the report and you'll get estimates for the a and b parameters.

2020-02-16_09-34-26.055.png

 

-Jeff

View solution in original post

4 REPLIES 4
Highlighted
Jeff_Perkinson
Community Manager Community Manager

Re: How to find best fit values for a and b in following function y=1-exp((-x/a)^b) to fit data points

Take a look at the Fit Curve platform and the Logistic 2P curve. I think that's what you're looking for.

 

2020-02-15_12-49-10.695.png

-Jeff
Highlighted
Shannon
Level II

Re: How to find best fit values for a and b in following function y=1-exp((-x/a)^b) to fit data points

Thanks, I checked out fit curve and it looks like Weibull Growth is actually closest to what I want, but not exactly. Is there a way to force a variable, say a, to equal 1 so the equation matches what I'm looking for. Then the second equation I want to fit would have a and c equal 1. 

Shannon_0-1581790819712.png

 

 

Highlighted

Re: How to find best fit values for a and b in following function y=1-exp((-x/a)^b) to fit data points

There are two platforms for non-linear models. Fit Curve is newer. It is based on a library of such models. If your model is one of them, then it is probably the best platform. The Nonlinear platform, though, has the advantage here because you can specify a custom model as a column formula. You can also manipulate the parameters during and between fits.

 

See JMP 14: Help > Books > Predictive and Specialized Models > Nonlinear chapter. There are lots of examples, too.

Learn it once, use it forever!
Highlighted
Jeff_Perkinson
Community Manager Community Manager

Re: How to find best fit values for a and b in following function y=1-exp((-x/a)^b) to fit data points

@markbailey is right. The Nonlinear platform is flexible and can fit any model you can parameterize in the Formula Editor.

 

Fit Curve and Nonlinear can work together since Fit Curve can save a parametric prediction formula.

 

So, after using Fit Curve to fit your Weibull Growth model you can save the parametric prediction formula. Use the Formula Editor to edit the formula and remove the exponent parameter (set set it to 1).

 

2020-02-16_09-31-58.091.png

Then use the Nonlinear platform with your original column in the Y role and the new predictor function column in the X role.

2020-02-16_09-32-32.244.png

Click the Go button at the top of the report and you'll get estimates for the a and b parameters.

2020-02-16_09-34-26.055.png

 

-Jeff

View solution in original post

Article Labels

    There are no labels assigned to this post.