Finding a pattern in noise.

A receiver that knows what it is listening for can find a signal that is weaker than the noise around it. In this chapter you will do it yourself, one small move at a time.

The opening story told how a phone finds a GPS satellite by comparing what its antenna picks up against a copy of a pattern 1,023 steps long. A step, as the story explained, is one turn of a pattern, a short stretch of time during which the signal is sent either up or down. In this chapter you will carry out the same search by hand, with a pattern only thirteen steps long, which is short enough that every number fits on the screen and can be checked.

The chapter takes things in order. It begins with the pattern itself and with what makes it a good one. Then you bury the pattern in noise, slide a copy across, and find the one position where the total jumps. After that come the practical questions, which are how to decide whether a jump is real, how weak a signal can get before the method fails, and what happens when the sender is moving. The last section is about spotting something unusual when its shape is unknown in advance.

Every chart on the page is live, and on a computer, rolling the mouse wheel over a chart moves the copy one position at a time.

1. The pattern what you are looking for

The sender and the receiver agree on a short pattern ahead of time, and the sender puts it at the front of every message. The pattern on this page has thirteen steps, and each step is either up or down, written here as plus or minus:

Why these thirteen ups and downs, when there are thousands of other ways to arrange thirteen? The test of a pattern is to slide it across a copy of itself. At each position you compare the two, step by step, counting one for every step where they agree and taking one away for every step where they disagree. When the two are lined up, all thirteen steps agree and the count is 13. When one is shifted against the other by any amount at all, the agreements and disagreements almost exactly cancel, and the count stays at 1 or below.

the pattern slid across a copy of itself13 when lined up, 1 or less everywhere else

That is exactly what a searcher wants from a pattern, which is one unmistakable answer when the copy is in the right place and next to nothing everywhere else. A good key behaves the same way, turning in one position and staying stuck in every other. Patterns that manage this as well as it can be managed are called Barker codes, after the British engineer Ronald Barker, who described them in 1953, and thirteen steps is the longest one known. The GPS patterns from the opening story belong to a different family, built for much greater length, and chapter 4 returns to them.

One practical detail has to be settled before going on. A receiver sees the incoming signal only through measurements. It measures the signal at regular instants, the way a movie camera takes a fixed number of pictures every second, and each measurement is called a sample. On this page every step of the pattern lasts for four samples, so the whole pattern is 52 samples long. An up step is drawn at a height of +0.5 and a down step at -0.5.

2. Hide it what the receiver actually gets

The first chart below shows what was sent, which is silence, then the pattern, then silence again. The second shows what the receiver gets, which is the same thing with noise added to every sample. Noise here means the random hiss described in the opening story, the kind that every receiver makes by itself. The dashed markers show where the pattern sits in both charts, so that you always know the right answer. The receiver has no markers to help it, and the second chart is all it has to work from.

sentthe pattern sits at samples , between the markers
receivedthe same, with noise added

Raise the noise until you can no longer see the pattern between the markers. The receiver has to find it anyway, and it will, because it knows the pattern it is looking for.

3. Slide the copy one total for each position

Now the search can begin. The amber shape below is the receiver's copy of the pattern, and you can drag it along the received signal. At each position, the page multiplies every sample of the signal by the sample of the copy lying over it. The result of a multiplication is called a product, so each position gives 52 products, and the page adds all 52 together. That total is the result for that position.

The opening story described this comparison as a tally, adding one wherever the copy and the signal agree and subtracting one wherever they disagree. Multiplying does the same job and wastes less. Where the copy is up and the signal is above zero, both numbers are positive and so is their product. Where the copy is down and the signal is below zero, both numbers are negative, and two negative numbers multiplied together also give a positive product. Those are the agreements. Where one number is positive and the other is negative, the product is negative, and that is a disagreement. On top of this, the size of each product records how strongly the signal agreed or disagreed, which a plain yes or no would throw away.

Park the copy between the markers and watch the total jump.

received, with the copy over it
the 52 products at this position

    

That is the whole operation. At every position you multiply, add, and write down one number. It is the sliding shape of chapter 1, with a copy of the wanted pattern as the shape. Used this way it has a name of its own, the matched filter, because the shape is matched to the thing being looked for.

The matched filter also comes with a guarantee, which is what Dwight North proved in 1943. If the noise is plain random hiss, then no other way of weighting and adding the samples can make the pattern stand out from the noise more than this one does. That is why radar sets, GPS receivers and WiFi all begin the same way.

Who else found it. North's report was secret during the war. Two physicists at Harvard, John Van Vleck and David Middleton, reached the same result independently. For years engineers called the method the North filter, and the name that finally stuck is the matched filter.

the same loop, as a program

/* The receiver's side of section 3: the matched filter output at every position.
   h is the pattern it expects, x is what it heard. */
#define PRE_LEN 52

float matched_filter(const float *x, int n, const float *h, float *y)
{
    int half = PRE_LEN / 2;
    float peak = 0.0f;
    for (int pos = 0; pos < n; pos++) {
        float sum = 0.0f;
        for (int k = 0; k < PRE_LEN; k++) {
            int i = pos + k - half;
            if (i >= 0 && i < n) sum += h[k] * x[i];
        }
        y[pos] = sum;
        if (sum > peak) peak = sum;
    }
    return peak;
}
import numpy as np

barker13 = np.array([1, 1, 1, 1, 1, -1, -1, 1, 1, -1, 1, -1, 1], dtype=float)
h = np.repeat(barker13, 4) * 0.5          # 4 samples per chip, amplitude 0.5

y = np.correlate(x, h, mode="same")      # the whole of section 3 in one line
peak_at = int(np.argmax(y))              # where the receiver thinks the pattern is

4. Read the result what to look for

Here is the total at every position, drawn as one chart. It has the shape that section 1 promised, with a single spike where the copy lines up with the pattern and small bumps everywhere else. The noise is still there, in every one of these totals. But each total is the sum of 52 products, and noise does badly when it is added up.

the total at every positiondrag the dashed line

To see why the spike stands out, look at the lined-up position, where each of the 52 products has two parts. One part is the pattern multiplied by the copy of itself, and that is always positive, since +0.5 times +0.5 and -0.5 times -0.5 both come to 0.25. The other part is the noise multiplied by the copy, which comes out positive or negative at random.

Add up all 52 products and the two parts behave very differently. It is the difference between a crowd clapping in time and a crowd clapping at random. Fifty people clapping together make a crack that carries across a field, and the same fifty clapping whenever they please make only a patter. The pattern's parts are the crowd in time. They all push the same way, so they pile up to 52 times 0.25, which is 13. The noise parts are the crowd at random. They push in every direction and mostly cancel, in the way that a long run of coin tosses comes out nearly even.

What survives of the noise grows only as the square root of the number of products added together. The square root of a number is the number that gives it back when multiplied by itself. Seven times seven is 49, so the square root of 52 is a little more than 7. The noise therefore ends up roughly 7 times the size of a single one of its products, while the pattern's parts reached the full 52 times.

So the pattern's share has grown 52 times and the noise's share only about 7 times. Make the pattern four times longer and its share grows 208 times, while the noise's share grows only about 14 times. The longer the pattern, the larger its advantage, and that is the reason GPS uses 1,023 steps where this page uses 13.

A note on decibels. The readouts on this page give every comparison twice. The first is in plain words, such as "7.2 times," and the second is in decibels, written dB, which is how engineers usually state it. Decibels count multiplications by ten. Ten decibels means ten times the power, 20 means a hundred times, and 30 means a thousand times. A negative number means smaller, so -10 dB is one tenth, and three decibels is very nearly double. Chapter 11 is devoted to them, and until then the plain figure beside each one says the same thing.

The dashed line is where the receiver makes its decision. A real receiver has no markers to tell it where the pattern is, so all it can do is draw a line across this chart and announce that it has found the pattern wherever the result rises above the line. If the line is set low, bumps of pure noise will cross it and be mistaken for the pattern, and each of those is called a false alarm. If the line is set high, a weak pattern will fall short of it, and that is called a miss.

Every position of the line risks one mistake or the other, and deciding which to risk is the central choice in every detector, from a smoke alarm to a medical test. A smoke alarm set to be very sensitive will go off when you make toast, and one set to stay quiet may sleep through a real fire. Receivers usually settle the matter by measuring the level of the noise and placing the line at a fixed number of times that level, commonly about five. The readout shows what that rule would do here. Drag the line yourself and watch the count of false alarms.

measuring the noise level and picking out the peaks

/* Section 4: measure the floor, set the threshold from it, pick peaks.
   The floor is the typical size of the output where there is no pattern.
   Using the median of |y| keeps the pattern's own spike out of the estimate. */
#include <math.h>
#include <stdlib.h>

static int cmp_float(const void *a, const void *b)
{
    float d = *(const float *)a - *(const float *)b;
    return (d > 0) - (d < 0);
}

float noise_floor(const float *y, int n, float *scratch)
{
    for (int i = 0; i < n; i++) scratch[i] = fabsf(y[i]);
    qsort(scratch, n, sizeof(float), cmp_float);
    return scratch[n / 2] / 0.6745f;     /* median of |gaussian| -> one sigma */
}

/* Returns how many detections were written to hits[]. */
int detect(const float *y, int n, float threshold, int *hits, int max_hits)
{
    int count = 0;
    for (int i = 1; i < n - 1 && count < max_hits; i++) {
        if (y[i] > threshold && y[i] >= y[i - 1] && y[i] > y[i + 1]) {
            hits[count++] = i;           /* a local peak above the line */
        }
    }
    return count;
}

/* in use: */
/*   float floor = noise_floor(y, n, scratch);           */
/*   int found = detect(y, n, 5.0f * floor, hits, 16);   */
/// Typical size of the output where there is no pattern.
/// Median of |y| keeps the pattern's own spike out of the estimate.
fn noise_floor(y: &[f32]) -> f32 {
    let mut a: Vec<f32> = y.iter().map(|v| v.abs()).collect();
    a.sort_by(|p, q| p.partial_cmp(q).unwrap());
    a[a.len() / 2] / 0.6745
}

/// Positions of local peaks above the threshold.
fn detect(y: &[f32], threshold: f32) -> Vec<usize> {
    (1..y.len() - 1)
        .filter(|&i| y[i] > threshold && y[i] >= y[i - 1] && y[i] > y[i + 1])
        .collect()
}

// let hits = detect(&y, 5.0 * noise_floor(&y));
import numpy as np

def noise_floor(y):
    """Typical size of the output where there is no pattern."""
    return np.median(np.abs(y)) / 0.6745    # median of |gaussian| -> one sigma

def detect(y, threshold):
    """Positions of local peaks above the threshold."""
    mid = y[1:-1]
    up = (mid > threshold) & (mid >= y[:-2]) & (mid > y[2:])
    return np.flatnonzero(up) + 1

hits = detect(y, 5.0 * noise_floor(y))

5. How weak is too weak why slow signals travel farther

The opening story said that a signal can be far weaker than the noise and still be found. There has to be a limit somewhere, and this section finds it.

What matters turns out to be energy, and a camera is the easiest way to see why. A camera has a shutter, which is a small door that opens to let light in and then closes again. In dim light, a photograph taken with a quick shutter comes out dark and speckled. Leave the shutter open longer and the same dim scene comes out well, because the camera has had more time to collect light. The scene was exactly as dim as before. What changed was the total amount of light gathered, and that total is the brightness multiplied by the time.

