If you calculate r for these points, it will be 0. Put these in the formula and you should get r = 0.891, a quite high correlation.Ĭonversely, pick any four points that make a horizontal rectangle, for example (2, 2), (8, 2), (2, 6), (8, 6). Here are four points to try it with that make the calculation not too bad: Make up a simple example and try it, with, say, four points. But when Δx and Δy have opposite signs, then Δxi *Δyi will be negative, and that pushes r towards being negative (negative correlation). This pushes r towards being positive (positive correlation). The top is the sum of Δxi *Δyi, so it will be positive when Δx and Δy are BOTH positive or BOTH negative. The key is the top, where nothing is squared. for any values exactly equal to the mean). Because the deviations are squared, every term is positive (except maybe a few are zero when Δxi = 0 or Δyi = 0 (i.e. So you can see that the bottom is the square root of the sum of the squared deviations for x, times the same for y. They will be approximately half positive and half negative, since (usually) about half the values are above the mean and half are below. These Δxi's and Δyi's are called the "deviations". Call this ybar.ģ) For every x-value, subtract xbar. Call this xbar.Ģ) Find the mean (average) of all the y-values. If you want to calculate it from data, this is the procedure:ġ) Find the mean (average) of all the x-values. It is always between -1 and 1, with -1 meaning the points are on a perfect straight line with negative slope, and r = 1 meaning the points are on a perfect straight line with positive slope.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |