T-test for slope
MathDefinition
A t-test for slope is a hypothesis test used in linear regression to determine whether there is a statistically significant linear relationship between two variables. It tests whether the true slope of the regression line is different from zero (or another hypothesized value).
How It Works
- State the null hypothesis H₀: β = 0 and the alternative hypothesis.
- Calculate the estimated slope b from the least-squares regression line.
- Compute the standard error of the slope SE(b).
- Calculate the test statistic: t = b / SE(b) with df = n − 2.
- Find the p-value and compare it to the significance level to make a conclusion.
Examples
- Testing whether study hours significantly predict exam scores
- Determining if there is a real linear relationship between advertising spending and sales
- Checking whether temperature has a significant effect on ice cream sales
Key Fact
t = b / SE(b), with df = n − 2
Study This Concept
Practice t-test for slope with free review games in these units: