Posts tagged as:

Coffee

A little coffee on the prairie

by John on November 4, 2009

I was reading Little House on the Prairie with my youngest daughter the other day. Here’s a passage that surprised me.

Then Pa brought water from the creek, while Mary and Laura helped Ma get supper. Ma measured coffee beans into the coffee mill and Mary ground them.

I’d read this book with my other children and hadn’t given this part a thought. This time I thought about how odd it was that they had coffee. At this point the Ingalls family was moving from Wisconsin to Kansas some time in the 1870’s. The family of five and all their worldly goods were packed into a covered wagon. They shot wild game for food. They gathered water from creeks. And yet they had coffee.

Coffee doesn’t grow in the continental United States. It grows in the tropics at high altitudes. These settlers living off the land in the middle of nowhere had some coffee beans that had been imported from thousands of miles away. It’s interesting to think that despite all that they lacked, they had these tropical beans and apparently took them for granted. Said another way, of all the benefits of civilization, coffee made the short list of things settlers chose to take with them.

{ 8 comments }

How would you model the time customers spend in a coffee shop?

This post is pure speculation based on no hard data whatsoever, which makes things considerably easier! If anyone has data or suggestions, please leave a comment. Here goes a first attempt.

The time people spend in a coffee shop depends on why they are there.

  1. Some grab their coffee and go.
  2. Some are there to visit with a friend.
  3. Some drink their coffee (alone) and leave.
  4. Some are there to work.

Each group would have its own time distribution, and the overall distribution would be a mixture of these distributions. Since I’m doing this for fun, I’ll ignore (1) and (2) and just concentrate on (3) and (4). I’ll also ignore complications such as how patterns change throughout the day and how they change according to the day of the week.

Say someone comes in alone to have a cup of coffee. Maybe they stay an average of 15 minutes. I’ll assume the time these folks spend in a coffee shop is normally distributed. Not many stay more than 30 minutes, so let’s say the standard deviation is 5 minutes. That would put only about 0.4% staying longer than 30 minutes. It would be more realistic to truncate the distribution at zero to eliminate the small probability of spending negative time in the coffee shop (!) andĀ  skew the distribution a little to theĀ  right, giving more probability to people staying more than 30 minutes.

The people who come to the coffee shop to work stay considerably longer than the folks who are just there to drink a cup of coffee. And their time distribution would be heavily skewed. These folks are unlikely to stay less than 30 minutes, so the distribution would drop off sharply on the left. There’s a wide variety of how long people might work, so I’d expect a long tail to the right. The inverse gamma distribution fits this description. Say there’s a 5% chance that a worker will stay less than 30 minutes, and a 5% chance they’ll stay more than two hours. Using this software to solve for parameters, we find a shape parameter of 6.047 and a scale parameter of 317.3 fits the time distribution in minutes. This distribution has a mean of about 63 minutes, which I suppose is reasonable.

Here’s what the graphs of the two distributions would look like: a symmetric distribution centered at 15 minutes for the drinkers and a skewed distribution centered around 63 minutes for the workers.

Now suppose 70% of customers are drinkers and 30% are workers. Then the mixture distribution would look like this.

As the percentage of workers goes down, so does the second hump in the graph. If a coffee shop had about 20% drinkers and 80% workers, the two humps would be about the same height.

How would you include people who come to a coffee shop with a friend?

{ 7 comments }