Statistics How To


Statistics Definitions >

A logarithm is the power to which a number is raised get another number. For example, take the equation 102 = 100; The superscript “2” here can be expressed as an exponent (102 = 100) or as a base 10 logarithm.

For instance, the (base 10) logarithm of 100 is the number of times you’d have to multiply 10 by itself to get 100.

As it happens, this is 2, a nice neat number. But when we do logs we don’t only work with whole integers. The base 10 logarithm of 6, for instance, is 0.7781. That tells us that 100.7781 equals 6.

We can summarize this all by saying that logarithms are the exponents to which a fixed number must be raised to give a certain result. The fixed number which takes the exponent is called the base. We write logbx to denote the logarithm of x to base b, and this means the number that b must be raised to to get x.

Sometimes log x is written with no subscript. This is always because the writer thought it was obvious which base was meant, and the base must be inferred either from the specific context or from the general discipline.

Special logarithms

The most commonly used bases for logarithms are 10, e, and 2.

The base 10 logarithm, log10x, tells us what exponent 10 has to be raised to make a given number. Log10 is called the common logarithm, and it is often used in engineering and science applications.

The logarithm with the number e at its base is called the natural logarithm and is often abbreviated ln; so loge x = ln x. Remember that e is a special irrational number which we can’t write as a finite decimal; the first few digits are 2.718. The natural logarithm is important in both math and physics.

The base 2 logarithm is called the binary logarithm, and is often used in computer science. It is sometimes abbreviated lb.

Properties of Logarithms

Some special properties of logarithms make them very easy to use in computation. Here are the basic logarithmic laws:

  • logb mn = logbm + log bn
  • logb(m/n )= logbm – logbn
  • log b np = p logbn
  • log b n = loga n logb a

Logarithms in Statistics

Now and then you’ll come across a logarithm or two in stats, although they aren’t widely used. If you’ve worked with logarithms before (perhaps in algebra), you may remember having to rearrange logs and solve some pretty complex equations like log2(x) + log2(x-2) = 3. You probably won’t see these types of equations in elementary statistics, but you might see the occasional use of a log like log2.

In more advanced statistical analysis, logistic regression and Cox regression use logarithmic coefficients. Some distributions, like the reciprocal distribution or the lognormal distribution, use logarithms in their pdfs.

Examples of Logarithms in Real Life

The Richter scale is a logarithmic scale. It is also one of the best examples of how graphs (and statistics) can lie. Why? You’ve probably heard that when an earthquake struck Haiti in 2010 was a 7.0 on the Richter scale or that the Great Japan Earthquake of 2011 was a 9.0. But did you know that the Japan earthquake was about one hundred times more powerful than the earthquake in Haiti? That’s difficult to digest, judging by that two point jump.

what is the richter scale

2011 Honshu Japan Earthquake.


The Richter scale is on a scale of -2 (the smallest) to 9 (the largest). The reason for those huge jumps in magnitude between each digit is that the Richter scale is logarithmic. Each one digit jump in the Richter scale means roughly a ten-fold increase in ground movement and about thirty-fold increase in energy release. Therefore, it’s difficult (or impossible) to visualize the difference between a, say, 5 and 8 magnitude earthquake.

Richter Scale Chart

In the following chart, one erg is equal to 10−7 joules.

Richter Scale(Energy Released in millions of ergs)

  • -2 (600) 100 watt light bulb left on for a week
  • -1 (20000) Smallest earthquake detected at Parkfield, CA
  • 0 (600000) Seismic waves from one pound of explosives
  • 1 (20000000) A two-ton truck traveling 75 miles per hour
  • 2 (600000000)
  • 3 (20000000000) Smallest earthquakes commonly felt
  • 4 (600000000000) Seismic waves from 1,000 tons of explosives
  • 5 (20000000000000)
  • 6 (600000000000000)
  • 7 (20000000000000000) 1989 Loma Prieta ,CA earthquake (magnitude 7.1)
  • 8 (600000000000000000) 1906 San Francisco earthquake (magnitude 8.3)
  • 9 (20000000000000000000) Largest recorded earthquake (magnitude 9.5)

Can we predict earthquakes?

Yes, and no. Earthquake statistics help scientists to predict where and when an earthquake might take place. However, predictions are only possible when there is adequate historical data —and a lot of it. That means there are a few, well-studied areas (like Parkfield, CA) where scientist can make somewhat accurate predictions about where and when earthquakes might occur. So in general, the Richter scale can’t be used to predict earthquakes.
Back to top


Math Review: Useful Math for Everyone. Section 4. What is a Logarithm? Retrieved from on December 8, 2018.

Lamar, Paul. Logarithmic Fucntions. Retrieved from on December 8, 20


Need help with a homework or test question? With Chegg Study, you can get step-by-step solutions to your questions from an expert in the field. Your first 30 minutes with a Chegg tutor is free!

Comments? Need to post a correction? Please post a comment on our Facebook page.

Check out our updated Privacy policy and Cookie Policy