Day 8: Pearson Correlation Coefficient II

  • + 0 comments

    I am confused how the pearson correlation can be calculated by finding the slope and the editorial did not make sense entirely to me. The formula for r:

    r=∑((Xi−Xmean)*(Yi−Ymean)) / sqrt(∑((Xi−Xmean)^2) sqrt((Yi−Ymean) ^2)
    

    and the formula for calculatin a slope: b = ∑((xi−Xmean)(yi−Ymean))/ ∑(xi−Xmean) so how is it possible to calculate r without knowing all this?