- What are the observational units, variable(s), and variable type(s) in each plot?
- What did the code I used to make the plots look like?
- What statistics should we use for the center and spread?
September 20, 2017
summarize(car_speeds, mean_speed = mean(speed), sd_speed = sd(speed))
## # A tibble: 1 x 2 ## mean_speed sd_speed ## <dbl> <dbl> ## 1 23.8439 3.563338
summarize(pizza, mean_price = mean(Price), sd_price = sd(Price))
## # A tibble: 1 x 2 ## mean_price sd_price ## <dbl> <dbl> ## 1 2.619038 0.1559685
\[z = \frac{y - \mu}{\sigma}\]
qnorm
to calculate quantiles (remember – essentially the same thing as percentiles)
qnorm(p = 0.90, mean = 23.8, sd = 3.6)
## [1] 28.41359
pnorm
to calculate proportion of data that are less than a particular value
pnorm(q = 30, mean = 23.8, sd = 3.6)
## [1] 0.9574854
qnorm
for quantiles, pnorm
for proportion of data less than a given number)