Skip to content

fix mistake in lecture 0 text #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion preliminaries/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ slides: true
<img src="00.Preliminaries.key-stage-0013anim0.svg" data-images="00.Preliminaries.key-stage-0013anim0.svg,00.Preliminaries.key-stage-0013anim1.svg,00.Preliminaries.key-stage-0013anim2.svg,00.Preliminaries.key-stage-0013anim3.svg,00.Preliminaries.key-stage-0013anim4.svg" class="slide-image" />

<figcaption>
<p >Ok, so that's why logarithms are <em>historically</em> important. Why do we still use them so much nowadays? We have calculators aplenty to multiply numbers for us, so why put logarithms front and center among our preliminaries?<br></p><p >There are two reasons. The first is in <em>analysis</em>. When we are analysing our formulas and algorithms, we deal with a lot of complicated expressions. Here is an example: the famous <em>normal distribution</em>. Its probability likelihood curve looks like this. It's defined by the complicated formula on the left (this normal function has mean 0 and variance 1).<br></p><aside >If that looks way too complicated to understand, don't worry, that's sort of the point. We will talk about how to read this formula at length later on. For now, just take it as an example of a complicated formula.<br></aside><p >The only thing we need to worry about now is that it's positive everywhere, so we can take its logarithm. This changes the function, but in a very predictable way: for instance, because the logarithm only ever increases, that means that where ever the normal function increases, so does its logarithm. This means that, for example, the peak is in the same place for both functions.<br></p><p >So, if we start with the complicated function on the left, and take its (natural) logarithm, we end up with the function on the left. See if you can show this with the properties from the previous slide, it's good practice.<br></p><p >In "log space" the function still has some complicated bits, like the part in gray, but we can note that these do not depend on <span class="blue">x</span>. It's just some number. That means that this logarithmic function is just a simple parabola: the most complicate part is just the square of x. Parabolas should be much more familiar to you than the complicated function on the left.<br></p><p >This is the first reason to use logarithms. <strong>For many of the functions we will want to analyse, taking their logarithm retains the important properties, but simplifies their expression</strong>.<br></p><p ></p>
<p >Ok, so that's why logarithms are <em>historically</em> important. Why do we still use them so much nowadays? We have calculators aplenty to multiply numbers for us, so why put logarithms front and center among our preliminaries?<br></p><p >There are two reasons. The first is in <em>analysis</em>. When we are analysing our formulas and algorithms, we deal with a lot of complicated expressions. Here is an example: the famous <em>normal distribution</em>. Its probability likelihood curve looks like this. It's defined by the complicated formula on the left (this normal function has mean 0 and variance 1).<br></p><aside >If that looks way too complicated to understand, don't worry, that's sort of the point. We will talk about how to read this formula at length later on. For now, just take it as an example of a complicated formula.<br></aside><p >The only thing we need to worry about now is that it's positive everywhere, so we can take its logarithm. This changes the function, but in a very predictable way: for instance, because the logarithm only ever increases, that means that where ever the normal function increases, so does its logarithm. This means that, for example, the peak is in the same place for both functions.<br></p><p >So, if we start with the complicated function on the left, and take its (natural) logarithm, we end up with the function on the right. See if you can show this with the properties from the previous slide, it's good practice.<br></p><p >In "log space" the function still has some complicated bits, like the part in gray, but we can note that these do not depend on <span class="blue">x</span>. It's just some number. That means that this logarithmic function is just a simple parabola: the most complicate part is just the square of x. Parabolas should be much more familiar to you than the complicated function on the left.<br></p><p >This is the first reason to use logarithms. <strong>For many of the functions we will want to analyse, taking their logarithm retains the important properties, but simplifies their expression</strong>.<br></p><p ></p>
</figcaption>
<span class="hint">click image for animation</span>
</section>
Expand Down