Population and Samples


Population and Samples

Corey
Let's begin with the central idea: in statistics and probability, we're usually interested in a large population. That population might be measurements, such as weights or heights, or it might be actual individuals, such as all ten-year-old children or all adult males in the world.

Simon
But studying the entire population is often impossible. A population could contain billions of people or thousands of fish in a lake, so instead we work with a sample—a smaller group selected from that population.

Corey
Ideally, the sample is selected randomly and is representative of the larger population. It will never be as large as the population, but random selection gives us a reasonable basis for making inferences about the population.

Simon
So the key distinction is that the population includes all available observations or individuals, while the sample represents a portion of them. We calculate things from the sample, then use those calculations to infer properties of the full population.

Corey
For example, suppose we're interested in the heights of ten-year-old children around the world. We might measure 100, 1,000, or 10,000 children rather than every ten-year-old child. From that sample, we want to estimate the population mean, the variance, the most common height, and the probability of seeing children with particular heights.

Simon
The mean would describe the center, variance would tell us how widely the heights differ from that center, and the mode would be the value that appears most often. Those are all population features we hope to learn about through the sample.

Corey
Now imagine a population of yellow balls, each labeled with a number from one to nine. We randomly select balls and place the selected values into a sample. To see the sample's structure, we can stack all the ones together, all the twos together, then the threes, and so on.

Simon
That stacking gives us a frequency count. It tells us how many times each measurement or category appears in the sample, and we can display those counts in a histogram or another frequency graph.

Corey
We can go one step further by normalizing the counts. If the sample contains 33 balls and seven of them are ones, then the proportion of ones is seven divided by 33. If six are twos, the proportion of twos is six divided by 33, and we do the same for every value.

Simon
Those proportions can be interpreted as estimated probabilities. If only one of the 33 sampled balls is a five, we might estimate the probability of selecting a five from the larger population as about one over 33. If six are twos, the estimated probability of a two is about six over 33.

Corey
This is the frequentist way of thinking about probability: probability is connected to frequency or proportion. We use observed frequencies in a sample to estimate how frequently a value might appear in the population.

Simon
A fair die gives a simple comparison. If we roll it 10,000 times, we expect comparable numbers of ones, twos, threes, and the other outcomes. Each number from one to six has probability one-sixth, whereas a population of balls may have unequal proportions for its different measurements.

Corey
The collection of these frequencies or normalized proportions is called a statistical distribution. It tells us how the observations are distributed across values or categories, whether those values are numbers, colors, or types of individuals.

Simon
Consider adult male weights. We might take a sample of adult males, stack their observations according to weight, and see that many values cluster around roughly 75 or 76 kilograms, while other observations extend to the left and right.

Corey
That distribution lets us estimate a center, perhaps around 76 or 77 kilograms, and it also gives an idea of the spread. In the example, observations might range from around 48 kilograms to around 125 kilograms, showing that the population is not concentrated at one exact value.

Simon
With enough observations, distributions from natural phenomena often look approximately like a bell curve: centered around a mean and gradually deviating to the left and right according to a variance. This familiar shape is called the normal distribution.

Corey
The source connects that tendency to the central limit theory, although it doesn't develop the theory in detail. The important point here is that common distributional forms can summarize real-life situations and support stronger inferences beyond the exact observations in our sample.

Simon
For a normal distribution, knowing the mean and variance tells us a great deal about the distribution. Other distributions have their own parameters; for example, a Poisson distribution can be described using its rate, which can tell us about quantities such as its expected value, variance, and mode.

Corey
That is why distributions are more useful than simply reporting a few sample statistics. Suppose we observe bus waiting times of seven minutes and 13 minutes. Their average is 10 minutes, but that is a weak inference from only two observations.

Simon
If bus waiting time is modeled with an exponential distribution, the model can tell us more about the likely behavior of waiting times than the simple average of those two observations. A suitable distribution gives us a structured summary and more confidence when making predictions about the larger population.

Corey
That brings us to probability mass functions and probability density functions. A probability mass function, or PMF, applies to a discrete random variable—one that can take separate values such as one, two, or three, but not values like 1.5 between them.

