Skip to content

Commit

Permalink
Fix typo, closes #222
Browse files Browse the repository at this point in the history
  • Loading branch information
mine-cetinkaya-rundel committed Nov 13, 2023
1 parent f96da2e commit fdb416c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 05-infer/04-lesson/05-04-lesson.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ knitr::include_graphics("images/4-1-2.png")

### Benford’s Law A.K.A. "the first digit law"

Benford's Law appears when looking at broad collections of numbers, and paying attention to only to the first digit of each number. For example, consider the populations of every country on earth. This demographic data lives inside the gapminder package. We can restrict out attention to data from two thousand and seven and select off the country name and population variables. Now Benford's Law is only concerned with the first digit, so here we see that that Afghanistan, Albania, and Algeria all start with three, Angola starts with one, and so on. If we do this for all one hundred and forty two countries in this data set and visualize the distribution in a bar chart, what do you think it would look like? Would it be uniform?
Benford's Law appears when looking at broad collections of numbers, and paying attention to only to the first digit of each number. For example, consider the populations of every country on earth. This demographic data lives inside the gapminder package. We can restrict our attention to data from two thousand and seven and select off the country name and population variables. Now Benford's Law is only concerned with the first digit, so here we see that that Afghanistan, Albania, and Algeria all start with three, Angola starts with one, and so on. If we do this for all one hundred and forty two countries in this data set and visualize the distribution in a bar chart, what do you think it would look like? Would it be uniform?

```{r out.width = "60%"}
knitr::include_graphics("images/ch4v1-bar-plot-benford.png")
Expand Down

0 comments on commit fdb416c

Please sign in to comment.