Main content

### Course: Statistics and probability > Unit 5

Lesson 5: Assessing the fit in least-squares regression- Residual plots
- Residual plots
- R-squared intuition
- R-squared or coefficient of determination
- Standard deviation of residuals or Root-mean-square error (RMSD)
- Interpreting computer regression data
- Interpreting computer output for regression
- Impact of removing outliers on regression lines
- Effects of influential points

© 2024 Khan AcademyTerms of usePrivacy PolicyCookie Notice

# Interpreting computer output for regression

Desiree is interested to see if students who consume more caffeine tend to study more as well. She randomly selects $20$ students at her school and records their caffeine intake (mg) and the number of hours spent studying. A scatterplot of the data showed a linear relationship.

This is computer output from a least-squares regression analysis on the data:

Predictor | Coef | SE Coef | T | P | |
---|---|---|---|---|---|

Constant | |||||

Caffeine (mg) |

## Want to join the conversation?

- In the earlier video, "R-squared or coefficient of determination", you mentioned the SEline, as in, the sum of errors between the line and the points. Would the S (standard deviation in residuals" be SEline/n?(11 votes)
- The SEline represents the aggregate (sum of) error of the regression line in predicting y. Whereas, the RMSD of the residuals of the line represents the avg. prediction error in y. One is average, the other is the sum.(1 vote)

- I was under the impression if the Pvalue is below .05 that implies there is a relationship between the independent variable and the dependent variable. If there is also a positive relationship at what point can we confidently determine that the model is a good fit and the increase is caused by the independent variable. Is there a percent threshold for R-sqr/adj r-sqr?(6 votes)
- The significance level of 0.05 is commonly used to determine whether a relationship between the independent and dependent variables is statistically significant. However, statistical significance alone does not indicate the strength or practical importance of the relationship. The coefficient of determination (R^2) or adjusted R^2 provides a measure of the proportion of variance explained by the regression model. There isn't a specific threshold for R^2 or adjusted R^2 to determine a "good" fit, as it can vary depending on the context and field of study. Generally, higher values of R^2 indicate a better fit, but it's essential to consider other factors and conduct further analysis to assess the model's adequacy.(2 votes)

- Why doesn't "bx" come first in ŷ=a+bx, whereas "mx" comes first in y=mx+b.(2 votes)
- I don't think the order matters as long as you have the correct value for the constant and slope.(9 votes)

- Can anybody please explain why the constant coefficient 2.544 is the Y-intercept, and the caffeine coefficient 0.164 is the slope in the question 1? I can't seem to get my head around this. Please help!(0 votes)
- The y-intercept is always displayed in the top row, and the slope is always displayed in the bottom row. (Unfortunately, I don't know the reasoning behind them - sorry! Generally, I've found that the slope, y-intercept, s, and r^2 are the most useful pieces of information in these data charts.)(5 votes)

- Is the R-Sq always going to be the typical prediction error?(2 votes)
- Standard Deviation of the residuals is the typical/average prediction error. R-Sq is the % reduction in prediction error when using a regression line compared to using the avg. y line (total variation in y)(1 vote)

- Why does more caffeine intake not lead to studying more when there is a strong positive linear relationship(1 vote)
- While there may be a strong positive linear relationship between caffeine intake and study time, it does not necessarily imply causation. Correlation does not imply causation, meaning that even if two variables are strongly correlated, it doesn't mean that changes in one variable cause changes in the other. There could be other variables or factors influencing the relationship, and establishing causation requires additional evidence from experimental studies or rigorous causal inference methods. Therefore, it's not accurate to conclude that consuming more caffeine leads to studying more based solely on the observed correlation.(1 vote)

- I don't understand which is the x and y values on the charts(0 votes)
- The constant is y which stands for number of hrs studied and the x is the number of milligrams of caffeine taken(3 votes)

- What does regression mean?(0 votes)
- Correlation quantifies the strength of the linear relationship between a pair of variables, whereas regression expresses the relationship in the form of an equation.(1 vote)

- more caffeine = more awake more willingness to study(0 votes)
- why is the format different? We don't use y=mx+b but y=b+mx. Whats the difference?(0 votes)
- there is no difference, sometimes it's just written differently

if you think of the commutative addition property, you can reorder the terms and the result won't change(2 votes)