Figure 1. The growth in maximum base pair count per genome seems to grow exponentially over time. Image from arxiv.org

by George Taniwaki

I recently came across a fascinating article with the novel claim that life is older than the earth. The argument is based on a regression analysis that estimates the rate of increase in the maximum genomic complexity of living organisms over time. (Note, this argument only makes sense if you believe that the universe can be more than 5,000 years old, that genes mutate randomly and at a constant rate, that genetic changes are inherited and accumulate, and that mathematics can be used to explain how things work. Each of those assumptions can be argued separately, but that is beyond the scope of this blog post.)

The article entitled Life Before Earth was posted on arxiv.org in Mar 2013. The authors are Alexei Sharov a staff scientist at the National Institute on Aging and Richard Gordon, a theoretical biologist at the Gulf Specimen Marine Laboratory.

They draw a log-linear plot of the number of base pairs in a selection of terrestrial organisms against the time when the organism first appeared on earth (see Fig 1). For instance, the simplest bacteria, called prokaryotes, have between 500,000 to 6 million base pairs in their genome and are believed to have first appeared on earth about 3.5 billion years ago. At the other extreme, mammals including humans, have between about 2.7 billion to 3.2 billion base pairs in their genome. The fossil record indicates the first mammals appeared about 225 million years ago, during the Triassic period. All other known organisms can be plotted on these axes and the trend appear linear, meaning the growth in genome complexity is nearly exponential.

Extrapolating the data back in time, one can estimate when the maximum complexity was only one base pair. That is, the date when the first protoörganisms formed. The trend line indicates this occurred 9.7 billion years ago, or about 4 billion years after the big bang.

The earth is estimated to be only 4.5 billion years old. Thus, if these results are accepted, the implications are pretty astounding.

1. Life did not start on earth. It started somewhere else in the galaxy and reached the microörganism stage. Through some cosmic explosion, the life was transported here. Alternatively, life started on one of the planets around the star that went supernova before collapsing and forming our present-day sun. This hypothesis is called exogenesis

2. It is unlikely that these alien microörganisms only landed on earth as our solar system formed. They probably coated every asteroid, comet, planet, and moon in our solar system. They may still be alive in many locations and are either evolving or dormant

3. If all of the microörganisms that reached our solar system came from the same source, they likely have the same genetic structure. That is, if we find life elsewhere in our solar system, it is likely to contain right-handed double helix of DNA using the same four left-handed amino acid base pairs as life on earth. With effort, we could construct an evolutionary tree that contains these organisms

4. In fact, the same microörganisms may be very common throughout the galaxy, meaning life has arrived on many other planets, or perhaps every planet in our galaxy, even ones with no star, a hypothesis called panspermia

5. It solves Fermi’s paradox. In 1950, Enrico Fermi noted that our Sun is a young star and that there are billions of stars in our galaxy billions of years older. Why haven’t we already been contacted by intelligent life from other planets? The answer based on this analysis is because intelligent life takes 9.7 billion years to form and we may be one of the first organisms to reach the level of intelligence necessary to achieve intentional interstellar communication and travel. Ironically, if Sharov and Gordon are right, unintentional interstellar travel is already quite common and has been for billions of years.

Relationship to Moore’s Law

If the exponential growth of complexity shown in Figure 1 above looks familiar, it is because it is the same shape as the increase in the number of transistors in microprocessor chips over time, a relationship called Moore’s Law. The authors cite this analogy as a possible argument in favor of their case.

Figure 2. The growth in maximum transistor count per processor has grown exponentially over time. Image from Wikipedia

Is this reasonable?

Like I said, this is a fascinating article. But it is all speculation. We have no direct evidence of many of the claims and inferences made in this paper. Specifically, we don’t know:

  1. The exact size of the genome that various organisms had in the earth’s past
  2. The nature of possible organisms less complex than prokaryotes
  3. The existence of any alien microörganisms or evidence that any landed on early earth
  4. The speed of genetic complexity changes in the early earth environment, or on other planetary environments in the case of the alien microörganisms prior to arrival on earth
  5. Whether any modern earth organisms, or any potential alien microörganisms, could withstand the rigors of travel through space for the millions of years it would take to get to earth from another star system

Finally, we have no clear explanation why the rate of change in genome complexity should be exponential. The use of the Moore’s Law chart to show that exponential growth in complexity is reasonable is slightly disingenuous. Moore’s Law is generally used as a forecast for the future growth in complexity for a commercial product based on historical data. Further, the forecast is used to estimate product demand, research costs, and necessary production investment, all of which tends to drive advancements and make the prediction self-fulfilling.

On the other hand, genome complexity is not directed. Evolution is a random process that will generate greater complexity only if a new, more complex organism can take advantage of an ecological niche that cannot be exploited by simpler organisms. Nothing is driving greater genome complexity.

