can find regression and curve fit for given equation

3 次查看(过去 30 天)
can this equation use for reggresion and curve fitting
where dy is partial differensiation of y and dx is partial differentiation of x
and x= linspace(0,600,1400)
y = linspace(0,1,1400)
m = a+ b*exp(c*(dy/dx))
  4 个评论
Matt J
Matt J 2023-6-13
编辑:Matt J 2023-6-13
and find the value of m
So m is unknown? Are a, b, and c also unknown? You have 4 unknowns?

请先登录,再进行评论。

回答(2 个)

RANGA BHARATH
RANGA BHARATH 2023-6-13
Hi @Arvind. Here is the solution for your question. And the question can be framed in a better way as follows:
Question:
Can the below equation can be used for Regression and Curve fitting?
m = a + b*exp(c*(dy/dx)), where x = linspace(0,600,1400), y = linspace(0,1,1400) and dy/dx is the differentiation of y with respect to x.
Solution:
It is esential to remember that Regression and Curve Fitting are related concepts, and frequently involved in fitting a model to data.
But the difference lies in the dependency of variables i.e Regression focuses on fitting a model (line or a curve) that best represents the relationship between a dependent variable and one or more independent variables, whereas Curve Fitting does not necessarily involve a dependent variable or pre-specified independent variable.
Additionally, the equation you presented doesn't seem suited to a standard regression problem since it has an explicit function for the independent variable x. If the data includes error, it would be difficult to estimate the parameters for multiple y values at various x values. Thus, curve fitting might be the more appropriate technique here.
However, the expression dy/dx in the equation suggests that a derivative is being taken, which means that the data you have might be some sort of time-series or function analyzed using differential calculus. In this case, you may need to ensure that the data is differentiable.
In conclusion, the equation you provided can be used for curve fitting cautiously, making sure that the data allows for accurate differentiation.
Assumption:
Data is differentiable and taking the derivarives is meaningful i.e the function to be differentiated is continuous and differentiable at the point in the question.
  1 个评论
Arvind
Arvind 2023-6-14
x and y are measured at the same depth, but they are not directly related and I want the regression between dx and dy, where can I get dx by diff(x) and y by diff(y)?
After finding dx and dy. Can I fit the given equation to the data and find m?

请先登录,再进行评论。


Torsten
Torsten 2023-6-17
编辑:Torsten 2023-6-17
Since your equation can be rearranged as
dy/dx = 1/c * log((m-a)/b)
your model assumes that dy/dx is equal to a constant that you try to estimate.
That means that your model for y is linear in x:
y = c1 + c2*x
The constants c1 and c2 can be estimated by standard methods:
You won't be able to estimate m separately in your original model, only 1/c * log((m-a)/b) which is equal to c2.

类别

Help CenterFile Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息

产品


版本

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by