Thanks Michel...
I searched the web and the only thing
I found (that I could understand) was
http://www.oreilly.com/catalog/transqlcook/chapter/ch08.html
where they cover *correlation coefficient*
in terms I can understand:
***quote***
Calculating Correlation
Problem
You want to calculate the correlation between two samples.
For example, you want to calculate how similar the light-bulb
sales patterns are for two different years.
Solution
The query in the following example uses the formula for
calculating correlation coefficients shown earlier in this chapter.
It does this for the years 1997 and 1998.
SELECT
(COUNT(*)*SUM(x.Sales*y.Sales)
-SUM(x.Sales)*SUM(y.Sales))
/
(SQRT(COUNT(*)*SUM(SQUARE(x.Sales))
- SQUARE(SUM(x.Sales)))*
SQRT(COUNT(*)*SUM(SQUARE(y.Sales))
- SQUARE(SUM(y.Sales))))
correlation
FROM
BulbSales x JOIN BulbSales y
ON x.month=y.month
WHERE
x.Year=1997
AND
y.Year=1998
correlation
-----------------------------------------------------
0.79
The correlation calculated is 0.79,
which means that the sales patterns between the two years
are highly correlated or, in other words, very similar.
***unquote***
I wish they had covered covariance as well as they did correlation
(or maybe they did, but when they got into SQL pivot tables
I gave up on an Access solution)....
thanks again (not OP)