A receiver adding up samples is doing what the open shutter does. What counts is the total energy it collects from each step of the pattern, which is the strength of the signal multiplied by how long each step lasts. So a sender, which radio engineers call a transmitter, has two ways to be heard better. It can send a stronger signal, or it can hold each step for longer and give the receiver more time to collect it. Holding each step longer means sending fewer steps every second, so the price of the second way is speed.

The controls below put this to the test. The buttons set how long each step lasts, and the slider sets the energy in each step, compared with the noise. Notice that the slider holds the energy in each step fixed. When you choose a longer step, that same energy is spread over more samples, so the signal is drawn lower against the same noise. On the chart it looks far worse, and yet the matched filter collects all of it again.

receivedthe same pattern and the same energy per step. longer steps are drawn lower
the total at every position

Now the limit can be found. Press the button below, and for every energy setting and every step length the page hides the pattern a hundred times in fresh noise and counts how often the tallest spike in the result lands on the true position.

how often the pattern is foundenergy in each step, compared with the noise. one line for each step length

Read the chart from right to left. With plenty of energy, every step length finds the pattern every time. As the energy falls, the success rate holds up for a while and then falls away steeply, and all three lines fall away together, nearly on top of one another. That is the lesson of this section. The energy in each step decides the outcome, whatever the length of the step. The long, slow steps looked hopeless on the chart and were found just as often as the short ones, because they carried the same energy, only spread out.

At the bottom of that slope, the spike has sunk to the height of the noise bumps around it. Wherever the dashed line is put, the spike and the bumps land on the same side of it, and at that point the pattern is truly lost.

So a transmitter that is too weak has a way out. It can slow down, putting more energy into each step, and climb back up the slope. Spacecraft do exactly this. Voyager 1, launched in 1977, is now so far away that its radio signal, traveling at the speed of light, takes a full day to reach Earth. It sends its data home at 160 bits per second, where a bit is a single yes or no. A home internet connection is around a million times faster. Voyager can still be heard only because each of its bits lasts long enough for a very large antenna to collect it.

If slowing down always helps, why does anything ever get lost? The answer is that the adding only works while the signal holds still. Think of the camera again. A long exposure collects more light only if the camera is held steady. If it shakes, the light from each point lands in a different place from one moment to the next, and the picture smears where it should have built up. Radio signals shake too. The clocks at the two ends always run at slightly different rates, the path between them changes, and one end may be moving. Past a certain length, the later steps of a pattern arrive shifted against the copy, and they begin to subtract from the total where they should add. The next section shows the most common cause.

6. A moving transmitter the Doppler effect

An ambulance siren sounds higher as it comes toward you and lower as it drives away. The siren itself makes the same sound the whole time. Its own motion squeezes the sound waves together ahead of it and stretches them out behind. Radio waves do the same. If the transmitter and the receiver are moving toward or away from each other, the wave arrives at a slightly different pitch from the one that was sent. For radio, pitch is called frequency, which is the number of crests that arrive each second, and this shift is called the Doppler effect. A GPS satellite moves at nearly four kilometers every second, so for GPS the shift is large enough to matter a great deal.

To see why that hurts, picture two cars waiting at a red light with their turn signals blinking. They start out blinking together. But one blinks a shade faster than the other, and after a while they are exactly opposite, with one on while the other is off. The incoming wave and the receiver's copy are in the same position. They start out together. If their frequencies differ a little, they slide slowly apart, and by the later part of the pattern the wave may be upside down compared with what the copy expects. An upside-down step is a disagreement, and it subtracts from the total.

The slider below sets how far the incoming wave slips against the copy over the length of the pattern. The slip is counted in cycles, where one cycle is one full rise and fall of the wave. At 0.5 the wave has slipped half a cycle by the end of the pattern and is exactly upside down. Drag the slider and watch the lined-up total collapse.

the pattern as it arrivesamber is the copy the receiver is still using
the 52 products at the lined-up position
height of the spike for every amount of slipat half a cycle the spike is gone

