diff --git a/numbers.qmd b/numbers.qmd index 7091c3c..8ec7e76 100644 --- a/numbers.qmd +++ b/numbers.qmd @@ -263,7 +263,7 @@ flights |> ### Logarithms -Logarithms are an incredibly useful transformation for dealing with data that ranges across multiple orders of magnitude and convert exponential growth to linear growth. +Logarithms are an incredibly useful transformation for dealing with data that ranges across multiple orders of magnitude and converting exponential growth to linear growth. In R, you have a choice of three logarithms: `log()` (the natural log, base e), `log2()` (base 2), and `log10()` (base 10). We recommend using `log2()` or `log10()`. `log2()` is easy to interpret because a difference of 1 on the log scale corresponds to doubling on the original scale and a difference of -1 corresponds to halving; whereas `log10()` is easy to back-transform because (e.g.) 3 is 10\^3 = 1000. @@ -585,7 +585,7 @@ The median delay is always smaller than the mean delay because flights sometimes ```{r} #| label: fig-mean-vs-median #| fig-cap: > -#| A scatterplot showing the differences of summarizing hourly depature +#| A scatterplot showing the differences of summarizing daily depature #| delay with median instead of mean. #| fig-alt: > #| All points fall below a 45° line, meaning that the median delay is