July 6, 2015 in Five-Minute Analyst

Markov’s Abbey

SHARE: PRINT ARTICLE:print this page https://doi.org/10.1287/LYTX.2015.04.15

Mr. Bates (second from left; played by English actor Brendan Coyle) can’t seem to stay out of trouble on the hit TV show “Downton Abbey.”

Like many people in the English-speaking world, I have spent some hours over the past five years watching a drama called “Downton Abbey.” This period show centers around an aristocratic family – the Crawleys – and their trials and tribulations. Those who watch it with an analytic eye (perhaps under duress) are quick to see that the show seems to have recurring plot elements to wit: the estate seems to run short of money occasionally, Mr. Molesley has a hard time keeping up with his duties, and Lord Grantham’s favored valet, Mr. Bates, seems to be eternally afoul of the law, although he has done nothing wrong, and so on. While there are no shortage of disasters to befall Downton and its occupants, I started to wonder if there were some sorts of patterns or analysis that could be performed.

I have arbitrarily selected several plotlines I found interesting, and have extracted data from the Wikipedia page [1] on “Downton Abbey” episodes to create the graph shown in Figure 1.

Figure 1: Occurrence of various plot elements in regular season episodes of “Downton Abbey.” Mr. Bates in trouble is the single most common plot element. Note that deceased characters (Matthew Crawley and Lady Sybil) have been aggregated with their spouse.

 

Figure 2: Cumulative plot events in “Downton Abbey.” Note that Mr. Bates (in gray) is nearly always in trouble. Compare him with his colleague Thomas, who has several periods of not causing any trouble.

Before we go too much further, please note that the choice of plot elements and scoring is mostly subjective. They were chosen partly because they are themes that follow the entire series (for example, Lady Rose is absent because she was mostly in Seasons 4 and 5). If someone were to choose different plot elements to follow, they would get different answers! It’s important in our business to recognize when we are “performing” objective analysis on subjective data. My practice is to acknowledge the subjective nature of the data, but to go forward with the full-power objective methods. Specifically, if I were to count Mary and Matthew as separate plots, then they would be strongly correlated!

Before thinking about transition matrices, it’s useful to compute the correlation coefficient between the different plot elements (Figure 3).

The correlation matrix dissuaded me from trying to calculate the joint probabilities between any of the plotlines. As there are seven total plotlines tracked in this analysis, there are a total of 27 = 128 possible states. There may be more nuanced relationships in the data; these are beyond the scope of the current effort.

Note that the single most common plot element in “Downton Abbey” is “Mr. Bates in trouble.” There’s a very clever package in R called “markovchain” [2] that will allow you to compute the transition matrix from state data. This can also be done by hand, but can be cumbersome. For our data, Mr. Bates transition matrix is:

Figure 3: Correlation matrix between characters. There are no strong positive or negative linear correlations between the plot elements. There may be higher-order effects, which would take more than five minutes to analyze. Obviously, each plotline is perfectly correlated with itself.

We may compare Mr. Bates transition matrix with Thomas’.

Table 1: Mr. Bates’ personal transition matrix. The current state is along the column, and the next state is the row. Specifically, if Mr. Bates is currently not in trouble, there is a 40 percent chance that he will be in trouble during the next episode. In the long run, Mr. Bates spends 62 percent of his time in trouble.
Table 2: Footman Thomas’ personal transition matrix. While Thomas spends less time causing trouble (46 percent), his transition probabilities are more balanced, implying he has more frequent switches between states and shorter sojourns in these states.
Figure 4: Distribution of “first passage time” until Mr. Bates is again in trouble. He has greater than 50 percent odds of being in trouble by the second episode, and he will almost surely (97 percent) be in trouble by the seventh episode.

Analyzing the matrix, we can see that at “steady state” Mr. Bates is in trouble 61 percent of the time. There are two ways to do this; the elegant method is to solve two equations in two unknowns. The inelegant method (which truth be told I prefer) is to simply use MMULT() repeatedly. Similarly, Thomas is causing trouble 44 percent of the time. We can also use matrix multiplication to compute the “first passage time” until Mr. Bates is again in trouble. We do this by replacing the bottom row with the vector {0,1}, and get the result shown in Figure 4.

Finally, according to our analysis, there is a three-way tie for “most interesting episode of ‘Downton’”:  Season 3, #1, Season 3, #5 and Season 5, #4. Each of these had five out of seven plot elements. The least interesting episode of “Downton” was Season 1, #2, which had none of the tracked plot elements.

There is an interesting historical connection [3]; Markov originally applied his methods to study the Pushkin’s novel Eugene Onegin [4] – a work of fiction. It seems that more than 100 years later, we are using the same method to tackle a new problem.

End notes

  1. On the use of Wikipedia: I typically do not like to use it for “serious” work, where there are better references. However, when the research question is on the plot of television shows, it is appropriate.
  2. I had as much fun coming up with my “title and style” as writing the rest of this column. What would your “math style” be? I’ll give 100 points for the best one (via email).

References

  1. http://en.wikipedia.org/wiki/List_of_Downton_Abbey_episodes, accessed May 25.
  2. http://cran.r-project.org/web/packages/markovchain/vignettes/an_introduction_to_markovchain_package.pdf
  3. Thank you to Jim Mosora for pointing this out!
  4. http://www.americanscientist.org/issues/pub/first-links-in-the-markov-chain

Harrison Schramm
([email protected])

SHARE:

INFORMS site uses cookies to store information on your computer. Some are essential to make our site work; Others help us improve the user experience. By using this site, you consent to the placement of these cookies. Please read our Privacy Statement to learn more.