Code covered by the BSD License  

Highlights from
Downside correlation

Be the first to rate this file! 4 Downloads (last 30 days) File Size: 1.73 KB File ID: #27369

Downside correlation

by Francesco Pozzi

 

26 Apr 2010 (Updated 28 Apr 2010)

This function returns the downside correlation for the columns of variable Y

| Watch this File

File Information
Description

Y = DOWNSIDECORRELATION(Y) returns the downside correlation for columns of variable Y.

Y = DOWNSIDECORRELATION(Y, m) returns the downside correlation using vector m as expected value for columns of variable Y.

====================================================

Downside correlation is defined as the downside covariance divided by the squared root of the product of downside variances:

E[min(yi - mi, 0) min(yj - mj), 0] / sqrt{E[min(yi - mi, 0) ^ 2]} / sqrt{E[min(yj - mj, 0) ^ 2]}

If omitted, m is the sampe mean of Y.

====================================================

See also VAR, STD, COV, CORRCOEF.

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
28 Apr 2010

Minor changes: now it's only one file, one function that is independent from downsidecovariance.m (FEX 27367) and downsidevariance.m (FEX 27365).
Hopefully it's just a bit more rational and economic.

Tag Activity for this File
Tag Applied By Date/Time
variance Francesco Pozzi 26 Apr 2010 10:43:15
standard deviation Francesco Pozzi 26 Apr 2010 10:43:15
covariance Francesco Pozzi 26 Apr 2010 10:43:15
correlation Francesco Pozzi 28 Apr 2010 09:42:03

Contact us at files@mathworks.com