Suppose a referendum is to be held and the fraction of voters who support a proposed law will be some unknown value, denoted as . Is there some way to know the actual value of before the referendum? The answer to this question lies in The Law of Large Numbers.
The Law of Large Numbers
The law of large numbers is one of the most famous probability theorems, and it has a very central role in probability and statistics. In general, the law of large numbers states that the average result of a series of independent random variables with the same distributions will be close to the value expected by the distribution. There are two main types of the law of large numbers. They are the weak and the strong laws of large numbers.
The Weak Law of Large Numbers
The weak law of large numbers simply means that with high probability, the sample mean of independent identically distributed (i.i.d) random variables is getting very close to the true mean as the sample size increases.
This law is very intuitive, so let me provide an example to make it solid. If we are given a fair coin with a probability of a head being 0.5 then by intuition we know that if we throw a coin 100 times we receive around 50 heads. It may not be exactly 50, but it sure will be close to it, and the fraction of heads will be close to 0.5. But if we throw a coin 10,000 times, we might get even closer to a fraction of heads being 0.5. So the law simply means that as the number of trials increases, we will get closer and closer to the true mean, which is 0.5 in our fair coin case.
If our coin is not fair, and we don't know the probability of a head, we can easily get it by throwing and observing how many times we get heads. Simply speaking, the more we throw, the more accurate our estimation of the probability will be.
Let's consider a sequence of independent identically distributed random variables each having a mean equal to and a variance equal to . The sample mean is defined by:
Then the expected value of the sample mean is:
And the variance of the sample mean can be derived with help of independence as:
Now that we know both the expected value and the variance of our sample mean, we can apply Chebyshev inequality:
For any fixed positive we can observe, as gets larger and larger, the right-hand side of the equation goes closer and closer to zero. Thus, with this, we obtain the weak law of large numbers.
The Weak Law of Large Numbers:
Let be independent identically distributed random variables with the mean equal to . Then for every ,
It states that the larger gets, the higher the probability that (sample mean) will fall within the positive interval around the true mean , and as , the probability of (sample mean) converges to the true mean.
The smaller the value of the , the larger the sample size, which we need to make sure that the sample mean falls within the required interval.
The voting estimation
In order to solve our problem given above, we will follow a couple of simple steps:
- Gather all the information and assign them to the variables
- Apply Chebyshev inequality
Now let's go back to our earlier problem. The fraction of voters who support a proposed law is going to be some unknown . We want to know the value of before the actual referendum. To answer this question, we can sample some amount of people randomly (uniformly and independently) and take their votes to get the sample mean. However, our sample might not be representative of the true population. Thus, that means we might not be able to get the exact value of from the sample mean. Luckily, as we know from the weak law of large numbers, we can get the probability that our (sample mean) will fall within the positive interval around the true mean.
So let's say we would like to know with at least 90% probability that our (sample mean) is accurate within 0.05 of the true mean, which is . That means . The first question to answer is how many voters must be sampled to meet our condition?
Suppose we will randomly choose number of voters and record the sample mean . We will view each voter as an independent identically distributed Bernoulli random variable since voters can vote either to support, which is equal to 1, or vice versa equal to 0. Since it is a Bernoulli random variable, we know that and . Luckily for us, it is known that
Now we can apply Chebyshev inequality as:
And since we want at least 90% probability, we can do the following:
And from the above equation, we get , meaning we need to randomly pick at least 1000 people from the population to be at least 90% confident that our (sample mean) is accurate within 0.05 of the true mean .
Now let's see what will happen if we take :
This means that the probability that our (sample mean) will be accurate within 0.05 of the true mean is more than , which is 98%.
So, if we sample 1000 people we can with 90% be sure that the result of the sample mean will be accurate within 0.05 of the true mean and if we increase our sample size to 50000 people we will be 98% sure.
The Strong Law Of Large Numbers
The weak and the strong law of large numbers are similar in the sense that they both deal with a convergence of the sample mean to the true mean as we increase the sample space.
The Strong Law of Large Numbers:
Let be independent identically distributed random variables with the mean equal to . Then the sample mean converges to the true mean , with the probability 1.
Conclusion
Below is a summary of the concepts covered in this topic:
- The law of large numbers states that if we have a sequence of independent random variables with the same distributions, then the average result of these random variables is going to be close to the expected value of the distribution.
- There are the weak laws of large numbers and the strong laws of large numbers.
- The weak and the strong law of large numbers are similar in the sense that they both deal with a convergence of the sample mean to the true mean as we increase the sample space.
- The weak law of large numbers states that as (sample size) gets larger the higher the probability that (sample mean) will fall within the positive interval around the true mean , and as , that probability converges to 1.
- The strong law of large numbers states the sample mean converges to the true mean , with the probability 1.
Other examples where the law of large numbers is being implemented are:
- Casinos. From time to time individuals get lucky, but in the long run, the casino always wins.
- Insurance. Thousands of people will pay monthly, but only a few of them will end up needing the insurance.