Statistical dependence index
function [argout1 argout2 argout3 argout4]=sdindex2(data,threshold)
%calculation of statistical dependence index
%INPUTS
%data: a two column matrix, each column is a variable, each row an observation
%thresholds: reference thresholds for calculation of probability
%OUTPUTS
%statistical dependence index: SDI = Pab / Pa*Pb
%joint probability: Pab=P(a>threshold & b>threshold)
%A site probability
%B site probability
outputs depend of course on nargout
SDI is presented and defined in
F. Barbaliscia, G. Ravaioli, A. Paraboni. Characteristics of the Spatial Statistical Dependence of Rainfall rates over Large areas. IEEE Trans. Antennas Propagat., Vol. 40, No. 1, pp. 8-12, Feb. 1992
for the context of spatial correlation of rain rate and attenuation for satellite communciations, but is readily extendable to other fields. It is also part of the calculation of mutual information, as log(SDI), so it can help on that.
how to use it:
for a 2-column vector, two sites of n observations, and for a given threshold that you want to evaluate (threshold is used to evaluate probability of exceeding it)
thresholds =[3];
[sdi Pab]=sdindex2(pairdata,thresholds);
Cite As
luis emiliani (2024). Statistical dependence index (https://www.mathworks.com/matlabcentral/fileexchange/12282-statistical-dependence-index), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |