### Marriage Problems in Math

March 4, 2011 There's a cute teen/tween television series on Nickelodeon called iCarly. Surprisingly, no vampires are involved. I mentioned iCarly in a previous article about base-11 numbers (The Number Dirf, November 23, 2010). In one episode of the show, "iDream of Dance,"[1] the three tween protagonists announced a video contest on their web site and got a huge response. As a result, they needed to screen three thousand video clips, a task they decided to do as six nights of five hundred videos a night. A little mathematical magic, as I'll reveal below, shows that they might have reduced their workload by a significant percentage. There are at least two math problems known as "marriage" problems. One is called the "stable marriage problem," which I'll review later. The other is simply "the marriage problem," although it's known by other names, such as the "fussy suitor problem" and the "secretary problem." The problem is an optimal stopping problem, sort of like a law of diminishing returns when selecting from a group. The goal is a process that will likely result in your choosing the best candidate without interviewing everyone. The problem is simply stated.[2]• There is a single position to fill. You're looking for either a secretary to hire, or a wife.The solution to this problem is often called the 37% rule because the optimum strategy is to decide that you have enough information to make a wise choice after interviewing

• There's a known number of applicants for the position.

• It's possible to rank the applicants from best to worst, with no ties.

• You interview the applicants sequentially in a random order.

• After each interview, you can accept or reject the candidate.

• Your decision can be based only on the relative ranks of the applicants that you've interviewed to that point.

• When you reject an applicant, that applicant can't be recalled.

• When you accept an applicant, the remaining interviews are canceled.

• You want to select the best applicant.

**1/e**people, where

**e**is the base of natural logarithms. Since

**e**= 2.71828..., then

**1/e**is 0.367879..., and we get about 37%. If we interview 37% of the candidates, and then choose the next candidate better than any one of these, we have a good chance of having made the best choice. Even if we somehow don't get the very best, we're not that far wrong. One caveat, however, is that we're sometimes forced to choose the last person on the interview list, no matter what her qualifications. It's very easy to write a program to analyze this problem, so I did. You can view the C source code, here.

*The probability of selection as a function of candidate suitability for the marriage problem using the 1/e cutoff rule. Graphics via Gnumeric.*

So, how good is our choice when we decide to use the

**1/e**rule? The graph above, which uses data from my analysis program, tells the story. The program did ten thousand trials of interviews of a hundred candidates for various cutoffs, including

**1/e**. If we use the

**1/e**cutoff, then we're about 37% likely to find the best candidate. Even if we don't find the very best, our odds of finding a very good candidate are quite high, as the following table shows. There's about a 63% chance that you'll get someone in the top 5%.

Rank | Likelihood (%) |

1 | 37.10 |

2 | 13.63 |

4 | 6.46 |

4 | 3.38 |

5 | 1.96 |

6 | 1.17 |

7 | 0.85 |

8 | 0.55 |

9 | 0.43 |

**1/e**rule, for which the probability of selecting the best candidate stays about the same.

*The probability of selecting the best candidate as a function of cutoff for the marriage problem. There a wide range around the 1/e cutoff where the probability is essentially the same. Graphics via Gnumeric.*

The other mathematical marriage problem is the stable marriage problem. This problem is more complicated than the marriage problem analyzed above. Essentially, you have a group of men and a group of women of equal number, and the individuals of each group rank the suitability of all individuals of the other group (Sorry, no "civil unions" are considered here). The optimization problem in this case is to match men and women such that there's no man and woman who would rather have each other than their current partner. It might be worthwhile to reread that last sentence. It doesn't mean that every man gets the woman of his dreams, and vice-versa. It just means that any lusting is unrequited. It's been proven that such a matching is always possible, and there's a simple algorithm to do the matching. I didn't write a C implementation; but, as the textbook authors say, "The exercise is left to the reader." It's not surprising that there's a related problem, the "stable roommates problem," that's more useful. In this case, all participants are in the same pool. Unfortunately, the stable roommates problem may not always have a solution, so it's probably still better to marry than to just live together.

### References:

- iCarly Television Series, Season 1, Show 3, "iDream of Dance," Adam Weissman, Director, Dan Schneider, Writer, September 16, 2007.
- Tom Ferguson, "Who Solved the Secretary Problem?" Statistical Science, vol. 4, no. 3, pp. 282-296.

*Permanent Link to this article*

Linked Keywords: Teen; tween; Nickelodeon; iCarly; vampires; dirf; base-11 numbers; stable marriage problem; the marriage problem; optimal stopping problem; diminishing returns; strategy; the base of natural logarithms; Gnumeric; stable marriage problem; civil union; optimization; unrequited love; algorithm; stable roommates problem; iDream of Dance.

### Google Search

Free Downloads:

STEM artwork

for your holiday gifts

Latest Books by Dev Gualtieri

Thanks to Cory Doctorow of BoingBoing for his favorable review of Secret Codes!

Other Books

- Our Accelerating Universe - December 16, 2019

- Math is Beautiful - December 9, 2019

- Giovanni Battista Riccioli - December 2, 2019

- Consider a Spherical Turkey - November 25, 2019

- Metamaterial Lenses - November 18, 2019

- Computing Chaos - November 11, 2019

- Ultra-Hyper-Super Black - November 4, 2019

- Interstellar Comets - October 28, 2019

- Magnetic Pole Flip - October 21, 2019

- Calvin Quate (1923-2019) - October 14, 2019

- Transistor Threads - October 7, 2019

- Scientific Broadness - September 30, 2019

- Squaring the Circle - September 23, 2019

- Death by Air Pollution - September 16, 2019

- Lots, and Lots, of Dots - September 9, 2019

- Fiber-Optic Sensors - September 2, 2019

- Is Science Simply Beautiful? - August 26, 2019

- Torqued Light - August 19, 2019

- The Dragonfly of Titan - August 12, 2019

- Optical Ruler - August 5, 2019

- Bolometry - July 29, 2019

- Too Many Commercials - July 22, 2019

- Lost Moons - July 15, 2019

- Go with the Flow - July 8, 2019

- Ion-Gated Transistors - July 1, 2019

- Ice XVIII - June 24, 2019

- Threshold Earthquakes - June 17, 2019

- Aurora Exascale Computer - June 10, 2019

- Flawed Science - June 3, 2019

- Very Low Frequencies - May 27, 2019

- Boiling Crisis - May 20, 2019

- Weighing the Milky Way - May 13, 2019

- Tanis - May 6, 2019

### Deep Archive

Deep Archive 2006-2008

**Blog Article Directory on a Single Page**