Anyway, this is a very controversial theory. But I believe it may lead to new insights regarding microbiology, astrobiology, molecular clock hypothesis, and the use of mathematical models in evolutionary biology.

How long is 13.7 billion years?

As a side note, sometimes we wonder, how could something as complex as DNA and cellular organisms have started from nothing? It seems impossible to comprehend. But if you take a look at Figure 1, you will see that it may have taken over six billion years for a single base pair of DNA to grow in complexity to form an organism that we think of as a simple, primitive prokaryote. Then it took another 3.5 billion years before mammals appeared. Then it only took 200 million more years before our human ancestors appeared. And finally only a few hundred thousand years passed before you and I were born.

To give you a feel for how long 13.7 billion years is, watch this extremely boring YouTube video that compresses each billion years into one minute increments.

Figure 3. Age of Universe, boring, even with music. Video still from YouTube

Final thought

A final thought to close this blog post, there may be aliens living on earth, but don’t be afraid, because it’s us.

Ranking 8 cities by total growth. Image from Bloomberg BusinessWeek

by George Taniwaki

The graphic above from Bloomberg BusinessWeek Mar 2013 lists the four metro areas with the greatest economic growth over the five-year period 2007-2011. It also gives their population change during the same period. And it lists the four cities that had both negative population growth and GDP growth during the same period.

This chart is a bit light on data, containing only 16 data points. And the changes to population and GDP are not directly comparable since the population change is reported cumulatively for the four years (total number of years minus one) while GDP is annualized. Let’s calculate the cumulative GDP change as follows:

Total change GDP = (1 + Annual change GDP)^Years – 1.

Also, notice that the data has differing numbers of significant digits. The annualized GDP changes are displayed with two digits. The population changes show one, except for Chicago and Providence which have several. I’m sure this was done to show that the populations of these two cities were falling rather than flat. Let’s get rid of those extra digits.

This chart ranks the best and worst performing metro areas. One could reasonably argue that the metro areas with the greatest absolute GDP growth are the best. (I will argue otherwise shortly.) But should the worst performing areas be defined as the four that had both declining population and declining GDP? For a counterexample, consider a city where the population is growing but GDP is falling. I would say it is actually in worse shape based on the negative value of its per capita GDP growth. In fact, any city where the population is growing faster than GDP (or shrinking slower than GDP) would have negative GDP growth. Perhaps GDP per capita is a better measure of performance than total GDP change.

To address this, let’s calculate the change in GDP per capita as follows:

Change GDP per capita = ((Change in GDP + 1) / (Change in pop. +1)) –1.

The normalized data from the chart is summarized in the table below.


Metro area
Total change in popTotal change in GDPTotal change in GDP per capita
Portland  4%  22%  18%
San Jose  3%  19%  15%
Austin12%  14%     2%
New Orleans16%    8%   -7%
Detroit-4%-19%  -16%
Cleveland-1%  -5%    -4%
Chicago-0%  -2%    -2%
Providence-0%  -1%    -1%
Table 1. Change in GDP per capita for 8 cities

Notice now that New Orleans, despite having very high GDP growth, has large negative per capita GDP growth because its population is growing faster than its GDP. Austin’s performance now looks less impressive too. And while Cleveland, Chicago, and Providence all have negative per capita GDP growth, they are not doing as badly as it first appears.

Even when normalized, the data in the table is still lacking context. It doesn’t give the reader a feel for the big picture. For instance, how many metropolitan areas over 1 million are there in the U.S.?  What is the average population change and GDP change among those cities? Which cities had the greatest change, either positive or negative, in population, GDP, and per capita GDP?

Continuing that analysis, we would want to know if most cities were growing near the average rate or if there is a large dispersion. What is the shape of this dispersion? Are there geographic location, city size, or other factors that correlate with growth? Finally, are there time series trends? To answer these questions we need to go back to the source data and create our own charts.

Creating the metro population and GDP dataset

The footnote to the Bloomberg BusinessWeek chart says the data is from the Bureau of Economic Analysis and the Census Bureau. The BEA GDP data is available from an interactive website. I selected Table = GDP by metro area, Industry = All industry total, Area = All MSAs, Measures = Levels, and Year = 2007 to 2011.

The Census Bureau population estimates for the metropolitan statistical areas (MSAs) are available for download from the Census website. I downloaded the historical decennial data for 2000 to 2009 and the current decennial data that covers 2010 to 2012. I merged the three data sets keyed off of Census Bureau statistical area (CBSA) code.

Note that several of the CBSAs changed in 2010, meaning the code changed too. The most significant is that Los Angeles-Long Beach-Santa Ana, CA (31100) changed to Los Angeles-Long Beach-Anaheim, CA (31080).

In addition to the MSA records, I created two additional records. One contains the total population and GDP for all MSAs and the other for MSAs with population greater than one million.

