1/f noise, dimensional analysis, the Hooge relation, and the Hooge parameter

I’m spending more and more time thinking about how classical noise affects quantum information. Doing this, I frequently need the Fourier transform of the correlation function of the classical noise field. If \eta is that field, that Fourier transform is

S_\eta(\omega) = \int_{-\infty}^\infty dt\; \langle \eta(t) \eta(0) \rangle e^{-i\omega t} \;.

When the noise is “1/f noise” and can be plausibly described as coming from the sum of a bunch random variables, it’s empirically found to be described by the Hooge relation

\frac {S_\eta(\omega)}{\eta^2} = 2\pi \frac{\alpha_H} {\omega N}\;.

Here \eta^2 is some characteristic scale—I think \langle \eta(0)^2 \rangle—, N is the number of component random variables, and \alpha_H is a non-dimensional parameter called the Hooge parameter.

This whole setup implicitly assumes the process is stationary, at least roughly—that is, that expectation values are time-translation-invariant. If not, I start getting confused. In that case the Fourier transform S_\eta(\omega) is (maybe) well-defined, but I don’t know how to interpret or use it, and the scale \eta^2 is harder to define: is it \langle \eta(0)^2? \eta(t)^2 for some time? (These are no longer equal, if the process isn’t stationary!) Something else?

This setup is motivated by current noise in wires narrow enough that you can just about see individual charge carriers—let’s say electrons—come through. (This article seems like a reasonable point of entry into that literature.) Roughly, the picture seems to be that any particular electron can take wildly longer or shorter times to get through the wire, depending on how it scatters in the middle, and the current you see at one end or the other is the sum of the currents you see from each carrier as it comes through.

But people talk about Hooge relations in all sorts of contexts. I first heard about it in a talk by Michelle Simmons on “multi-nuclear spin registers”. The details of those registers aren’t germane; the point is just that she was using the Hooge parameter to characterize how bad her 1/f noise was in a fairly different context. I’m sure it also comes up in finance etc., if by a different name. The point of this post is to understand how the Hooge relation & Hooge parameter come about in a fairly abstract way, applicable all over the place.

In fact you can pull the Hooge relation from a fairly simple setup: the 1/f dependence comes from dimensional analysis, and the 1/N scaling from central limiting behavior, assuming that the noise \eta is the sum of N noise variables \eta_j with

\begin{aligned} &\langle \eta_j\rangle > 0 \\, &\langle \eta_j^2 \rangle\ \text{finite} \;. \end{aligned}

Continue reading →

Computing expectation values of multivariate Gaussians is #P-complete, because it reduces to computing a matrix Hafnian

Gaussian probability distributions are fairly well-behaved. If you average larger and larger samples from some distribution with finite moments, the resulting sample means become Gaussian; this is the central limit theorem. Not coincidentally—this is one key step in one proof of the central limit theorem—the third and higher cumulants of a Gaussian are zero. And the first couple of moments are not so hard to compute, even for multivariate Gaussians. So when I started a group of projects around nearly-Gaussian states of bosons, I thought expectation values Gaussian values were safe ground.

Imagine my surprise, then, to find that computing many-point correlation functions of a Gaussian distribution is #P-complete, i.e. harder than NP-complete problems!

Continue reading →

Links & books from March 2023

Links

I’ve been away from HN, my RSS reader, etc. for Lent (except Sundays, of course), so I don’t have so many links.

  • The F-15 Eagle: Origins and Development, 1964-1972: brief (~ 100 pages) 1974 study of the early days of the F-15 project, from Jacob Neufeld (then) of the Office of Air Force History
  • nLab is a category theory wiki. It has pages for a whole bunch of category theory concepts (traced monoidal category, say) with definitions, intuition, and examples. You have to already have a certain level of familiarity with the material for these articles to be helpful, but once you do it’s almost as addicting as TVTropes. I got over that hump this month, and it’s been great fun.
  • Politico, How Biden saved Silicon Valley startups: Inside the 72 hours that transformed U.S. banking. Interesting on the object level, but also interesting on the meta-level for the degree to which it follows a narrative the administration clearly desires. The priamary sources seem to be “four people close to the situation, who were not authorized to speak for attribution”; presumably that means they were authorized to speak not for attribution; presumably the later “adviser to the White House” and “person familiar with [certain] meetings” are among those folks. The two named sources are Rep. Maxine Waters (D-Ca) and Bob Kocher, a “former Obama-era White House official”.

