Mental Models204 cards · 12 fields

Mental Models/Computing & Information

Signal-to-Noise Ratio

信噪比

To tell if a change is real, see how far it beats the usual ups and downs.

When an old TV has no signal, the screen fills with snow and a hissing sound, and a small part of that comes from the leftover warmth of the universe's birth. The first to recognize it were Arno Penzias and Robert Wilson of Bell Labs.

In 1964 the two of them wanted to use a large antenna to listen to faint radio waves from the sky, but they found their readings always had an extra bit of noise they couldn't get rid of. They took the wiring apart and checked the connections, drove out the pigeons nesting in the antenna and scraped off the droppings that covered its walls, and the noise didn't drop at all.

Only after talking with physicists at Princeton did they understand: this was the leftover warmth of the Big Bang, spread evenly across the whole sky. The discovery became the strongest evidence for the Big Bang theory, and it won the two of them the 1978 Nobel Prize in Physics. They could dare to draw that conclusion because they had first cleared away, one by one, every source of interference they could check. The noise that was left was the same no matter where the antenna pointed and from summer through to spring, so it was not a fault in the instrument but something really there in the sky.

You want to know whether a different route to work is faster. The time the new route really saves is the signal; the daily ups and downs in how long the trip takes are the noise; and the ratio of the two is the signal-to-noise ratio. The old route usually takes 40 minutes, but red lights and accidents can add or take off ten minutes or so on any given day. You try the new route for one day and it takes 36 minutes. Is the route better, or were you lucky that day? The 4 minutes saved are smaller than the ups and downs, so the signal-to-noise ratio is low, and one day of trying shows nothing. If the new route saved twenty minutes, the ratio would be high enough to see it in a single day.

A real 8-minute saving takes about a week to see
Swing in the average1.8 min
-10010203051015202530Days runAvg. minutes saved a dayReal savingSame as old route
-100102030102030Days runAvg. minutes saved a dayReal savingSame as old route

Daily times swing about 10 min; six lines, six separate trials. Set the real saving to 2 and lines leave zero only after 100 days; at 20, within two or three days.

The more you save, the fewer days it takes to see it

Say the new route's time swings by about minutes a day, here 10 minutes. Run it for days and take the average, and the swing left in the average is:

The more days, the steadier the average, but it steadies more and more slowly: four times the days only halves the swing. One day swings 10 minutes; the average of 4 days swings 5 minutes; 16 days, 2.5 minutes.

The average steadies because fast days and slow days cancel each other in part. Take two days. If both are fast or both slow, the deviations stack up to twice as much, and the square is 4 times one day's; if one is fast and one slow they cancel, and the square is 0. The two cases are equally common, so on average the square is 2 times one day's. In the same way, the square of the sum of days' deviations is times one day's, so the total swings only times as much. Divide by to get the average, and that is .

You can only see the saving clearly once the swing in the average falls below half of it. If the route really saves 20 minutes, two or three days are enough. If it really saves 8 minutes, the swing has to be pushed below 4 minutes, so has to be over 2.5, which takes six or seven days. If it saves only 2 minutes, the swing has to come down to 1 minute, and that takes a hundred days.

A bias that is the same every day doesn't average out

Suppose all the new route's records were from the summer holidays, when there is less traffic anyway, while the old route's records include rush hours during the school term. The new route gets this advantage every single day, and no day ever gives it back. So run it for 1,000 days, and the average will just settle firmly on a number that is too fast.

First shut out the interference you can control

Suppose you only compare trips that leave at 8 a.m. on Tuesdays. That shuts out differences between days of the week and between departure times, and the daily swing falls from 10 minutes to 6. Average 4 days and the swing is only 3 minutes; without those limits, getting it down to 3 minutes would take about 11 days.

Instrument readings, controlled tests of a website redesign and your daily weight can all be measured again and again, and their noise stays roughly the same size. That is where signal-to-noise ratio works best. An election happens only once, so you can't average out the noise by measuring a few more times. And there is no ready-made ruler for what counts as noise: if in a meeting every number you don't like gets filed as noise, signal-to-noise ratio becomes a respectable way of brushing off disagreement.

