1. Learn
  2. /
  3. Courses
  4. /
  5. Practicing Statistics Interview Questions in R

Exercise

Variability measures

Measures of central tendency represent the center point of values in a dataset. Measures of variability represent the extent to which a distribution is stretched or squeezed.

The measures of variability give you a fuller picture of the data at hand during the interview. The most popular measures of variability are variance and standard deviation.

In this exercise, you will once again work with the cats dataset from the MASS package. The dataset has been preloaded for you as cats.

The dataset contains information on the sex, heart weight, and body weight of domestic cats. The value "F" in the Sex column indicates a female cat, and the value "M" indicates a male cat.

Instructions 1/3

undefined XP
    1
    2
    3
  • Subset data for female cats from the cats dataset and assign them to the female_cats variable.
  • Calculate the variance for the Bwt variable for female cats.