Real Numeracy


OPTN/SRTR 2023 annual data report. Cover image from Amer J Transplantation

[This entry was posted on 05 Nov 2026 and is backdated to keep it in chronological order.]

by Frank McCormick 
Subscribe to Frank’s newsletter

The Organ Procurement and Transplantation Network (OPTN) and the Scientific Registry of Transplant Recipients (SRTR) recently published their annual data report, which you can now access here. The report is also available at (Amer J Transplantation, Feb 2025).

Thanks to our friends at the National Kidney Donation Organization (NKDO) for calling our attention to this.

How much cling wrap do you need to cover a melon slice? Photo by George Taniwaki

by George Taniwaki

Sometimes I like to eat a melon slice, cantaloupe or honeydew, for breakfast. I cut the melon in half and then cut one of the halves to get a slice to eat. I wrap the two uneaten pieces in cling wrap before storing them in the refrigerator. Which piece of melon requires the larger piece of cling wrap to fully cover the exposed surface of melon; the full half or the smaller segment? As I continue to make slices, how does the exposed surface area change?

Intuitively, you would guess the larger piece of melon, the full half, uses the most cling wrap and smaller slices use progressively less. But that’s not correct. Assuming the melon has a shape of an ellipse rotated about an axis, and you slice the melon in half radially through an axis, it will have an exposed surface area equal to pi times the major and minor radii (πrArB). As you slice each segment through the same axis, the exposed surface remains the same. Thus, even an infinitely thin slice of melon will have an exposed surface area of πrArB. You are deceived by an optical illusion that leads you to believe the thinner slices have a smaller surface area.

Figure 1. Slicing a melon along an axis

I think I realized there was an optical illusion while eating melon as a teenager in high school. Four decades later, I have two interesting observations. First, despite years of logically knowing every piece of melon requires the same amount of cling wrap to cover, I tear off smaller pieces of cling wrap for the smaller melon slices. Second, even though I tear smaller pieces, I never fail to completely wrap the melon slice. This means I could use a smaller piece of cling wrap to cover the half melon. I’m wasting cling wrap.

Here is what I think is causing this optical illusion. When I wrap the half melon, I automatically tear off a square sheet of cling wrap. This would be the correct amount if the melon was spherical in shape and the diameter was close to the width of the roll of cling wrap. But neither is true. The melon is elliptical, and much smaller than the width of the cling wrap. So I waste cling wrap.

Later when I tear off a sheet for the cut melon, I estimate the amount I need as just over twice the minor radius, or 2rB. However, I am viewing the melon from above and the exposed surface is tilted. , Thus, I underestimate rB. As the segment gets smaller, the angle gets steeper, and tear off smaller pieces of cling wrap. For a really thin slice, I may tear off too small a piece, but that has never happened.

The start of a Sudoku puzzle with 27 cells filled in, leaving 54 remaining cells. The remaining cells show the 190 possible symbols after removing unavailable values from the row, column, and subgrid. To solve the puzzle, we need to remove 190 – 54 = 136 symbols. Image from Washington Post

by George Taniwaki

In August, I became addicted to Sudoku. The puzzle has been around for several years, but I never played it. Naturally, as a data analyst, I could not just play the game for the simple pleasure of solving it. I had to track my completion times and create a model of how my completion times vary. Now that I have analyzed the game, it has ruined my enjoyment and have mostly stopped playing.

My model uses the LINEST() function in DAX to calculate linear regression coefficients and intercept. LINEST() returns a table and I could not figure out how to define a table with Power Query in Excel, so I used Power BI. If anyone knows how to use LINEST() in Excel, please add a comment to this post or DM me.

Explaining the game

For those not familiar with the game, Sudoku consists of a 9×9 grid as shown in the image at top. The grid is subdivided into nine 3×3 subgrids. Each cell in the grid can contain one of nine symbols. For simplicity, we use the numerals 1 through 9. (Thus, Sudoku is a logic game, no arithmetic is required.) Each row, column, and subgrid must contain exactly one instance of every symbol. At the start of the puzzle, some of the cells are already filled in. Your goal is the determine the correct symbols to place in the remaining cells to complete the grid. The puzzle is composed in a way that there is a unique solution. The problem has been proven to be NP-complete.

Defining a cell step and symbol removal substep

For an entirely undefined Sudoku grid, no cell has a distinct value, meaning it can have any of the 9 possible symbols, for a total of 9 x 9 x 9 = 729 possible symbols (Fig 1).

Figure 1. An unfilled Sudoku grid

When we define a distinct value for a cell, for instance “1” in the upper left cell, we will call that a cell step. We can remove the other 8 symbols (2 through 9) from that cell. We also remove the “1” symbol from all the other cells in the row, column, and subgrid. This removes 8 + 8 + 4 = 20 “1” symbols from the grid for a total of 28 (Fig 2). We will call these symbol removal substeps.

Figure 2. Sudoku grid after assigning “1” to the upper left cell and 28 removed symbols shown in yellow strikeout

When the puzzle is complete, all 81 cells will contain exactly 1 symbol, meaning there are 81 cell steps. There will also be only 81 symbols remaining, meaning there are a total of 648 symbol removal substeps needed to complete the puzzle (Fig 3).

Figure 3. Completed Sudoku grid with 648 removed symbols shown in yellow strikeout

As more cells have a distinct value, there are fewer symbol removal substeps at each cell step. There is no way to accurately calculate the number of remaining symbol removal substeps based on the number of remaining cell steps. Based on Figure 3 above, I calculated the number of symbol removal substeps for each cell step assuming that the symbol “1” was added to each cell starting in the subgrid in the upper left and proceeding left to right, top to bottom. The process is repeated with the symbols “2” through “9”. Table 1 shows the first 3 and last 3 rows of the results. The full table is in the Excel workbook SudokuScore.xlsx posted below and used in the model described later.

Steps RemainingSymbol, SubgridOwn cell substepsRow substepsColumn substepsSubgrid  substepsTotal substepsSubsteps Remaining
81––––––648
80“1”, 1888428620
79“1”, 2857222598
……………………
2“9”, 7000000
1“9”, 8000000
0“9”, 9000000
Table 1. Number of symbol removal substeps remaining at end of each cell steps if symbols and subgrids are completed in order shown

Measuring completion time

The dependent variable for the estimation model will be completion time. During my month playing Sudoku, I used the New York Times and the Washington Post daily puzzles and played them on my mobile phone. Both newspaper apps provide a timer that displays the elapsed time. However, the timers do not start at the same point. The New York Times timer starts as soon as you open the puzzle. The Washington Post timer does not start until you remove your first symbol. For easy puzzles, it only takes a second or two before you make your first removal, so this difference is small. However, some hard puzzles open with a bottleneck (defined later) and it may take a few minutes before finding the first removal. Unfortunately, I did not discover the difference between the 2 timers until after I had started collecting data. I had to throw out my New York Times data and start over. All times presented here show elapsed time after removing the first symbol.

Measuring difficulty

Puzzles can be categorized by a level of difficulty. Puzzles are easy to solve when at at the start there is least one cell has only 1 symbol in it and removing the row, column, and subgrid symbols reveals another cell with only 1 symbol in it, allowing you to continue to the next symbol removal substep.

For example, look at the cell in the 3rd row, 9th column in the figure at the top of this blog post. It contains a single symbol, “1”. When you remove the “1”s from the row, the cell in row 3, column 7 now has only a single symbol “6” in it and you can quickly continue with symbol removal substeps.

Steps where the finding the next symbol removal substep requires careful search can be considered bottlenecks. The fewer bottlenecks, the easier the puzzle. None of the Sudoku puzzles in the New York Times or Washington Post have a step where no cells contained only a single symbol and required guessing.

Both the New York Times and the Washington Post have 3 categories of difficulty, labeled 1Easy, 2Medium, and 3Hard. While solving the puzzles, I discovered that the New York Times hard puzzles were harder than the Washington Post’s hard puzzles. I also found very little difference in solving time between the Washington Post’s hard puzzles and medium puzzles. Finally, I found the New York Times easy puzzles were very easy, meaning the New York Times Sudoku puzzles had a bigger difficulty range than the Washington Post’s.

