Recovering the Sign That \(r^2\) Leaves Out
In “Finding \(r\)-squared From Computer Output,” you learned to identify the coefficient of determination in a regression summary. That value describes how much variation in the response is accounted for by its linear relationship with the explanatory variable, but it does not tell you whether the relationship is positive or negative. If a question gives \(r^2\) and the sign of the regression slope, you can recover the correlation \(r\).
The calculation has two parts. Taking the square root of \(r^2\) gives the magnitude of \(r\), meaning its distance from zero. Then use the sign of the slope to decide whether \(r\) is positive or negative. In simple linear regression, the slope and correlation have the same sign, as established in “Why Regressing Y on X Differs From X on Y.”
For example, if \(r^2=0.36\), then the correlation must be either \(+0.60\) or \(-0.60\), because both values square to \(0.36\). A positive fitted slope selects \(r=+0.60\); a negative fitted slope selects \(r=-0.60\). The value of \(r^2\) by itself cannot distinguish between these two possibilities.
This is a special case of undoing a square: both a positive and a negative number can have the same square. The square root symbol \(\sqrt{r^2}\) gives the nonnegative magnitude, not the signed correlation automatically. Be sure to use the slope sign after taking the square root.
A Reliable Two-Part Method
First, identify the coefficient of determination—not adjusted \(R\)-squared or another output statistic. In simple linear regression, the value labeled \(R\)-sq or \(R\)-squared is \(r^2\). If it is a decimal, take its square root; if it is a percentage, convert it to a decimal first. Next, read the sign of the fitted slope \(b\). A positive slope means \(r>0\), and a negative slope means \(r<0\).
Use the coefficient of determination for the simple linear regression, and check whether it is reported as a decimal or percentage.
Calculate \(\sqrt{r^2}\). This result is nonnegative and gives the magnitude of \(r\).
Use the fitted slope \(b\), not the intercept, to determine the direction of the correlation.
Attach the slope’s sign to the square-root result, then square the reconstructed \(r\) to check that it agrees with the reported \(r^2\), allowing for rounding.
The slope’s numerical size is not used in this calculation. A slope of \(0.2\) and a slope of \(20\) are both positive, so either indicates a positive correlation in simple linear regression. The intercept is not used either. These coefficients describe the fitted equation, while the task here is to combine the magnitude from \(r^2\) with the direction from the slope.
Worked Example: Negative Slope and an Exact \(r^2\)
A fictional recreation-center project uses the number of minutes a visitor spends waiting for a climbing wall to predict the visitor’s satisfaction rating. The regression output gives \(R\)-sq \(=0.64\) and a fitted slope of \(-0.18\) satisfaction points per minute. Find \(r\).
State. The coefficient of determination is \(r^2=0.64\), and the fitted slope is negative. We need the signed correlation.
Plan. Take the square root of \(0.64\) to find the magnitude of \(r\). Since the slope is negative, choose the negative square root. In simple linear regression, the slope and correlation have the same sign.
Do. The square-root calculation is \[ \sqrt{r^2}=\sqrt{0.64}=0.80. \] The slope is \(-0.18\), so the correlation is \(r=-0.80\). Check by squaring: \[ (-0.80)^2=(-0.80)(-0.80)=0.64. \]
Conclude. The correlation between waiting time and satisfaction rating is \(r=-0.80\). Its negative sign agrees with the negative fitted slope, and its square matches the reported coefficient of determination.
Notice that the units of the slope do not become units of \(r\). The slope is measured in satisfaction points per minute, while \(r\) is unitless. The slope tells us which sign to use here; its size does not set the size of the correlation.
Allow for Rounding in Computer Output
Computer output often rounds \(r^2\), so the square root you calculate may be approximate. Keep several digits during the calculation and round the final correlation sensibly. If you square a rounded value of \(r\), it may not exactly reproduce the displayed \(r^2\). That small difference can be due to rounding rather than a mistake.
For instance, suppose output shows \(R\)-sq \(=0.73\). Its square root is approximately \(0.854400\). If the slope is positive, report \(r\approx 0.8544\), or \(r\approx 0.854\) to three decimal places. Squaring \(0.8544\) gives \(0.72999936\), which is about \(0.7300\), consistent with an \(r^2\) value displayed as \(0.73\). If you instead square the rounded three-decimal value \(0.854\), you get \(0.729316\), or about \(0.7293\). The difference is expected because the displayed \(r\) was rounded.
If the software gives \(r^2\) as a percentage, first write it as a decimal. For example, \(49\%\) is \(0.49\), and \(\sqrt{0.49}=0.70\). Taking the square root of \(49\) would be a scale error: the coefficient of determination must be between 0 and 1 for this calculation.
Worked Example: Positive Slope and Rounded Output
A fictional gardening club models the number of flowers on a plant using the number of weeks since it was transplanted. A computer summary reports \(R\)-sq \(=0.73\), rounded to two decimal places, and gives a positive fitted slope of \(2.4\) flowers per week. Find and report \(r\), then check the result.
State. The reported coefficient of determination is \(r^2=0.73\), and the slope is positive. We will recover the positive correlation, recognizing that the output is rounded.
Plan. Take the square root of the displayed \(r^2\) for the magnitude. Choose the positive sign because the slope is positive. Retain extra digits for the check, then report the correlation to a reasonable precision.
Do. Calculate \[ \sqrt{0.73}\approx 0.854400. \] Because the fitted slope is positive, \(r\approx +0.8544\), or \(r\approx 0.854\) to three decimal places. Using the four-decimal value, \[ (0.8544)^2=0.72999936\approx 0.7300. \] Using the rounded three-decimal value instead, \[ (0.854)^2=0.729316\approx 0.7293. \] Both checks are consistent with the displayed \(r^2=0.73\); the small differences arise from rounding.
Conclude. The correlation between weeks since transplanting and the number of flowers is approximately \(r=+0.854\). The positive sign follows from the positive slope, and the result is approximate because the displayed coefficient of determination is rounded.
This example also shows why it is good practice to say “approximately” when recovering \(r\) from rounded output. The printed \(0.73\) may itself stand for a more precise value, so the square root of the displayed number need not equal the software’s original correlation exactly.
Worked Example: A Percentage and a Negative Slope
A fictional wildlife group studies the association between distance from a pond and the number of frog calls heard during a fixed observation period. The regression summary reports \(R\)-sq \(=49\%\), and the fitted slope is \(-1.6\) calls per meter. Find the correlation.
State. The coefficient of determination is reported as \(49\%\), and the slope is negative. We need \(r\), not the percentage itself.
Plan. Convert \(49\%\) to the decimal \(0.49\). Take its square root to get the magnitude, then use the negative slope to assign the negative sign.
Do. Convert the scale and take the square root: \[ 49\%=0.49,\qquad \sqrt{0.49}=0.70. \] Since the slope is \(-1.6\), the correlation is \(r=-0.70\). Check: \[ (-0.70)^2=(-0.70)(-0.70)=0.49=49\%. \]
Conclude. The correlation between distance from the pond and the number of frog calls is \(r=-0.70\). The negative sign agrees with the negative slope, and the squared correlation is the reported \(49\%\) coefficient of determination.
What the Calculation Can—and Cannot—Tell You
The pair \(r^2\) and slope sign is enough to recover \(r\) in simple linear regression. The coefficient of determination gives the correlation’s magnitude, and the slope gives its direction. Neither piece alone does both jobs: \(r^2\) cannot distinguish positive from negative correlation, and the slope sign alone cannot tell you how strong the correlation is.
The intercept does not resolve the sign. Nor does a slope’s size tell you the strength of the correlation. The relationship between slope and correlation also depends on the variables’ standard deviations, as covered in “Why Regressing Y on X Differs From X on Y.” For this task, do not try to infer \(r\) from the numerical slope alone.
For ordinary simple linear regression with varying \(x\) and \(y\), \(r^2\) is between 0 and 1. If \(r^2=0\), then \(r=0\); the slope is zero in this setting, so there is no positive or negative sign to assign. If \(r^2=1\), then the magnitude is 1, and the slope sign determines whether \(r=+1\) or \(r=-1\). Most examples involve values strictly between 0 and 1.
Common Mistakes and AP Exam Tips
- Taking the square root and forgetting the sign. \(\sqrt{r^2}\) is nonnegative. A full-credit answer uses the slope sign to select \(+\sqrt{r^2}\) or \(-\sqrt{r^2}\).
- Assuming \(r^2\) shows direction. Squaring removes the sign. Explain that the slope, not \(r^2\), identifies whether the correlation is positive or negative.
- Using the intercept or slope magnitude to choose \(r\). Only the slope’s sign is needed for direction. The intercept and numerical size of the slope do not supply the correlation’s magnitude.
- Taking the square root of a percentage without converting it. Change \(49\%\) to \(0.49\) before calculating \(\sqrt{0.49}\).
- Calling a rounded check inconsistent too quickly. Square the value at the precision you actually used and allow for rounding in the original output and your answer. Keep extra digits until the final report.
- Reporting an unsigned answer when direction matters. A response of \(0.85\) is incomplete if the slope is negative. Report \(r\approx -0.85\) in that situation.
A concise AP-style response can show the key reasoning in one line: “\(\sqrt{0.64}=0.80\), and because the fitted slope is negative, \(r=-0.80\).” When output is rounded, use an approximation symbol or words such as “approximately.” If asked for an interpretation as well, describe the direction and strength of the linear relationship in context; do not interpret \(r\) as a percentage of variation.
Check Your Understanding
For each item, recover the correlation and show how the slope sign determines your choice.
- A simple linear regression has \(R\)-sq \(=0.81\) and a negative slope. What is \(r\)? Verify by squaring your answer.
- A model reports \(R\)-sq \(=25\%\) and a positive slope. Convert to a decimal, then find \(r\).
- A student says that \(r^2=0.36\) must mean \(r=+0.60\). Explain what information is missing and how the slope resolves it.
- Output gives \(R\)-sq \(=0.50\) and a negative fitted slope. Give \(r\) to three decimal places. Why should the answer be written as approximate?
- A regression slope is positive, but its numerical value is very small. Does that fact make the correlation negative or determine its magnitude? Explain what information is needed to recover \(r\).