Decision Tree Example: Locating A New Bar
Decision Tree Example: Locating A New Bar
University
Housing Estate
Industrial Estate
Transport
Schools
Class
1
0
11
1
2
1
3
1
4
1
5
1
6
1
7
1
8
1
9
2
0
Matthew Casey
Page 1 of 3
3. What type of housing estate, if any, is nearby: None, Small, Medium or Large.
4. Has an industrial estate nearby: Yes or No.
5. What is the quality of public transport like: Good, Average or Poor.
6. The number of schools nearby: Small, Medium or Large.
The class defines whether the brewery considers the site good (+) or bad (-).
Matthew Casey
Page 2 of 3
Exercise
In a group, complete the following tasks:
1. Using the examples, construct a decision tree that the brewery can use to assess a
new site.
Hint: look at each attribute in turn to determine if a single, or a group of
attributes and values always give either a positive (+) or negative (-) class.
2. Test your decision tree using the following examples, noting the outcome:
City/Town
University
Housing Estate
Industrial Estate
Transport
Schools
21
22
23
24
25
26
27
28
29
Matthew Casey
Page 3 of 3