How to find relationship between two variables ?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuestas (1)
Star Strider
el 6 de Mzo. de 2020
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 comentarios
Guillaume
el 6 de Mzo. de 2020
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
el 6 de Mzo. de 2020
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.
Ver también
Categorías
Más información sobre Linear and Nonlinear Regression en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!