Code covered by the BSD License  

Highlights from
Upside correlation

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

Upside correlation

by Francesco Pozzi

 

26 Apr 2010 (Updated 28 Apr 2010)

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

| Watch this File

File Information
Description

Y = UPSIDECORRELATION(Y) returns the upside correlation for columns of variable Y.

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

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

Upside correlation is defined as the upside covariance divided by the squared root of the product of upside 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 upsidecovariance.m (FEX 27368) and upsidevariance.m (FEX 27366).
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:21
standard deviation Francesco Pozzi 26 Apr 2010 10:43:21
covariance Francesco Pozzi 26 Apr 2010 10:43:21
correlation Francesco Pozzi 26 Apr 2010 10:43:21

Contact us at files@mathworks.com