Q:
My program should print out means, standard deviations, the covariance,
and the correlation coefficients using these formulas
Mean(X)=($X)?NM
CoVariance(X,Y) = ($XY)/N - Mean(X) * Mean(Y)
StDev(X)=sqrt(CoVariance(X,X))
CorrelationCoeff(X,Y)=CoVariance(X,Y)/(StDev(X) * stDev(Y))
My program output should look like this:
1 91.30 68.40
and so on, but my program is not reading both values. It's just reading
the X not the Y. can you tell me what I am doing wrong? Did I need to
send you a copy of my program?
A:
>Did I need to send you a copy of my program?
Definitely.
Regards,
Peter
[ back to toc ]