"A 20x20x8 ft room is full of air containing 1000 pollen grains per cubic foot, a HEPA filter runs in the room, stirring the air well. The HEPA filter removes 99.997% of pollen grains that pass through the filter, and moves r=300 cfm of air. How long before the room is down to 1 pollen grain per cubic foot?"

It's a more or less textbook problem for Calculus and/or differential equations classes, but it's worth thinking about how to set it up, and also it's worth knowing, because damn the allergens are serious around here.

Using nonstandard analysis, we'll suppose we have an infinitesimal time in which a volume of air passes through the filter, with the concentration of pollen in the exhaust being and the concentration in the remaining air remaining as . The overall concentration is then . The Change in concentration per unit time is which works out to , or which has solution (differentiate to verify) since .99997 is about 1, let's just say we're looking for or or plugging in our numbers, about 74 minutes for our example room!

So although it only takes 11 minutes or so to move one roomful of air through the filter, because the clean air mixes with the "dirty" it takes 74 minutes to fully scrub the air. Also, the time is proportional to the ratio V/r, so for a fixed size filter, the bigger the room, the longer the time to clean it, scaling linearly. Get a big filter, and run it for a lot longer than you think!

## Measurement on constructed scales... one of the main difficulties in social and medical sciences

I have grass allergies, I finally got the allergy testing panel done and BAM all the grasses lit up like a Christmas tree. So my doctor suggested that I consider sub-lingual grass allergy pills. He recommended that I do a little research on it and then if I decide I want to try them, I make an appt because you have to do the first dose in the Dr office as there's a small risk of anaphalaxis (O(1/1000) or so).

Anyway, then the other day I'm checking the pollen forecast and I find this article which refers to this original JAMA study.

So, after getting the original article and looking at it, it seems that there is a consistent result, allergy symptoms ARE reduced vs placebo, but as the quote in the popular article:

"Consider that the symptom score scale is 18 points," Di Lorenzo said. "So, less than 1 point difference is not clinically significant. This means that the treatment alone is not sufficient to control symptoms."

Well, the truth is, no one knows how "clinically significant" the 1 point difference is, and the reason is that the scale is fully arbitrary. Consider for example if we'd measured how much life-extension a given cancer drug gave. Clearly the dimensions of the measurement is "time" so if I told you "it gave an increase of 1 on a scale of 18" you obviously couldn't tell what the heck was going on. Now, if I said it gave an increase of "1 day" or an increase of "1 year" or an increase of "1 million years!" you'd know what I meant, but the fact that the largest unit you can measure is "18" doesn't tell you anything (for example you can have a clock with a battery that lasts 18 months vs a clock with a battery that last 18 million years).

In essence, we're creating a new dimension for measurement, like distance, time, or mass, "symptomaticity" is a dimension, and the scale is arbitrary. So the only way we can determine what is going on is to compare the results under the sublingual treatment to some meaningful benchmark, and since placebo isn't a treatment, we need it to be some other meaningful treatment. For example, the immunotherapy injections, which apparently none of these studies compared to. It's not surprising, since immunotherapy injections are a big commitment that takes a while to take effect and involves a lot of trips to the doctor and a lot of needle sticks. But without such a comparison, we can't determine the "units" (like "year" or "month" in my example).

Another way to deal with this issue would be to convert to another meaningful scale, so for example, you could give people randomly either placebo or treatment, and then after a while, switch them to the other arm (placebo->treatment, and treatment->placebo) all double-blinded of course, then ask them how much they'd be willing to pay per week to have whatever their preferred treatment was (and which did they prefer). Now you're measuring things in the dimensions of "preferences" as measured in units of dollars, and you can compare the dollar amounts, the dollar is a well defined unit, we have a large number of products that cost various amounts of dollars so we can determine what the preference is "equivalent to" just as we can determine that "3 feet" is "equivalent to the height of a 4 year old" or whatever.

In any case, while the result of this meta-analysis is interesting, it's not by itself enough for anyone to make decisions like "should we bother with using sublingual grass allergy tablets?" since we're ultimately not sure what the scale means.

My wife sent me a link to an article about birth-month vs disease risk. This is a study out of Columbia! too bad they didn't go across campus to talk to Andrew.

Anyway you see things like: "compare[ed]...more than 1600 medical conditions... and found 55 diseases that correlated with specific birth month".

That's 1600 conditions times 12 different possible birth months, a total of 19200 comparisons! And they only found 55 spurious results??? Surely they could have pumped it up a bit more than that!

Note that the author says "we found significant associations". This is probably another one of those cases where significant doesn't mean what you think it means. Statistically significant, at the p=0.05 level or some similar thing, he later says "the risk related to birth month is relatively minor when compared to more influential variables like diet and exercise."

