regress Sleep Age Phone Source df MS Number of obs 1,508 %3D F(2, 1505) 12.27 Model 31.0424157 2 15.5212078 Prob > F 0.0000 Residual R-squared Adj R-squared 1903.59618 1,505 1.26484796 e.0160 0.0147 Total 1934.63859 1,507 1.28376814 Root MSE 1.1247 Sleep Coef. Std. Err. t P>|t| [95% Conf. Interval] Age -.1509087 .0316588 -4.77 0.000 -.2130088 -.0888086 Phone -.0543038 .0649587 -0.84 0.403 -.1817229 .0731153 %3B _cons 8.291711 .1185429 69.95 0.000 8.059184 8.524238
Correlation
Correlation defines a relationship between two independent variables. It tells the degree to which variables move in relation to each other. When two sets of data are related to each other, there is a correlation between them.
Linear Correlation
A correlation is used to determine the relationships between numerical and categorical variables. In other words, it is an indicator of how things are connected to one another. The correlation analysis is the study of how variables are related.
Regression Analysis
Regression analysis is a statistical method in which it estimates the relationship between a dependent variable and one or more independent variable. In simple terms dependent variable is called as outcome variable and independent variable is called as predictors. Regression analysis is one of the methods to find the trends in data. The independent variable used in Regression analysis is named Predictor variable. It offers data of an associated dependent variable regarding a particular outcome.
This is a practice regression I am working on (not graded), and I would help and an explanation for the phone and age variables and interpretation of the p-values:
For the age coefficient, because the coefficient is negative, as age decreases, does the response variable of sleep also decrease? and H0: B=0? Or am I completely off?
Step by step
Solved in 2 steps