STA301 Assignment 2 Solution Fall 2012
Monday, November 19, 2012 Edit ThisQuestion no 02 part a
If coefficient of skewness is zero then distribution is symmetric or zero skewed.\
\
question no 2 part b
The least squares regression line
The least squares regression line is the line which produces the smallest value of the sum of the squares of the residuals. A residual is the vertical distance from a point on a scatter diagram to the line of best fit. Therefore the least squares regression line can be seen as the best line of best fit.
The equation of the least squares regression line of y on x is:
Where b is:
As you can see there are 3 different ways to calculate the value for b, based on what information you are given in the question
Example
Calculate the least squared regression line of y on x from the following data:
Firstly draw up a table of the values you need and fill it out. In this example we'll use the third equation for b so we need all the values of x2and xiyi:
Next step is to calculate the means of the x and y values:
Now the value of b can be calculated:
Hence the equation is therefore:
Cleaning it up: