13

We just started a communications course in college and we came across SN ratio. The following is an ambiguity I am facing which my professor is unable to resolve:

Signal to Noise Ratio is the ratio of signal power to the noise power. It is often expressed in decibels. But it is a ratio of two similar quantities, so it must not have a unit right? Why then do we use decibel?

If anybody could answer this question or provide links to resources which solve it, I would be very grateful.

PS: I tried Google and Wikipedia but I could not find anything specifically related to this.

iluvthee07
  • 301
  • 2
  • 5
  • 12
  • 11
    all decibels are ratios. all ratios are decibels. they are two ways of expressing the same thing. – markrages Sep 19 '13 at 14:53
  • 22
    If your communications professor does not understand decibels, you need to switch classes (or switch schools). I mean this seriously. – markrages Sep 19 '13 at 14:54
  • @markrages: Our professor knows just enough to get us through college, but in terms of actually understanding things we are on our own. – iluvthee07 Sep 19 '13 at 14:55
  • 1
    possible duplicate of [Why do we use dB to represent the difference between two voltages?](http://electronics.stackexchange.com/questions/14800/why-do-we-use-db-to-represent-the-difference-between-two-voltages) – radagast Sep 19 '13 at 15:00
  • 2
    Logs are convenient to work with. Multiplications and divisions become additions and subtractions. Also, I wonder if it has to do w/ the days of yore, when calculations were performed on slide rules – Scott Seidman Sep 19 '13 at 15:34
  • 2
    @ScottSeidman the concept was probably easier for students already familiar with slide rules to grasp; but I think numbers like 10, 30, 50, 90 being easier to work with than 10, 1000, 100000, 1000000000 probably had more to do with why log scales were adopted where they were. – Dan Is Fiddling By Firelight Sep 19 '13 at 17:06
  • @radagast: The question may look like a duplicate of the link you have provided but there is a subtle difference. The question in the link you have provided deals with the advantage of using dB while what I am focusing on is the special property of dB which makes it a unit for a ratio, which as most of the answers explained to me was a DIMENSIONLESS unit, arbitrarily chosen to represent logarithms. Hope you get my point. – iluvthee07 Sep 19 '13 at 17:11
  • 1
    @markrages You mean I can measure my ratio of milk to cookies in decibels? =D – Izkata Sep 19 '13 at 21:01
  • 1
    @Izkata I prefer a 0 dB milk/cookie ratio (by mass). – markrages Sep 19 '13 at 22:47
  • 2
    @iluvthee07 Do whatever's necessary to find a new school. – markrages Sep 19 '13 at 22:49
  • 10
    One of the reasons that dB intuitively feels like a unit is because the most common usage of dB outside of engineering is to describe volume of sound. When we say that a sound is 30 dB we mean that the sound pressure is the unitless 10^(30/10) multiplied by a standard unit-ful quantity, namely 20 micropascals. If you don't know that then it is very easy to confuse "a 30 dB noise" that you *hear* with "a 30 dB signal-to-noise ratio" and think they have something to do with each other. They don't. – Eric Lippert Sep 19 '13 at 22:50
  • 1
    Even more confusing to me is the practice of stereo amplifiers with volume controls calibrated in dB *of amplification* rather than *dB of sound coming out of the speakers*. People who do not understand that gain dB and sound pressure dB are two different things are rightly confused; this confused me for a long time. – Eric Lippert Sep 19 '13 at 22:53
  • @Eric Excellent points. Also, welcome to EE (you're much respected on SO). – JYelton Sep 20 '13 at 01:52
  • 1
    @iluvthee07 Check out this [decibel tutorial video by EEVBlog](http://www.youtube.com/watch?v=mLMfUi2yVu8&noredirect=1). – JYelton Sep 20 '13 at 01:55
  • Thanks to everyone. @JYelton: I watched the video. Awesome tutorial. – iluvthee07 Sep 20 '13 at 15:11
  • @JYelton: Thanks! I know only the absolute basics about electronics but I enjoy occasionally browsing this site. It's very educational. – Eric Lippert Sep 20 '13 at 15:14
  • A decibel is not a unit. It's a data type for representing a ratio. Just because we put a suffix on some number doesn't make it a unit. For instance in 100%, the % is not a unit! It just indicates "the data type of this 100 is percentage, which means that it must be divided by 100, and thus represents 1.0". – Kaz Sep 20 '13 at 21:02

9 Answers9

21

To express a ratio in dB, the ratio must be unit-less, since the logarithm of the ratio must be taken, so I'm not sure I understand why you're puzzled that we use dB.

dB is often used to express unit-less ratios precisely because of the properties of logarithm.

For example, multiplication becomes addition, division becomes subtraction.

Also, since the the signal my be many orders of magnitude greater than the noise, it is more convenient to express the SNR as, say, 50dB rather than 100,000.

I am puzzled because as you said SNR is a unit-less ratio, but at the same time we express it in dB... If the ratio and its logarithm both do not have a unit, what then is the dB? ".

The phrase "the SNR is 50dB" is equivalent to "10 times the log of the ratio of the signal power to noise power equals 50."

The dB is not a dimensionful unit like a unit of length or of time, it is a dimensionless unit.

The number x is a pure number just as the number \$y = 10 \log(x) \$ is though we might say that "y is just x expressed in dB".

Alfred Centauri
  • 26,502
  • 1
  • 25
  • 63
  • I am puzzled because as you said SNR is a unit-less ratio, but at the same time we express it in dB. Don't these statements contradict each other. My point is why does this contradiction arise? Is it because of some special property of dB? Hope you get what I am saying. – iluvthee07 Sep 19 '13 at 14:10
  • 1
    @iluvthee07, no the statements don't contradict so I suspect that your understanding of dB is inchoate. The number *x* does not have a unit and the number 10log(x) does not have a unit. – Alfred Centauri Sep 19 '13 at 14:13
  • As I said before we are just learning this in college. I still don't get it. If the ratio and its logarithm both do not have a unit, what then is the dB? – iluvthee07 Sep 19 '13 at 14:18
  • @iluvthee07, see my update to my answer. – Alfred Centauri Sep 19 '13 at 14:28
  • 1
    Good answer +1, and I'd give you another for inchoate if I could. – placeholder Sep 19 '13 at 14:59
  • 6
    You can't have a dB of water, a dB long piece of string, a cubic dB of stuff... but you can have a 3dB pay-rise :D – John U Sep 19 '13 at 15:20
11

Decibels isn't a "unit" in the sense of meter, Netwons, seconds, etc. It is like percent, dozen, parts per million, and the like. Those are all ways of expressing dimensionless numbers. Decibels happens to be a way to express values on a logarithmic scale, but that doesn't change the fact that there is nothing wrong with having various "units" for dimensionless quantities.

Olin Lathrop
  • 310,974
  • 36
  • 428
  • 915
6

Similarly, radians should not have a unit, but are still expressed as rad for clarity.

More specifically, SNR is measured in dB, because dB are convenient for the situation. dBs are convinient for the situation, as the differences of signal and noise can have a large dynamic range, that is, to be small or very large.

So the SNR of 100000V signal with 1V noise is 100000. We take the logarithm of that number and arrive at 10*log(100000) = 50dB. A much nicer number.

Or some such.


Summarizing the discussion in the comments, quantities can be

  • unitless
  • have units, that have physical significance (e.g. meters)
  • or represent units, the do not represent the physical nature of the phenomena, but describe the way we measure it mathematically (e.g. radians, logarithms etc).

The claim has been made that adding quantities, expressed in different units is always meaningless. This is the same as what I have been thought, but might me a simplification for the young learners, just entering the field. IMHO supercat or kriss should ask this topic as a separate (excellent!) question.

Vorac
  • 3,091
  • 5
  • 29
  • 52
  • 1
    I think you should use log not ln to calculate decibels – Andy aka Sep 19 '13 at 14:04
  • @Andy aka, right you are! – Vorac Sep 19 '13 at 14:06
  • 1
    Natural logarithm is actually used for unit called neper (Np). – AndrejaKo Sep 19 '13 at 16:11
  • actually radians are not unitless. They are a unit of measure of angle, like meter is a unit of mesure of length. Unitless quantities are generally coefficients that are applied to convert between units, including of course db. – kriss Sep 20 '13 at 03:07
  • 1
    @kriss, yea, but by definition, the angle of radians is the **ratio** of the arc, divided by the radius. I am getting confused now! – Vorac Sep 20 '13 at 09:15
  • 1
    You can take the sine of one radian. That in itself is proof of the fact that they are unit-less. To convince yourself, look at the Taylor expansion of sin(x). If x has a unit, you're calculating x-(x^3/6). – MSalters Sep 20 '13 at 10:09
  • 1
    @Vorac: as far as I understand radians are dimensionless, but not unitless. Both are not exactly synonyms. Radian are always a mesure of an angle, which is physically defined. dB are not physically defined in the same way: that's some log representation of the ratio of two intensities, but it does not state the intensities of what. – kriss Sep 20 '13 at 12:47
  • @kriss: The terms "unit" and "dimension" are a bit vague. Consider, for example, the difference between "one pound foot" (a measure of torque) vs. "one foot pound" (a measure of energy). Both force and distance are properly described as vectors which have associated directions. When describing "one pound foot", the vectors point in arbitrary perpendicular directions; when describing energy, they point in the same arbitrary direction. – supercat Sep 20 '13 at 20:58
  • @supercat: I'm not sure I understand the point. Do you mean that we can have units with defined dimensions but that you can't meaningfully add ? (because we should add them as vectors and that is only defined when vectors point in the same direction ?) – kriss Sep 20 '13 at 22:31
  • @kriss: Pretty much. If someone walks 12 meters, and then walks 9 meters, how far from their starting point will they end up? Only if all 21 meters are traversed in the same direction can one answer the question by adding the distances. – supercat Sep 20 '13 at 22:52
  • @supercat: OK. Having the same unit is not enough. But still, as far as I know adding units with different dimensions is always meaningless. And it also seems you can't always mix dimensionless units. But maybe I's rather ask a question on that subject on physics stackexchange. – kriss Sep 20 '13 at 23:14
  • 1
    @kriss: Adding 1 inch and one foot is perfectly meaningful; without conversion the answer is "1 inch + 1 foot". Multiply the right half by the identity "12 inch / 1 foot" and it becomes "1 inch + 12 inch", which can then be reduced to "13 inch". – supercat Sep 23 '13 at 15:30
  • @supercat: all units of length are of the same dimension, whatever you name them. But you can't add 1 volt and 1 meter. It means nothing. With dimensionless units you are exactly as meaningful adding say 1 rad and 360 degrees, you obviously get 2Pi+1 rad. But obviously adding Db is meaningless. And I don't see what would be the meaning of adding say some angle and some Atomic Weight, even if both are dimensionless. – kriss Sep 23 '13 at 22:41
  • @kriss: How about adding one ohm to one farad? Those are different dimensions, but the sum is meaningful; it effectively describes a relationship between frequency and complex impedance. I'm not quite sure what a sum of torque and energy would mean, but if one regards a unit of torque as being a vector perpendicular to a unit of energy, and a radian as being "perpendicular" to a unit distance, then the rotation of something by one radian against a certain (force times distance) torque will require the (force times distance) amount of work. – supercat Sep 23 '13 at 23:13
  • @supercat: you are not adding ohms and Farad, you do that at some given Frenquency in termes of units you have (Ω = F * s).That's Buckingham π theorem. It's handy to check some result (if dimensions does not match result is false). But it says nothing on dimensionless units. I'm not sure either about Torque and Energy, but from a pure units point of view it could have a meaning as units match. – kriss Sep 23 '13 at 23:35
  • @kriss: If one has an RC network, one may describe the network without knowing frequency by adding together resistances, capacitances, inductances, and their reciprocals. The units don't reduce unless one can apply a particular frequency, but I think one can perform the arithmetic without knowing the frequency, keeping things as discrete units, and then turn inductances and capacitances into impedances afterward. – supercat Sep 24 '13 at 15:11
4

Decibels are sometimes a more convenient "unit" to work with.

The same question applies to voltage gain of an op-amp - the tendency is to state open-loop gain in decibels. Ditto closed-loop gain.

Same with filters - low pass filters(for example) have a "gain" reduction with an increase in frequency and this is usually expressed as "so many" dB per octave or decade.

Plenty of things are stated in decibels.

EDIT

The decibel is not a unit like watts, ohms, volts or amps. It's a reminder that the number preceding it is derived a certain way. A different example is scientific notation such as the number 5000 - it can be expressed as 5E3 - this doesn't mean the E3 is a unit of any type.

Same applies to the "k" in 10k\$\Omega\$ resistor - "k" is not part of the unit. It tells us that the number of ohms is 10 x 1000.

Alfred Centauri
  • 26,502
  • 1
  • 25
  • 63
Andy aka
  • 434,556
  • 28
  • 351
  • 777
  • 2
    \$e^3\$ is about 20.1, not 1000. – The Photon Sep 19 '13 at 16:11
  • @ThePhoton, I took the liberty to edit Andy's answer to reflect what I feel certain he meant: https://en.wikipedia.org/wiki/Scientific_notation#E_notation – Alfred Centauri Sep 19 '13 at 16:34
  • For the record, the "E notation" is a workaround for use in programming languages that don't recognize typesetting (like superscripts). In text,, using superscripts like in "\$5\times{}10^3\$" is much preferred. – The Photon Sep 19 '13 at 16:38
  • @ThePhoton In semiconductors scientific notation is written as 1.2e6 etc. Sloppy yes but also a standard shorthand. NOT 5E3 as edited but 5e3 is correct, Just check on IEEE.org. Just like Angstrom as a unit persists, this does too. – placeholder Sep 19 '13 at 17:16
  • @ThePhoton I must have been away with the fairies when I wrote it originally. Thanks – Andy aka Sep 19 '13 at 18:09
  • @AlfredCentauri I must have been away with the fairies when I wrote it originally. Thanks for the edit. – Andy aka Sep 19 '13 at 18:16
  • 1
    @rawbrawb I've only seen people do that if they have gotten confused and can no longer tell the difference between FORTRAN and English. – The Photon Sep 19 '13 at 18:24
  • @ThePhoton sounds like me on a good day – Andy aka Sep 19 '13 at 19:53
4

As you plainly stated, decibels are used to quantify the relationship between two signals. They are relative, not absolute. Saying that a transmitter has 1dB of output is meaningless. Therefore it must be referenced to some other unit. For example, 1dBm is 1dB with respect to 1 miliwatt.

In the case of Signal to Noise ratios, the dB is the only thing that makes sense to use. Typically, a signal in RF or other applications will be much above the noise, hundreds of thousands or millions of times stronger. In that case it is simpler and shorter to write that it is 60dB above instead of 1000000 since a mistake could easily be made.

Gustavo Litovsky
  • 7,619
  • 3
  • 25
  • 44
1

It's a particular transfer function, it really depends on the application Like in circuits analysis for op amps, we often care of the voltage signal to noise ratio So it could be V/V or A/A, or a mixture of two.

Decibels are often used to look closer at the amplitude or frequency of signal amplification and attenuation

Edit

It's a logarithmic unit, an abstract mathematic unit (not physical units)

Ohms for example is a measure of Voltage/Current, it is dimensionless.

Iancovici
  • 2,246
  • 17
  • 28
  • Thanks for replying. Unfortunately, that does not answer my question. What I mean is a ratio must not have a unit. That's what basic mathematics teaches us. But a decibel is a unit for a ratio. Why is the rule changing in this case? Is there something special about decibels? – iluvthee07 Sep 19 '13 at 14:03
  • 1
    @iluvthee07, ratios most certainly can have a unit, e.g., feet per second. However, to express a ratio in dB, the ratio must not have units. dB is not a unit per se, while, for example, dBm *is*. – Alfred Centauri Sep 19 '13 at 14:10
  • @iluvthee07 edited – Iancovici Sep 19 '13 at 14:12
  • @echad: I meant a ratio of two similar quantities. As for the abstract thing, are you implying that we use it just for the sake of denoting that log is being used here and not for some other more subtle reason? – iluvthee07 Sep 19 '13 at 14:14
  • The unit tells you _what you are measuring_; another example of a ratio with units is specifying gain as "20 V/V", to indicate that you're referring to voltage gain and not current gain. – pjc50 Sep 19 '13 at 14:22
1

I think the problem here is that the OP is confusing units with magnitude. If I say the gain of an amplifier is 1000 or 60 dB, I am simply expressing the magnitude of the gain in 2 different ways. In either case, there are no units since gain is normally volts per volt (or amps per amp, etc.). dB's are just another way of expressing the magnitude of a number. They are very convenient for use with numbers that can be very large or very small. As already pointed out, it is much more convenient to express 0.00001 as -100 dB or 1,000,000 as 120 dB. Both expressions are simply number magnitudes. No units are involved.

Barry
  • 15,733
  • 1
  • 26
  • 28
1

I like to think like this to solve your ambiguity:

decibels (dB) are a "appropriate" measure of how much a quantity is larger or smaller than other. In signal to noise ratios, you are willing to know how much the power of your signal is larger than the power of the noise. If you do the math you will end up with things like (Psignal / Pnoise) = 100000 which is cumbersome. Here cames the venerable log function wich transforms it in something like:

10*log(100000) = 50dB

Its a convient and consagrated notation. Just that.

daniel.franzini
  • 163
  • 1
  • 7
0

The way I like to think of it is that a decibel is not a unit, it's a function. (This idea is not original to me---I read it in a paper at some point, which I can't find at the moment.) Regular units like meters, seconds, and coulombs behave like irreducible constants that are multiplied by pure numbers. Even things like % and radians can be treated as multiplying constants in dimensional analysis, where %=0.01, and radian=1. But decibels are different. When someone tells you that a power ratio is equal to "3 dB", what they're really saying is that the ratio is equal to \$10^{3/10}\$, or approximately 2. So rather than writing "PR = 3 dB", we arguably should write "PR = dB(3)", where \$\mathrm{dB}(x)=10^{x/10}\$. And for the same reasons that you generally don't take exponentials and logarithms of anything except a pure number, you also don't take the dB() of anything but a pure number.

Fahrenheit and celsius degrees are similar. Neither behaves like a regular unit in dimensional analysis, they behave like functions. So "10 degC" should really be degC(10), where \$\mathrm{degC}(x)=(273.15+x)\ \mathrm{K}\$, where \$\mathrm{K}\$ is Kelvins. (Kelvin is a regular unit.) And "32 degF" should really be degF(32), where \$\mathrm{degF}(x)=5/9 \cdot (x+459.67)\ \mathrm{K}\$.

The one other wrinkle with dB is that people will often say that the "amplitude" of a signal is "x dB". What they mean is that the power of the signal is dB(x) times more than the power in some reference signal. So for instance audio engineers use "dBV" to mean the power in a signal, relative to the power in a 1 V sine wave. Since the mean power is equal to the RMS amplitude squared, that means that $$\frac{A_{rms}^2}{(1\ V)^2} = \mathrm{dB}(x)\ ,$$ which in turn implies that $$A_{rms} = 10^{x/20}\ V\ .$$