Ggplot(marketing, aes(x = youtube, y = sales)) + Create a scatter plot displaying the sales units versus youtube advertising budget. A non-zero beta coefficients means that there is a significant relationship between the predictors (x) and the outcome variable (y). Once, the beta coefficients are calculated, a t-test is performed to check whether or not these coefficients are significantly different from zero. This method of determining the beta coefficients is technically called least squares regression or ordinary least squares (OLS) regression. Mathematically, the beta coefficients (b0 and b1) are determined so that the RSS is as minimal as possible. Since the mean error term is zero, the outcome variable y can be approximately estimated as follow: This is one the metrics used to evaluate the overall quality of the fitted regression model. The average variation of points around the fitted regression line is called the Residual Standard Error ( RSE). The sum of the squares of the residual errors are called the Residual Sum of Squares or RSS. Some of the points are above the blue curve and some are below it overall, the residual errors (e) have approximately mean zero.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |