Skip to main content
United StatesStatisticsSyllabus dot point

How do you compute the t test statistic and P-value and conclude a test about a regression slope?

Topic 9.5 Carrying Out a Test for the Slope of a Regression Model: compute the t test statistic for the slope using the standard error, find the P-value with n minus 2 degrees of freedom, and state a conclusion in context.

A focused answer to AP Statistics Topic 9.5, on computing the slope t statistic from the sample slope and its standard error, finding the P-value with n minus 2 degrees of freedom, and concluding in context, with a full worked test from regression output.

Generated by Claude Opus 4.811 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this topic is asking
  2. The slope t statistic
  3. From t to the P-value and decision
  4. Test and interval agree; association is not causation
  5. Try this

What this topic is asking

The College Board (Topic 9.5) wants you to carry out and conclude a slope test: compute the t statistic t=bSEbt = \dfrac{b}{SE_b}, find the P-value with n2n - 2 degrees of freedom, compare to α\alpha, and state a conclusion in context, completing the test set up in Topic 9.4.

The slope t statistic

The statistic is the sample slope divided by its standard error, the slope analogue of xˉμ0s/n\dfrac{\bar{x} - \mu_0}{s/\sqrt{n}}. Both bb and SEbSE_b come from computer output: the slope row lists the coefficient bb, its standard error SEbSE_b, the t-statistic, and a P-value. You can compute t=b/SEbt = b/SE_b directly, or read it from the "t" column. The degrees of freedom are n2n - 2.

From t to the P-value and decision

Computer output usually prints the two-sided P-value. For a one-sided test, halve the reported P-value (when bb is in the alternative's direction). Match the tail to HaH_a. The conclusion states the decision, ties it to PP versus α\alpha, and interprets in context ("there is convincing evidence of a positive linear relationship between ... and ..."). Never write "accept H0H_0"; the choices are reject or fail to reject.

Test and interval agree; association is not causation

Because the slope test and slope interval use the same bb, SEbSE_b, and df=n2df = n - 2, a two-sided test at level α\alpha and a C=1αC = 1 - \alpha interval agree exactly: H0:β=0H_0: \beta = 0 is rejected precisely when the interval excludes 00. So the zero-check on the interval doubles as a two-sided test. Two cautions complete the unit: a significant slope shows a linear association, which need not be the full story if the relationship is curved (always check the residual plot), and association is not causation, only a randomised experiment supports a causal claim. Reporting these limits, and the scope of inference, rounds out a complete answer.

Try this

Q1. Output gives b=1.5b = 1.5, SEb=0.5SE_b = 0.5, n=24n = 24. Find the t statistic and degrees of freedom. [2 points]

  • Cue. t=1.50.5=3.0t = \dfrac{1.5}{0.5} = 3.0; df=n2=22df = n - 2 = 22.

Q2. Output reports a two-sided P-value of 0.040.04, but your test is one-sided in the direction of bb. What P-value do you use? [1 point]

  • Cue. Halve it: 0.020.02 (valid because bb is in the alternative's direction).

Exam-style practice questions

Practice questions written in the style of College Board exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

AP 2018 (style)1 marksSection I (multiple choice). Regression output gives slope b=3.0b = 3.0 and SEb=1.2SE_b = 1.2. For testing H0:β=0H_0: \beta = 0, the t statistic is (A) 0.400.40 (B) 2.52.5 (C) 3.63.6 (D) 1.81.8
Show worked answer →

The correct answer is (B).

t=b0SEb=3.01.2=2.5t = \dfrac{b - 0}{SE_b} = \dfrac{3.0}{1.2} = 2.5, with df=n2df = n - 2.

(A) inverts the ratio. (C) multiplies instead of divides. (D) is incorrect. The slope t statistic is 2.52.5.

AP 2022 (style)4 marksSection II (free response). Regression output for predicting weight loss (yy, kg) from weekly exercise hours (xx) from n=27n = 27 participants gives b=0.9b = 0.9 with SEb=0.3SE_b = 0.3. Residual plots show no pattern, constant spread, and approximately normal residuals; participants are a random sample. Test at α=0.05\alpha = 0.05 whether there is a positive linear relationship. Compute the test statistic and P-value (use df=25df = 25), and conclude in context (justify in context).
Show worked answer →

A 4-point slope t-test.

(1) (1 point) Let β\beta be the true slope. H0:β=0H_0: \beta = 0 versus Ha:β>0H_a: \beta > 0. LINER conditions stated and met.
(2) (1 point) t=b0SEb=0.90.3=3.0t = \dfrac{b - 0}{SE_b} = \dfrac{0.9}{0.3} = 3.0, df=n2=25df = n - 2 = 25.
(3) (1 point) One-sided upper: P-value =P(t25>3.0)0.003= P(t_{25} > 3.0) \approx 0.003.
(4) (1 point) Since 0.003<0.050.003 < 0.05, reject H0H_0. There is convincing evidence of a positive linear relationship between weekly exercise hours and weight loss.

Markers reward the slope t statistic, df=n2=25df = n - 2 = 25, the one-sided P-value, and a contextual conclusion.

Related dot points

Sources & how we know this