Question

Probability and Statistics

1. Linear Regression Given 4 data points: X Y 5 15 Use simple linear regression to estimate ßo and ß, for the best-fit line ỹ

0 0
Add a comment Improve this question Transcribed image text
Answer #1

We are given data:

X Y X^2 Y XY
1 5 1 25 5
2 7 4 49 14
3 9 9 81 27
4 15 16 225 60
ΣΧ 30 ΣΥ үz 380 ХY XҮ 106

Average of X = 1+2+3+4 2.5 4

Average of Y = 57915 Y 9 4

Now,

S:

X X-\bar{X} 2 (х - X)
1 -1.5 2.25
2 0.5 0.25
3 0.5 0.25
4 1.5 2.25
\sum\left (X-\bar{X} \right )^2~=~5

So,

= 5

For, S_{xy}:

Y Y-Y 2 (х - X)
5 -4 16
7 -2 4
9 0 0
15 6 36
\sum\left (Y-\bar{Y} \right )^2~=~56

We know that \hat \beta_{0}~\&~\hat{\beta_{1}} are the coefficients of the linear equations:

\hat{\beta_{1}} is the slope of the regression line which is nothing but the ratio of S_{xy} and S

So,

\hat\beta_{1}~=~\frac{n\left ( \sum{XY} \right )-\left ( \sum{X} \right )\left ( \sum{Y} \right )}{n\left ( \sum{X^2} \right )- \left ( \sum X \right )^2}~=~\frac{424-360}{120-100}~=~\frac{64}{20}~=~3.2

and \hat{\beta_{0}} is the intercept for managing the differences:

ΣΥΣΧ)-ΣΧΣΧΥ 20 _ βο 1 n (Σ Χ) -ΣΧ) 20

Thus, the table obtained as:

\bar{X} \bar{Y} S S_{xy} \hat{\beta{0}} \hat{\beta{1}}
2.5 9 5 56 1 3.2

==============================================================================================

Add a comment
Know the answer?
Add Answer to:
Probability and Statistics 1. Linear Regression Given 4 data points: X Y 5 15 Use simple...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT