onlinetwodcorrelation:   Correlation coefficient of a discrete joint probability distribution P(x,y)


Formulas

P(x|y) = P(x,y)/P(y)

P(y|x) = P(x,y)/P(x)

s2x = Σ(x-x̄)2f(x)

s2y = Σ(y-ȳ)2f(y)

sx,y = Σ(x-x̄)(y-ȳ)f(x,y)

rx,y = sx,y/(sxsy)

Reference


INPUT DATA:

Enter size of square array n (number n of x equal to number n of y):     

Enter n Px(j) values (in any consistent units; separate each value with a comma):
[Px (j, k) = Py (j, k) ]:

Enter n2 Px,y(j,k) values (j varying first, k varying second; separate each value with a comma)
[The sum of Px,y (j, k) values should equal 1]:


ECHO OF INPUT:


Warning: Undefined variable $number in /var/www/html/ponce/onlinetwodcorrelation.php on line 433
n =  


Warning: Undefined variable $number in /var/www/html/ponce/onlinetwodcorrelation.php on line 435


Warning: Undefined variable $number in /var/www/html/ponce/onlinetwodcorrelation.php on line 444


Warning: Undefined variable $number in /var/www/html/ponce/onlinetwodcorrelation.php on line 454


OUTPUT:

Variance sx =
Warning: Undefined variable $varx in /var/www/html/ponce/onlinetwodcorrelation.php on line 480

Deprecated: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in /var/www/html/ponce/onlinetwodcorrelation.php on line 480
0

Variance sy =
Warning: Undefined variable $vary in /var/www/html/ponce/onlinetwodcorrelation.php on line 482

Deprecated: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in /var/www/html/ponce/onlinetwodcorrelation.php on line 482
0

Covariance sx,y =
Warning: Undefined variable $varxy in /var/www/html/ponce/onlinetwodcorrelation.php on line 484

Deprecated: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in /var/www/html/ponce/onlinetwodcorrelation.php on line 484
0

Correlation coefficient rx,y =
Warning: Undefined variable $corr in /var/www/html/ponce/onlinetwodcorrelation.php on line 486

Deprecated: round(): Passing null to parameter #1 ($num) of type int|float is deprecated in /var/www/html/ponce/onlinetwodcorrelation.php on line 486
0


            

  Your request was processed at  04:17:30 am on April 3rd, 2025   [ 250403  04:17:30 ].


Thank you for running onlinetwodcorrelation.   Please call again.   [151030]

Count