Since the geographic names of the MSAs are often quite long, I want to find shorter labels that I can use on a scatterplot. I decide to use airport codes. These are short, unique, cover any big city with an airport worldwide, and if you travel a lot, you’ve possibly memorized quite a few, so you don’t need a legend to decode them. I append this to each record.

Finally, I calculate the following descriptive statistics for each MSA and append them to the records:

Change in population = (Pop on Jul 2011 / Pop on Jul 2007) – 1

Change in GDP = (GDP for 2011 / GDP for 2007) – 1

Per capita GDP for year 20xx = GDP for year 20xx / Pop on Jul of year 20xx

Change in GDP per capita = (Per capita GDP for 2011 / GDP per capita for 2007) – 1

Comparing the data I collected with the Bloomberg BusinessWeek data, the ranking for the top four cities match, but the values for population change and GDP change do not. This could be because different data was used (historical population and GDP estimates are revised annually).

The data for the bottom four cities don’t match at all. The data I collected shows only one city that had falling population and GDP during the time period, Detroit. The three other cities showed rising GDP and two showed rising population as well. And despite the falling population and GDP, all four cities showed rising GDP per capita.

The data for those 8 metro areas plus a few outliers are shown below The means for all 51 MSAs with population greater than one million are included for comparison.


Metro area
Total change in popTotal change in GDPTotal change in GDP per capita
Portland  4.5%23.1%17.8%
San Jose  5.0%28.6%12.9%
Austin11.7%18.4%  6.0%
New Orleans  9.4%17.5%  7.4%
Salt Lake City  1.3%14.9%13.4%
Mean  4.2%  6.9%  2.6%
Detroit-3.8%-2.4%  1.4%
Cleveland-1.5%  3.5%  5.0%
Chicago  0.5%  5.4%  4.9%
Providence  0.0%  6.7%  6.6%
Las Vegas  7.0%-5.9%-12.1%
Charlotte36.7%  9.3%-20.1%
Table 2. Total change in GDP per capita for 11 cities

 

Visualization and Analysis

I generated a simple scatterplot of change in GDP against change in population for all 51 MSAs. The cities from the table above are highlighted in green and red. I added a population weighted trend line shown in brown. The trend line passes through the mean (4.2%, 6.9%) and has an y-intercept at 2.6%.

I could have made the chart fancy by adding information using the size, shape and color of the markers. For instance I could change the size of the markers based on the population of the MSA, change the shape of the marker based on whether the city was coastal or inland, and change the color of the marker based on which Census region it was in.

Figure 1. A simple scatterplot showing the top 51 MSAs

The four metro areas with the highest GDP growth are all above the trend line and have high per capita GDP growth. However, the Bloomberg BusinessWeek chart leaves off Salt Lake City which has lower GDP growth but because its population only grew 1.3% during the period, its per capita GDP growth is a very high 13.4%.

The fastest shrinking metro area is Detroit, which matches the Bloomberg BusinessWeek result. Note that its lies above the 45-degree diagonal running through the origin, meaning its GDP decline is less than its population decline and so has positive GDP per capita growth. However, it is still below the trend line, meaning it is growing slower than the average.

The other three metro areas in the Bloomberg BusinessWeek chart, Cleveland, Chicago, and Providence, all show slow or negative population growth, but are all above the trend line. They probably should not be considered bust-towns. The true bust-town in the scatterplot is Las Vegas. It is an outlier with a population growth of 7% but a GDP decline of 6% which results in a 12% drop in GDP per capita.

The final outlier is Charlotte. It shows a population gain of nearly 37% which is more than double of the next fastest growing city. But it has only a 9% increase in GDP leaving it with a 20% drop in GDP per capita. This is a sign that rapid growth can actually be very bad for a city.

Data error and bias

The statement in the paragraph above assumes that the data for change in economic activity and in population at the MSA level developed by two separate organizations for separate reasons is accurate and comparable. Neither of these assumptions is particularly sound. Specifically, there is a big discontinuity in the population estimate for Charlotte between Jul 2009 (the last estimate based on the 2000 census) and Jul 2010 (the first estimate based on the 2010 census) that accounts for most of the population gain. Thus, the annual population estimates may need to be smoothed before calculating the change between years.

I believe the BEA estimate of economic activity for an MSA is based partly on the population estimate for the MSA. Thus, if the population estimate changes (it is revised annually), then the GDP estimate will no longer be valid and will need to be updated.

Finally, you should be careful when combining data from different sources and comparing them. We do it all the time but we have to be conscience of what the consequences are. This is an especially important point since everybody today is rapidly building giant data warehouses and running analytics on data that has never been combined before.

Figure 1. Three ways to achieve 2.6 million page-views per month. Image by George Taniwaki

by George Taniwaki