Simon
For the ball example, the PMF records the normalized height of each bar. If seven out of 33 balls are ones, then the probability mass at one is seven over 33. The bar at two represents the probability of getting a two, and so forth.

Corey
Every PMF value is between zero and one, because it represents a proportion. Also, all the probabilities must sum to one. In the example, adding seven over 33, six over 33, six over 33, and the other normalized counts eventually gives 33 over 33, or one.

Simon
So for discrete data, the probability of a particular value is represented directly by its bar. If we want the probability of getting the value two, we read the height of the bar at two.

Corey
Continuous data works differently. A continuous random variable can take infinitely many real-number values, such as 1.1, 1.11, or 1.111. Instead of stacking mass at individual values, we describe where the observations are more or less dense.

Simon
That description is the probability density function, or PDF. A PDF may be high in regions where observations are concentrated and low in regions where they are less common. The density itself is not the probability of one exact measurement.

Corey
In fact, for a continuous variable, the probability of obtaining one exact value, such as 100.123, is treated as zero. There are infinitely many possible real-number values, so a single exact point represents no measurable area.

Simon
Instead, we ask for the probability of landing within an interval. For instance, rather than asking for exactly 3.54231, we might ask for the probability of obtaining a value between 3.4 and 3.5.

Corey
On a PDF, that probability is represented by the area under the curve over the interval. A proper PDF integrates to one over its full range, because the total probability across all possible values is one.

Simon
This leads naturally to the cumulative distribution function, or CDF. The CDF gives the probability that a random variable is less than or equal to a specified value. Graphically, it is the accumulated area under the PDF up to that point.

Corey
If the PDF is written as f of x, then the CDF is obtained by integrating f of x from the lower end of the distribution up to x. The CDF collects all the probability to the left of the chosen value.

Simon
The CDF also lets us find interval probabilities easily. If we want the probability that a continuous variable lies between a and b, we calculate the CDF at b minus the CDF at a. For example, the probability of a value between 3.5 and 3.6 is F of 3.6 minus F of 3.5.

Corey
The CDF has several important properties. At negative infinity it is zero, because no value is smaller than negative infinity, and at positive infinity it is one, because every possible value is smaller than infinity.

Simon
It is also increasing, because as we move to the right, we keep accumulating probability. Even when the PDF becomes lower, the accumulated area still increases, just more slowly.

Corey
For a continuous distribution, the CDF is continuous from the right and does not have sharp jumps. Every input value has one corresponding cumulative probability, and the CDF contains all the probability information needed to calculate probabilities below a point or between two points.

Simon
For discrete data, we move from the PMF to the CDF by summing probabilities. If 10 percent of observations are zeros, the probability of drawing a value less than one is 0.1. If 20 percent are ones, then the probability of drawing a value less than two is 0.1 plus 0.2, or 0.3.

Corey
We continue adding the masses until the total reaches one. So if every observation is one of zero, one, two, three, or four, then the probability of drawing a number less than five is one, and the probability of drawing a number less than 100 is also one.

Simon
For continuous data, the corresponding operation is integration rather than summation. Integrating the PDF produces the CDF, and integrating across the full range eventually reaches one.

Corey
We can also move in the opposite direction. Differentiating the CDF gives the PDF, because the PDF represents the slope, or rate of increase, of the cumulative probability. Where the CDF rises most rapidly, the density is highest; where the CDF begins to flatten, the density is lower.

Simon
So the whole picture fits together: a sample is used to learn about a population; frequencies produce a statistical distribution; discrete outcomes are described with a PMF; continuous outcomes are described with a PDF; and the CDF accumulates probability up to each value.

Corey
And these tools matter because they allow us to make inferences about values and events outside the observations we directly collected. Rather than merely describing a sample, a fitted distribution can help us estimate means, variances, ranges, and probabilities for the larger population.

Simon
That is the foundation for using common probability distributions to model real-life phenomena. Later, different distributions can be matched to situations such as count data, waiting times, or other natural processes, making statistical inference more powerful than simply summarizing the numbers in one sample.

Ask anything
We've read this whole study set, so questions about it get the best answers.