The cure is the search trick once more. The amount of slip is unknown to the receiver, so it guesses. It bends its own copy by a guessed amount of slip, runs the whole sliding search, and then moves on to the next guess. Lay all the results side by side and you have a map with two directions, in which position runs across and the guessed slip runs up and down. Somewhere on that map is one bright spot, where both guesses are right at once.

A GPS receiver makes exactly this map for every satellite when it starts up with no idea where it is. Searching the map is most of what a phone is doing in the seconds before it shows you a first position.

the search, as a program

/* Section 6: search a grid of frequency offsets. The receiver keeps I and Q
   samples (xr, xi). For each guessed spin it rotates the template and
   correlates in complex, keeping the magnitude. */
#include <math.h>

#define PRE_LEN 52
#define TWO_PI 6.28318530718f

/* magnitude of the complex correlation at one position, one spin (turns over the pattern) */
float corr_mag(const float *xr, const float *xi, int n, const float *h, int pos, float turns)
{
    int half = PRE_LEN / 2;
    float yr = 0.0f, yi = 0.0f;
    for (int k = 0; k < PRE_LEN; k++) {
        int i = pos + k - half;
        if (i < 0 || i >= n) continue;
        float ph = TWO_PI * turns * k / PRE_LEN;
        float cr = h[k] * cosf(ph), ci = h[k] * sinf(ph);   /* the spun template */
        yr += xr[i] * cr + xi[i] * ci;                       /* complex multiply by conj */
        yi += xi[i] * cr - xr[i] * ci;
    }
    return sqrtf(yr * yr + yi * yi);
}

/* brute-force acquisition: every position, every bin; returns the best of both */
void acquire(const float *xr, const float *xi, int n, const float *h,
             int bins, float max_turns, int *best_pos, float *best_turns)
{
    float best = 0.0f;
    for (int b = 0; b < bins; b++) {
        float turns = -max_turns + 2.0f * max_turns * b / (bins - 1);
        for (int pos = 0; pos < n; pos++) {
            float m = corr_mag(xr, xi, n, h, pos, turns);
            if (m > best) { best = m; *best_pos = pos; *best_turns = turns; }
        }
    }
}
import numpy as np

def acquire(x, h, bins=81, max_turns=2.0):
    """x is complex baseband (I + jQ). Returns (position, turns) of the brightest spot."""
    L = len(h)
    k = np.arange(L)
    best = (0.0, 0, 0.0)
    for turns in np.linspace(-max_turns, max_turns, bins):
        spun = h * np.exp(1j * 2 * np.pi * turns * k / L)   # rotate the template
        y = np.abs(np.correlate(x, spun, mode="same"))       # magnitude: phase unknown
        pos = int(np.argmax(y))
        if y[pos] > best[0]:
            best = (y[pos], pos, turns)
    return best[1], best[2]

Two details are tucked into that program. To tell whether the incoming wave is running fast or slow, the receiver keeps two versions of everything it hears. Each is compared against a reference wave of its own, and the two reference waves are a quarter of a cycle apart. Engineers label the two versions I and Q. The point in its cycle at which the incoming wave began is also unknown to the receiver, so each square of the map shows the size of the total and ignores whether it is positive or negative.

7. When the shape is unknown the running average as an alarm

The matched filter depends on knowing the pattern in advance, and many real problems come without that knowledge. A machine in a factory starts to vibrate in a new way, or a heartbeat skips, or a transmitter turns on in a part of the radio dial that is supposed to be empty. In each case nobody can say ahead of time what the unusual event will look like, so there is no copy to compare against. What you can know is what the signal looks like when everything is ordinary, and that turns out to be enough.

The method was worked out in 1924 by Walter Shewhart, a physicist at Western Electric, the company that built the equipment for the American telephone network. The factory measured its parts constantly, and the measurements always wobbled a little. The engineers needed a way to decide when a wobble meant that something had gone wrong on the production line, and when it was only the ordinary variation that every process has. Adjusting the machines in response to ordinary variation only made the parts worse.

