Tutorials › AP Statistics › Computing r-squared From r

Coefficient of determination · Tutorial 904 of 1000

Computing r-squared From r

Practice squaring correlations accurately and comparing what the resulting \(r^2\) values show—and what they leave out.

Intermediate 8 min read

What You'll Learn

  • Square a positive or negative correlation to calculate \(r^2\).
  • Use parentheses to avoid sign errors when squaring negative values.
  • Check a decimal square using its magnitude or fractional form.
  • Compare \(r^2\) values while keeping the original correlations’ directions distinct.
  • Recognize why squaring preserves comparisons of correlation strength but removes direction.

Squaring a Correlation

In “Defining the Coefficient of Determination \(r^2\),” you learned that in simple linear regression the coefficient of determination is the square of the correlation. This tutorial focuses on the calculation: take a reported \(r\), multiply it by itself, and compare the result with the original correlation.

The sign of \(r\) can make the arithmetic easy to mishandle. A negative correlation squared gives a positive coefficient of determination, because multiplying two negative numbers gives a positive product. Use parentheses around the entire correlation when writing the calculation.

Formula: To calculate the coefficient of determination from a correlation, multiply the correlation by itself: \(r^2=r\times r\). If \(r\) is negative, include the negative sign inside parentheses when substituting.
$$ r^2=(r)^2=r\times r $$

For example, if \(r=-0.8\), then \(r^2=(-0.8)(-0.8)=0.64\). The result is positive. If \(r=0.5\), then \(r^2=(0.5)(0.5)=0.25\). These calculations use the same operation, even though the first correlation is negative and the second is positive.

A useful check is to separate the sign from the magnitude. Squaring makes the result positive (unless \(r=0\)), and the result equals the square of the correlation’s absolute value: \(r^2=|r|^2\). Thus, for \(r=-0.8\), you can check the calculation by squaring \(0.8\): \(0.8\times0.8=0.64\). This check catches the common mistake of treating a negative correlation’s square as negative.

Because a correlation is between \(-1\) and \(1\), its square is between 0 and 1. A correlation of \(0\) squares to \(0\); a correlation of \(1\) or \(-1\) squares to \(1\). Values between those endpoints produce an \(r^2\) between 0 and 1.

Compare the Square With the Original Correlation

The correlation \(r\) and its square \(r^2\) are related, but they do not report the same feature. The sign of \(r\) tells the direction of the linear association: positive or negative. Squaring removes that sign. The coefficient of determination is nonnegative, so it cannot tell you whether the association is positive or negative.

To compare the strength represented by two correlations, compare their absolute values. For instance, \(|-0.8|=0.8\), which is greater than \(|0.5|=0.5\). Squaring these magnitudes gives \(0.64\) and \(0.25\), respectively. The larger absolute correlation produces the larger \(r^2\). In contrast, comparing the signed values \(-0.8\) and \(0.5\) as ordinary numbers would not tell you which association is stronger.

Key comparison: Squaring preserves the ordering of nonnegative magnitudes: if \(|r_1|>|r_2|\), then \(r_1^2>r_2^2\). But \(r^2\) does not preserve direction. Use the original \(r\) to report whether the association is positive or negative.

Correlations that have opposite signs but the same magnitude have the same coefficient of determination. For example, \(r=0.6\) and \(r=-0.6\) both give \(r^2=0.36\). Their linear associations have opposite directions, while their coefficients of determination are equal.

Keep the decimal calculation separate from any later contextual interpretation. First square \(r\) accurately. Then, if a question asks what the result means, describe the fraction of variation in the response accounted for by its linear regression on the explanatory variable, as in the earlier tutorial. Do not turn the calculation itself into a claim about direction, individual prediction accuracy, or causation.

Worked Example: Square a Negative and a Positive Correlation

A fictional recreation program examines the linear relationships between two pairs of variables. For weekly practice time and a performance score, the correlation is \(r=-0.8\). For daily screen time and a different performance measure, the correlation is \(r=0.5\). Calculate and compare the two coefficients of determination.

State. Find \(r^2\) for each reported correlation, then compare the squared values and the original correlations.

Plan. Square each correlation by multiplying it by itself. Keep the negative sign in parentheses for the first calculation. As a check, square each correlation’s absolute value and confirm that the coefficient of determination is nonnegative.

Do. For weekly practice time and performance score:

$$ r^2=(-0.8)^2=(-0.8)(-0.8)=0.64 $$

The magnitude check gives \(|-0.8|=0.8\), and \(0.8\times0.8=0.64\), confirming the result. For daily screen time and the other performance measure:

$$ r^2=(0.5)^2=(0.5)(0.5)=0.25 $$

The second check is \(0.5\times0.5=0.25\), so this result is also consistent. Since \(0.64>0.25\), the first relationship has the larger coefficient of determination. Its correlation is negative, while the second correlation is positive.

Conclude. The coefficients of determination are \(0.64\) and \(0.25\). The first correlation has the greater absolute value, \(0.8\) rather than \(0.5\), and therefore the greater \(r^2\). The first association is negative and the second is positive; the squared values alone do not show this difference in direction.

Use Magnitude to Check Decimal Squares

For correlations written as decimals, multiplication is usually the most direct method. A second check can use a fraction: \(0.36=36/100\), so squaring it means squaring both the numerator and denominator. This method also helps track the decimal place. For a negative correlation, use its magnitude in this check, since squaring removes the sign.