Design
When running a redesign test, first write the conditions you can hold fixed into the plan: launched in the same time slot, traffic from the same set of channels, the same way of counting. Then work out how many days to run it.
Explain
When the same class sits another exam, the top few often change. That's because the score gaps between ranks were never bigger than the luck of how each student does on a single exam.
Act
When you see an odd reading, first measure how much bigger it is than that reading's usual ups and downs, then decide whether to note it, raise an alarm or look into it at once.
  1. How much bigger is this change than this thing's own usual ups and downs? Go back through past records and look at the usual swings first.
  2. Under what conditions is this reading usually taken? Are today's conditions the same as usual?
  3. With this change, which side of the ratio is moving: has the thing you want to see grown, or have the swings around it shrunk?

Science

The same shape in two places

On September 14, 2015, two laser interferometers in Hanford and Livingston in the United States, about 3,000 kilometers apart, each recorded a brief wave shape. The interference in each instrument was its own and had nothing to do with the other's, but a real gravitational wave would sweep over both places one after the other. The researchers laid the two records on top of each other, and the same shape appeared at both sites about 7 milliseconds apart.

Business

The green button led for a day

You work at a fitness app company and change the "Get membership" button from blue to green. On the first day, green converts 0.8 percentage points better, and colleagues press you to roll it out to everyone. You dig up the past thirty days of daily conversion rates and find that any two days can differ by 1 percentage point. You split users randomly in half and run both colors at the same time for two weeks. Over the two weeks the colors take turns leading, the average gap is under 0.1 percentage points, and the color change is not launched.

Health

One blood-pressure reading doesn't count

You take your blood pressure at home three times in a row one afternoon, and the systolic number jumps from 128 to 141, then back to 133. Your doctor asks you to measure twice each morning and twice each evening for seven days running, after sitting and resting for five minutes, using the same device. After seven days, what the doctor looks at is the sheet you've filled in, not any single reading.

Signal-to-Noise RatioSignal Detection TheoryEvery judgment makes two kinds of mistake, so missing fewer real cases means more false alarms.The vibration reading on a stamping press in a workshop usually wobbles between 1.8 and 2.2. This morning it jumped to 2.4 and then came back down. Someone who only looks at signal-to-noise ratio would say this is about the size of the usual wobble, so read it for a few more days. Signal detection theory looks at where to draw the line for deciding. If missing one fault would hurt someone, the line should be drawn lower: better a few false alarms, so stop the machine and check it now. For a machine where a mistake only means one more scrapped part, watch it slowly by signal-to-noise ratio; where a mistake can hurt someone, draw the line lower according to the cost.Signal-to-Noise RatioRegression to the MeanAn unusually good or bad result contains luck, so the next usually falls back toward normal.The five students at the bottom of a monthly exam get three weeks of extra lessons, and next time they go up 15 points on average. Signal-to-noise ratio first asks: how much does one exam's luck move a score, and are 15 points enough to beat it? Regression to the mean points to another layer: mixed in among the bottom students are some who just had a bad day, and they would go up next time even without the lessons, so however big the rise, it can't all be credited to the lessons. To judge whether the lessons worked, compare with another group who were also at the bottom and got no extra lessons.

You're a coach, and one of your runners' 5 km times naturally vary by about 30 seconds from race to race. You have two training methods: method A is expected to make his average time 60 seconds faster, method B only 10 seconds faster. You plan to have him run the same number of times on each and compare with his old average.

Which statement is right?

You're trying a new fertilizer in your vegetable garden. The new fertilizer goes on the sunny south slope and the old one on the shady north slope. Over three seasons in a row, the new-fertilizer side yields 20% more each season. You want to confirm that the new fertilizer is better.

What should you do next to best answer this question?

You're recording an interview. The air conditioner in the meeting room hums the whole time, the microphone sits in the middle of the table, and the person being interviewed sits two meters away. On playback, the voice is faint and the hum is obvious.

When you record a second time, which of these does the most to make the voice stand out against the hum?