Shewhart's answer fit on a single page. First, work out the average of the recent measurements. Second, work out how far the measurements typically stray from that average, a quantity called the standard deviation. Third, draw one line three standard deviations above the average and another three below. As long as new measurements land between the lines, leave the process alone. When one lands outside them, something has probably changed, because ordinary variation carries a measurement that far only about three times in a thousand.

The gray dots are measurements. The colored line is their running average, and the shaded band reaches three standard deviations to either side of it. Two measurements land outside the band and are flagged.

That is the detection of unusual events in its simplest form, and it is still in daily use a century later. Compare each new value with a running average of its neighbors, and flag the values that sit too many standard deviations away. The number of deviations is the alarm level. Set it at three or four and false alarms are rare. Lower it and you catch smaller events, at the price of more false alarms. It is the same trade you made with the dashed line in section 4.

Why use a running average, when one average over the whole record would be simpler? The reason is that the ordinary level itself drifts. The temperature rises through the day, and the background hiss in a radio receiver changes from hour to hour. An average taken over only the most recent stretch follows that slow drift, so the test keeps asking the right question, which is whether this value is unusual compared with what has been happening lately. The length of that stretch is called the window, and it decides what counts as slow. A short window follows quick changes in the background, so it flags only very sudden events. A long window holds steadier, so it flags slower shifts as well.

Radar engineers arrived at the same method for their own reasons, and their version adds one refinement worth knowing. A radar divides the distance in front of it into a row of cells and measures the strength of the echo in each one. To decide whether a cell holds a target, the receiver averages the strength in the cells on either side of it, and declares a detection if the cell being tested stands well above that local average. The refinement is that the cells immediately next to the one being tested are left out of the average. A strong target spills a little of its echo into its neighbors, and including them would raise the average and hide the target from its own test. Leaving out those guard cells keeps the comparison fair. The technique is called CFAR, for constant false alarm rate, because the alarm level rises and falls with the background and the rate of false alarms stays the same.

the whole trick, as a program

#include <math.h>

/* Flag any sample sitting more than k standard deviations off its local average.
   "window" is how many samples on each side define what is normal here.
   The sample itself is left out of its own estimate, the way CFAR skips a guard cell. */
void find_anomalies(const float *x, int n, int window, float k, unsigned char *flag)
{
    for (int i = 0; i < n; i++) {
        int a = i - window, b = i + window;
        if (a < 0) a = 0;
        if (b >= n) b = n - 1;

        float mean = 0.0f;
        int count = 0;
        for (int j = a; j <= b; j++) { if (j == i) continue; mean += x[j]; count++; }
        mean /= count;

        float var = 0.0f;
        for (int j = a; j <= b; j++) { if (j == i) continue; float d = x[j] - mean; var += d * d; }
        float sd = sqrtf(var / count);

        flag[i] = (fabsf(x[i] - mean) > k * sd) ? 1 : 0;   /* the z-score test */
    }
}
import numpy as np

def find_anomalies(x, window=20, k=4.0):
    """Flag samples more than k local standard deviations from the local mean."""
    x = np.asarray(x, float)
    flag = np.zeros(len(x), bool)
    for i in range(len(x)):
        lo, hi = max(0, i - window), min(len(x), i + window + 1)
        neighbors = np.delete(x[lo:hi], i - lo)      # leave the sample out of its own estimate
        mean, sd = neighbors.mean(), neighbors.std()
        flag[i] = abs(x[i] - mean) > k * sd
    return flag

def ewma_anomalies(x, alpha=0.05, k=4.0):
    """The drift-aware version: an exponentially weighted mean and variance."""
    x = np.asarray(x, float)
    mean, var = x[0], 0.0
    flag = np.zeros(len(x), bool)
    for i, xi in enumerate(x):
        flag[i] = abs(xi - mean) > k * np.sqrt(var + 1e-12)
        d = xi - mean
        mean += alpha * d
        var = (1 - alpha) * (var + alpha * d * d)    # exponentially weighted variance
    return flag