A common task that webmasters are asked to perform is to get bids for hosting a website. When gathering information to prepare a quote, the vendor will often ask what the peak load (in server requests per second) will be. As a webmaster you may well ask, how the heck do I do that?

Estimating page views per month

Estimating peak server requests per second is a four step process. First, we must estimate page views per month. Next, we estimate average page views per second during the heaviest or prime viewing period. Then we estimate peak page views per second during the prime viewing period. Finally, we estimate peak server requests per second during the prime viewing period.

Average page views per month can be obtained by looking at server logs. If server logs are not available or you are creating a new site, then it can be estimated using logs from similar sites. For this blog post, we will assume the website generates an estimated 2.6 million page views per month. (By comparison, this blog generates about 2,000 page views per month, mostly from bots, I think.)

Estimating average page views per prime viewing second

Assume your website that generates 2.6 million page views per month has traffic that is fairly steady all day and all night on every day. That is, of the 730 hours in a month (= 365 days per year / 12 months per year * 24 hours per day) , all of them will be prime viewing hours. In that case, we can calculate the mean page views per second by doing some simple arithmetic.

page views per second = 2.6 million page views per month / 730 hours per month / 3600 seconds per hour = approx. 1 page view per second

But what if traffic to the website isn’t steady. What if people only visit it during work hours? Well, there are about 168 work hours per month compared to about 730 actual hours per month, a ratio of about 4.3 to1. So during prime viewing hours there will be about 4.3 page views per second and 0 page views per second during non-work hours. (This assumes everyone works the same days and same hours regardless of time zone.)

The prime viewing hours for a website can be even more compressed. Let’s say you run a website for NBC and it has a blog that contains a synopsis of the television show Grimm and an update is posted immediately after each new episode airs. In that case, perhaps all of the page views will occur during a 4 hour period starting at 10:00 pm every Friday. Thus, there will be 16 prime viewing hours per month during which there will be 45 page views per second and 0 page views per second during the rest of the month.

The chart below shows the page view distribution for the three cases described above. This model is quite simplified. It can obviously be made more complex by assuming that the prime viewing hour is dependent on time zone, that page views do not drop to zero during the non-prime viewing hours, and having multiple variables that affect page views during a particular hour.

Let’s look at the distribution of page views in more detail. In the four-hour prime viewing period case we said that there were 0 page views per second before and after the prime viewing period and an average of 45 page views per second during the prime viewing period. If the number of page views is constant throughout the prime viewing period, then the distribution curve is rectangular as shown by the blue line in the chart below.

But it is unlikely that the change in page view rate is so abrupt. It is more likely that page views rise steadily to a peak and then fall. If the distribution is triangular and spread across four hours, then the average page views at the maximum point will be 90 per second (=45*2) as shown by the brown line below. If the distribution is bell shaped, called the normal distribution, then the average peak page views at the maximum point will be somewhere in between as shown by the green line below.

Figure 1. Three ways to achieve 625,000 page views in an evening. Image by George Taniwaki

One caveat, I tried to draw the curves in the chart above so that all three would have similar variance but didn’t actually do the calculations to verify it.

Estimating peak page views per prime viewing second

All of the work above was to find the average number of page views per second during the prime viewing time. However, visitors to the website will arrive randomly. So we can expect that there will be some fluctuation in the number of page views during a second. Some seconds during the prime viewing time will have fewer than the average number of visitors and some seconds will have more. We can model this random arrival of visitors using the Poisson distribution.

Since the arrival of visitors will be random, we cannot estimate the maximum number of visitors the website will ever receive in a second. That number is actually infinite. But we can estimate it for a variety of confidence levels, such as 90%, 99%, and even 99.999% (the so-called five 9s availability level). In this case confidence level indicates the proportion of one second intervals that will be below the peak.

Using Excel’s Poisson distribution function we can estimate the ratio between peak page views per second to average page views per second at various confidence levels. The results are shown in the three tables below. Notice that although the average page views per second can be a fraction, the peak page views per second is always an integer.

Avg. page views per month

Avg. page views per second at max. point*

Peak page view per second at 0.9 confidence level

Ratio of peak to average at max. point

1

0.00000165

0 or 1

0 or 604,800

1,000

0.00165

0 or 1

0 or 605

1,000,000

1.65

3

1.81

2,600,000

4.30

7

1.63

1,000,000,000

1653

1706

1.03

Table 1. Page views per second using Poisson distribution at 0.9 confidence level

Avg. page views per month

Avg. page views per second at max. point*

Peak page view per second at 0.99 confidence level

Ratio of peak to average at max. point

1

0.00000165

0 or 1

0 or 604,800

1,000

0.00165

0 or 1

0 or 605

1,000,000

1.65

5

3.0

2,600,000

4.30

10

2.3

1,000,000,000

1653

1749

1.06

Table 2. Page views per second using Poisson distribution at 0.99 confidence level

Avg. page views per month

