Uploaded by hussnainali17

Hypothesis Testing for Regression Coeffeceint Beta

advertisement
STA404
Regression & Correlation Analysis
Statistical Inference about
Regression
Explanation of the hypothesis testing procedure
for simple linear regression coefficient 𝛃
What is Statistical inference?
Difference between Population &
Sample Regression
• Population Regression
y   xο₯
• Sample Regression
yΜ‚ ο€½ a  bx  e
Hypothesis Testing – General
Procedure
Testing Hypothesis – Procedure about
Regression Coefficient 𝛃
Step 1
Stat the hypothesis.
𝐻0 ∢ 𝛽 = 0
and
𝐻0 ∢ 𝛽 ≤ 0
and
𝐻0 ∢ 𝛽 ≥ 0
and
𝐻1 ∢ 𝛽 ≠ 0
𝐻1 ∢ 𝛽 > 0
𝐻1 ∢ 𝛽 < 0
Step 2
Decide the level of significance.
Here, we set the value of 𝛼 = 5% = 0.05
General formula format
Many hypotheses are tested using a statistical test based on the following general formula:
π‘‚π‘π‘ π‘’π‘Ÿπ‘£π‘’π‘‘ π‘£π‘Žπ‘™π‘’π‘’ − (𝐸π‘₯𝑝𝑒𝑐𝑑𝑒𝑑 π‘£π‘Žπ‘™π‘’π‘’)
𝑇𝑒𝑠𝑑 π‘‰π‘Žπ‘™π‘’π‘’ =
π‘†π‘‘π‘Žπ‘›π‘‘π‘Žπ‘Ÿπ‘‘ π‘’π‘Ÿπ‘Ÿπ‘œπ‘Ÿ
The observed value is the “statistic” (such as the mean) that is computed from the sample
data.
The expected value is the “parameter” (such as the mean) that you would expect to obtain
if the null hypothesis were true. In other words, the hypothesized value.
The denominator is the standard error of the statistic being tested (in this case, the
standard error of the mean).
𝑏 − 𝛽0
𝑑=
𝑆. 𝐸(𝑏)
It is t-test. It depends on Degree of Freedom = df = n-2
Required calculations
Step 4
Know and do the required calculations and find the test value.
𝑑=
𝑏=
𝑛
𝑏−𝛽0
𝑆.𝐸(𝑏)
π‘‹π‘Œ − ( 𝑋)( π‘Œ)
𝑛 𝑋2 −
𝑋 2
π‘Ž = π‘Œ − 𝑏𝑋
π‘ π‘Œπ‘‹ =
𝑠𝑏 =
π‘Œ−π‘Œ
𝑛−2
π‘ π‘Œπ‘‹
𝑋−𝑋
2
2
=
π‘Œ2 − π‘Ž π‘Œ − 𝑏
𝑛−2
π‘‹π‘Œ
Critical Value, Comparison and
Conclusion
Step 5
• Use t-table to find the critical values.
• Plot these values on bell shaped curve.
• Compare calculated value with table value
• Conclude and summarize the result
Testing Hypothesis – Example
• For the Given data:
• Estimate the regression line from the
following data of height (X) and Weight
(Y)
• Test the hypothesis that the height and
weight are independent.
Height (X)
60
60
60
62
62
62
62
64
64
70
70
70
Weight(Y)
110
135
120
120
140
130
135
150
145
170
185
160
Testing Hypothesis – Example
Step 1
Stat the hypothesis.
𝐻0 ∢ 𝛽 = 0 (There is NO slop. There is NO linear relationship.)
𝐻1 ∢ 𝛽 ≠ 0 (There exist linear relationship)
Step 2
We set the level of significance (alpha) 𝛼 = 0.05
Step 3
The test-statistic (formula) to be used is:
𝑑=
𝑏−𝛽0
𝑆.𝐸(𝑏)
It follows t-distribution with degree of freedom df = n-2
Computation
X
60
60
60
62
62
62
62
64
64
70
70
70
Y
110
135
120
120
140
130
135
150
145
170
185
160
XX
3600
3600
3600
3844
3844
3844
3844
4096
4096
4900
4900
YY
12100
18225
14400
14400
19600
16900
18225
22500
21025
28900
34225
XY
6600
8100
7200
7440
8680
8060
8370
9600
9280
11900
12950
4900
25600
11200
766
1700
49068
246100
109380
What we need to calculate?
Step 4
Do necessary computations from data and solve the formula using
these values.
𝑑=
𝑏−𝛽0
𝑠𝑏
𝑏=
π‘ π‘Œπ‘‹ =
π‘Œ−π‘Œ
𝑛−2
(X )2
( X ο€­ X ) ο€½ X ο€­
n
2
2
2
=
π‘Œ2−π‘Ž
π‘Œ−𝑏
𝑛−2
π‘‹π‘Œ
𝑛
π‘‹π‘Œ −( 𝑋)( π‘Œ)
𝑛 𝑋2 − 𝑋 2
Let’s do calculations
Step 4
𝑛 π‘‹π‘Œ − ( 𝑋)( π‘Œ)
𝑏=
=
2
2
𝑛 𝑋 −
𝑋
π‘Ž = π‘Œ − 𝑏𝑋 =
=
(Y ο€­ Yˆ ) 2 ο€½ Y 2 ο€­ aY ο€­ bXY
( X ) 2
 ( X ο€­ X ) ο€½ X ο€­
