{"id":45,"date":"2009-12-06T02:36:43","date_gmt":"2009-12-06T07:36:43","guid":{"rendered":"http:\/\/openproduce.org\/blog\/?p=45"},"modified":"2009-12-15T12:26:30","modified_gmt":"2009-12-15T17:26:30","slug":"visualizing-tortilla-sales","status":"publish","type":"post","link":"https:\/\/openproduce.org\/index.php\/2009\/12\/06\/visualizing-tortilla-sales\/","title":{"rendered":"Visualizing Tortilla Sales"},"content":{"rendered":"<p>Open Produce has been really rigorous about keeping good point-of-sale data over the past 4 months, so looking back we can now tease out some interesting patterns in buying habits.<\/p>\n<p>Certain things that &#8220;go together&#8221; frequently get bought on the same ticket.  If you look back over tickets and count up how many times each pair of items is bought together, you can get a sense of how related any two items we sell are.  Mathematically you can look at this as a weighted graph.  For example, here is a picture of one such graph (circles correspond to items, and the closer two circles are, the more frequently those items are bought together.)<\/p>\n<p><a href=\"http:\/\/openproduce.org\/media\/blog\/big-tortillas.png\"><img decoding=\"async\" src=\"http:\/\/openproduce.org\/media\/blog\/tortilla.png\" style=\"border: 1px solid black;\" alt=\"graph showing how corn tortillas relate to other items\" \/><\/a><br \/>\n(Click image for larger size; other formats: <a href=\"http:\/\/openproduce.org\/media\/blog\/tortillas.svg\">[svg]<\/a>&nbsp;<a href=\"http:\/\/openproduce.org\/media\/blog\/tortillas.dot\">[graphviz]<\/a>)<\/p>\n<p>Corn tortillas are a daily staple for many Mexicans and Latin Americans.  We sell the best fresh corn tortillas in Chicago, El Milagro brand, for a good price in packs of 12.  They&#8217;re good, so many people buy a single pack now and again, even if they&#8217;re not staple eaters.  However, we also have a discount for people who buy 3 packs at a time, and many staple eaters purchase as many as 9 or 12 packs per day.<\/p>\n<p>This graph shows some interesting patterns.  Both 1-pack and 3-pack buyers also frequently buy produce that makes sense with tortillas, such as tomatoes, avocados, jalape\u00c3\u00b1os, and limes&#8212;guacamole fixings&#8212;and 3-pack buyers occasionally go for bargain produce.  However, 3-pack buyers also frequently buy well-known Mexican products such as the medio litro size of Mexican coke and de la Rosa peanut candy, while 1-pack buyers do so less.  Also, 1-pack buyers buy slightly more canned beans than 3-pack buyers.  In particular 1-pack buyers purchase canned refried beans while 3-pack buyers rarely do.  Finally note that 1-pack buyers sometimes purchase prepared foods such as mtr meals and clif bars, while 3-pack buyers generally don&#8217;t.<\/p>\n<p>My reading of this is that staple tortilla eaters mostly buy fresh produce and a couple Mexican products, while non-staple eaters buy slightly more prepared food, less produce, and fewer Mexican products.  If you&#8217;re a Mexican immigrant who eats refried beans every day, maybe you feel weirder about seeing them in a can and make them better, for cheaper, at home; if you&#8217;re a grad student on taco night, maybe you grab the can.  Or maybe we just don&#8217;t carry the right kind of refried beans&#8212;La Preferida makes about a dozen kinds, and we carry only one size of the vegetarian kind.  Staple tortilla eaters almost certainly have more specific bean preferences!<\/p>\n<p>What&#8217;s clear is that there are two distinct categories of customers here who interact with one item we sell in very different ways.  Tortillas are a crucial crossover point for staple eaters and exotic eaters to try new things.  How can we get 1-pack buyers to buy avocados as frequently as 3-pack buyers?  It&#8217;s a shocking thought, but do 1-pack buyers perhaps <em>not know<\/em> how awesome avocados are?  And what other products do 3-pack buyers want&#8212;better beans, or something else like the de la Rosa candy?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Open Produce has been really rigorous about keeping good point-of-sale data over the past 4 months, so looking back we can now tease out some interesting patterns in buying habits.<\/p>\n<p>Certain things that &#8220;go together&#8221; frequently &#8230;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-45","post","type-post","status-publish","format-standard","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/openproduce.org\/index.php\/wp-json\/wp\/v2\/posts\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/openproduce.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/openproduce.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/openproduce.org\/index.php\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/openproduce.org\/index.php\/wp-json\/wp\/v2\/comments?post=45"}],"version-history":[{"count":0,"href":"https:\/\/openproduce.org\/index.php\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"wp:attachment":[{"href":"https:\/\/openproduce.org\/index.php\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/openproduce.org\/index.php\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/openproduce.org\/index.php\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}