Nonparametric Assignment 3
Nonparametric Assignment 3
Scm224-0612/2021
Nonparametric Assignment 3
Describe briefly how to test significance of simple linear regression of two slopes giving details of
assumptions, procedure, hypotheses, test statistic, decision and detailed example in application field
using raw data
Testing the significance of the slope in simple linear regression involves assessing whether the slope of
the regression line is significantly different from zero. This can be done using a hypothesis test. Here's a
brief overview of the process:
Assumptions:
Linearity: The relationship between the independent variable (X) and dependent variable (Y) is linear.
Homoscedasticity: The variance of the residuals (the differences between observed and predicted
values) is constant across all levels of the independent variable.
Procedure:
Formulate Hypotheses:
Null Hypothesis (H0): The slope of the regression line is zero (i.e., there is no relationship between X and
Y).
H0: β1 = 0
Alternative Hypothesis (H1): The slope of the regression line is not zero (there is a significant
relationship between X and Y).
H1: β1 ≠ 0
Test Statistic:
t= b1−0/SE(b1)
Look up the critical t-value for a given significance level (alpha) and degrees of freedom.
Make a Decision:
If the calculated t-value is greater than the critical t-value, reject the null hypothesis.
If the calculated t-value is less than the critical t-value, fail to reject the null hypothesis.
Detailed Example:
Let's say we have data on hours studied (X) and exam scores (Y) for a group of students. We want to test
if the number of hours studied significantly predicts exam scores.
plaintext
Copy code
-----------------------------------
2 | 60
4 | 70
6 | 75
8 | 85
10 | 90
Calculations:
Hypotheses:
H0: β1 = 0
H1: β1 ≠ 0
Test Statistic:
t=b1−0/SE(b1)
Degrees of Freedom:
For example, at a 95% confidence level (alpha = 0.05), with 3 degrees of freedom, the critical t-value is
3.182.
If
Decision:
t=4.21.
Since
Conclusion
We have sufficient evidence to suggest that there is a significant relationship between hours studied and
exam scores for this group of students.