Discrete and continuous data
We now leave pure probability theory, and move into the field of statistics. Statistics typically deals with data sets obtained in experiments and surveys. Based on these data sets, we then often want to make some far reaching conclusions, for example that men have a lower IQ than females (or vice versa). Statistics can tell us how valid such a conclusion is based on our data set at hand.
Yet, we still need probability theory, simply because data sets are a result of random factors. For example, which person we selected for measuring the IQ is often done on a random basis. We simply select a person at random, and measure the person's IQ. So it pays off to define a data set in terms probability theory:
Consider a random experiment and a random variable . Let us repeat the experiment times. Recall that a random variable produces a value for each outcome of the experiment. So if we repeat the experiment times, we get values. We call these values a data set, or more specifically a sample.
-
Rolling a fair (or biased) die twice is a random experiment. If ="the sum of the two numbers", and if we repeat the experiment times, we might get the data set
-
Measuring the height of randomly chosen people. Here the random experiment is "select a person at random", ="height of person", and . A possible data set could look like this (height in ):
-
Flipping a coin three times is a random experiment. If we define ="number of heads", and repeat the experiment times, we might get the data set
Let us distinguish between two types of data.
If the random variable has only certain values as outputs, we call and the corresponding datasets discrete. On the other hand if can have any possible value within a certain range, we call and the corresponding data sets continuous.
As a rule of thumb, data obtained by counting is discrete, while data obtained by measuring is continuous.
Examples 1 and 3 above are discrete, example 2 is continuous.
Determine a possible random experiment, and if the random variable is discrete or continuous:
-
="the length of a leaf"
-
="the number of students in a class"
-
="a dog's weight"
-
="the exact amount of water in a bottle."
-
="the dates of birth of a person"
Solution
- continuous, possible random experiment is "select a leaf at random in a forest"
- discrete, possible random experiment is "select a class at random"
- continuous, possible random experiment is "select a dog at in town at random"
- continuous, possible random experiment is "select a bottle of water in Migros at random"
- This is tricky ... if you are only interested in the exact date (e.g. 23-4-1988), it is discrete, but if you are interested in the exact time, it is continuous. A possible random experiment is "select a person from the street at random."
We have already used the mean and the standard deviation to describe a data set. A third method is to create a frequency distribution. The frequency distribution tells us which values of the data set occurs how often. In the next two sections we will discuss the frequency distribution separately for discrete and continuous data.