Regression line

74 Views Asked by At

A random sample of size $n$ from a bivariate distribution is denoted by $(x_r,y_r), r=1,2,3,...,n$. Show that if the regression line of $y$ on $x$ passes through the origin of its scatter diagram then $$\bar y\sum^n_{r=1} x_r^2=\bar x \sum^n_{r=1} x_r y_r$$ where $(\bar x,\bar y)$ is the mean point of the sample.

I don't really know how to begin. I am aware the line equation is $b=\frac{y}{x}=\frac{\sum xy-\frac{\sum x\sum y}{n}}{\sum x^2-\frac{(\sum x)^2}{n}}$

Not sure what to do next.

1

There are 1 best solutions below

4
On BEST ANSWER

Recall that the OLS estimators are $$ \hat{\beta}_0 = \bar{Y}_n - \hat{\beta}_1\bar{X}_n, \quad \hat{\beta}_1 = \frac{\sum X_i Y_i-n\bar{X}\bar{Y}}{\sum X_i^2 - n\bar{X}^2}, $$ because the line passes through the origin, you have that $\hat{\beta}_0 = 0 = \bar{Y} - \hat{\beta}_1\bar{X}$, thus $$ \frac{\bar{Y}}{\bar{X}} = \frac{\sum X_i Y_i-n\bar{X}\bar{Y}}{\sum X_i^2 - n\bar{X}^2}, $$ or $$ \bar{Y}\sum X_i^2 - \bar{Y}n\bar{X}^2=\bar{X}\sum X_i Y_i -n\bar{Y}\bar{X}^2, $$ hence $$ \bar{Y}\sum X_i^2=\bar{X}\sum X_i Y_i . $$