How to find relationship between two variables ?

조회 수: 7 (최근 30일)
Koustubh Shirke
Koustubh Shirke 2020년 3월 6일
댓글: Star Strider 2020년 3월 6일
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 ?

답변 (1개)

Star Strider
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
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
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 CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by