Nutrition at Starbucks, Part I. (8.22, p. 326) The scatterplot below shows the relationship between the number of calories and amount of carbohydrates (in grams) Starbucks food menu items contain. Since Starbucks only lists the number of calories on the display items, we are interested in predicting the amount of carbs a menu item has based on its calorie content.
Moderate to Moderate positive correlation
Target variables reside on the y axis so Carbs is our response and Calories is our explanatory variable
To calculate the R2 and p values in order to determine if we build a model will it be statistically and practically significant
The residuals are not distributed normally and are clearly not homoscedastic as such conditions for fitting a least square line would not be met.
Body measurements, Part I. (8.13, p. 316) Researchers studying anthropometry collected body girth measurements and skeletal diameter measurements, as well as age, weight, height and gender for 507 physically active individuals.19 The scatterplot below shows the relationship between height and shoulder girth (over deltoid muscles), both measured in centimeters.
\begin{center} \end{center}
Strong positive relationship i.e. as Shoulder girth increases Height does too.
The scale of the variable should not effect either the model or the relationship. Only the coefficients of the line would change.
Body measurements, Part III. (8.24, p. 326) Exercise above introduces data on shoulder girth and height of a group of individuals. The mean shoulder girth is 107.20 cm with a standard deviation of 10.37 cm. The mean height is 171.14 cm with a standard deviation of 9.41 cm. The correlation between height and shoulder girth is 0.67.
Cats, Part I. (8.26, p. 327) The following regression output is for predicting the heart weight (in g) of cats from their body weight (in kg). The coefficients are estimated using a dataset of 144 domestic cats.
\begin{center} \end{center}
Heart Weight = 4.034 x Body weight -0.357
Large p value and the range includes a zero. So we can expect someone with a weight of zero to have a negative heart weight
Large slope value denotes a strong positive relationship i.e. for every one unit change body weight, the heart weight will increase approximately by 4 units
64.66% of the variability of the data is explained by this model or 64.66% of heart weight can be explained by body weight
sqrt(.6466)
## [1] 0.8041144
Rate my professor. (8.44, p. 340) Many college courses conclude by giving students the opportunity to evaluate the course and the instructor anonymously. However, the use of these student evaluations as an indicator of course quality and teaching effectiveness is often criticized because these measures may reflect the influence of non-teaching related characteristics, such as the physical appearance of the instructor. Researchers at University of Texas, Austin collected data on teaching evaluation score (higher score means better) and standardized beauty score (a score of 0 means average, negative score means below average, and a positive score means above average) for a sample of 463 professors. The scatterplot below shows the relationship between these variables, and also provided is a regression output for predicting teaching evaluation score from beauty score.
\begin{center} \end{center}
(3.9983-4.010)/-.0883
## [1] 0.1325028
The low p value and the visual above indicate a small positive relationship which is confirmed by the slope.
All conditions are satisfied.