A study was conducted on time taken (in seconds) for an algorithm to finish running, y, and processing power of a machine, r. A linear model was fitted using the statistical software R, producing the following output: Coefficients: (Intercept) 98.81082 -0.75263 Estimate std. Error t value Pr(>It|) 3.31574 0.04277 29.8 1.74e-09 *** -17.6 1.1le-07 *** Signif. codes: 0 ***** 0.001 *** 0.01 *' 0.05 '.' 0.1''1 Residual standard error: 4.304 on 8 degrees of freedom Multiple R-squared: 0.9748, F-statistic: 309.7 on 1 and 8 DF, p-value: 1.1le-07 Adjusted R-squared: 0.9717 (a) From the R output, compute the sample corelation coefficient and interpret its value. (b) From the R output, obtain the equation of the estimated regression line. (c) Interpret the slope coefficient. (d) Discuss whether the simple linear regression model obtained does a good job of explaining observed variation in the time taken for an algorithm to finish running. (e) Using information from the R output, compute the sum of squared errors. Explain what the sum of squared errors means.
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.
Step by step
Solved in 6 steps with 4 images