Question #113789
How can I make my statistical data on Ms word? And if the relation is indirect then how regression line touches to Y-axis?
1
Expert's answer
2020-05-04T20:00:58-0400

(1) Get the data for the dependent and independent variable in column format.

(2) Type in the data, either in comma separated or space separated format.

x data (comma or space separated)

y data (comma or space separated)

The independent variable is x, and the dependent variable is y. In order to compute the regression coefficients, the following table needs to be used:


xyxyx2y2x2y2x2y2x22y22...............xnynxnynxn2yn2Sum=xiyixiyixi2yi2\begin{matrix} & x & y & xy & x^2 & y^2 \\ & x_2 & y_2 & x_2y_2 & x_2^2 & y_2^2 \\ & ... &... & ... & ... & ... \\ & x_n & y_n & x_ny_n & x_n^2 & y_n^2 \\ Sum= & \sum x_i & \sum y_i & \sum{ x_iy_i} &\sum{x_i^2} & \sum{y_i^2} \end{matrix}

Based on the above table, the following is calculated:


xˉ=1ni=1nxi, yˉ=i=1nyi\bar{x}={1\over n}\displaystyle\sum_{i=1}^nx_i, \ \bar{y}=\displaystyle\sum_{i=1}^ny_i

SSxx=i=1nxi21n(i=1nxi)2SS_{xx}=\displaystyle\sum_{i=1}^nx_i^2-{1\over n}\bigg(\displaystyle\sum_{i=1}^nx_i\bigg)^2

SSyy=i=1nyi21n(i=1nyi)2SS_{yy}=\displaystyle\sum_{i=1}^ny_i^2-{1\over n}\bigg(\displaystyle\sum_{i=1}^ny_i\bigg)^2

SSxy=i=1nxiyi1n(i=1nxi)(i=1nyi)SS_{xy}=\displaystyle\sum_{i=1}^nx_iy_i-{1\over n}\bigg(\displaystyle\sum_{i=1}^nx_i\bigg)\bigg(\displaystyle\sum_{i=1}^ny_i\bigg)

Therefore, based on the above calculations, the regression coefficients (the slope m,m, and the y-intercept nn) are obtained as follows:


m=SxySxxm={S_{xy}\over S_{xx}}

n=yˉmxˉn=\bar{y}-m\cdot\bar{x}

Therefore, we find that the regression equation is:


y=n+mxy=n+mx

The linear relationship between two variables is negative when one increases as the other decreases. For example, as values of x get larger values of y get smaller. This is also known as an indirect relationship.


y=n+mx,m<0y=n+mx, m<0

How regression line touches to Y-axis?


x=0:y=nx=0: y=n

Point (0,n)(0, n)



Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS