Effect of lithium on ALS.Image from PatientsLikeMe
by George Taniwaki
An interesting story in Tech. Rev. May 2010 describes how a social media site called PatientsLikeMe can be used to quickly run clinical trials at low-cost. PLM is a free site where patients can record their daily health status, find other patients with similar conditions, and share ideas. Knowing that you are not alone and getting support from others like yourself are very powerful forces when dealing with complex and serious medical conditions.
On the flip side, PatientsLikeMe’s operating costs are paid for by healthcare companies that get access to anonymized patient data and permission-based access to the members. Clinicians can recruit volunteers, run clinical trials with them, and compare the outcomes between those that volunteered and those that did not. The results will not meet the standards for a double-blind study, but the ability to compare the attributes of participants and nonparticipants to control for bias is something that is very difficult to do in a typical study. One result reported in 2008 using PatientsLikeMe data showed that generic lithium was not effective at treating amyotrophic lateral sclerosis (ALS). The results appear to refute the conclusions of a study that had been published in Proceed Nat. Acad. Sci. Feb 2008. The PLM data is compelling, but there is a whole list of caveats that need to be considered.
Like most healthcare websites, PatientsLikeMe has a privacy policy. But what makes PatientsLikeMe different, is it has an openness philosophy. Part of it reads,
Currently, most healthcare data is inaccessible due to privacy regulations or proprietary tactics. As a result, research is slowed, and the development of breakthrough treatments takes decades. Patients also can’t get the information they need to make important treatment decisions. But it doesn’t have to be that way. When you and thousands like you share your data, you open up the healthcare system. You learn what’s working for others. You improve your dialogue with your doctors. Best of all, you help bring better treatments to market in record time.
PatientsLikeMe currently has communities devoted to a range of common diseases including ALS, epilepsy, HIV/AIDS, multiple sclerosis, and Parkinson’s disease. It also has communities for several rare diseases I am unfamiliar with, like progressive supranuclear palsy. In March, PatientsLikeMe joined with Novartis to announce a community for organ transplant patients. I just joined the organ transplant community, registering as a community member rather than as a patient (there isn’t an option to join as a live organ donor). There are already 1,429 members in the community. I plan to track the site and will report any interesting findings in future blog posts.
Back when unrelated live kidney donors were news. Image from Seattle Times
by George Taniwaki
By chance, I came across an old news story about a big historical change at the Univ. Washington Medical Center. A story by Warren King in the Seattle Times Mar 1992 (subscription required) reported that the UWMC transplant committee approved a policy to accept living kidney donors who were not genetically related to the recipient. The story points out that Swedish Hospital had allowed two such donations in the past, but doesn’t say if it had a policy or if the surgeries were performed ad hoc. Virginia Mason already had a policy in place to accept donations from spouses, but had never actually used such a donor. UWMC didn’t actually perform its first unrelated live donor transplant until more than two years later, in Oct 1994.
A bit more research uncovers an article (New York Times Jun 1993) that reports in the U.S., only 86 kidneys were transplanted from unrelated donors in 1991 and only 56 in 1988, the first year that statistics were kept. Today about half of live donors are unrelated to the recipient, providing a fifth of the kidneys transplanted in the U.S. or about 3,500 transplants a year (USRDS 2009).
The USRDS annual report also points out that as the proportion of patients with end-stage renal disease (ESRD) receiving transplants from unrelated donors has risen, the proportion receiving transplants from related donors has fallen. This indicates that previously, some patients would not have chosen a related donor initially, but ended up doing so because the hospital would not accept an unrelated donor.
This has implications for the process hospitals use to set ethical standards. One of the reasons hospitals initially refused to let unrelated people become donors is because they feared that such donors were more likely to have been coerced or paid. They ignored that the then current standard meant that related donors might be manipulated and that recipients could be forced to select a donor who although related, they has a less strong emotional attachment to than an unrelated person. This shows that hospitals should base ethical standards on whether a disinterested observer can see if patients are happy with their choices rather than assume a current standard is already ethically acceptable and any new standard has to prove it is better. For another discussion on coercion, see my Feb 2010 blog post.
* * * *
[Update: For more on the rise of unrelated donor transplants, see Jun 2010 blog post.]
Figure 1. Incidence and prevalence rates for ESRD by race. Data from USRDS
by George Taniwaki
The kidney transplant waiting list maintained by the UNOS gets longer every year as does the average waiting time for patients on the list. This is true even though the number of patients diagnosed with end-stage renal disease (ESRD) has declined slightly over the past few years. What is driving this? To examine this problem, I examined the data for annual changes in the number of patients with ESRD and the number on the waiting list.
About the data
The data for annual incidence (number of new cases of ESRD diagnosed in a year) and prevalence (total number of people with ESRD at the end of each year) were obtained from the USRDS 2009 annual report. The report contains a wealth of data on chronic kidney disease and ESRD. It has an entire chapter devoted to transplantation.
The data on the UNOS waiting list data was obtained from the UNOS. Some is available from OPTN annual reports or from the report builder web service. Others were generated specifically for me by UNOS. I want to thank Katarina Linden of UNOS for summarizing the SAS data used in this blog post. Any errors in analysis are mine alone.
A few notes regarding the UNOS data. First, the data being analyzed is for the kidney-only list. Patients are placed on lists based on what organ(s) they need. The UNOS maintains separate lists for each organ combination a patient needs, kidney only, kidney and pancreas, kidney and liver, etc. A single patient can be on more than one list. If the candidate receives a transplant, the transplant center is required to remove the patient from all the other lists as a duplicate entry.
Second, the counts are for registrations not candidates. In any year, about 5% of the kidney-only candidates (patients on the kidney-only waiting list) are registered at more than one transplant center. Most are people who have moved and are transferring their registration to a transplant center closer to their new address. But a few, most likely wealthy patients, are actually registered at multiple transplant centers in an effort to get an organ faster. The most famous example of this is Steve Jobs, who needed a liver transplant and had access to a corporate jet. But anybody who lives in a large city can benefit by getting on the list at a hospital in a more rural area, then traveling to that town and waiting for a donor after they reach the top of the list. Again, after the patient receives a transplant, all transplant centers are required to inform the UNOS that duplicate registrations for that patient should be removed from the list.
Third, there isn’t a direct correlation between the number of people on the UNOS waiting list and the number of people with ESRD (the prevalence rate). Once a patient receives a transplant, they are removed from the waiting list. However, they are not cured and so are still counted as having ESRD. Similarly, there is no direct correlation between the number of people added to the UNOS waiting list in a year and the number of people newly diagnosed with ESRD. That’s because a patient who enters the waiting list may have been diagnosed with ESRD years earlier. Also, they may enter the waiting list if the they previously received a kidney transplant and the organ fails.
Finally, there are two categories to the waiting list. Registrants are classified by the transplant center as either active and inactive. Active registrants are considered medically able to get a transplant immediately if an organ becomes available. Inactive registrants are currently unable to accept a transplant, but are considered good long-term candidates for a transplant. I will discuss this in more detail later.
The UNOS data is collected via a survey that each transplant center must complete for each registrant on their waiting list once a year to determine the registrant’s current status. As any of you who have dealt with survey data realize, cleaning survey response data from respondents (both the candidates and the administrators at the transplant center) who are not familiar with statistical analysis is one of the most difficult tasks in any research project and is a major source of nonsampling error.
Growth in prevalence of ESRD and in size of kidney transplant waiting list
In 2007, the latest year data is available, about 111,000 people in the U.S. were diagnosed with ESRD for an average incidence rate of 361 per million population. Figure 1 (at top of this blog entry) shows the incidence rate of ESRD has been rising dramatically over the past two decades, though it seems to have peaked. Blacks are more than three times likely to be diagnosed as whites. The ratio of prevalence by race is not as high, meaning that once diagnosed, whites tend to live longer with ESRD than blacks.
In 2007, the prevalence of ESRD was about 1,700 per million population, representing over 527,000 people. Of these people, about 150,000 have a functioning transplanted kidney and 375,000 are on dialysis. (The remainder refuse treatment and will die within a few months.) However, as shown in Figure 2, there were only 78,300 registrants (and fewer candidates) on the UNOS transplant waiting list. This means only one-fifth of patients on dialysis were on the UNOS waiting list. As discussed in earlier blog posts (Dec 5 and Dec 18), the reasons people fail to get on the waiting list are complex.
Figure 2.Total active and inactive wait list. Data from UNOS
Figure 3 shows even though the number of transplants is growing (right), the incidence rate of ESRD is growing faster (left), so the wait times for a deceased donor kidney is getting longer (center) and the transplant rate is falling (left). For every 100 people newly diagnosed with ESRD in 2007, there were only four transplants.
Figure 3. Transplant trends. Data from USRDS
Growth in the UNOS waiting list
Figure 4 shows the number of new registrants being added to the active list each year rose from about 17,000 in 1995 to 25,000 in 2004 and has flattened out since then. Unfortunately, the number of transplants, from either deceased or live donors, has not kept pace. The seemingly good news is that the number of registrants removed from the active list without a transplant (which consists of people who decide they no longer want a transplant, are too sick for a transplant, or die) has not been growing. The categories that has been growing (and growing rapidly) are movements to and from the inactive list, with more patients going to the inactive list than coming from it. Notice the size of this churn represents a large proportion (more than one-fourth) of the active waiting list population.
Figure 4. Active wait list. Data from UNOS
Figure 5 shows the rapid growth of the inactive waiting list. First, notice the jump in the number of new inactive registrations starting in 2004. The most common reason for being initially placed on the inactive list is an incomplete evaluation by the transplant center. That is, the patient starts the evaluation process but is unable to complete it before the survey date (perhaps due to difficulty getting transportation to the transplant center). Other reasons for being on the inactive list are the presence of treatable comorbidities such as obesity, addiction (smoking, alcohol, or drugs), hypertension, or type 2 diabetes.
Next, notice the large number of registrants moving to the active list. Many of them are the new registrants who have completed their evaluations and are moved to the active waiting list, but also includes a large number of registrants who started as active and were on the inactive list for a period of time.
Most of the people on the inactive list are removed without a transplant, which makes sense, since they were not considered good transplant candidates. However, when coupled with the large flow of registrants from the active list (equal to about half of the total number of inactive registrants each year), this may also indicate that many transplant centers are moving active candidates to the inactive list rather than removing them entirely. Thus, the inactive list may contain many registrants who are too sick to receive a transplant and have little chance of recovery prior to death.
There are a large number of registrants in the Not coded category. This indicates that people on the inactive list are less likely to be in close contact with their transplant center and either could not be contacted or incorrectly completed the survey.
Figure 5. Inactive wait list, data from UNOS
In a future post, I will continue to explore the USRDS and UNOS data to revisit the issue of long wait times experienced by patients with type O blood.
* * * *
[Update1: Added explanation that the counts of incidence and prevalence cannot be directly compared to the counts on the waiting list.]
[Update2: Corrected an error in proportion of patients with ESRD on the UNOS waiting list. Patients who have a functioning transplant should be excluded from the calculation.]
[Note: This blog post contains two errors. First, Rh factor antigens do not form a heavy coat on solid organs like kidneys. They only do so on red blood cells. Thus, they do not strongly affect tissue compatibility or cause organ rejection.
Second, there are several allotypes of the A-type blood group, called A1 and non-A1. Some patients with Type O have low levels of A antibodies and can accept a kidney from a non-A1 donor. Similarly, some patients with B can accept a kidney from a non-A1B donor.
I will write an updated blog post to replace this one.]
Previous blog posts discussed kidney exchanges and how to improve outcomes by using exact matching and by adding a look-ahead feature. However, there is a fundamental problem with the current composition of traders (kidney patients and their donors) in the exchange that makes it impossible for everyone who enters the exchange to find a partner, no matter how good the software is or how long they wait. There is a solution to this mismatch problem. But first we need to understand why this problem occurs.
Not all pairs enter the exchange
Let’s develop a model of which recipient-donor pairs will enter the exchange and which will not. First we need to define what a match is. We define a match as being blood type compatible and human leukocyte antigen (HLA) compatible. For simplicity, we will ignore HLA compatibility for now. Table 1 below shows the probability that a donor’s kidney will match a recipient. Most of the cells in the table either have a value of 1.00 (shaded green) meaning that donor’s kidney will always match the recipient or 0.00 (unshaded), meaning it never will. The cells in the lower left quadrant with value 0.94 (shaded yellow) indicate the donor’s kidney will usually match, except for a woman who has RhD- blood type and has had a child with RhD+. She will now have antibodies to RhD+ antigens and cannot accept a kidney with RhD+ antigens.
Several assumptions are made in creating this table, as shown in the footnote below the table. As stated above, the most significant is that it ignores HLA sensitivity. About 45 percent of kidney patients have antibodies for foreign HLA. The most common causes are repeated injections of blood-derived EPO as a part of dialysis treatment or from a previous kidney transplant. Women with three or more children with the same father are at higher risk of developing HLA sensitivity as well. HLA sensitivity reduces the chance of a match for the individual and for the recipient population as a whole.
Donor
100.0%
Total
37.4%
35.7%
8.5%
3.4%
6.6%
6.3%
1.5%
0.6%
Total
O+
A+
B+
AB+
O-
A-
B-
AB-
Recipient
37.4%
O+
1.00
0.00
0.00
0.00
1.00
0.00
0.00
0.00
35.7%
A+
1.00
1.00
0.00
0.00
1.00
1.00
0.00
0.00
8.5%
B+
1.00
0.00
1.00
0.00
1.00
0.00
1.00
0.00
3.4%
AB+
1.00
1.00
1.00
1.00
1.00
1.00
1.00
1.00
6.6%
O-
0.94
0.00
0.00
0.00
1.00
0.00
0.00
0.00
6.3%
A-
0.94
0.94
0.00
0.00
1.00
1.00
0.00
0.00
1.5%
B-
0.94
0.00
0.94
0.00
1.00
0.00
1.00
0.00
0.6%
AB-
0.94
0.94
0.94
0.94
1.00
1.00
1.00
1.00
Table 1. Probability of organ match*
*The following simplifying assumptions are made: 1) Blood type distribution is for U.S. only, all races combined; 2) Probability of having end-stage renal disease (ESRD) is independent of blood type; 3) All recipients have AB blood antigen sensitivity to non-matching blood types; 4) Non-match due to HLA sensitivity is ignored; 5) 40% of recipients are adult women who have had at least one child (if mother is RhD- and father is RhD+, then she will be incompatible with an RhD+ donor); 6) Recipient and donor blood types are independent (i.e., donors are not related to recipient, which would make them more likely to match, and donors to adult women with children are not the spouse, which would make them less likely to match); 7) Recipients stay with their first choice donor regardless of match (i.e., if the first choice donor does not match, the recipient does not continue to search for a compatible donor in order to avoid entering the exchange)
Based on the table above, we can calculate the distribution of matched and unmatched pairs. Table 2 below shows that nearly two-thirds of pairs (total percentage in upper left) will match immediately and do not need to enter the exchange. However, it is useful to divide these matches into two groups. Cells shaded green indicate matched pairs that would not benefit an unmatched pair if they were to enter the exchange. Cells shaded yellow indicate matched pairs that could benefit an unmatched pair if they were to enter the exchange and swap with them. Notice the composition of the cells shaded yellow, they are mostly O donors.
Donor
64.4%
Total
37.1%
16.3%
1.2%
0.1%
6.6%
2.9%
0.2%
0.0%
Total
O+
A+
B+
AB+
O-
A-
B-
AB-
Recipient
16.5%
O+
14.0%
0.0%
0.0%
0.0%
2.5%
0.0%
0.0%
0.0%
30.7%
A+
13.4%
12.7%
0.0%
0.0%
2.4%
2.2%
0.0%
0.0%
4.6%
B+
3.2%
0.0%
0.7%
0.0%
0.6%
0.0%
0.1%
0.0%
3.4%
AB+
1.3%
1.2%
0.3%
0.1%
0.2%
0.2%
0.1%
0.0%
2.8%
O-
2.3%
0.0%
0.0%
0.0%
0.4%
0.0%
0.0%
0.0%
5.1%
A-
2.2%
2.1%
0.0%
0.0%
0.4%
0.4%
0.0%
0.0%
0.8%
B-
0.5%
0.0%
0.1%
0.0%
0.1%
0.0%
0.0%
0.0%
0.6%
AB-
0.2%
0.2%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
Table 2. Distribution of matched pairs*
*Based on same assumptions as first table
The remaining pairs are unmatched and need to enter an exchange to have a chance of getting a match. Table 3 below shows the composition of these unmatched pairs. Cells shaded green indicate that all pairs can match another unmatched pair. These are A/B pair to B/A pair swaps or RhD- recipients who can swap for a RhD- donor. Cells shaded yellow indicate that some but not all pairs can match another unmatched pair. Finally cells shaded red will not match another pair in the exchange.
Donor
35.6%
Total
0.3%
19.4%
7.3%
3.3%
0.0%
3.4%
1.3%
0.6%
Total
O+
A+
B+
AB+
O-
A-
B-
AB-
Recipient
20.9%
O+
0.0%
13.4%
3.2%
1.3%
0.0%
2.4%
0.6%
0.2%
5.0%
A+
0.0%
0.0%
3.0%
1.2%
0.0%
0.0%
0.5%
0.2%
3.9%
B+
0.0%
3.0%
0.0%
0.3%
0.0%
0.5%
0.0%
0.1%
0.0%
AB+
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
3.8%
O-
0.1%
2.4%
0.6%
0.2%
0.0%
0.4%
0.1%
0.0%
1.2%
A-
0.1%
0.1%
0.5%
0.2%
0.0%
0.0%
0.1%
0.0%
0.7%
B-
0.0%
0.5%
0.0%
0.1%
0.0%
0.1%
0.0%
0.0%
0.0%
AB-
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
Table 3. Distribution of unmatched pairs*
*Based on same assumptions as first table
Table 4 below shows the distribution of unmatched pairs after the exchange. Cells shaded red contain unmatched pairs. Notice that even after the exchange, over one-fourth of recipient-donor pairs are left without a match. And notice the composition. About 92% of these remaining pairs include a recipient with O blood type. There are only two short-term solutions to resolve this mismatch. One is to encourage more people with O blood type to step forward and become altruistic donors (unfortunately, an unlikely behavioral change and one with ethical issues). The other is to encourage the mirror image matched pairs (yellow cells in Table 2) to enter into the exchange pool to facilitate a swap. (Notice also that donors with type AB blood, like me, also have difficulty finding a match.)
Donor
26.8%
Total
0.1%
15.8%
3.7%
3.3%
0.0%
2.6%
0.6%
0.5%
Total
O+
A+
B+
AB+
O-
A-
B-
AB-
Recipient
20.8%
O+
0.0%
13.4%
3.2%
1.3%
0.0%
2.2%
0.5%
0.2%
1.4%
A+
0.0%
0.0%
0.0%
1.2%
0.0%
0.0%
0.0%
0.2%
0.3%
B+
0.0%
0.0%
0.0%
0.3%
0.0%
0.0%
0.0%
0.0%
0.0%
AB+
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
3.8%
O-
0.1%
2.4%
0.6%
0.2%
0.0%
0.4%
0.1%
0.0%
0.4%
A-
0.0%
0.1%
0.0%
0.2%
0.0%
0.0%
0.0%
0.0%
0.1%
B-
0.0%
0.0%
0.0%
0.1%
0.0%
0.0%
0.0%
0.0%
0.0%
AB-
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
0.0%
Table 4. Distribution of unmatched pairs after exchange*
*Based on same assumptions as first table
The disadvantage that patients with O blood type face in getting a kidney has long been known. UNOS data shows they typically wait 20 months longer than patients with A blood type for a kidney transplant (some with HLA sensitivity wait for over 100 months) and thus are more likely to die while waiting for an organ. Many in the transplant community are advocating a change in the way cadaver organs are allocated to overcome this problem. For instance, see Nephrology Dialysis Transplantation Jan 2010 (subscription required) for proposed changes in Europe. Eventually, the same pressure may come to bear on the issue of who can and who must enter an exchange.
In the next blog post, I will propose a way out of this dilemma. The solution involves making matched pairs want to enter the exchange for their own benefit.
* * * *
[Update: The proportion of kidney patients with antibodies to HLA is 45%, not 20% as originally stated.]
Lives saved over time using simulations. Image from Intl. Joint Conf. on Artif. Intel.
by George Taniwaki
A Mar 2010 blog post explained how kidney exchanges can increase the number of patients who receive a live donor kidney. It also described how computers can find better (in fact, optimal) matches compared to random or arbitrary assignment of matches. This is all good. However, we can do even better. We can add a temporal dimension to the optimization decision.
In the exchange models described in my previous blog, it was implicitly assumed that the exchange would only be run once. However, in the real world, new traders (patients) enter the exchange daily (and unfortunately existing patients may be removed due to death). So the matching algorithm should be run repeatedly, not just once. A couple of questions arise when there are multiple rounds of matching. How should the matching algorithms described earlier be modified to ensure the maximum number of matches over time? And how often should the matching algorithm be run?
If all matches found in a round are allowed to exchange, then the pool of remaining traders will be depleted, leaving only the hardest to match patients. This means any new pair(s) entering the exchange the next round will be unlikely to find a match. If our goal is to maximize the number of matches over time, we may need to hold back some pairs each round in order to seed the next round.
However, we don’t know a priori the blood type and HLA type of the new donors and recipients to the exchange in any future round (that is, the composition of entrants is stochastic). However, we can model them using the historical medical data available on all previous donor/recipient pairs that have entered the exchange. Similarly, the pairs exiting the exchange between rounds is also not known, but it can be modeled based on historical data on the health and age of previous patients and donors who exited the exchanges.
Since the exact composition of traders in the next round is not known, our optimization technique needs to be probabilistic. Any model where the outcome of a given round is a result of a combination of random inputs and user decisions is known as a Markov decision process. There is plenty of previous research into these models that we can build on.
In an article in Intl. Joint Conf. on Artif. Intel. 2009, Tuomas Sandholm, who was one of the developers of the exact matching algorithm described in my previous blog post, and his coauthor tested models by varying three parameters for multi-round exchanges: sample size, look-ahead depth, and batch size.
Sample size is the size of a subset of the current traders in the exchange to be examined. A sample is used rather than the entire pool to reduce computational effort. The smaller the sample size, the faster the match can run, but the less accurate the result. Look-ahead depth is the number of future rounds to look at. As the number of future rounds examined goes up, the number of possible outcomes grows exponentially, as does the computing effort needed to explore them.
Batch size is the number of new pairs entering the exchange before the matching algorithm is run. Ideally, a match could be run every time a new pair enters the exchange. However, this won’t be practical if lots of pairs enter every day, as could happen is a unified national exchange. Further, a larger batch size also increases the chance of a match, just like a larger pool does. So using a larger batch size reduces the need to use look-ahead to estimate matches for future rounds. For the paper, the authors used batch sizes between 10 and 20, which they translated to a matching round every 1 to 2 months.
(Currently, the various kidney exchanges run their matches on a fixed time schedule rather than when a certain batch size is reached. This helps the participating hospitals know when they can expect matching data to be delivered. Although recipient/donor pairs enter and exit the pool at indeterminate intervals, their numbers per fixed time period can be estimated, if necessary, using the Poisson distribution.)
The paper reports results using both real data and generated data. For generated data, it found good results were obtained with sample sizes between 10 and 50 and look-ahead depths between 10 and 20 rounds. As can be seen in the figure below, in the early months, the single round algorithm (called offline-based) makes more matches than the multi-round algorithms (called 1 and 2), as would be expected since the multi-round algorithms withhold some trades. But after about 5 months, the multi-round algorithms catch up. After about three years of simulated matches, the multi-round approaches are way ahead and save about 6.5% more lives (about 13 patients in this study) compared to the single-round method.
Thus, by holding back some matches today, we can improve matches tomorrow, which will save more lives. This is true even though the multi-round algorithm provides an approximate solution, rather than an exact optimum solution that the single-round solution does.
Note that none of the kidney exchanges are currently using this multi-round optimization model. And it is easy to see why. It isn’t ethical to run an experiment on real patients where some will be withheld a chance at a match today in the hope of saving some other patient’s life at some future date. As noted in the prior blog post, the two major kidney exchanges and the UNOS pilot program are all using the exact single round algorithm.
On the other hand, even if we can’t justify multi-round optimization by saying it saves more lives, perhaps we can justify it by saying it shortens the average waiting time for a match. That’s because even though some people in the early rounds have to wait a bit longer for a match, most of the entrants in later rounds have a shorter wait. The paper doesn’t report differences in average wait times, but it would be easy to calculate.
Another way to encourage adoption of the multi-round algorithm would be to run a comparison between the results of the multi-round algorithm and the single round algorithm at each step and find the patients who are left out by the multi-round algorithm. We can give these traders a greater weight in the next round to reduce the chance that they end up waiting more than a few rounds.
In my next blog post, I will discuss the problem of O blood type patients. Then I will propose a way to modify kidney exchanges to help them.
Figure 1. Country fertility rate by life expectancy. Image by George Taniwaki
by George Taniwaki
Time series data are hard to display in a way that shows other relationships. That’s because one generally uses a static 2-dimensional chart. The x-axis is used to display time, leaving only one other axis to show another variable. The display can be greatly enhanced by using animation. Time can flow while the x and y axes can display relationship data or geographic data. This can aid in understanding how relationships vary over time.
Last week, Google announced the release of Google Public Data Explorer. This web-based data visualization tool (because all Google tools are web-based) takes time series data from public sources and provides a way to create animations. Data Explorer allows you to create line charts, bar charts, maps and scatterplots from web data. It has a pretty clear interface to change the axes. For scatterplots you can also change the color and size of the data points.
Google’s animated trend charts are based on technology called Trendalyzer it acquired in 2006 from Gapminder, a nonprofit foundation in Sweden. I mentioned Gapminder in a 2008 blog post that has been accidentally deleted.
Fertility rate by life expectancy
Figure 1 (at top of this blog entry) is an example scatterplot I created using World Bank data for fertility rate by life expectancy worldwide by country. The data covers 1960 to 2007. First note that in 1960, there was a strong correlation between high fertility rate and low life expectancy. Also note the strong correlation between high income and high life expectancy. Many researchers have shown that women are likely to have more children if they fear that some of the children will not grow to adulthood. Note the one outlier among the high income countries that in 1960 had low life expectancy (54 years) and high fertility (5.7). That country is South Korea. If you play the animation, you can see Korea move down and to the right over time.
I’ve marked a few countries that display unusual behavior over time. China is an interesting outlier because in 1960 it was poor with a low life expectancy, but also with a low fertility rate. But if you play the animation, you see that this may have been a statistical anomaly because in 1962, the fertility rate jumps to 7.5. The fertility rate rapidly falls to under 3 as the one-child policy takes effect and continues to fall below the 2.1 replacement level in the 1990s. Rwanda, Timor-Leste, and Cambodia show short, horrifying drops in both life expectancy and fertility during genocide campaigns. Guinea-Bissau shows large fluctuations in fertility rate without a corresponding change in life expectancy. I can’t explain it. The country is very poor and perhaps its health statistics are unreliable, though this is true for many other countries. Lesotho and Zimbabwe are poor countries with high levels of HIV infection and AIDS that are causing both fertility rates and life expectancy to fall. The AIDS epidemic is taking a toll even on wealthier countries like South Africa.
Population by income
Figure 2 shows a scatterplot I created showing population by income in the U.S. by state. I would have liked to have shown income by education, city/rural ratio, or some other correlated variable, but no such variable was available in the dataset. I use log scale for population since there is such a large range in state size. I also use a log range for income because the data is not adjusted for inflation and I want the data range to show the change in income dispersion over time.
Figure 2. State population by income. Image by George Taniwaki
One of the most surprising things about the chart is that over the 40 years the rankings of state incomes doesn’t vary much. In 1969 the poorest state was Mississippi, and all the poorest states were in the southeast census region. If you play the animation, you’ll see some horizontal reordering, but not much. Even fast growing states like Nevada and Arizona don’t change order. They shoot up, but their income ranking doesn’t move much. Same with states with falling populations like Michigan and Ohio. The only exceptions are small states and districts like Hawaii, Alaska, and Washington DC. They zip around like flies. And maybe that explains why the data doesn’t move much. State level data is too coarse and it would be better to see data for the 100 largest cities or some other finer geographic region.
Maps using FlowingData
About a year ago, my friend Steve Duenser pointed me to a couple of nice animations by FlowingData that shows the growth of Target and Wal-Mart. The animations use Modest Maps, a Flash-based mapping tool.
By an odd coincidence, the three biggest discount store chains, Wal-Mart, Target, and Kmart, all started in 1962 which makes a time series comparison of store openings easier. Target is headquartered in Minneapolis and slowly began to expand throughout the U.S., jumping to large metropolitan areas. Wal-Mart grew much more quickly, but was invisible to most people because it concentrated on rural areas near its headquarters in Bentonville. It blanketed the southeastern U.S. before its steady expansion to the rest of the country. The videos showing geographic distribution make the different growth strategies more easy to observe than a tabular list would. It would be even more obvious if the two animations were combined to show overlays.
Figure 3a and 3b. Target vs Wal-Mart. Images from FlowingData
Twitter firehose
Finally, my friend Carol Borthwick pointed out an interesting way of visualizing Twitter feeds across both time and space. An interactive map was shown in The New York Times after the Super Bowl last year. It’s a fun chart and makes you realize that there’s a lot of data on the web that’s just waiting to be mined. Unfortunately, there is no story indicating how the data was collected and organized, what tools were used, or how you can make your own Twitter charts.
Figure 4. Map of Popular Twitter comments in real-time. Image from New York Times
* * * *
[Update: I added a paragraph stating that Google’s animated trend charts are based on technology it acquired from Gapminder.]
Figure 1. Example dataset, sales of three products over seven months. All screenshots by George Taniwaki
by George Taniwaki
Edward Tufte is one of my favorite writers. He’s a specialist in creating information graphics and a proponent of dense data displays. He is the author of several books, most of which I own. In his latest book, Beautiful Evidence, he introduced sparklines, little graphs that can fit in the same line as text. Sparklines are a wonderful way to combine words and graphics to tell a story with statistics.
Here’s an example of how they can help improve your understanding of numeric data. Assume your company has three products called A, B, and C. Here’s a spreadsheet created in Excel 2010 that shows sales for the products over a seven month period along with total sales.
Which product is doing best? Is it Product C with the highest total sales? Or is it Product A, with the highest sales in July? I suppose I could create a graph of the three products, but that would take up a lot of space. Wouldn’t it be nice to create a dashboard that displayed and compared the sales of the three products?
Figure 2. A sparkline of the same data reveals trends
Well, why don’t I create a sparkline? Voilà! Now we can see that sales of Product C are falling rapidly, Product B are flat, and Product A are quite erratic. Pretty nifty, n’est pas? Now I can investigate the reason for these numbers.
Since publication of Tufte’s book, several companies and open source groups have built add-ins for Excel to create sparklines and embed them within a cell of a spreadsheet. In fact, sparklines are so useful that Microsoft decided to implement them in the upcoming version of Excel, as explained in a Jul 2009 MSDN blog post.
I’ve had a chance to play around with this new feature and find it to be quite easy to use. First you select a sparkline type from the Insert ribbon. You select the data range and the destination cell and click OK. This causes the sparkline to be inserted and a Design ribbon to appear on the far right (see below). The ribbon displays quite a few options to make your sparkline pretty. You can group multiple sparklines so that they all have the same min, max, and formatting.
Figure 3. Sparkline ribbon in Excel 2010
I found two annoyances though. First, you only get three choices for chart types, line, column, and win/loss. I wish there were more, especially a scatterplot, since most interesting data is not evenly spaced. Most of the 3rd party sparkline add-ins provide scatterplots, so hopefully Microsoft will add them in the next version of Excel. A good comparison between Excel 2010 and the open source Sparklines for Excel add-in is provided in a recent blog post.
The second annoyance deals with copy-paste. Because sparklines are so compact, it would be nice to be able to embed them in a Word document. However, as you can see in the example below, copying a range of cells containing a sparkline and then pasting it in Word causes the sparklines to disappear. Note that this limitation is due to the way the clipboard works in Office, so will affect all sparklines, not just Microsoft’s implementation.
Figures 4a and 4b. Copying a group of cells containing sparklines in Excel. Resulting paste in Word. Oops. What happend to my sparklines?
Having some software experience, I understand why this happened. But most users won’t and will just be frustrated. The sparklines are not static pictures, they are charts generated from the data in the Excel spreadsheet. Word can’t draw the graphs, so when I paste them, it just ignores them. If I want to retain the sparklines, I need to paste the selection as a graphic. But I don’t really want to paste the entire selection as a picture. I want to paste the cells and the text as an editable Word table and have the three sparklines pasted as 3 separate images inside their respective cells of my table.
Hopefully, the Office team will improve paste fidelity of sparklines in the next version of Office, though my guess it would be somewhat difficult to implement and they may decide it’s not worth the effort.
Tufte’s take on Excel
I wanted to see what Edward Tufte thought of the new sparkline feature in Excel and so visited his blog. It turns out he’s a bit apoplectic and so are his fans. But not about Microsoft adding sparklines to Excel. He’s actually happy about that. Rather, it is because Microsoft filed for a patent covering its implementation. This probably isn’t the place to discuss the validity of software patents. However, I will say it is really easy to get a software patent. All it takes is a few hours of thinking about the best way to solve a computer problem and anyone can file a patent. For instance, check out U.S. patent 7437659 that was implemented in Publisher 2003.
* * * *
[Update1: I clarified my example with screenshots and clarified that the paste problem is not a fault of the sparkline feature.]
[Update2: I just posted a blog entry that talks a bit more about software patents (see Mar 6).]
[Update3: President Obama just named Edward Tufte to the Recovery Independent Advisory Panel. Let’s hope that he can improve transparency and communications in reporting financial matters.]