Recording data and defining the model

During the past month, I played Sudoku puzzles and recorded my completion times in hh:mm:ss format (using the Washington Post definition of time). For each puzzle I noted the following parameters, puzzle date (which I then convert to days since I started playing), newspaper source (New York Times or Washington Post), difficulty (easy, medium, hard), player (just me), and number of cells filled at start of puzzle (which I then convert to remaining cell steps). Because it would be tedious, I did not record the number of remaining symbol removal substeps. In the model I use an estimated number of remaining symbol removal substeps using a lookup from the table described above. I did not validate the accuracy of the estimate. The raw data is recorded in the Excel workbook posted earlier.

As mentioned at the top of this blog, my multiple linear regression model transforms the Excel tables using Power Query M code in Power BI and uses the LINEST() function in DAX. My Power Query M code that transforms the raw data to variables used in LINEST() function is shown in the attached txt file and Power BI pbix file. The parameters for the LINEST() function are shown below.

Linest_Sudoku_tbl = LINEST('Sudoku_tbl'[Seconds],
'Sudoku_tbl'[Days],
'Sudoku_tbl'[Steps Remaining],
'Sudoku_tbl'[Substeps Remaining],
'Sudoku_tbl'[S_WaPo],
'Sudoku_tbl'[P_gtaniwaki],
'Sudoku_tbl'[D_1Easy],
'Sudoku_tbl'[D_2Medium],
'Sudoku_tbl'[SD_NYT_1E],
'Sudoku_tbl'[SD_NYT_2M],
'Sudoku_tbl'[SD_NYT_3H],
'Sudoku_tbl'[SD_WaPo_1E],
'Sudoku_tbl'[SD_WaPo_2M])

Results

The first step in modeling is to inspect the data for outliers and biased distribution. I used Power BI to create visuals that showed univariate and bivariate distribution of the independent and dependent variables. My report page (Fig 4) contains filters for Difficulty and Source. New York Times data in shades of maroon and Washington Post data in shades of blue. More difficult puzzle data are in darker shades. Note the 2 scatterplots at the bottom right of the report page use Power BI’s relatively new small multiples feature. Setting the filters or clicking in the charts allows drilling down for more detailed investigation.

Overall the data appears to be well behaved. As I noted above, on average, the New York Times hard puzzles were harder than the Washington Post and the easy puzzles were easier. There was little difference between the Washington Post hard and medium puzzles. My puzzle completion times show a slight decrease over time. I was getting better at it.

Figure 4. Screenshot from Sudoku Power BI report page

Selected statistics from the output of the LINEST() function are shown in Figure 5. The coefficient of determination is 0.72, which is quite high. The residual error is likely due to variations in the number of bottlenecks in a puzzle, a misestimation in the number of remaining symbol removal substeps, and puzzle solving fatigue on my part.

Note that the coefficient for [P_gtaniwaki] is zero as expected since all data was collected with me as the only player. I’m not sure why the slopes for [D_1Easy], [SD_NYT_1E], and [SD_NYT_2M] are zero. It may be because my data contains a high degree of multicolinearity and these 3 variables were not significant.

Figure 5. Selected statistics from LINEST() for Sudoku dataset

Finally, we can compare the forecast based on the LINEST() against the actual data (Fig 6) to see how close the fit with smoothing is.

Figure 6. Comparison of LINEST() forecast to actual data

Example of questionnaire showing new race and ethnicity categories from OMB. Image from Federal Register

by George Taniwaki

For many years, U.S. demographers, market researchers, and federal agencies have been collecting race and ethnicity data by asking respondents 2 questions, one each for race and ethnicity. The definitions and categories were created by the U.S. Office of Management and Budget and last updated in 1997. The race question allows 5 options as shown below.

What is your race? (Select all that apply)

☐ American Indian or Alaska Native
☐ Asian
☐ Black or African American
☐ Native Hawaiian or Other Pacific Islander
☐ White

A separate question was used to collect Spanish cultural ethnicity (Hispanic or Latinos), regardless of race, as shown below.

What is your ethnicity? (Select only one)

☐ Hispanic or Latino
☐ Not Hispanic or Latino

The OMB also allowed agencies to use a combined question with the following 6 options.

What is your race and ethnicity? (Select all that apply)

☐ American Indian or Alaska Native
☐ Asian
☐ Black or African American
☐ Hispanic or Latino
☐ Native Hawaiian or Other Pacific Islander
☐ White

When the combined version of the question is used, the reported response data needed to include the number of people who selected multiple races (without regard to ethnicity) and the number of people who selected Hispanic or Latino (without regard to race).

Notice that the combined version of the question allows the respondent to select Hispanic or Latino and not select any race option, so it may produce lower race counts relative to the 2 question version. Similarly, the respondent may fail to select the Hispanic or Latino ethnicity option after selecting a race and so may produce lower counts relative to the 2 question version.

Today, the OMB announced that it has finalized a new format for collecting race and ethnicity data. The new method uses a single question and has 7 options. It is shown at the top of this blog post and is similar to the combined question shown above, with the addition of a category for Middle Eastern or North African.

I’m not weird, you are. Image from The UNN

by George Taniwaki

The first presidential debate between former president Donald Trump and vice president Kamala Harris aired on ABC network this evening. The two candidates sparred over several hot button issues. Mr. Trump lodged serious accusations against Ms. Harris on her handling of immigration, crime, and medical care for transgender people.

He confabulated all three issues in a way that can be summarized as follows: Ms. Harris was personally responsible for allowing an unprecedented number of undocumented migrants into the United States. Once within our borders, she permitted them to invade the city of Springfield, Ohio. There, they abducted people’s pets and ate them. She then imprisoned the aliens in a secret government jail where experimental gender assignment surgery was performed on them.

I won’t bother to fact check these claims. However, I do have 3 questions for Mr. Trump.

  1. Did these aliens come from other countries, or did they land their spaceships at Area 51?
  2. Did Ms. Harris perform these surgeries herself or did she get help from the “wonderful man”, Dr. Hannibal Lecter?
  3. Did Dr. Lecter eat any of the pets and leftover body parts? Maybe with “some fava beans and a nice chianti.”

Updates and corrections

[Update: The famous line from Silence of the Lambs I quote above contains a medical joke referring to the antidepressant drug monoamine oxidase inhibitors (MAOIs).]

Everyday is somebody’s birthday. Image from wishbirthday.org

by George Taniwaki

I have a Facebook friend whose birthdate was listed as January 1. When I saw this, I thought, “That can’t be true. Nobody is born on January 1.” But later, I realized that isn’t true. People are born on every day of the year. So just how likely is it that my friend’s birthdate in January 1?

Distribution of actual birthdates

If birthdates are distributed evenly, then every day should have the same number of births. Even if births are distributed evenly on all days, not every birthdate will have the same number of births because of leap years. Thus, except February 29, each day has a probability of 1 out of 365.242, or about 0.00274. Having a birthdate on February 29 would have a probability of 0.242 out of 365.242 or about 0.00066.

Birthdates are not randomly distributed, there is some seasonality. More children are born in the summer than in the winter (Wikipedia). Separately, studies show that childhood mortality may be dependent on birthdate. For example, death after preterm birth may be higher for babies born in the summer Epidemiology Sep 2009 and juvenile skin cancer  deaths may be higher for babies born in the spring Brit J. Cancer Oct 2014.

Further, delivery date can be strongly influenced by desire of both the mother and the care giver. For instance, an obstetrician may not want to deliver a baby or make post-delivery rounds on weekends. If so, they may induce labor early in the work week. In the U.S., more babies are born on Monday through Wednesday than on Thursday through Sunday (Wikipedia). This has no effect on day of year distribution though because weekends can fall on any day. However, the desire to avoid non-work day births can affect holiday births. Many holidays are observed on Mondays, which will spread the distribution effect. However, some holidays are still observed on a specific date, including New Year’s Day, U.S. Independence Day, and Christmas. One would expect fewer births on or the days leading up to January 1.

A distribution of birthdates from 480,040 life insurance policy application forms submitted between 1981 to 1994 is available at https://www.panix.com/~murphy/bdata.txt. The counts and probability are plotted in Figure 1 below.

