Lecture Note
University
Duke UniversityCourse
Data Science Math SkillsPages
1
Academic year
2022
KatrCrayon
Views
44
p {margin: 0; padding: 0;} .ft00{font-size:20px;font-family:Arial;color:#000000;} .ft01{font-size:18px;font-family:ArialMT;color:#000000;} .ft02{font-size:18px;line-height:22px;font-family:ArialMT;color:#000000;} The Change of Base Formula Next, we'll consider how to modify the base of a formula. In data science, we commonly use base 10 or base 2. Sometimes we use natural logarithms (NL), which is a logarithm to the base e. We will discuss this later. Regardlessof base, it's possible to convert an equation from one base to another using a simpleformula. If we want to take the logarithm of 12 to the base 2, we can use our pocket calculator or Excel spreadsheet, or computer and get 3.585. If we want to take the logarithm of 12 tothe base 10, we'll get 1.079—a very important point to keep in mind: that you’re not gonnaget the same answer with a different base. The logarithm to the base 10 of 7 is more than one-third less than that of 2. Likewise, if we take logarithms to base 2 of 7 and 7, we get 2.807 and 0.8451 respectively. What dowe have here? The numbers 2 to the 3.585 and 10 to the 1.079 both equal 12. Also, 2 tothe 2.807 and 10 to 0.8451 both equal 7. If we have a new base a, and our original base isx, we can take our original formula which is log to the base x of b. We divide by the logarithm of the old base to the new base. This means we can work an example and illustrate what I mean. We have log to the base 10 of 12. We want to convert this to base 2, so we divide by log to the base 10 of 2. Log to the base 10 of 2 = 0.30103. So we have 1.079 divided by0.30103 and that equals 3.585, which is log to the base 2 of 12. To convert log 2 of 7 intolog 10 of 7, divide by log to the base 2 of 10. The base-2 logarithm of 10 is 3.3219, so2.8073 divided by that number equals 0.8540. To convert one base to another, divide the original base by the logarithm of the original base over the new base. Practice problems help to familiarize you with thisconcept and it becomes more intuitive with time.
The Change of Base Formula
Please or to post comments