Avg. page views per second at max. point*

Peak page view per second at 0.99999 confidence level

Ratio of peak to average at max. point

1

0.00000165

0 or 1

0 or 604,800

1,000

0.00165

1

605

1,000,000

1.65

9

5.4

2,600,000

4.30

16

3.7

1,000,000,000

1653

1830

1.11

Table3. Page views per second using Poisson distribution at 0.99999 confidence level

*Assumes 168 prime viewing hours per month with uniform distribution

Also notice that when the average page views per second is low, the peak page views per second can have two solutions, 0 or 1. These cases occur when the average page views per second is below 1- confidence level. For instance, if all you care is that your web server can handle all the traffic 99% of the time, and your average traffic is less than 0.01 page views per second you don’t need a web server at all! That’s because 99% of the time (during the prime viewing period), there is no traffic to your website.

However, if your goal is to be able to serve 99% of your visitors during the peak viewing time, then you need a web server than can deliver at least one page view per second. And if you provide a web server to deliver one page every 100 seconds, your ratio of peak to average will be 100. Providing a complete web server ready to serve the rare visitor results in tremendous overhead costs, which is why cloud computing, where resources are shared among many websites, is becoming so popular.

Finally, notice that when the average page views per second is high (say 1,000) , then the ratio of peak to average is close to 1 and does not grow very much even at high availability (or confidence) levels. At high levels of average page views, the error in estimating the average number of page views per second is likely to be much greater than the error introduced by ignoring the random distribution of page views per second.

Estimating peak server requests per prime viewing second

Our last step is to estimate the number of server calls generated by a single web page request from a user. A typical web page consists of a static html file plus one or more images, videos, ads, and JavaScript widgets displayed on the page. (In the case of dynamic pages, the content will be generated on the server, usually as a jsp file, or a aspx file if you are using the Microsoft .NET Framework.) If the page is not cached, sending all of the page contents may take over 100 requests to the server.

Assume your website consists of a single page that contains 100 items and all of those items reside on a single server. Now assume a single user calls for that page and you don’t want the user to have to wait more than one second before being able to interact with any part of it. That means the web server will need to be able to handle at least 100 requests per second per page view. (There are other potential bottlenecks in rendering the web page including Internet traffic, ISP speed, and the speed of the client computer, but we’ll ignore these for purposes of this blog post.)

Using the five nines confidence level, the final results for page views and server calls are shown in the table below. For our website with an expected 2.6 million page views per month, we need a web server that can handle 1,600 requests per second.

Avg. page views per month

Avg. server requests per month*

Peak page view per second at 0.99999 confidence level**

Peak server requests per second at 0.99999 confidence level*,**

1

100

1***

100***

1,000

100,000

1

100

1,000,000

100,000,000

9

900

2,600,000

260,000,000

16

1,600

1,000,000,000

100,000,000,000

1830

183,000

Table 4. Server requests per month using Poisson distribution at 0.99999 confidence level

*Assumes 100 server calls per page view
**Assumes 168 prime viewing hours per month with uniform distribution
***Assumes goal is to satisfy 99.999% of visitor requests, not 99.999% of time

* * * *

[Update: If your website is one of many hosted on a single server, then you should skip the calculations for estimating peak page views per prime viewing second. That’s because traffic to your site will be combined with traffic to other sites. In that case, it is up to the company hosting the sites to combine the average traffic from all the sites first, then calculate the peak page views based on their promised availability.]

by George Taniwaki

A Dec 2011 article in The Fiscal Times purports to show that eating at restaurants is cheaper than cooking at home. It’s an intriguing idea that has appeared in many articles in the past. However, the analysis presented in The Fiscal Times article is flawed and the conclusions are not supportable.

Before going into the specifics of the errors in The Fiscal Times article, let’s consider how one could compare whether cooking at home is more expensive than eating at restaurants. The typical cost-benefit analysis for eating in versus dining out goes something like as follows. Cooking a meal at home isn’t free. From a classical economic point of view one should include the opportunity cost of the time needed to buy groceries , drive it home, store it,  prepare a meal, and clean up afterwards. Further, one should include the implicit rental value of the automobile used to transport the groceries and the kitchen and dining room used to prepare and serve the meal.

However, shopping, cooking, and cleaning are not just chores that one is required to do. They are a form of entertainment, social interaction, and a way to share your skills with others as Nathan Myhrvold insightfully states in this Dec 2011 Slate interview. The cook receives utility from hosting a meal, even if it is a regular daily event. Naturally, if one hates to shop, cook, or clean, then there can be disutility as well. When deciding whether to eat at home or dine out, a person will want to maximize the expected utility from the decision.

The Fiscal Times article has two time series charts which I will reproduce below. Some of the problems I found in the first chart:

Examining the wrong factors

