2
$\begingroup$

This is the logistic distribution of single random variable (taken from Wikipedia).

$x$ = random variable $\mu$ = mean of all random variables $s$ = variance.

enter image description here

Now, I want to do a Bivariate logistic distribution (having two random variables $x_1$ and $x_2$). My dataset is going to be image pixel values!

When I find the covariance of two random variables, it turns out to be a 2 x 2 square matrix but I need a single number! How to actually compute a bivariate model?

$\endgroup$

1 Answer 1

2
$\begingroup$

A covariance matrix - or more properly, a variance-covariance matrix, consists of variance terms on the diagonal and covariances off the diagonal. It is also symmetric.

Hence if the matrix you have is actually a 2x2 covariance matrix, either the (1,2) or the (2,1) element is the covariance of the two variables (they'll be identical). The other two elements are the two variances.

(Which is which depends on the order of the variables.)

Edit: Out of curiosity, how were you computing the covariance matrix?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.