https://flowingdata.com/2015/05/20/brewing-multivariate-beer/

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/e76e3a05-b812-4039-a0ec-7ac1eba610e4/05-Bottles.jpg

I was toying around with the idea of multivariate beer, along the same lines as Data Cuisine. I wanted to represent county demographics with beer ingredients. The higher a value, say, population density, the more hops I use, or the higher the median household income the more of a particular grain.

For contrast I brewed county ales for Aroostook, Maine (low population density), Arlington, Virginia (high median household income), Bronx, New York (high population density), and Marin, California (high education rate).

Could I taste and see the difference? In short, yes. But I’d adjust the recipe code and brewing process the next time around. Here’s how it went down.

The R script

I wrote a quick function in R that spits out basic recipes. Enter the county name and state, and you get a list of ingredients and suggestions on how to use them.

Download the code if you want to mess around with it.

Nothing too fancy. It uses data from the 2013 American Community Survey and translates county values to ingredient amounts. Here’s what I eventually settled on.

  1. Population density translates to total amount of hops. The more people in a county, the hoppier the beer tastes.
  2. Race percentages translate to the type of hops used. For example, a higher rate of white people means a higher percentage of the total hops (determined by population density) that are Cascade hops.
  3. Percentage of people with at least a bachelor’s degree translates to amount of Carapils grain, which contributes to head retention.
  4. Percentage of people with healthcare coverage translates to amount of rye, which adds a distinct spicy flavor.
  5. Median household income translates to amount of Crystal malt, which adds body and some color.

For example, here’s the recipe for Los Angeles County, California.

> make_recipe("Los Angeles", "California")
-----------------------------
Hop addition times decided by brewer. Suggestion: Continuous hopping every 10 minutes during a 60-minute boil. That's 0.8 ounces per interval, which includes the hop addition at the beginning of the boil.
Add half of aroma hops at flameout. Use the rest for dry-hopping.