2 Random variables and probability distribution
A **random variable** is a variable that assumes numerical values associated with the random outcomes of an experiment, where one (and only one) numerical value is assigned to each sample point.
2.1 Two types of random variables
Random variables that can assume a countable number (finite or infinite) of values are called discrete.
Example of disrete random variable
Random variables that can assume values corresponding to any of the points con- tained in one or more intervals (i.e., values that are infinite and uncountable) are called continuous.
## # A tibble: 10 x 1
## c1
## <dbl>
## 1 3.47
## 2 4.62
## 3 5.23
## 4 3.52
## 5 3.96
## 6 6.31
## 7 6.08
## 8 7.23
## 9 6.92
## 10 4.46