pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Covariance Matrix


From: Jason Stover
Subject: Re: Covariance Matrix
Date: Wed, 7 Oct 2009 19:35:10 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

On Wed, Oct 07, 2009 at 03:17:55PM -0400, Jason Stover wrote:
> But that isn't the total number of categories that must be considered
> for the covariance matrix. For example, if our dictionary had the
> variables v1, v2 and v3, and v1 had n1 categories, v2 had n2
> categories and v3 had n3 categories, then our covariance matrix would
> need to have (n1 - 1)*(n2 - 1)*(n3 - 1) rows. I guess we could compute
> this value in category.c, but what if someone only wanted a covariance
> matrix for just v1 and v2? Then the the number of rows necessary would be
> (n1 - 1) * (n2 - 1). Or maybe they would want v2 and v3, then we would
> need (n2 - 1)*(n3 - 1) rows.

I made a mistake here: The dimensions would be (n1-1)+(n2-1)+(n3-1),
or (n1-1)+(n2-1), etc., but not (n1-1)*(n2-1). Oops. 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]