Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Hello,
I have a set of data which I divided into 3 vectors X, Y, and Z. I am trying to generate a best fit equation for this data based on the formula Z = a*X^b*Y^c
Is there a function in Mathcad to determine a best-fit equation based on the above formula.
This question was posted before, but was lost when the PTC Community forum got migrated into a new platform, so I am trying to get back the answers I obtained.
Thanks,
Felipe Loo
Solved! Go to Solution.
Here are some suggestions as to how to achieve what you demanded for.
You may have a look at the Mathcad function "genfit".
EDIT:: genfit will not work with 2 independent variables. The multidimensional analogon in Mathcad is "multidfit".
Or you could use a solve block with "minerr"
EDIT: I didn't look too closely at the type of your equation. Now that I did I guesss that Alan's suggestion below is the best appraoch. You may use "polyfit"/"polyfitc" to do so.
Or take logs and use a linear fit.
Alan
@nanay001 wrote:
Hello,
I have a set of data which I divided into 3 vectors X, Y, and Z. I am trying to generate a best fit equation for this data based on the formula Z = a*X^b*Y^c
Is there a function in Mathcad to determine a best-fit equation based on the above formula.
This question was posted before, but was lost when the PTC Community forum got migrated into a new platform, so I am trying to get back the answers I obtained.
Thanks,
Felipe Loo
Sorry, it will be not a curve but a surface.
Give please us please your 3 vectirs!
@nanay001 wrote:
Hello,
I have a set of data which I divided into 3 vectors X, Y, and Z. I am trying to generate a best fit equation for this data based on the formula Z = a*X^b*Y^c
Is there a function in Mathcad to determine a best-fit equation based on the above formula.
This question was posted before, but was lost when the PTC Community forum got migrated into a new platform, so I am trying to get back the answers I obtained.
Thanks,
Felipe Loo
Sorry, it will be not a curve but a surface.
Send please please your 3 vectirs!
Here are some suggestions as to how to achieve what you demanded for.
See please the article
Price of an Old Car Or The way from Correlation to Regression in Mathcad