Computing the LSRL from Summary Statistics
Given xˉ, yˉ, sx, sy, and r, you can compute the LSRL:
Step 1: Compute the slope:
b=r⋅sxsy Step 2: Compute the y-intercept:
a=yˉ−bxˉ Step 3: Write the equation:
y^=a+bx Example: xˉ=10,
yˉ=35,
sx=2,
sy=8,
r=0.75
b=0.75⋅28=3.0
a=35−3.0(10)=35−30=5
y^=5+3x Verification: Plug in x=xˉ=10: y^=5+3(10)=35=yˉ ✓