Using the sample data below, run a hypothesis test on to see if there is evidence that there is a positive correlation between and with .
Table of contents
- 1. Intro to Stats and Collecting Data55m
- 2. Describing Data with Tables and Graphs1h 55m
- 3. Describing Data Numerically1h 45m
- 4. Probability2h 16m
- 5. Binomial Distribution & Discrete Random Variables2h 33m
- 6. Normal Distribution and Continuous Random Variables1h 38m
- 7. Sampling Distributions & Confidence Intervals: Mean1h 53m
- 8. Sampling Distributions & Confidence Intervals: Proportion1h 12m
- 9. Hypothesis Testing for One Sample2h 19m
- 10. Hypothesis Testing for Two Samples3h 26m
- 11. Correlation1h 6m
- 12. Regression1h 35m
- 13. Chi-Square Tests & Goodness of Fit1h 57m
- 14. ANOVA1h 0m
12. Regression
Inferences for Slope
Struggling with Statistics?
Join thousands of students who trust us to help them ace their exams!Watch the first videoMultiple Choice
Using the sample data below, create a confidence interval for to see if there is evidence that there is a positive correlation between and with .

A
; there is not enough evidence that there is a positive correlation between x and y with α=0.01.
B
(−0.75,1.37); there is enough evidence that there is a positive correlation between x and y with α=0.01.
C
; there is not enough evidence that there is a positive correlation between x and y with α=0.01.
D
(0.75,1.37); there is enough evidence that there is a positive correlation between x and y with α=0.01.

1
Step 1: Calculate the sample size \( n \) by counting the number of paired observations in the data. Here, count how many \( (x, y) \) pairs are given.
Step 2: Compute the sample means \( \bar{x} \) and \( \bar{y} \) by summing all the \( x \) values and dividing by \( n \), and similarly for the \( y \) values.
Step 3: Calculate the sample variances \( s_x^2 \) and \( s_y^2 \), and the sample covariance \( s_{xy} \) using the formulas:
$$
\displaystyle s_x^2 = \frac{1}{n-1} \sum_{i=1}^n (x_i - \bar{x})^2
$$
$$
\displaystyle s_y^2 = \frac{1}{n-1} \sum_{i=1}^n (y_i - \bar{y})^2
$$
$$
\displaystyle s_{xy} = \frac{1}{n-1} \sum_{i=1}^n (x_i - \bar{x})(y_i - \bar{y})
$$
Step 4: Calculate the slope estimate \( b \) of the regression line, which is the point estimate for \( \beta \), using:
$$
\displaystyle b = \frac{s_{xy}}{s_x^2}
$$
Step 5: Construct the confidence interval for \( \beta \) at the \( \alpha = 0.01 \) significance level using the formula:
$$
\displaystyle b \pm t_{\alpha/2, n-2} \times SE_b
$$
where \( t_{\alpha/2, n-2} \) is the critical value from the t-distribution with \( n-2 \) degrees of freedom, and \( SE_b \) is the standard error of \( b \), calculated as:
$$
\displaystyle SE_b = \frac{s}{\sqrt{\sum (x_i - \bar{x})^2}}
$$
with \( s \) being the standard error of the estimate from the residuals.
Watch next
Master Hypothesis Test for the Slope of a Regression Line with a bite sized video explanation from Patrick
Start learningRelated Videos
Related Practice
Inferences for Slope practice set
