Aan de slagGa gratis aan de slag

Variance and standard deviation

Variance and standard deviation are two of the most common ways to measure the spread of a variable, and you'll practice calculating these in this exercise. Spread is important since it can help inform expectations. For example, if a salesperson sells a mean of 20 products a day, but has a standard deviation of 10 products, there will probably be days where they sell 40 products, but also days where they only sell one or two. Information like this is important, especially when making predictions.

The dplyr and ggplot2 libraries are loaded, and food_consumption is available.

Deze oefening maakt deel uit van de cursus

Introduction to Statistics in R

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

___
Code bewerken en uitvoeren