00:01
We have a question here about benford's law, which shows that in many cases the distribution of leading digits is not equal, but instead it shows decreasing frequency as the digits decrease.
00:13
And you can see in the table below, here in the second row, are the proportions under benford's law.
00:20
What we also have is the counts of the leading digits in 1 ,188 addresses that were randomly selected from a four.
00:30
Homebook.
00:31
And what we want to do is test whether or not the counts are consistent with the proportions shown in benford's law.
00:37
So one thing we need to do is calculate the expected counts.
00:42
And to find the expected counts, we multiply p, which is the proportion shown under benford's law, so 0 .301 in our first for digit 1 times the total count, 1 ,188.
00:59
So, if we keep doing this for each of the nine digits, we'll be able to calculate the expected counts.
01:06
Let's take a look at our hypotheses.
01:09
We're going to be testing whether these proportions, p1, p2, all the way through p9, are as stated here in benford's law.
01:19
So you can see the statement, p1 equals 0 .301, p2 equals 0 .176, p3 equals 0 .125, and so on.
01:30
The alternative hypothesis then is that at least one of those proportions is incorrect.
01:37
Now, to calculate our kai square statistic, remember what we're going to do is take the observed count minus the expected count, we'll square that difference and divide by the expected count, and then we will sum for all the cells.
01:53
And when we do that, we can see that we end with a kai square statistic.
02:00
Of 8 .15.
02:02
The degrees of freedom that we have are going to be the number of cells, which is nine minus one, so we have eight degrees of freedom.
02:11
Now, we can save a little bit of work on this problem because this data set is in stat key.
02:18
And if you were to take a look here at our stat key main screen, let me show you this real quick...