(Selected) books

  • Jack Vance, Big Planet. I happened across this in a Little Free Library. Jack Vance is a reasonably major figure of mid-century SF, best known for his “Dying Earth” series, and I was quite bored, so I thought I’d give the book at try. It turns out to be Not Good, but in a completely different way from Not Good science fiction of the last ten years or so. It was weird and varied in a way I quite enjoyed.
  • Christopher de Bellaigue, The Lion House: roughly, Hilary Mantel for the reign of Suleiman the Magnificent, with a special eye towards his relationship with Venice. The whole thing is in present tense, alternating between third person limited and omniscient; it lives in a curious register, at once informal and distant: short, simple sentences without any particularly marked vocabulary, for the most part, but somehow mannered. This works better than it has any right to: I quite enjoyed myself.
  • Niall Ferguson, Kissinger. I’m maybe a quarter of the way through this, but one amusing anecdote I feel compelled to share:

Attending a soccer match [in Fürth, his old hometown, immediately after WWII] for the first time since Nazi regulations had excluded him from the Spielvereinigung statium, Kissinger was bleakly amused by one home fan’s behavior: “Fürth lost and the referee got beaten up, which was standard practice. The German police couldn’t rescue him, so the American military police came and rescued the referee, and one guy sitting down next to me got up and yelled: ‘So that’s the democracy you guys are bringing us!'”

Ferguson, Kissinger, 176

Entropy III: entropy is a monotone for a resource theory of equilibriation

This is part III of a multi-part post on entropy. The previous parts are

The resource theory of hiking while tired

My last eight or ten month in the LA area, I did a good bit of hiking in the San Gabriel Mountains—Mount Wilson, that sort of thing. Maybe two thirds of the way a hike, my knees would start getting progressively about going downhill. Uphill segments were OK, but downhill segments could be pretty miserable.

In the abstract, the situation was this: I had a broad universe of things I could do—different segments of different trails. These segments were composable, at least under certain constraints (the starting point of the next segment had to line up with the ending point of the current segment.) But only a few of those processes—uphill segments, as opposed to downhill segments—could be implemented without pain. In a situation like this, where many processes are in some sense possible but only a few are feasible, is called a resource theory.

To get an idea of how painful it would be to go from A, where I was, to B, where I wanted to be, all I had to do was look at the altitude. If B was above A, there was a chance: I couldn’t rule out the possibility that the route would require some downhill segments, but at least it was logically possible that the whole thing would be uphill. Whereas if B was below A I was in real trouble: there was no way any series of uphill segments could get me where I wanted to be.

The key property of altitude, from a resource theory point of view, was that it was nondecreasing under easy segments. That’s how I could be so sure that there was no way to get someplace lower than where I was: at some point the altitude had decrease, which couldn’t happen in a feasible segment. A function like this—a function that does not decrease when you do feasible operations—is called a monotone.

This post frames entropy as a monotone of a not-completely-crazy resource theory on probability distributions.

Continue reading →

Entropy, part IIa: the maximum-entropy distribution

This is part IIa of a multi-part post. The previous parts are

As I was writing up part III, I realized I hadn’t shown what the maximum-entropy distribution is. Based on the intuition of part II, you would expect the maximum-entropy distribution on a finite set to be the uniform distribution. This turns out to be correct, but there are some fun tricks in proving it.

The results of this post are

  1. For a finite set X with N elements: the maximum-entropy distribution is the uniform distribution, which has entropy S = \ln N.
  2. For an infinite set, the entropy is unbounded.

If you’re willing to take those as read, and not interested in fun ways to prove these things (Lagrange multipliers and Hölder’s inequality), this post is skippable.

Continue reading →

Entropy, part II: measuring how spread out a distribution is

Why not use cumulants, e.g. variance?

The natural way to quantify the spread of some probability distribution is by its cumulants. Suppose you’ve got a distribution p(x) on some countable set X \subset \mathbb R. The second cumulant of p is better known as the variance; it is

\sigma^2 = \sum_x p(x) (x - \mu)^2

where \mu is the distribution’s mean.

The variance is a pretty reasonable quantity to use to measure a distribution’s spread. As a basic check think about the following two distributions, binomials B(400, 0.5) in blue and B(400, 0.01) in orange:

