ComenzarEmpieza gratis

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.

Este ejercicio forma parte del curso

Practicing Statistics Interview Questions in R

Ver curso

Ejercicio interactivo práctico

Prueba este ejercicio y completa el código de muestra.

# Subset female cats
___ <- subset(___, Sex == ___)

# Compute the variance of Bwt for females 
___(___)
Editar y ejecutar código