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.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
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 , find the P-value with degrees of freedom, compare to , 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 . Both and come from computer output: the slope row lists the coefficient , its standard error , the t-statistic, and a P-value. You can compute directly, or read it from the "t" column. The degrees of freedom are .
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 is in the alternative's direction). Match the tail to . The conclusion states the decision, ties it to versus , and interprets in context ("there is convincing evidence of a positive linear relationship between ... and ..."). Never write "accept "; 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 , , and , a two-sided test at level and a interval agree exactly: is rejected precisely when the interval excludes . 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 , , . Find the t statistic and degrees of freedom. [2 points]
- Cue. ; .
Q2. Output reports a two-sided P-value of , but your test is one-sided in the direction of . What P-value do you use? [1 point]
- Cue. Halve it: (valid because 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 and . For testing , the t statistic is (A) (B) (C) (D) Show worked answer →
The correct answer is (B).
, with .
(A) inverts the ratio. (C) multiplies instead of divides. (D) is incorrect. The slope t statistic is .
AP 2022 (style)4 marksSection II (free response). Regression output for predicting weight loss (, kg) from weekly exercise hours () from participants gives with . Residual plots show no pattern, constant spread, and approximately normal residuals; participants are a random sample. Test at whether there is a positive linear relationship. Compute the test statistic and P-value (use ), and conclude in context (justify in context).Show worked answer →
A 4-point slope t-test.
(1) (1 point) Let be the true slope. versus . LINER conditions stated and met.
(2) (1 point) , .
(3) (1 point) One-sided upper: P-value .
(4) (1 point) Since , reject . There is convincing evidence of a positive linear relationship between weekly exercise hours and weight loss.
Markers reward the slope t statistic, , the one-sided P-value, and a contextual conclusion.
Related dot points
- Topic 9.4 Setting Up a Test for the Slope of a Regression Model: state the null and alternative hypotheses about the population slope, identify the significance level, and verify the regression conditions for a t-test.
A focused answer to AP Statistics Topic 9.4, on writing the null and alternative hypotheses for a regression slope (testing beta equals 0), choosing the significance level, and checking the regression conditions for a t-test.
- Topic 9.2 Confidence Intervals for the Slope of a Regression Model: check the regression conditions and construct a t-interval for the population slope using the sample slope, its standard error, and n minus 2 degrees of freedom.
A focused answer to AP Statistics Topic 9.2, on building a t-interval for the population slope - checking the regression conditions, reading the slope and its standard error from computer output, and using n minus 2 degrees of freedom - with a full worked interval.
- Topic 9.3 Justifying a Claim About the Slope of a Regression Model Based on a Confidence Interval: use a slope interval to judge whether a linear relationship exists and to evaluate claims about the size and direction of the slope.
A focused answer to AP Statistics Topic 9.3, on using a regression-slope confidence interval to judge whether a linear relationship exists and to assess claims about the size and direction of the slope, with worked justifications.
- Topic 9.1 Introducing Statistics: Do Those Points Align?: explain why a sample regression slope varies from sample to sample, motivating inference about the true population slope of a linear model.
A focused answer to AP Statistics Topic 9.1, on why a sample regression slope is a statistic that varies across samples, motivating confidence intervals and tests about the true population slope of a linear model.
- Topic 7.5 Carrying Out a Test for a Population Mean: compute the t test statistic with n minus 1 degrees of freedom, find the P-value, compare to the significance level, and state a conclusion in context.
A focused answer to AP Statistics Topic 7.5, on computing the one-sample t statistic with n minus 1 degrees of freedom, finding the P-value, comparing to alpha, and stating a conclusion in context, with a full worked t-test.
Sources & how we know this
- AP Statistics Course and Exam Description — College Board (2020)