Description of Variable Used for Analysis

The variable I am using for analysis is the variable Vegetables. According to Kaggle.com, the variable Vegetables refers to the percentage of protein intake from the consumption of vegetables in 170 countries.

Building the Confidence Interval Using Math

##          LCL      UCL
## [1,] 1.58586 1.887376

Using math to build a 95% confidence interval for the mean of vegetables, we get (1.59, 1.89). This means that we are 95% confident that the true population proportion for protein intake from vegetables is between 1.58% and 1.89%.

Building a Confidence Interval Using Bootstrapping

##     2.5%    97.5% 
## 1.594911 1.884646

Using Bootstrapping to build a 95% confidence interval for the mean of vegetables, we get (1.59, 1.88). This means that 95% of the confidence intervals built from the samples we obtained via bootstrapping should capture the true population proportion of protein intake from vegetable consumption.

Plotting the Sampling Distribution of Bootstrapped Means

Comparing the Two Intervals

The results are almost identical. And based on these results, I hypothesize that the true population proportion of protein intake from vegetables is captured in both confidence intervals.