Figure 1. Distribution of birthdates from life insurance policy applications

The dip on February 29 is expected. There is also a dip between December 22 through December 26, likely days that both pregnant patients and caregivers want to avoid spending time in a hospital.

There are 1482 birthdates listed as January 1 (p = 0.00308) which is significantly higher than expected. It is also significantly higher than the number of births on December 31 (0.00281) or January 2 (0.00252). It appears that both pregnant patients and care givers like to delivery babies on New Year’s Day. However, given a choice between a December 31 and January 1 birth, this is poor tax planning strategy (IRS).

Anyway, it isn’t that unlikely that my friend’s birthdate is actually January 1.

Here we assume that the life insurance birthdate data is accurate and truthful. That’s because people do not have much incentive to lie about their birthdate, especially since a false statement on an application can cause the company to reject a claim.

Distribution of stated birthdates

Before we conclude that my friend was born on January 1, there is a second issue. That is, why did I think that my friend’s birthdate is not January 1? Shouldn’t I believe everything people post on Facebook (Independent, Mar 2015, PLOS One Feb 2015)?

My friend’s birthdate may not be January 1 even if they say it is. Perhaps they don’t know when their actual birthdate is (they were adopted and have never seen their birth certificate) and list it as January 1 because it seems like a good default date to use. Maybe they consider their birthdate to be private information and use January 1 as their publicly stated birthdate. Perhaps they think their real birthdate is uninteresting and use January 1 to make it more interesting. Finally, maybe they just like to lie.

Table 1 below shows all the combinations of actual birthdates (rows) and self-reported birthdates (columns).

Table 1. Probability of all combinations of self-reported and actual birthdates involving Jan 1
Figure 2. Legend for Table 1

The cells are color coded. The legend is shown in Figure 2. The yellow cell in the upper left corner is the probability that a person is telling the truth; they say their birthdate is January 1 and it actually is. The green shaded cells represent people who lie. They say their birthdate is January 1, but it is not. The blue shaded cells also represent people who lie. They are born on January 1 but state their birthdate is a different date. The remaining yellow shaded cells and the white cells represent all the other combinations that do nor involve January 1.

The sum of all the probabilities in the first row (yellow shaded and blue shaded cells) will give the probability that the actual birthdate is January 1. The sum for any row gives the probability the actual birthdate is the ith day of the year. We can estimate this probability using the life insurance data listed above.

The sum of all the probabilities in the first column (yellow shaded and green shaded cells) will give the probability that the self-reported birthdate is January 1. The sum for any column gives the probability a person will say their birthdate is the jth day of the year. Facebook has this data for Facebook users, but I was not able to find any reference to it.

Measuring the nonsampling error

To find the probability that my friend is telling the truth, we need to know the ratio of truth telling to lying about birthdate for everyone who claims to be born on January 1. Unfortunately, we cannot estimate it by simply combining the life insurance birthdate data with the Facebook birthdate data. The life insurance dataset and the Facebook dataset each contain 366 values. The probability matrix has 366 x 366 = 133,956 cells. Even if we make some simplifying assumptions about truth-telling vs lying, there are too many degrees of freedom in the matrix to fill it.

Conclusion

We cannot tell if my friend is telling the truth or not and do not know if their birthdate is January 1 or not. So happy birthday!

[Update1: Changed “women” to “patients”]

[Update2: Clarified that some holidays are on Monday and others on a specific date]

Receipts for gasoline from same station, 3 days apart. Photo by George Taniwaki

by George Taniwaki

Check out the two receipts from a local gas station I visited twice this week. The price rose by 10 cents a gallon in the 3 days between visits, or about 2.5%. That would be about 125% on an annual basis.

Of course, I know that is an invalid calculation. The annual rate would be infinite at the moment the price change occurred and drops over time if the price does not change. For more on inflation, see the blog post entitled Is it better to eat in or dine out | Real Numeracy (Sep 2013).

* * * *

Separately, I remember while I was a chemical engineering student in college during the 1970s. Inflation driven by rising oil prices was a big deal. We cheered whenever the price of gasoline rose because it meant our starting salaries would likely increase.

« Previous Page — Next Page »