n
2
=
2
=
Let’s do calculations
Step 4
π‘ π‘Œπ‘‹ =
π‘Œ−π‘Œ
𝑛−2
2
=
Critical Value from t-table
Step 5 : Find the 0.05 column in the top row and 16 in the left-hand column.
Where the row and column meet, the appropriate critical value is found.
Decision Rule
Step 5
Conclusion and Summarizing:
Since the computed value of t=6.89 falls in the critical region, so
we reject the null hypothesis and may conclude that there is
sufficient reason to say with 95% confidence that height and
weight are related.
An other example – Do yourself
In linear regression problem, the following sums were computed
from a random sample of size 10.
X ο€½ 320, Y ο€½ 250, X 2 ο€½ 12400, XY ο€½ 9415 and Y 2 ο€½ 7230
Using 5% level of significance, test the hypothesis that the
population regression coefficient, β is greater than 0.5.
Hint:
Hint
𝐻0 ∢ 𝛽
0
𝐻1 ∢ 𝛽 > 0 (Given claim)
T
est formula =𝑑 =
𝑏−𝛽0
𝑠𝑏
𝑏=
π‘Œ−π‘Œ 2
π‘ π‘Œπ‘‹ =
=
𝑛−2
(X )2
2
2
( X ο€­ X ) ο€½ X ο€­
n
π‘Œ2 − π‘Ž π‘Œ − 𝑏
𝑛−2
π‘‹π‘Œ
𝑛
π‘‹π‘Œ −( 𝑋)( π‘Œ)
𝑛 𝑋2 − 𝑋 2
Summary
• Remember the all hypothesis-testing situations using the
traditional method should include the
π‘‚π‘π‘ π‘’π‘Ÿπ‘£π‘’π‘‘ π‘£π‘Žπ‘™π‘’π‘’ − (𝐸π‘₯𝑝𝑒𝑐𝑑𝑒𝑑 π‘£π‘Žπ‘™π‘’π‘’)
𝑇𝑒𝑠𝑑 π‘‰π‘Žπ‘™π‘’π‘’ =
π‘†π‘‘π‘Žπ‘›π‘‘π‘Žπ‘Ÿπ‘‘ π‘’π‘Ÿπ‘Ÿπ‘œπ‘Ÿ
1. State the null and alternative hypotheses and identify the
claim.
2. State an alpha level and find the critical value(s).
3. Compute the test value.
4. Make the decision to reject or not reject the null hypothesis.
5. Summarize the results.
The END
Download