Math Assignment Unit 6
Math Assignment Unit 6
It is natural to think there will be a relationship between the number of calories and the amount
of carbohydrates (in grams). In this journal, we will conduct a study using the nutrition data for
several Starbucks food items. Click here for the dataset (spreadsheet) or Dataset (pdf)
Import the data to JASP, run the command and take a screenshot of your output. Based on that,
answer the following questions.
1. What is the correlation coefficient (Pearson’s r) between the variable's calories and carb?
Pearson's Correlations
The Pearson correlation coefficient (r) between Calories and Carbohydrates is 0.7, indicating
a strong positive correlation. The p-value (1.7e-11) is statistically significant (p < .001),
confirming that this relationship is not due to random chance (Field, 2009).
2. Interpret the strength of the relationship between the calories and the amount of
carbohydrates (in grams) contained in the food menu at Starbucks.
The Pearson correlation coefficient (r = 0.7) indicates a strong positive relationship between
calories and carbohydrates in Starbucks menu items. This suggests that higher-calorie items
tend to have higher carbohydrate content. In nutritional sciences, correlations above 0.5 are
considered strong (Cohen, 1988), and the 95% confidence interval (0.5 to 0.8) reinforces this
finding. However, correlation signifies association, not causation (Gravetter & Wallnau,
2017). Other macronutrients, such as protein and fat, also contribute to total calorie content,
meaning carbohydrates alone do not fully determine a food item's caloric value.
3. Using JASP descriptive statistics, find the mean and standard deviation for the variable
calories and carb
Descriptive Statistics
calories carb
JASP’s outputs reveals that the mean Calories = 338.8 kcal (SD = 105.4 kcal)
While the mean Carbohydrates = 44.9 g (SD = 16.6 g). These values indicate that, on
average, Starbucks menu items contain approximately 339 kcal and 45g of carbohydrates,
with notable variability across different food options.
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 (explanatory variable or covariate)
The regression equation follows the formula:
Y =bX +a
Where:
Y = Dependent variable (Carbohydrates)
X = Independent variable (Calories)
b = Slope
a = Intercept
Available data:
r =0.7
Sd carb=16.6
Sd calories=105.4
x carb=44.9
x calories=338.8
Replacing by values from the previous equation Carb=b1 × calories+b 0we get:
Carb=0.11×calories +7.6
Coefficients
95% CI
Model
Unstandardized Standard Error Standardized t p Lower Upper
In comparing the manually calculated regression coefficients (intercept = 7.6, slope = 0.11) with
those from JASP (intercept = 8.9, slope = 0.1), the differences are small. The variation in the
intercept could be due to data handling or rounding differences, with JASP's intercept being
statistically significant (p = 6.3e-2). The slight difference in the slope is likely due to JASP
considering additional factors like confidence intervals and error terms, which were not
accounted for manually. Both intercept and slope in JASP show statistical significance, with the
results indicating that the manual calculations were reasonably accurate, but JASP provided
more robust statistical validation. The discrepancies between the manually calculated
coefficients and the JASP output are minor and within the range of expected variation given
different statistical approaches. This is consistent with standard practices in regression analysis,
where slight variations may arise depending on the specific tools and methods used for
computation (Field, 2009; Tabachnick & Fidell, 2019).
6. Calculate R2 of the regression line for predicting the amount of carbohydrates from the
number of calories and interpret it in the context of the application.
The coefficient of determination (R²) measures how much of the variance in the dependent
variable is explained by the independent variable:
2 2 2
R =r =( 0.7 ) =0.49 ≈ 0.5
This means that 49% of the variation in carbohydrate content can be explained by calorie
content. In nutrition studies, an R² value of 0.4 to 0.6 is considered moderate to strong in terms
of predictive power (Field, 2009). This suggests that while calories are a strong predictor of
carbohydrates, other macronutrients such as protein, fat, and fiber also contribute to food
composition.
Conclusion
The analysis confirms a strong and statistically significant correlation between calories and
carbohydrates in Starbucks food items (r = 0.7, p < .001). The regression equation (Carb = 0.11 ×
Calories + 7.6) provides a useful method for estimating carbohydrate content when only calorie
information is available. With R² = 0.49, calories explain almost half of the variability in
carbohydrate content, making it a meaningful predictor, though additional factors should be
considered when assessing food composition.
References
Cohen, J. (1988). Statistical Power Analysis for the Behavioral Sciences (2nd ed.). Lawrence
Erlbaum Associates.
https://www.utstat.toronto.edu/brunner/oldclass/378f16/readings/CohenPower.pdf
Field, A. (2009). Discovering statistics using IBM SPSS Statistics (3rd ed.). SAGE Publications Ltd.
http://repo.darmajaya.ac.id/5678/1/Discovering%20Statistics%20Using%20IBM%20SPSS%20Statistics
%20%28%20PDFDrive%20%29.pdf
Gravetter, F. J., & Wallnau, L. B. (2017). Statistics for the Behavioral Sciences (10th ed.). Cengage
Learning. http://ndl.ethernet.edu.et/bitstream/123456789/29095/1/Frederick%20J%20Gravetter_2017.pdf
Tabachnick, B. G., & Fidell, L. S. (2013). Using multivariate statistics (6th ed.). Pearson.
https://hisp.htmi.ch/pluginfile.php/77114/mod_resource/content/0/Using%20Multivariate%20Statistics
%20%28Tabachnick%20and%20Fidell%29.pdf