blockCorrelationTest

Tests the null hypothesis that two signals are uncorrelated

Extends from Modelica.Blocks.Interfaces.SI2SO (2 Single Input / 1 Single Output continuous control block).

Information

This block first calculates the Correlation of its two input signals (with delta_t = 0) and performs a SignificanceTest against the null-hypothesis that the signals are uncorrelated. If the output of this block is lower than a threshold of p < 0.05 or p < 0.01, the two inputs must be assumed to be correlated. If the output is higher than this treshold, the two inputs are probably not correlated. For more information see models linked above.

This correlation test uses a Fisher transformation to shape the correlation coefficient r to a more normally distributed number. More information on this procedure can be found e.g. on Wikipedia: https://en.wikipedia.org/wiki/Fisher_transformation.

Parameters

TypeNameDefaultDescription
Modelica.Units.SI.Timet_eps0.001Start evaluating shortly after simulation start
Realrho0.0Expected correlation of null hypothesis (=0)

Connectors

TypeNameDefaultDescription
RealInputu1 (from SI2SO)Connector of Real input signal 1
RealInputu2 (from SI2SO)Connector of Real input signal 2
RealOutputy (from SI2SO)Connector of Real output signal

Components

TypeNameDefaultDescription
Realsigmaif time - t_0 > t_eps then 1/sqrt(time - t_0) else 1/sqrt(t_eps)
Correlationcorrelation
SignificanceTestsignificanceTest
FisherTransformationfisherTransformation

Contents

NameDescription
FisherTransformationprotectedTransforms a correlation to be approximately normally distributed

Revisions

DLR logo Developed 2014 at the DLR Institute of System Dynamics and Control