My data can be usually matched with an exponential decay function, however at some point on the curve where there is a rapid spike, then decay continues, therefore how can this sharp edge be fitted inside the exponential function?
Hi @Sherif_96,
I'm thinking about two possible analysis methods that could deal with the sharp edge in your exponential function :
Since there is only one curve, I fixed the X values, but you could also add Xi parameters if the pattern is the same but happens for different ranges of X values. Using the platform Nonlinear, you can then use your formula as "X, Predictor Formula" and your measured Y as "Y, Response". Launching the platform and click on Go so that JMP determines the parameters in your piecewise equation :
Even if there are analytical solutions to your problem in JMP, I would like to endorse the message from @statman about the "significance" of this peak in your curve. Is this really an important and practically significant pattern you have to keep in the analysis ? From a statistical point of view, there are no big differences in terms of model Sum of Squares Error (SSE) between the piecewise function (SSE=237) and the approximation by a "simple" exponential function with "Fit Curve" platform (SSE=287).
The residuals from these two analysis (piecewise vs. "simple" exponential function) look also very similar :
I attached the datatable with the scripts used so that you can try for yourself and analyze what make sense for you.
Hope this will help you,
What are you trying to do? Why are you trying to fit the spike? Are you trying to explain why there is a spike? Or predict the spike? Are you trying to assess if this is an unusual event (e.g., special)? What is the practical significance of that spike in real terms?
This spike is actually related to the presence of a specific chemical component in the mixture, so I'm attempting to generate a predictive model without ignoring any aspect, as ignoring the effect of this sharp edge may result in a deviation from the original data if fitted by an exponential function.
Hi @Sherif_96,
I'm thinking about two possible analysis methods that could deal with the sharp edge in your exponential function :
Since there is only one curve, I fixed the X values, but you could also add Xi parameters if the pattern is the same but happens for different ranges of X values. Using the platform Nonlinear, you can then use your formula as "X, Predictor Formula" and your measured Y as "Y, Response". Launching the platform and click on Go so that JMP determines the parameters in your piecewise equation :
Even if there are analytical solutions to your problem in JMP, I would like to endorse the message from @statman about the "significance" of this peak in your curve. Is this really an important and practically significant pattern you have to keep in the analysis ? From a statistical point of view, there are no big differences in terms of model Sum of Squares Error (SSE) between the piecewise function (SSE=237) and the approximation by a "simple" exponential function with "Fit Curve" platform (SSE=287).
The residuals from these two analysis (piecewise vs. "simple" exponential function) look also very similar :
I attached the datatable with the scripts used so that you can try for yourself and analyze what make sense for you.
Hope this will help you,
Thank you for the clear explanation and guided steps.
But what happens if I have multiple Y values for the same X? The Y values vary a little but follow the same pattern, and they differ owing to the existence of other factor. Could I fit the varied responses using the piecewise function, taking into account the X and other factor effects?
I think you are referring to this dataset, with several samples (several Y for the same X values) ? : https://community.jmp.com/t5/Discussions/How-to-obtain-the-optimum-formulation/m-p/762444#M94169
If you have identified the samples in your datatable, you can use the Nonlinear platform and use your sample ID in the "By" variable to fit the piecewise equation to each sample independently. You can press CTRL + click on "Go" to launch the estimation of parameters for all samples independently and simultaneously.
Then you can aggregate the parameters values (right-click in the panel "Solution" on the table with the parameters estimates, and click on "Make Combined Data Table"), compare them, and link/analyze them vs. your factor variable (for example by updating the generated table with the V/B ratio, splitting the data table by parameters and analyzing the correlations between the parameters values and the V/B ratio) :
I attach the dataset so that you can test and see the steps used in my response,
Thank you as always, Victor, and if I wish to create a predictive model, I will follow the procedures you suggested in an earlier post. Is this correct in the case of the piecewise function?
And could you recommend a resource for learning about mixture design with JMP?
Yes @Sherif_96, you could use the same methodology for a predictive model of a piecewise function. You can follow the procedure to extract parameters from each functions and link them to your original factor.
Some further recommandations/advices to help you in your project :
Concerning mixture designs, there are various JMP ressources to get started :
You can also join Design of Experiments Club, a group of passionate DoE users with quarterly meetings and insightful discussions. Next meeting is planned on 11th June : https://www.jmp.com/en_gb/events/users-groups/users-group-meetings/doe-community-of-practice-multi-r...
Hope these first ressources will help you,
Many thanks, Victor, for your guidance.