Solving for Correlation

Solving for Correlation
r= correlation, where −1≤r≤1
r=n−11∑(Sxxi−xˉ)(Syyi−yˉ)=(n−1)SxSy∑XY−n(∑X)(∑Y)=(SSxx)(SSyy)(SSxy)2
where

Example: Solving for Correlation
Find the correlation coefficient and interpret it.

∑x=30
∑y=25
∑xy=122
∑x2=220
∑y2=159
r=n−11∑(Sxxi−xˉ)(Syyi−yˉ)=(n−1)SxSy∑XY−n(∑X)(∑Y)=(SSxx)(SSyy)(SSxy)2

Pretty strong, negative correlation.

Example: Solving for Correlation
Solve for the correlation coefficient.

∑x=42
∑y=235
∑xy=1911
Sx=3.3466
Sy=18.7341
r=n−11∑(Sxxi−xˉ)(Syyi−yˉ)=(n−1)SxSy∑XY−n(∑X)(∑Y)=(SSxx)(SSyy)(SSxy)2
There are multiple ways to solve for r. Based on the variables are given in this question, we use this formula:
Strong, positive correlation.

∑X=33,115
∑Y=14,263,500
∑XY=15,157,905,000
Solve for the correlation coefficient.