No doubt there are diseases where in your first year exposure to sunlight, or diet differences between seasons, or air pollution, or other affects change your lifetime risk of something or other, maybe allergies, asthma, diabetes, leukemia, whatever. But this study smells pretty fishy and I think I can even see the tacklebox from here....

If you use Kerberos and NFSv4 you can get pretty decent security from NFS, which historically was pretty shaky on the security front. On the other hand, you can also get bitten by bugs. In particular, it seems that Thunderbird and Firefox (Icedove, Iceweasel on Debian) tend to do a lot of sqlite based file access, including a bunch of file locking which can be buggy on NFS. This turns into a big problem when overnight your Kerberos tickets expire because you haven't unlocked your screensaver, or done a kinit in a while. The symptom is log files (on Linux) like the following:

[50184.811684] NFS: v4 server returned a bad sequence-id error on an unconfirmed

sequence ffff88012c9eb420!

Repeated over and over. There are other reasons this can happen, but expired kerberos tickets seem to be one of them. Fortunately, there's a reasonable way to deal with this: crontab.

Every night at 2am or so, you can run "kinit -R" via cron, and it will renew your tickets. This enables you to get through the night without entering your password, or having thunderbird/firefox bork on you. Maybe. It will only work if your renewable lifetime is sufficient, but for anyone who logs into / unlocks their computer at least a couple times a day this should solve the problem of overnight expiration. It might not work so well if you go off on vacation for a week. If you need to keep things running longer, you could crontab this every 9 hours or so.

Google Cloud storage claims "11 nines" of reliability in their storage. The earth is 4 billion years old, and has experienced about 5 mass extinction events. Google believes that if I put a picture of my cat in their cloud storage today, and then wait another 4 billion years, after 5 more mass extinctions, there's a 96% chance I'll still be able to access my cat picture?

Perhaps not.

Suppose for a moment that you are involved in a psychology experiment. A grad student brings you into a room with a table, on which is a bag full of coins, and a small pile of pennies. The student tells you that the pennies were sampled from the bag, there are 6 of them on the table. Using a scale you can determine that the 6 pennies weight 0.5 grams, and that the bag weighs 200 g.

Seeing this set-up you are then asked to write what you can determine about the bag?

What can you write? Well, the answer is "not much". In particular, from the set up, you can write "the bag used to contain at least 6 pennies" and very little else, however, it seems plausible that given this set up, many people would naturally be inclined to extrapolate the money in the bag, saying that there are about 200 * 6/0.5 pennies total in the bag. And, if we extend this example to more realistic situations, such as determining in a lawsuit how much damage occurred in a particular building, the likelihood that the "natural" extrapolation would be employed by a typical participant becomes very high (in my experience). The set up, with a bunch of seemingly precise data in a textbook type example leads you along the garden path towards the "desired answer".

To counteract this, I came up with the bag example, and an explanation about the missing information: *"how were the pennies sampled?"*

That this question is crucial becomes obvious when we consider the following different options:

- Reach into the bag, stir it around, and pinch a bunch of coins, pull them all out and put them on the table.
- Reach into the bag, pull out coins one at a time. If you get anything other than a penny, flip it, and if it comes up heads, throw it back. Pull coins until you get 6 total.
- Reach into the bag, pull out one coin at a time, and throw back anything that isn't a penny. Continue until you get 6 pennies.
- Reach into the bag, pull out the first coin, flip it, if it comes up heads, use protocol (1) above to pull a sample of coins, if it comes up tails, use protocol (2) above...
- ........
*there are an enormous set of possible methods to sample coins*.....

In litigation situations, people with expertise in the *type of damages* often are invoked to look carefully at some set of samples and determine in detail the degree or types of damages involved *in those samples*. Statisticians are very familiar with the scientist who shows up with a pile of detailed expensive data, and in the words of John Tukey "an aching desire for an answer". Unfortunately, detailed data about some totally un-known sampling process produces... totally unknown answers.

I have a fairly extensive SIP based VOIP system. Recently, after buying a FireTV Stick for Christmas, I've been having lots of complaints about "breaking up" when the kids are streaming high def content, like Sesame Street or nature shows about ants or whatever.

I thought this was fairly odd, because I run an OpenWRT router with QOS settings that I THOUGHT would take care of prioritizing my upstream voice (RTP packets).

So, to make a long story short, the standard QOS scripts prioritize TCP SYN and TCP ACK packets, and apparently the way that Netflix works is to every 10 seconds or so, open up a gazillion HTTP requests to grab blocks of video, and these got prioritized highest priority due to the SYN and ACKs or some such thing.

Eliminating this reclassifying behavior makes my voice nice and steady even while streaming.

