Introduction to Statistics in R
Maggie Matsui
Content Developer, DataCamp
The field of statistics - the practice and study of collecting and analyzing data
A summary statistic - a fact about or summary of some data
The field of statistics - the practice and study of collecting and analyzing data
A summary statistic - a fact about or summary of some data
Instead...
But...


What percent of people drive to work?

1/0)1, 2, ...)1)2)3)4)5)car_speeds %>% 
  summarize(avg_speed = mean(speed_mph))
  avg_speed
1  40.09062

demographics %>% 
  count(marriage_status)
  marriage_status     n
1          single   188
2         married   143
3        divorced   124

Introduction to Statistics in R