Skip to content

Commit bd8ea58

Browse files
committed
Adding in presentation and source materials
1 parent 5414daf commit bd8ea58

11 files changed

Lines changed: 566 additions & 0 deletions
13.3 KB
Binary file not shown.
10.2 KB
Binary file not shown.
3.74 MB
Binary file not shown.
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
<!DOCTYPE html><html><head><meta charset="utf-8"><style>html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; }
2+
3+
body{
4+
color:#444;
5+
font-family:Georgia, Palatino, 'Palatino Linotype', Times, 'Times New Roman',
6+
"Hiragino Sans GB", "STXihei", "微软雅黑", serif;
7+
font-size:12px;
8+
line-height:1.5em;
9+
background:#fefefe;
10+
width: 45em;
11+
margin: 10px auto;
12+
padding: 1em;
13+
outline: 1300px solid #FAFAFA;
14+
}
15+
16+
a{ color: #0645ad; text-decoration:none;}
17+
a:visited{ color: #0b0080; }
18+
a:hover{ color: #06e; }
19+
a:active{ color:#faa700; }
20+
a:focus{ outline: thin dotted; }
21+
a:hover, a:active{ outline: 0; }
22+
23+
span.backtick {
24+
border:1px solid #EAEAEA;
25+
border-radius:3px;
26+
background:#F8F8F8;
27+
padding:0 3px 0 3px;
28+
}
29+
30+
::-moz-selection{background:rgba(255,255,0,0.3);color:#000}
31+
::selection{background:rgba(255,255,0,0.3);color:#000}
32+
33+
a::-moz-selection{background:rgba(255,255,0,0.3);color:#0645ad}
34+
a::selection{background:rgba(255,255,0,0.3);color:#0645ad}
35+
36+
p{
37+
margin:1em 0;
38+
}
39+
40+
img{
41+
max-width:100%;
42+
}
43+
44+
h1,h2,h3,h4,h5,h6{
45+
font-weight:normal;
46+
color:#111;
47+
line-height:1em;
48+
}
49+
h4,h5,h6{ font-weight: bold; }
50+
h1{ font-size:2.5em; }
51+
h2{ font-size:2em; border-bottom:1px solid silver; padding-bottom: 5px; }
52+
h3{ font-size:1.5em; }
53+
h4{ font-size:1.2em; }
54+
h5{ font-size:1em; }
55+
h6{ font-size:0.9em; }
56+
57+
blockquote{
58+
color:#666666;
59+
margin:0;
60+
padding-left: 3em;
61+
border-left: 0.5em #EEE solid;
62+
}
63+
hr { display: block; height: 2px; border: 0; border-top: 1px solid #aaa;border-bottom: 1px solid #eee; margin: 1em 0; padding: 0; }
64+
65+
66+
pre , code, kbd, samp {
67+
color: #000;
68+
font-family: monospace;
69+
font-size: 0.88em;
70+
border-radius:3px;
71+
background-color: #F8F8F8;
72+
border: 1px solid #CCC;
73+
}
74+
pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; padding: 5px 12px;}
75+
pre code { border: 0px !important; padding: 0;}
76+
code { padding: 0 3px 0 3px; }
77+
78+
b, strong { font-weight: bold; }
79+
80+
dfn { font-style: italic; }
81+
82+
ins { background: #ff9; color: #000; text-decoration: none; }
83+
84+
mark { background: #ff0; color: #000; font-style: italic; font-weight: bold; }
85+
86+
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
87+
sup { top: -0.5em; }
88+
sub { bottom: -0.25em; }
89+
90+
ul, ol { margin: 1em 0; padding: 0 0 0 2em; }
91+
li p:last-child { margin:0 }
92+
dd { margin: 0 0 0 2em; }
93+
94+
img { border: 0; -ms-interpolation-mode: bicubic; vertical-align: middle; }
95+
96+
table { border-collapse: collapse; border-spacing: 0; }
97+
td { vertical-align: top; }
98+
99+
@media only screen and (min-width: 480px) {
100+
body{font-size:14px;}
101+
}
102+
103+
@media only screen and (min-width: 768px) {
104+
body{font-size:16px;}
105+
}
106+
107+
@media print {
108+
* { background: transparent !important; color: black !important; filter:none !important; -ms-filter: none !important; }
109+
body{font-size:12pt; max-width:100%; outline:none;}
110+
a, a:visited { text-decoration: underline; }
111+
hr { height: 1px; border:0; border-bottom:1px solid black; }
112+
a[href]:after { content: " (" attr(href) ")"; }
113+
abbr[title]:after { content: " (" attr(title) ")"; }
114+
.ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }
115+
pre, blockquote { border: 1px solid #999; padding-right: 1em; page-break-inside: avoid; }
116+
tr, img { page-break-inside: avoid; }
117+
img { max-width: 100% !important; }
118+
@page :left { margin: 15mm 20mm 15mm 10mm; }
119+
@page :right { margin: 15mm 10mm 15mm 20mm; }
120+
p, h2, h3 { orphans: 3; widows: 3; }
121+
h2, h3 { page-break-after: avoid; }
122+
}
123+
</style></head><body><h2 id="cars-houses-and-health-care-using-data-to-make-decisions">Cars, Houses and Health Care: Using Data To Make Decisions</h2>
124+
125+
<p><em>Step 1: Ask questions</em></p>
126+
127+
<p><em>Step 2: Look at data</em></p>
128+
129+
<p><em>Step 3: Profit</em></p>
130+
131+
<p>Data is growing faster than ever. Anyone who can use data to make decisions has a big advantage and is in high demand.</p>
132+
133+
<p>Join fellow data geek <a href="http://devnambi.com">Dev Nambi</a> (<a href="https://twitter.com/DevNambi">@DevNambi</a>) and learn how to answer thorny questions about cars, houses, and health care. We'll use clever questions, free data, and common tools like Excel, T-SQL, and Powershell.</p>
134+
135+
<p>You'll also learn general techniques to make sound data-based decisions for any problem.</p>
136+
</body></html><script>document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1"></' + 'script>')</script>
Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
1+
### Abstract
2+
*Data is growing faster than ever. Anyone who can use data to make decisions has a big personal advantage and is in high demand.*
3+
4+
*Join fellow data geek [Dev Nambi](http://devnambi.com) ([@DevNambi](https://twitter.com/DevNambi)) and learn how to answer thorny questions about cars, houses, and health care. We'll use clever questions, free data, and common tools like Excel, T-SQL, and Powershell.*
5+
6+
*You'll also learn general techniques to make sound data-based decisions for any problem.*
7+
8+
## Outline
9+
10+
*I have 60 minutes to present, plus time for questions.*
11+
12+
1. Talk about meta-skills. (4-5 min)
13+
* Make it funny
14+
2. Cars. Bring up general points. (10-15 min)
15+
* Include info on features -> cars w/ ratings
16+
* Include data viz of cars on sale
17+
3. Health Care. Bring up general points. Emphasis on too much medicine and non-medical choices. Minor comparison/contrast point w/ US and Canada. (10 min)
18+
4. Houses. Make this an emphasis. ()
19+
5. Conclusion. (2-3 min)
20+
21+
![foo](http://imgs.xkcd.com/comics/is_it_worth_the_time.png)
22+
23+
24+
**Audience** Kootenay, Okanagan, Victoria, Edmonton (Alberta)
25+
26+
## Content
27+
28+
### Meta
29+
30+
**What You Need:**
31+
32+
1. A problem
33+
2. Curiosity
34+
3. Skepticism
35+
4. Time
36+
37+
**What You Can Acquire:**
38+
39+
1. Skill
40+
2. Data
41+
42+
**Theme**
43+
44+
* Choose your own adventure
45+
* Hunting like a cat
46+
* Finding something
47+
* Navigating through a forest
48+
* Navigating through a giant warehouse
49+
50+
# Introduction
51+
52+
Hi everyone, I'm Dev, and I'll be talking about some practical techniques to make decisions using data. We'll also go into a bit of theory behind these techniques and see why they're useful in many situations.
53+
54+
In my day job I'm a developer and data geek at the University of Washington in Seattle.
55+
56+
If you have any questions or comments or want to chat latter, I'm @DevNambi on Twitter, and there's my email address.
57+
58+
We'll be looking at 3 different examples of complicated problems, and how we can use data to make these choices easier. So, let's get started.
59+
(PAGETURN)
60+
# Cars
61+
62+
I suspect everyone in the audience has purchased a car at some point. I also suspect most people didn't enjoy the experience. It's one of the more unpleasant purchasing experiences, mostly because it's expensive, emotional, and the decisions aren't clear.
63+
64+
It's listed as one of the most unpleasant consumer experiences around, usually because it's expensive, emotional, and car dealers are assholes. It turns out this is because car dealerships have [political power](http://www.npr.org/blogs/money/2013/02/19/172402376/why-buying-a-car-never-changes).
65+
It's not a bug, it's a feature.
66+
67+
68+
### First, identify a problem:
69+
(PAGETURN)
70+
1. I want a new Honda Civic or Toyota Corolla to get around.
71+
(PAGETURN)
72+
2. I want an affordable, reliable car to get around.
73+
* Add in the possibility of different cars
74+
(PAGETURN)
75+
* Add in the possibility of a used car
76+
3. I want a convenient and cheap way to get around.
77+
(PAGETURN)
78+
* Add in the possibility of transportation that isn't a car.
79+
* Buses, bicycles, trains.
80+
81+
We've also just made our problem *bigger*.
82+
(PAGETURN)
83+
It's very tempting to want to solve a problem *completely*, and this makes a problem so large and complicated that it's impossible to solve in a practical amount of time. The famous term for this is [analysis paralysis](http://en.wikipedia.org/wiki/Analysis_paralysis).
84+
85+
What we should do is limit ourselves to a reasonable amount of time. The rule I use is my hourly rate X 10. For me, for a $25K to $40K car, that comes out to around 62-100 hours, which is a week's worth of evening and weekends.
86+
87+
(PAGETURN)
88+
The reason for this is the Pareto principle.
89+
90+
We should also come up with a way to compare different items. For vehicles, cost-per-mile is pretty good. For other modes of transportation, use cost-per-day. For example, my car costs around $10/day including cost, insurance, gas, and maintenance.
91+
92+
93+
### Second, learn about the domain
94+
95+
Each problem has some fundamental behaviors.
96+
97+
* Cars: the price of a car drops by 15-25% each year for the first 5 years.
98+
(PAGETURN)
99+
* Cars nowadays last longer than ever before. 200K miles (16 years) is becoming common.
100+
(PAGETURN)
101+
* The biggest cost to owning a vehicle is depreciation.
102+
(PAGETURN)
103+
104+
* Since there is no set price for a given type of car, you can make dealers haggle for your money. Call 6 of them, and make them undercut each other's price.
105+
* 'Dealer B quoted me $15K for a car like this. Can you do better? Oh? $14,500? Great! I'll get back to you'
106+
* 'Dealer A quoted me $14.5K for a car like this. Can you do better? Oh? $14,300? Great! I'll get back to you.'
107+
108+
(PAGETURN)
109+
* Car dealers aren't trustworthy. Relying on one for advice is going to get you ripped off, often for thousands of dollars. This is an example of the principal-agent problem. A principal is the consumer.
110+
111+
(PAGETURN). They have their own best interests at heart, but not necessarily the skill or experience to do it right.
112+
(PAGETURN)
113+
The agent is the person they hire or trust to do what's right for them. Any professional is an agent. Doctors, lawyers, car dealers, DBAs, software developer; any specialist.
114+
* The problem, of course, is that the agents have their own agendas. They can make money by serving their customers, or by ripping them off.
115+
* Be careful w/ folks that have your money.
116+
117+
**Ensembling**
118+
119+
***Big problem***: How do we choose what make and model of car to buy?
120+
* We know some reliable brands. Honda and Toyota are famous.
121+
* We ask our friends, family, neighbors, coworkers.
122+
* We rely on what has worked before.
123+
(PAGETURN)
124+
* This problem comes up all the time, in politics, medicine, finance, even cooking. Nobody has all of the information and no bias, but *collectively* there's enough information and the bias can average out.
125+
* Simple way: find the ratings from major car sites and average them. This is more reliable than any single site alone.
126+
* Anyone who followed the US presidential election last year, this is what Nate Silver did to predict the outcome of all 50 states.
127+
128+
(PAGETURN)
129+
130+
I did this for small cars & sedans last year.
131+
132+
* When there is no single reliable source of data, use the aggregate of different sources.
133+
* Combining the ratings of 10 different car-review sites is more accurate than the ratings of any single site.
134+
135+
**Collect the Data**
136+
137+
(PAGETURN)
138+
139+
* This is getting easier nowadays, because the amount of data in the world is just exploding.
140+
* However, very little of it is clean or easy to use.
141+
* 80% of your time will be cleaning up data.
142+
* For small problems I use Excel.
143+
* Luckily there are big sites for this. [Craigslist](http://vancouver.en.craigslist.ca/) is the most famous. [AutoTrader](http://www.autotrader.ca/) is another good site.
144+
* I did a quick search for 'Honda Civic' in Vancouver and found over 2K listings.
145+
* This is where you'll spend a lot of your time, which is collecting the data.
146+
147+
[GO TO TABLEAU PUBLIC LINK](http://public.tableausoftware.com/views/SpecificCars/CarDashboard?:embed=y&:loadOrderID=0&:display_count=no)
148+
149+
**Analyze the Data**
150+
151+
* To analyze the data, we have a bit of a tricky problem. Let's say we have 2 cars:
152+
* 1 has 40K kilometers and is 3 years old and is on sale for 15K
153+
* Another has 60K kilometers, is 4 years old, and is for sale for 13K.
154+
* All purchasing decisions come down to price vs. value. So let's find out the value of each car, which is miles left on the car.
155+
* Which is better? Come with an equation to make them comparable, and then compare it with the price. Excel is great for this as well.
156+
* I did this a while ago for my car, and produced a scatterplot.
157+
* It's pretty obvious which cars are the best deals...they have the best value and the lowest price.
158+
159+
**Reverse bidding**
160+
161+
So now we know which cars are the best deals. There's some margin for error here, but you'll probably get a good deal this way.
162+
163+
Now comes the part most people hate: car dealers. The term 'used car salesman' is literally what people think of when they think of someone untrustworthy. Lucky for us, most of their influence goes away over the phone.
164+
165+
Best way to get a deal? Find 5 good car deals. Call the dealers, and ask for their best quote over the phone or email. Get the best quote, and then call the *other* dealers, and ask them to beat it. Do this 2 times, and then go with the best option.
166+
167+
This uses a few fun tactics that car dealers would prefer you didn't know about:
168+
169+
1. It's your money. Dealerships compete for your business, so make them work for it.
170+
2. It's not about emotion. By the time you walk onto a dealership for a test-drive you should already know that the math is in your favor. Don't be afraid to walk away if something feels wrong, or if you feel pressured.
171+
172+
**Conclusion**
173+
174+
So, what did we find about decision-making?
175+
176+
1. You have limited time to make decisions. Scale the amount of time to the importance/cost of the decision.
177+
2. The more time you spend on a decision, the less value you add. Remember the 80/20 rule.
178+
3. Always think of the options, and evaluate them using math.
179+
* Find a way to compare different options using the same numbers.
180+
4. Know the domain, so you can know what questions and assumptions to ask. You can also find the deals using some simple math.
181+
4. When there isn't a single trustworthy source of information, get information from many different sources and *ensemble* them.
182+
5. Think in terms of probability. Getting the *very best* deal is hard. Getting a *great* deal is a lot easier.
183+
6. Collect data from independent sources and clean them up. This is most of your work.
184+
7. Analyze the data visually. Look for 'wait, that's odd' moments. Identify the top 4-5 choices.
185+
8. Make people bid for your business using low-pressure tactics.
186+
187+
188+
# Health Care
189+
190+
Now we move to health care. I had a much bigger section for the folks in the US about picking doctors and hospitals, but Canadians don't have that problem. Picking the wrong hospital in Canada doesn't mean you get bills that force you to sell your house.
191+
192+
(PAGETURN)
193+
194+
### Houses
195+
196+
(PAGETURN)
197+
1. Limited amount of time. A house costs anywhere from $230K to $450K for a house. That comes out to 575 to 1125 hours for me (14-28 weeks). That covers everything
198+
* Loans & financing
199+
* Looking at neighborhoods
200+
* Exploring houses
201+
* Paperwork
202+
* Offers & legal
203+
204+
(PAGETURN)
205+
3. Options. Apartments. Condos. Renting a house. Living on a boat.
206+
* Know the Domain.
207+
* Iron law: house prices move relative to family income.
208+
Nobody should buy a house that has a $3K monthly mortgage when you can rent it for $1K.
209+
* House prices don't outperform an index fund over time. They're lousy investments.
210+
* House prices change dramatically based on school quality.
211+
212+
4. Elephant in the room
213+
* Houses are dramatically overpriced in Vancouver.
214+
* Other places are OK.
215+
216+
(PAGETURN)
217+
218+
5. Collect the data. It's easy to get information about houses for sale.
219+
* How do you compare different houses?
220+
* Compute a score
221+
* Matrix prioritization
222+
* You define what's valuable to you.
223+
224+
6. Make people bid for your business.
225+
* Real-estate agents are like car dealers.
226+
* You can work with several different agents. Sometimes they don't like this. Too bad.

0 commit comments

Comments
 (0)