Andrew Gelman discusses John Cook's post about order-of-magnitude estimates and goes on to state that is a "hopelessly innumerate" estimate of the probability of a decisive vote in a large election.

What I have to say about that is that a probability of a decisive vote in a particular election is very different than the long-run frequency of decisive votes in national elections. I'll venture to say that the long run frequency of decisive votes in elections involving more than 10 million voters will be zero exactly. There will be a finite number of these elections before the end of the human race, and as in the Gore/Bush case, there are too many ways to fiddle with the vote counts for a decisive vote to ever really occur, any election where the vote is down to a few hundred people will be decided by committee, even if that committee is the people deciding which ballots are invalidated. Committees invalidating ballots will always find a way to invalidate enough that the difference isn't down to 1 vote (a prediction, but not unreasonable I think).

But, whether an estimate like is terrible in a given election is down to what our state of knowledge is about that election. Consider the following graph:

This binomial model puts a moderate amount of probability on an exact 1M vote outcome in a 2M vote election if you put exactly p=0.50000... but if you vary from this p by even +- 0.001 the probability plummets to "hopelessly innumerate" levels. But what does this even mean in our case?

In real world situations, we have the following uncertain variables:

- How many votes will be cast.
- How many votes will be allowed, and from which districts.
- What will be the total count of the allowed votes (assume a yes/no vote on a ballot measure for simplicity).

Note that there is no "p" that corresponds to the binomial probability formula. The usual intuition on such formulas is that p is the long run frequency that will be observed in infinitely repeated trials. Such a parameter is meaningful for an algorithmic random number generator, but that interpretation is meaningless for a single election. But a binomial distribution is a reasonable model for counts of yes/no sequence outcomes where we know nothing about which individual sequence we will get except that sequences with more or less counts are more or less likely in a certain sense (in the sense of the parameter p indexing the highest probability count).

So, if we're in a state where we are quite certain that the highest probability count is a little different from 1000000/2000000 it is very reasonable to call out the chance of a given election as , the fact is though, that a prior over the hyperparameter p (the maximum probability count) rarely is strongly peaked around any given value (ie. peaked around 0.5001 +- 0.00005). Much more likely a probability distribution for the "highest probability count" (ie. a prior over p) would be broad at the level of 0.5 +- 0.02...

## Gatekeeper vs Keymaster: the role of statistician / mathematical modeler in science

I think the average researcher views statisticians as a kind of "Gatekeeper" of publication. Do the right incantations, appease the worries about distributional approximations, or robustness of estimators, get the p < 0.05 or you can't publish. In this view, the statistician doesn't add to the researcher's substantive hypothesis, more keeping the researcher from getting into an accident, like a kind of research seat-belt.

The alternative version is what I like to think of as the Keymaster role. A researcher, having a vague substantive hypothesis and an idea of technically how to go about collecting some data that would be relevant, can come to a good statistician, or better yet mathematical-modeler (which encompasses a little more than just applied probability, sampling theory etc) who will help make a vague notion into a fairly precise and quantitative statement about the world. This process will get you thinking about the relationships between your quantities of interest, and identify some substantive but unknown parameters that describe the system you are studying. That model structure will then give you a sense of what data will best inform you about these precise quantities, and then ultimately when the Keymaster analyzes the collected data, he or she can extract the meaningful internal unobserved quantities that you really care about (but didn't know about) originally.

This explains why I think it's a big mistake to go out and collect some data first and then show up and expect a statistican to help you make sense of it.

And, I mean really, who *wouldn't* want to be Rick Moranis??

From G.I. Barenblatt's recently released book: "Flow, Deformation, and Fracture" published by Cambridge, footnote 3, pg 4:

There is nowadays considerable discussion concerning the subject of applied mathematics. In fact, its proper understanding is clarified if we remember the famous saying of J. W. Gibbs: "Mathematics is also a language." If so, then on the one hand pure mathematicians can be identified with linguists, who study the laws of the formation, history, and evolution of languages. On the other hand applied mathematicians, building models of phenomena, are analogous to writers and poets who use language to create novels, poetry, critical essays etc. Applied mathematics is the art of constructing mathematical models of phenomena in nature, engineering, and society

A novelist needs a facility with words, and an understanding of what makes good insight into the human condition to create a great novel. An intense study of the family tree of indonesian and southeast asian ancient languages tracing the evolution of words and writing systems would generally not help. At the same time, indigenous peoples in a rainforest may have intense knowledge of ecological interconnections, but without a facility for written language they will never communicate it to the rest of the world.

On the other hand, Applied Mathematics isn't like say science journalism, in which writers write about what others have done, it's more like perhaps investigative journalism, in which journalists uncover and put together the facts, organize the ideas, and explain them to the world.