The first function is Shewhart's test with a window on both sides of each sample, and it leaves the sample out of its own average, in the spirit of the guard cell. The second keeps a running average that leans toward the most recent samples, called an exponentially weighted moving average, which follows drift with no window to store at all. Both functions report only that something unusual happened at a certain moment, and working out what it was is a separate job. The wavelet chapters return to this problem with a better tool for one common case, which is an event that comes as a short burst of unknown length, where no single window is the right size.

8. The words and the math enough to go and read anything

Every idea in this chapter has a standard name, and you will need the names to read further. In the formulas, x is the received signal, h is the copy of the pattern, y is the result, n is the position being worked out and k counts along the copy.

correlation        y[n] = sum over k of h[k] * x[n + k]      slide h along x, multiply, add
convolution        y[n] = sum over k of h[k] * x[n - k]      the same, with h turned end for end
matched filter     h is a copy of the pattern you expect
processing gain    adding L samples lifts the pattern above the noise L times in power
                   52 samples: 52 times, or 17 dB
spike over noise   peak / floor, where floor is the typical size of y away from the peak
threshold          call it found when y[n] is above T. T trades false alarms against misses
energy per step    Eb/N0 = (A^2 * samples per step) / (2 * sigma^2)
                   A is the height of the pattern, sigma the typical size of the noise
sample
One measurement of a signal. A receiver takes them at a steady rate, often millions every second.
chip
One step of a pattern, the thing this site has been calling a step. Engineers say chip to keep it apart from a bit, which is one unit of the message itself.
BPSK
Binary phase-shift keying. The standard name for sending a wave either the normal way or flipped over, which this site calls up and down. The civilian GPS signal from the opening story is sent this way.
template, kernel, taps
Three names for the copy that is slid along the signal. Taps is the word used when the copy is thought of as a filter: a 52-tap filter has 52 numbers in it.
lag, offset
How far the copy has been slid. The result is really a list of totals, one for each lag.
sidelobes
The small bumps on either side of the main spike that come from the pattern itself and would be there with no noise at all. A Barker code of thirteen steps has sidelobes of 1 against a spike of 13.
signal-to-noise ratio, SNR
How many times stronger the signal is than the noise, usually given in decibels. This chapter measured it twice, before the adding and after.
false alarm, miss
The two ways a detector can be wrong: announcing a pattern that is absent, and staying silent about one that is present.
CFAR
Constant false alarm rate. Setting the alarm level from a running measurement of the noise, so that the rate of false alarms stays the same as the noise rises and falls.
white noise
Noise that is equally strong at every frequency, with each sample unrelated to the one before it. Receiver hiss is very close to this, and it is the case in which the matched filter is proven to be the best.
Eb/N0
Said "E B over N zero." The energy in one bit, or here one step, divided by the strength of the noise. It is the single number that says how weak a digital signal is, whatever its speed.
coherence time
How long a signal holds steady enough for its products to keep adding, like the longest exposure a hand-held camera can manage. It sets the longest pattern worth using.
Doppler shift
The change in the frequency of a wave caused by motion between the sender and the receiver.
Doppler bin, ambiguity function
One guess at the Doppler shift, and the map of results over every guess of position and shift together. Finding the bright spot on that map is called acquisition.
I and Q
The two versions of a received signal that a receiver keeps, a quarter of a cycle apart, so that it can tell which way a wave is slipping.

For further reading, Richard Lyons's Understanding Digital Signal Processing is the gentlest full textbook, and its chapters on correlation cover everything here in more depth. PySDR, a free online book by Marc Lichtman, teaches the same ideas with Python and real radio hardware, and it is the natural place to go next from this site.