For example, \(0.36^2=(36/100)^2=1296/10000=0.1296\). This is not \(0.1296\%\): it is the decimal coefficient of determination. If expressed as a percentage, it is \(12.96\%\). Keep the decimal form when a question asks only for \(r^2\), and convert to a percentage only when useful or requested.

Worked Example: Check a Square With Fractions

A fictional environmental science group reports a correlation of \(r=-0.36\) between two measured quantities. Calculate the coefficient of determination and verify the decimal placement.

State. Calculate \(r^2\) and give a second check using the correlation’s magnitude as a fraction.

Plan. Multiply \(-0.36\) by itself, keeping both negative signs in parentheses. Then write \(0.36\) as \(36/100\), square the fraction, and check that the two methods agree.

Do. Direct multiplication gives:

$$ r^2=(-0.36)^2=(-0.36)(-0.36)=0.1296 $$

For the second calculation, \(|-0.36|=0.36=36/100\), so:

$$ \left(\frac{36}{100}\right)^2 =\frac{36^2}{100^2} =\frac{1296}{10000} =0.1296 $$

The checks agree. The result is between 0 and 1, as expected for a squared correlation. As a percentage, \(0.1296(100\%)=12.96\%\), or about \(13.0\%\) rounded to one decimal place.

Conclude. The coefficient of determination is \(r^2=0.1296\). Squaring has removed the negative sign, so this value alone does not tell the direction of the original association; the reported \(r=-0.36\) indicates a negative direction.

Equal Squares and Boundary Values

Some comparisons are quickest when you first notice equal magnitudes. If \(r_1\) and \(r_2\) have the same absolute value, their squares must be equal, even if one correlation is negative and the other positive. For example, \(|-0.7|=|0.7|=0.7\), so both correlations have \(r^2=0.49\). Check by multiplication: \((-0.7)(-0.7)=0.49\) and \((0.7)(0.7)=0.49\).

The boundary values provide another quick check. If \(r=0\), then \(r^2=0\times0=0\). If \(r=-1\), then \(r^2=(-1)(-1)=1\); if \(r=1\), then \(r^2=(1)(1)=1\). These endpoint checks reinforce that \(r^2\) is never negative and never greater than 1 for a valid correlation.

Worked Example: Compare Correlations With Opposite Signs

A fictional school gardening club studies the relationship between two different environmental measures and plant growth. One pair has correlation \(r=-0.7\), and the other has correlation \(r=0.7\). A student says the second pair must have the larger \(r^2\) because \(0.7\) is greater than \(-0.7\). Evaluate that claim.

State. Calculate both coefficients of determination and decide whether the claim is correct.

Plan. Square each correlation with its sign in parentheses. Then compare their absolute values, which determine the squared results, and distinguish that comparison from the direction indicated by each original correlation.

Do. For the negative correlation, \((-0.7)(-0.7)=0.49\). For the positive correlation, \((0.7)(0.7)=0.49\). As a check, both absolute values equal \(0.7\), whose square is \(0.49\).

Conclude. The claim is incorrect: both coefficients of determination equal \(0.49\). The correlations have opposite directions, negative and positive, but equal magnitudes and equal \(r^2\) values. Comparing the signed correlations as ordinary numbers does not compare the strength of their linear associations.

Common Mistakes and AP Exam Tips

  • Keeping a negative sign after squaring. A negative correlation is multiplied by itself, so \((-0.8)(-0.8)=0.64\), not \(-0.64\). Parentheses make the operation clear.
  • Squaring only the digits and attaching the old sign. The whole number \(r\), including its sign, is squared. Equivalently, square \(|r|\) and report a nonnegative result.
  • Comparing signed \(r\) values to compare strength. Compare absolute values instead. For example, \(-0.8\) is less than \(0.5\) on a number line, but its magnitude is greater than \(0.5\), so its squared value is larger.
  • Assuming \(r^2\) tells direction. It cannot distinguish a positive correlation from a negative correlation of the same magnitude. State direction from the sign of the original \(r\).
  • Moving the decimal incorrectly. Multiply the decimals or use a fraction check, and make sure the result is between 0 and 1. Do not attach a percent sign unless you have converted the decimal to a percentage.
  • Calling the coefficient a correlation. \(r\) is the signed correlation; \(r^2\) is the nonnegative coefficient of determination. They are related, but they are not interchangeable.

For full-credit calculation work, show the substituted correlation with parentheses when needed, multiply it by itself, and report the nonnegative result. For a comparison, state which \(r^2\) is larger or that they are equal, then use the original correlations to describe direction. If asked to explain what a coefficient of determination means in context, identify variation in the response and use the interpretation pattern from the earlier tutorial; do not say it is a percentage of observations predicted correctly.

Key takeaway: Calculate \(r^2\) by multiplying \(r\) by itself. A negative \(r\) still produces a nonnegative square. Squaring preserves comparisons of correlation magnitude but removes the original correlation’s direction.

Check Your Understanding

Show the squaring step, and use the original correlation when identifying direction.

  1. If \(r=-0.8\), calculate \(r^2\). Show why the result is positive.
  2. If \(r=0.5\), calculate \(r^2\). Which is larger: this value or the coefficient of determination for \(r=-0.8\)?
  3. Two correlations are \(r=-0.6\) and \(r=0.6\). What are their coefficients of determination, and what differs between the correlations?
  4. A student reports \(r^2=-0.49\) after squaring \(r=-0.7\). Identify the error and give the correct value.
  5. Without calculating both products fully, explain why a correlation with magnitude \(0.9\) has a larger \(r^2\) than a correlation with magnitude \(0.4\).