(defn correlation-linearity-test
"
http://en.wikipedia.org/wiki/Correlation_ratio
It is worth noting that if the relationship between values of and values of overline y_x is linear (which is certainly true when there are only two possibilities for x) this will give the same result as the square of the correlation coefficient, otherwise the correlation ratio will be larger in magnitude. It can therefore be used for judging non-linear relationships.
"
[a b]
(- (correlation-ratio a b)
(correlation a b)))
Vars in
incanter.stats/correlation-linearity-test:
-
defn
Used in 0 other vars
Comments top
No comments for correlation-linearity-test. Log in to add a comment.