Orange is much tighter than blue, and sure enough they have two very different variances: blue has variance 100; orange has variance 3.96.

The variance also has various nice properties in common with other cumulants. It doesn’t change when you shift the set X around, because that shifts the mean exactly the same way it shifts the rest of the set, but it does change when you rescale the set: if you blow it up by a factor \lambda, so x \mapsto x' = \lambda x, you have a new distribution p'(x') = p(x'/\lambda) with variance

\begin{aligned} \sigma'^2 &= \sum_{x'} p'(x') (x' - \mu')^2 \\ &= \sum_x p(x) (\lambda x' - \lambda \mu)^2\\ &= \lambda^2 \sigma^2\;.\end{aligned}

But please, consider the following two distributions:

The two distributions, call them p^{(b)}(x_j) (blue) and p^{(g)}(x_j) have the same variance (\sigma^2 = 9), but in some sense the green distribution—entirely concentrated on two points, x = 15,20—is much less spread out than the blue distribution (Incidentally the blue distribution is the binomial B(40,0.5).)

This difference hints at a bigger problem with cumulants. They assume basically a vector space structure on your probability space X—you have to be able to add elements, multiply & divide by scalars (e.g. the number of elements in X), that sort of thing. What if you have categorical data? Suppose I want to know the distribution of training gliders in clubs across the country—whether the distribution is really concentrated on workhorse 2-33s or new ASK-21s, or if it’s spread out across many two-place gliders. How do I take the average of a Grob G103 and a Duo Discus?

Continue reading →

Links from February 2023 (and earlier)

  • Alan Jacobs reviews a delightfully strange 1926 fantasy novel of Helen Mirrlees, Lud-in-the-Mist
  • Alaska Airlines paused operations for ~30 min. after two tail strikes. The problem was ultimately due to a bug in software that recommended engine thrust settings based on weight etc.; the software was using incorrect weights. The real hero here is this guy Bret Payton, the on-duty directory of operations—two tail strikes and he pulled the plug on Alaska’s operations across the country.
  • Puffin bowdlerizes Roald Dahl, via Alan Jacobs. Expurgation is always kind of dumb, of course, but it’s hard for me to get terribly upset. This is part of how culture works and changes: people look at the artifacts of the past that shaped their culture and ask how they need to be changed or adapted or contradicted to suit the mores of the present. Sometimes it’s done well (Budapest’s Memento Park), sometimes it’s done poorly (Bowdler, this) but it’s going to be done.
  • Christ at the Assembly Line: How a year of factory work transformed Simone Weil . Simone Weil was relentlessly incapable of acceding to the world’s view of how things are and should be. It’s so easy to look around and accept the way things are as the natural order of things, as if divinely ordained; people like Weil—and I’ve been fortunate to know one or two in real life—remind us that that apparently natural order is in fact a disorder caused by our sinful nature, and that there’s an alternative. “But we preach Christ crucified, unto the Jews a stumblingblock, and unto the Greeks foolishness; But unto them which are called, both Jews and Greeks, Christ the power of God, and the wisdom of God.”

Entropy, part I: introduction

When Claude Shannon was wondering what to call a new “measure of uncertainty” he had come up with, John von Neumann advised him

You should call it entropy, for two reasons: In the first place your uncertainty function has been used in statistical mechanics under that name, so it already has a name. In the second place, and more important, nobody knows what entropy really is, so in a debate you will always have the advantage.

“History of entropy” (Wikipedia), citing M. Tribus, E.C. McIrvine, “Energy and information”, Scientific American, 224 (September 1971).

In the 85ish years sense von Neumann gave this advice to Shannon, though, we’ve gotten quite a lot of purchase on this notion of “entropy”. In large part this is due to Shannon’s own work! Now we view entropy in statistical mechanics, and indeed thermodynamics, as a special case of the Shannon entropy of a probability distribution, and generalizations to quantum mechanical systems sit at the base of quantum statistical mechanics and quantum information theory.

The Shannon entropy of a discrete probability distribution p_x on a set X is

S = - \sum_{x \in X} p_x \ln p_x

Since 0 \le p_x \le 1, S is never negative. A couple of simple examples are in order:

  1. The uniform distribution on a 16-element set has entropy

    S = - 16 \times \left(\frac 1 {16}\right) \ln \frac 1 {16} = 4 \ln 2\;.

  2. A distribution

    p_x = \begin{cases} 1 & \text{some particular } x \\ 0 & \text{all other }x \end{cases}

    has entropy 0. (For p_x = 0, the quantity p_x \ln p_x is understood as the limit \lim_{\epsilon \to 0} \epsilon \ln \epsilon = 0. )

This series of posts aims to motivate the Shannon entropy. Why should we care about this strange quantity? Along the way I plan to introduce a number of other interesting notions, like resource theories and monotones.

I’m not 100% sure where I’m going with this: so far I have one post outlined, a pretty clear idea for second (but some mathematical work to do), and a hazy idea for the third. As I write I’ll update this post with a ToC.

ETA:

What does it mean for there to be “excess liquidity sloshing around the financial system”?

In the recent Odd Lots AMA episode, financial journalist Tracy Alloway said

…I coined the term ‘ China’s Great Ball of Money.’ This idea that you just have a bunch of  extra money that’s in a closed financial system and it’s just rolling from thing to thing. So it’ll go into housing and then it’ll go into stocks and then it’ll move back somewhere else. But if you expand that, you know, China’s an extreme example of that, but if you expand that to the whole world, I don’t think it’s a massive stretch to say that there is a lot of excess liquidity sloshing around the financial system and it needs to find a home somewhere.

This is one instantiation of an idea that was omnipresent in 2021-2022—that much of the weirdness in financial markets, from GameStop to crypto to stock market volatitlity, was driven by an excess of liquidity. This idea made a certain amount of inarticulable, pre-intuitive sense, but that sensibility does not a gears-level understanding make.

What are we going to do with this pre-intuition? The same thing we do with every pre-intuition: try to build a toy model! Imagine a market in a single asset, a claim on a fixed future cash flow. New claims can always be created for some fixed price; existing claims trade at some variable discount to that price. Claims are bought and sold by savers, who want to get some rate of return on their investment greater than their discount rate. Basically if the price is bigger than the net present value of the claim, savers are going to be unhappy.

Continue reading →

Some intuition for time preferences and net present value

$100 is worth more to me now than it will be eight years from now, and more eight years from now than it will be 16 years from now. This is a called a time preference.

Time preference is not, or not just, an irrational, grasshopper-vs-ant prioritization of present over future—rather, it’s a response to costs. The obvious cost is inflation: $100 will buy more groceries, gas, etc. now than later. But time preference is also a response to opportunity cost. If I wait 8 years to buy a glider, I lose out on the enjoyment of assembling, disassembling, maintaining, and every once in a while flying the glider between now and then, and if I wait eight years to buy a bond, I miss out on collecting eight years of interest.

How much, then, is an ongoing cash flow c/year (e.g. interest on the bond) worth? Estimate the value of an amount of money C at time t from now by

Ce^{-t/\tau}\;.

This is called exponential discounting. Then the value now of the ongoing cash flow is

\int_0^\infty dt\; c e^{-t/\tau} = c\tau\;:

if the ongoing return is $100 / year and I have a discount time of 5 years, I’ll be willing to pay $500 for the ongoing return. This is roughly the net present value of the ongoing cash flow.

Humans don’t seem to follow exponential discounting. Instead they seem to follow hyperbolic discounting: the value of C at time t from now is

\frac C {1 + t/\tau}\;.

(I haven’t looked into the studies linked on that wikipedia page, so I’m not sure how seriously to take them.)

Hyperbolic discounting has the curious implication that the value of an ongoing cash flow is logarithmically divergent:

\int_0^\Lambda dt\; \frac c {1 + t/\tau} = c\tau \ln (1 + \Lambda / \tau)\;.

That \Lambda is an IR cutoff: an artificial upper limit imposed so you can see how something diverges as you go to long timescales (or lengthscales). Normally you hope that the IR cutoff doesn’t matter, viz., that it’s a small correction that can be ignored—this means that only effects you really care about happen in the short-time limit. Had we introduced an IR cutoff in the exponential discounting calculation, for example, we would have gotten a correction \propto e^{-\Lambda / \tau} \ll 1.

In the hyperbolic discounting case the value diverges as \Lambda \to \infty. This tells us that the long-time behavior (e.g. when the cash flow stops, or when we quit caring) has a large influence on the value now of the cash flow. I’m not sure how to think about this!