Math Assignment Unit 6
Math Assignment Unit 6
Analysis of the Relationship Between Calories and Carbohydrates in Starbucks Food Items
1. What is the correlation coefficient (Pearson’s r) between the variable's calories and carb?
The correlation coefficient (Pearson’s r) between the variables calories and carbohydrates (carb)
is 0.675. This indicates a moderate positive relationship between the two variables. In other
words, as the number of calories in a food item increases, the amount of carbohydrates also tends
to increase.
3
2. Interpret the strength of the relationship between the calories and the amount of carbohydrates
sing the guidelines for correlation strength (0.00 to 0.30: Weak, 0.30 to 0.70: Moderate, 0.70 to
1.00: Strong), the correlation coefficient (Pearson’s r) between calories and carbohydrates in
Starbucks food items is 0.675, indicating a moderate positive relationship. This suggests that as
the number of calories increases, the amount of carbohydrates also tends to rise; however, this
relationship is not perfect and exhibits some variability. While there is a general trend where
food items with higher calories also contain more carbohydrates, exceptions do exist, and it is
crucial to remember that correlation does not imply causation. Thus, although an increase in
calories is associated with an increase in carbohydrates, it does not necessarily mean that one
3. Using JASP descriptive statistics, find the mean and standard deviation for the variable
calories and carb.
4. In a food label at Starbucks, the number of calories is indicated but the amount of
carbohydrates (in grams) is missing. Write the equation of the regression line for prediction of
the amount of carbohydrates (the response or dependent variables) given the number of calories
Formula:
b₁ = (Sy / Sx) × r
Sy = 16.55
Sx = 105.37
r = 0.68
Calculation:
Formula:
b₀ = Ȳ - b₁ × X̄
Ȳ = 44.87
X̄ = 338.83
Calculation:
The regression equation for predicting the amount of carbohydrates (in grams) based on the
To validate the regression equation found in part c using JASP linear regression, we can
Statistical Significance
The ANOVA table from the JASP output indicates that the model is statistically significant (p <
0.001). This signifies a significant relationship between the number of calories and the amount of
carbohydrates.
Coefficients Confirmation
The coefficients table confirms the values for the intercept and slope:
Comparison of Equations
Both the regression equation derived manually and the one from the JASP output are identical:
6. Calculate R² of the regression line for predicting the amount of carbohydrates from the
The number of calories in food items can explain approximately 45.6% of the variability in
carbohydrates (carbs). This means that while calories are a significant predictor of carbohydrates,
other factors (not included in this model) also influence the amount of carbohydrates
Reference
Diez, D. M., Barr, C. D., & Çetinkaya-Rundel, M. (2019). OpenIntro Statistics (4th ed.).
OpenIntro. https://www.openintro.org/book/os/