Skip to content

Commit

Permalink
add tea data report
Browse files Browse the repository at this point in the history
  • Loading branch information
evanwill committed Mar 9, 2020
1 parent 7c171a6 commit edc5f3a
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 1 deletion.
8 changes: 8 additions & 0 deletions _data/tea-data.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
tea_brand,bags_per_box,tester1,tester2,comments,manufaturer_brewtime,walmart_price,value
Red Rose,100,4,3.5,"Distinctive, different, easy drinking. Light flavor, but not weak.",4,3.48,1.077586207
Taylors Yorkshire Red Tea,80,4,4,"Smooth, mild but favored. Pleasant.",4,5.59,0.7155635063
Tetley British Blend,80,2,2,Ok. Not Great. Bland.,4,2.98,0.6711409396
Twinnings Irish Breakfast,50,3.5,3.5,Richer and earthier than average.,4,6.28,0.5573248408
Twinnings English Breakfast,50,2.5,2.5,"Less Full Body than Irish Breakfast. Similar to Tetley, but better.",4,6.28,0.398089172
PG Xtra Strong,40,3,3,"Not smooth, almost smokey. Not strong enough at recommended 2 min.",2,4.78,0.6276150628
Tazo Awake English Breakfast Tea,48,1.5,1,"Not flavorful. ""Cheap tea"" taste.",5,5.98,0.2090301003
2 changes: 1 addition & 1 deletion _notes/pannukakku.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Pannukakku Recipe
layout: post
tags: [fun]
tags: [fun,food]
date: 2018-04-07
---

Expand Down
77 changes: 77 additions & 0 deletions _notes/tea-data.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
title: Tea Data
layout: post
tags: [fun,food]
date: 2020-03-09
---

This study seeks to find the best flavor black tea at the best value price point for bulk drinking at work in the library.

## Methodology

Two library employees with extensive experience in tea drinking (i.e. drink at least one pot of tea per day) took part in a tasting session featuring seven widely available varieties of black tea.
Each tea was prepared according to the manufacturer instructions printed on the box.
A standard measure of milk was added to each prepared tea after the brew time was complete.

Each tester sampled the tea taking several moments to savor the flavors.
Testers general impressions were discussed and recorded, as well as an overall rating out of five possible points.
The highest rating awarded by individual testers was four (Red Rose and Taylors Yorkshire), and the lowest was one (Tazo Awake).

Prices of tea brands vary significantly at each grocery chain.
To find a standardized price for comparisons, we chose to use the price at Walmart which carried all brands tested.

## Best Value

In attempt to evaluate the best overall value, we used the equation:

`Mean Rating / Price per Tea Bag`

### Base Value Ratings

{% assign teaValue = site.data.tea-data | sort: "value" | reverse %}
| Tea | Value Rating |
| --- | --- |
{% for t in teaValue %}| {{ t.tea_brand }} | {{ t.value }} |
{% endfor %}

This surfaced two surprising results:

- Best value was the rather unassuming *Red Rose Tea*, which tastes pretty good yet is available very cheap.
- Worst value was the popular *Tazo Awake*, very often served at conferences and hotels, which tastes terrible yet is very expensive.

<!-- (tast weight * rating)/(price weight * price)-->

## Complete Tea Data

<link href="https://cdn.jsdelivr.net/npm/simple-datatables@latest/dist/style.css" rel="stylesheet" type="text/css">
<table id="teaTable">
</table>
<script src="https://cdn.jsdelivr.net/npm/simple-datatables@latest" type="text/javascript"></script>
<script>
const data = {
headings: [
'Tea',
'$ Price / Bag',
'Mean Rating',
'Comments'
],
data: [
{% for t in site.data.tea-data %}
[
'{{ t.tea_brand }}',
{{ t.walmart_price | divided_by: t.bags_per_box | round: 3 }},
{{ t.tester1 | plus: t.tester2 | divided_by: 2 | round: 3 }},
'{{ t.comments }}'
]{% unless forloop.last %},{% endunless %}
{% endfor %}
]
};
const teaTable = document.querySelector("#teaTable");
const config = {
data,
columns: [{ select: 2, sort: 'desc' }]
};
const dt = new simpleDatatables.DataTable(teaTable, config);
</script>

<small>table powered by <a href="https://github.com/fiduswriter/Simple-DataTables">simple-datatables</a></small>

0 comments on commit edc5f3a

Please sign in to comment.