How to find relationship between two variables ?
10 次查看(过去 30 天)
显示 更早的评论
Suppuse I have two variables/vectors X and Y, how can I find which relationship both have each other like linear/non-linear quadratic/polynomial etc ?
In addition to that, once I get the relation, how can I find the equation whoch fits in two variables X and Y ?
0 个评论
回答(1 个)
Star Strider
2020-3-6
First, plot them. That will give you a good idea of how they are related.
Second, is there a known process that produced output ‘y’ from input ‘x’, or in some way relates them? If so, create a mathematical model of that process and estimate its parameters using the data.
3 个评论
Guillaume
2020-3-6
Even if you can't visualise the data,as Star says it's always better to have a model, however imperfect, of the system you want to identify.
Saying that, you're probably looking for the System Identification Toolbox. I don't have it and have never used it, so can't tell you how to use it.
Star Strider
2020-3-6
I have it and I have some experience with it, so if your data are signals and you want to identify a system that created it (the input signal is also required), please post the input and output sampled at the same time instants. The time vectors need to be part of each file as well.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!