Standard errors for transformed estimates

Today let's look at a shortcut: how to turn a standard error you already have into one for a completely different quantity, without ever refitting a model.

The curve below belongs to a different problem. A coin is flipped 40 times and lands heads 12 of them. Its peak sits at the estimated chance of heads, and the width of that peak already gives you a standard error for that estimate, read straight off the curve, no separate formula needed.

That standard error belongs to the coin's rate. But suppose the quantity you actually need is not that rate itself, but some function of it, its reciprocal, say, or its square. Today's method, called the delta method, tells you how to carry that same standard error across to the new quantity. It costs you one number: the slope of that function at the estimate.

Why you cannot just start over

A small online store's support desk logs how long the gap is, in minutes, between each of 40 tickets that come in during one shift. Most gaps are short, a minute or two, but a few stretch much longer: the longest, ticket 23, waited 9.99 minutes for the one before it.

Here are all 40 gaps, in the order the tickets arrived.

RInteractive R
# Log the gap, in minutes, between each of 40 consecutive support tickets set.seed(42) gaps <- round(rexp(40, rate = 0.5), 2) gaps #> [1] 0.40 1.32 0.57 0.08 0.95 2.93 0.63 0.82 2.38 1.43 2.69 4.82 0.19 0.11 2.51 #> [16] 0.62 0.95 1.24 2.49 0.74 9.73 1.33 9.99 0.45 2.42 1.44 2.62 0.56 0.46 2.57 #> [31] 1.14 6.04 1.00 0.71 3.51 1.47 0.06 0.70 0.79 3.80

  

Treat those gaps as draws from an exponential distribution, the standard model for a waiting time between events. Its one parameter is a rate, lambda, tickets per minute, and the usual estimate is one over the mean gap. Compute it, together with its standard error.

RInteractive R
# Estimate the ticket arrival rate and its standard error lambda_hat <- 1 / mean(gaps) se_lambda <- lambda_hat / sqrt(40) round(lambda_hat, 4) #> [1] 0.5085 round(se_lambda, 4) #> [1] 0.0804

  

So lambda_hat, the estimated rate, is 0.5085 tickets per minute. Its standard error, se_lambda, is 0.0804: that is how much the rate estimate would typically move if the desk logged a different 40-ticket shift. This se_lambda formula, lambda_hat over the square root of n, is the standard asymptotic formula for an exponential rate, the same kind of plug-in estimate you would get from the curvature of its log-likelihood.

But the rate is not what management actually asked for. What they want is the mean number of minutes between tickets, which is 1 over lambda_hat. That quantity is easy enough to get, just flip the rate over. Its standard error is the problem.

You could, in principle, start over: derive a whole new standard error for the mean wait from scratch, the way se_lambda was derived for the rate. For this particular case that path happens to land somewhere clean, you will check it two steps from now. But for most functions of an estimate, no such clean formula exists, and working out a fresh theory of estimation for every new quantity you might want is not something you can afford to do before lunch.

What you already have is lambda_hat and se_lambda. The question today is how to carry that one standard error across to the mean wait, without doing the work twice.