The Fiscal Times article briefly mentions some of the above factors, but then totally ignores them when doing the price comparisons. Instead, it mentions differing inflation rates between in-home meals and restaurant meals. Relative inflation rates should be irrelevant to the decision to eat at home or dine out. The author also throws in a few additional factors that also seem to be irrelevant in comparing costs,

“We also didn’t factor in whether one meal or another would be healthier, or friendlier to the environment. But that’s part of the point: Eating right and finding the extra savings that could be had by comparison shopping comes with a time trade-off that many families can’t afford to make these days.”

Hard to interpret charts

The Fiscal Times article has two time series charts which I will reproduce below. Some of the problems I found in the first chart:

  1. For some reason the first chart is labeled Chart 2 and the second is labeled Chart 1.
  2. Chart 2 (the first chart) has two different scales (left scale has a range of 1.4% while the right scale has a range of 0.4%) even though both display values from the same dataset (percent share of consumption). This means the data using the right scale will appear to be more variable
  3. The black arrows both point toward the right scale, though “Grocers” (what’s with the quotation marks?) says it is set to the left hand scale (LHS)
  4. Neither scale shows the 0% origin point or the 100% end point (Note that if the scale did go from 0 to 100%, then there would be no need for two different scales.
  5. Assuming the left scale applies to “Grocers” and the right scale to “Restaurants”, then “Grocers share is always above “Restaurants”. It does not cross as the chart shows
  6. There is no source attribution for the data so no way to judge how valid it is or to review the original data

The second chart (entitled Chart 1) also has several flaws.

  1. The color code has been reversed. Dining out share was shown in the blue line in the first chart, while inflation is shown in gold. Similarly, eat at home share was shown in gold in the first chart, while inflation is in blue
  2. The label for each line has changed. “Restaurants” in the first chart is now called Food away from home while “Grocers” is now Food at home
  3. The use of different labels makes one wonder if the same assumptions, data sets, and cost allocations are used in the two charts and whether the same analysts produced both charts. My guess is no, which means the two charts cannot be used together
  4. As mentioned above, relative inflation rate should not directly impact the consumer’s choice to eat at home or at a restaurant, so this chart isn’t very useful

Nonequivalent price comparisons

The Fiscal Times article includes a slideshow that compares the cost of selected meals at restaurants with the cost of preparing the meal at home. In five out of six cases, the restaurant meal is cheaper.

If you only consider the price of store-bought food to the price of a cooked meal at a restaurant, there is probably no way the prices of food ingredients in a competitively priced retail store could exceed the price in a non-subsidized restaurant. Certain restaurants can serve meals at lower than expected prices because of subsidized food (school lunch programs), volunteer labor (homeless shelters or church meal programs), or subsidized rent (canteen stores or cafeterias in office buildings).

So how did The Fiscal Times get these unlikely results? I think the following errors were made:

  1. The restaurant meal prices are for a single serving while the grocery store prices are for full cans, boxes, or other package. This will provide much more food than the restaurant meal
  2. The grocery store prices are for FreshDirect, a grocery delivery service in New York. Delivery groceries are more expensive than self-serve and NYC is the most expensive city in the U.S.
  3. The restaurant meal prices exclude the tip
  4. The grocery store prices include some prepared deli foods. Grocery store deli food can be more expensive than restaurant food since it is an impulse buy

*An orangery is a British term for a greenhouse. They were mostly used to grow citrus fruit (hence the term orangery). Now most citrus fruit in Great Britain is imported. One of the most famous orangeries is located in the Royal Botanic Gardens in London. It is now used as a restaurant where people dine out, not a greenhouse used to grow oranges that people eat at home.

* * * *

[Update: Expanded the footnote to make clear the irony of an orangery being used as a restaurant.]

[Update2: For a clearer explanation why differing inflation rates should not affect the choice between eating in and going to a restaurant, see this Sep 2013 blog post.]

[Note: This is the third blog post comparing opt-in and opt-out organ donor registration. The series starts here.]

by George Taniwaki

The previous blog post argued that switching from opt-in to opt-out could increase the number of people on the organ donor registry but could actually reduce the number of organs recovered.

That is because an opt-out process creates ambiguity about the intent of those on the organ donor registry. This would make the Uniform Anatomical Gift Act (UAGA) harder to enforce.

One way to avoid this problem is to couple the use of an opt-out-donor registry with increased training of clerks at the DMV to inform each customer that they will be added to the registry unless they opt-out. In addition to training costs, there will be increased labor costs since each customer transaction may be about a minute longer as the clerk explains what the organ donor registry is and sells the benefits of organ transplantation to the customer.

This extra effort to educate the public is needed to get implicit consent from the driver. Unlike presumed consent where the customer is never told that a decision is being made for them, implicit consent creates a true decision. Unlike mandated choice where the customer is forced to make a cognitively complex choice in a short time span, implicit consent relies on framing to make the default option (the one most people will pick) the one that is most beneficial for society.

Using the same hypothetical data presented in the prior blog posts, I have created a table showing the organ recovery rate when combining opt-out with implicit consent. Assume that an opt-out registration system results in 88% of drivers registering to be organ donors (same rate as in table 2 of that blog post). Of these, the OPO is able to get 99% of families to cooperate (same as in table 1). The OPO does not approach the families of patients who were on the opt-out list (same as in table 2). The overall organ recovery rate is 87%, significantly higher than the 81% rate in the opt-in case or the 79% rate for opt-out without implicit consent. This appears to be a big win.

Implicit consent casePatient on organ registry
YesNoRow total
Family agrees to donation Yes87
(99%)
0
(0%)
87
No1
(1%)
12
(100%)
13
Col. total8812100
Table 1. By combining opt-out with implicit consent, 88% of drivers register and 87% of organs are recovered

What impact could the combination of opt-out and implicit consent make in the United States? That is difficult to predict since no state has attempted to implement them together. Legislation was introduced to implement opt-out and presumed consent in New York last year by an assemblyman whose daughter had received two kidney transplants. But the bill never made it out of committee. (See debate in New York Times May 2010.) Similar legislation was introduced in Colorado earlier this year but was withdrawn after public protests and consultation with Donor Alliance, the local OPO.

Why isn’t the combination of opt-out and implicit consent gaining political traction in the U.S.? Most likely it is because the training required to implement implicit consent correctly would be expensive. Even with training, at least one unwilling donor family will probably request an injunction against the OPO. The potential result of this litigation was described in the last blog post. The resulting media coverage and lobbying would likely put pressure on the state legislature to eliminate the opt-out nature of the registry. It could also cause them to revoke the UAGA. This could make it harder for OPOs to recover organs than before the switch to opt-out since they currently can recover organs without consent of the family under opt-in.

Finally, if the driving public feels it is being coerced into becoming donors, it may result in falling donation rates (higher opt-out rates) and reduce trust in the healthcare system. Overall, the combination of opt-out and implicit consent just doesn’t seem like a winning strategy to increase organ recovery rates.

Much thanks to thank Alexandra Glazier, Vice President & General Counsel at The New England Organ Bank, for clearly explaining that adopting an opt-out registration process does not automatically result in adopting presumed consent. Each issue needs to be analyzed separately.

by George Taniwaki

In the previous blog post, I showed how the registration of organ donors using a Boolean variable leads to some drivers to be misclassified. I also showed how requiring drivers to opt-in to the donor registry causes less severe types of misclassifications than opt-out.

Now I will discuss how opt-out can result in uncertainty in the composition of drivers listed in the registry. This uncertainly can impact the behavior of organ procurement coordinators and family members.

Role of certainty in interactions between counselors and family

In states that maintain a donor registry, they share the list of names on the registry with the organ procurement organization (OPO) that is responsible for recovery and distribution of organs for transplant. If a patient dies under conditions that allow the organs to be recovered, an organ recovery coordinator at the OPO will see if the patient’s name is on the organ registry.

Under opt-in, if the patient’s name is on the registry the coordinator can be fairly certain the deceased patient wanted to be a donor (categories 1a and 1b as defined in the previous blog) and can confidently tell the family this and proceed with recovery. Under the Uniform Anatomical Gift Act enacted in most states, a gift by a donor cannot be revoked by the family.

If the patient’s name is not on the registry, the intent of the patient isn’t known. Perhaps the patient wanted to donate (category 3a), didn’t want to donate (2b or 3b), or wanted the family to decide (2a or 4). The coordinator can say the patient’s wishes were not known and politely request the family to make an organ donation on behalf of the deceased patient.

Under opt-out, there are more categories of drivers included in the registry. This reduces the certainty in the composition of the donor registry. This is true even if no drivers are misclassified (i.e., no drivers fall into categories 3a, 3b, or 4), This uncertainty will have an impact on the behavior of the coordinators.

Specifically, if the deceased patient’s name is on the registry, the coordinator cannot be certain the deceased patient wanted to be a donor. She must rely on presumed consent. However, if the family complains that it was not the deceased patient’s intent to be a donor, then the ambiguous nature of the composition of the registry may lead to a delay, which will make recovery impossible. If the OPO pushes the issue, eventually, a court case may resolve the issue, but if the ruling is in favor of the patient’s family, then the entire registry is placed at risk.

Conversely, if the patient’s name is not on the registry, then having the coordinator approach the family to request a donation is also problematic since a donation would require the family to override the wishes of the deceased. If that is allowed, then the wishes of the deceased should be allowed to be overridden if she is on the organ donor registry as well. Again, if the OPO pushes the issue, the organ donor registry is placed at risk.

A hypothetical example of outcomes

Let’s look at some hypothetical numbers to illustrate a possible outcome. In the first table below, the state has an opt-in registration system and has a 64% registration rate. (This is very high, but is achieved in Washington, the state where I live.) The OPO approaches the family of every patient who dies under conditions that allow the organs to be recovered. For patients on the registry it works to enforce the UAGA and gets 99% of families to cooperate in time. For patients not on the registry, it works hard to persuade the family to donate and gets half to cooperate. Overall 81% of organs are recovered.

Opt-in caseDonor on organ registry
YesNoRow total
Family agrees to donation Yes63
(99%)
18
(50%)
81
No1
(1%)
18
(50%)
19
Col. total6436100
Table 1. Under opt-in, 64% of drivers register to be donors and 81% of organs are recovered

Now suppose that the state switches to an opt-out registration system and the registration rate rises to 88%. However, the cooperation rate among families drops from 99% to 90%. Also, the OPO does not approach any of the families of patients who were on the opt-out list. Overall, the organ recovery rate drops to 79%, lower than it was before the switch. Naturally, I set the numbers to make my case, but it illustrates that switching from opt-in to opt-out will not on its own automatically ensure that donation rates will increase.

Opt-out caseDonor on organ registry
YesNoRow total
Family agrees to donation Yes79
(90%)
0
(0%)
79
No9
(10%)
12
(100%)
21
Col. total8812100
Table 2. Under opt-out, 88% of drivers register to be donors but only 79% of organs are recovered

Mandated choice

As mentioned in the previous blog entry, there is another option besides opt-in and opt-out called mandated choice. Under mandated choice, the state wants to eliminate the last categories 3a, 3b, and 4 (driver choice undeclared or driver undecided) that create ambiguity. Thus, the law requires the DMV clerk to ask every driver to declare a choice. (It’s not clear what happens if the driver refuses to make a choice or if the clerk forgets to ask or forgets to record the choice.) Several states have tried it, but have given up and returned to opt-in. Currently, only California is experimenting with it, see Jun 2010 blog post.

Texas, which had about a 15% registration rate with opt-in, increased it to about 20% with mandated choice. Unfortunately, I can’t find any data to show if overall organ recovery rate rose or fell after this change. However, the state has abandoned mandated choice, so my guess is the OPOs in that state either saw a drop in donation rates or feared one would occur and lobbied for the return to opt-in.

How opt-out and mandated choice may reduce donation rates

Why has mandated choice failed, and why could opt-out cause donation rates to fall? I think a lot of it may be because of people’s fear of death. Signing up to be an organ donor while applying for a driver’s license is an admission by the registrant that she may die in an accident and needs to make a decision about the disposition of her organs in the event that happens.

Under the current opt-in process, those who are not afraid of death opt-in. Those who are afraid don’t state their preference. For those who don’t opt-in, the decision to donate is still available later to the family. Under opt-out, people who are willing to donate (or let their family decide) but are not willing to admit they may die will opt-out. This is a firm decision, precluding the family from making the donation later.

In the next blog post we will explore ways to make opt-out compatible with individual choice and consent.

Users of Internet Explorer 6 are getting stoopid. Chart from ApTiquant

by George Taniwaki

Does using Internet Explorer make you stupid? I think not, but maybe smart people are willing to believe any lies about Internet users.

Recently, a Canadian firm called ApTiquant issued a press release saying that it conducted an online IQ test using over 100,000 people. It recorded the results and the web browser used by the participants. They produced a downloadable white paper that contains a couple impressive looking graphs that show people using Internet Explorer 6 had lower than average IQ.

The story was picked up by many media outlets including CNN, Forbes, and others. Some even included an explanation of why this data would be expected. For instance, it could be that Internet Explorer 6 was released in 2001 and so anyone who was still using it would be more likely to be poor and have lower educational attainment.

Another is that many users of Internet Explorer just use the product because it was installed by default when purchasing a computer. Users of other browsers often need to download it, install it, and use it. Only more determined people, who presumably are also of higher intelligence will do this. As they exit the population of Internet Explorer users, they leave behind a pool of less intelligent users.

Finally, certain companies and the government agencies require all employees to use a specific browser, like IE6, to maintain compatibility with line of business websites. This implies workers at organizations that lack IT resources to upgrade internal tools bring down the average.

But alternative views did appear. The BBC quoted Professor David Spiegelhalter of Cambridge University’s Statistical Laboratory, who said: “I believe these figures are implausibly low – and an insult to IE users.”

Eventually, it was revealed that the whole story was a hoax. There is no company called ApTiquant. No IQ tests were performed and the white paper was a fabrication. The ruse was  perpetrated by an online shopping comparison website called AtCheap.com to raise awareness that Internet Explorer 6 was not compliant to web standards and rendered many web pages incorrectly. The company encourages users of IE6 to switch to a more modern browser in order to view more websites in a manner that their creators intended.

(See part 2 of this story here.)