This document demonstrates how to calculate mean, variance, and standard deviation in R using a dataset containing class frequencies (f) and class midpoints (xi). It loads the data, calculates the mean (47.66667) by taking a weighted average of the midpoints by frequency. It then calculates the sum of squared deviations from the mean weighted by frequency to get the variance (374.2222) and standard deviation (19.34482).