Data Mining
Practical Machine Learning Tools and Techniques
Slides for Chapter 1 of Data Mining by I. H. Witten, E. Frank and
- M. A. Hall
Data Mining Practical Machine Learning Tools and Techniques Slides - - PowerPoint PPT Presentation
Data Mining Practical Machine Learning Tools and Techniques Slides for Chapter 1 of Data Mining by I. H. Witten, E. Frank and M. A. Hall Whats it all about? Data vs information Data mining and machine learning Structural
Slides for Chapter 1 of Data Mining by I. H. Witten, E. Frank and
2 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ Rules: classification and association ◆ Decision trees
◆ Weather, contact lens, CPU performance, labor negotiation data,
soybean classification
◆ Ranking web pages, loan applications, screening images, load
forecasting, machine fault diagnosis, market basket analysis
3 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ Sources: business, science, medicine, economics,
geography, environment, sports, …
◆ Data: recorded facts ◆ Information: patterns underlying the data
4 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ Given: embryos described by 60 features ◆ Problem: selection of embryos that will survive ◆ Data: historical records of embryos and outcome
◆ Given: cows described by 700 features ◆ Problem: selection of cows that should be culled ◆ Data: historical records and farmers’ decisions
5 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ implicit, ◆ previously unknown, ◆ potentially useful
◆ Problem 1: most patterns are not interesting ◆ Problem 2: patterns may be inexact (or spurious) ◆ Problem 3: data may be garbled or missing
6 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ Can be used to predict outcome in new situation ◆ Can be used to understand and explain how prediction is
derived (may be even more important)
7 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
… … … … … Hard Normal Yes Myope Presbyopic None Reduced No Hypermetrope Pre-presbyopic Soft Normal No Hypermetrope Young None Reduced No Myope Young Recommended lenses Tear production rate Astigmatism Spectacle prescription Age
If tear production rate = reduced then recommendation = none Otherwise, if age = young and astigmatic = no then recommendation = soft
8 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
To get knowledge of by study, experience, or being taught To become aware by information or from observation To commit to memory To be informed of, ascertain; to receive instruction
Difficult to measure Trivial for computers
Things learn when they change their behavior in a way that makes them perform better in the future.
Does a slipper learn?
9 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
… … … … … Yes False Normal Mild Rainy Yes False High Hot Overcast No True High Hot Sunny No False High Hot Sunny Play Windy Humidity Temperature Outlook
If outlook = sunny and humidity = high then play = no If outlook = rainy and windy = true then play = no If outlook = overcast then play = yes If humidity = normal then play = yes If none of the above then play = yes
10 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
11 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
predicts value of a given attribute (the classification of an example)
predicts value of arbitrary attribute (or combination)
If outlook = sunny and humidity = high then play = no If temperature = cool then humidity = normal If humidity = normal and windy = false then play = yes If outlook = sunny and play = no then humidity = high If windy = false and play = no then outlook = sunny and humidity = high
12 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
… … … … … Yes False 80 75 Rainy Yes False 86 83 Overcast No True 90 80 Sunny No False 85 85 Sunny Play Windy Humidity Temperature Outlook
If outlook = sunny and humidity > 83 then play = no If outlook = rainy and windy = true then play = no If outlook = overcast then play = yes If humidity < 85 then play = yes If none of the above then play = yes
13 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
None Reduced Yes Hypermetrope Pre-presbyopic None Normal Yes Hypermetrope Pre-presbyopic None Reduced No Myope Presbyopic None Normal No Myope Presbyopic None Reduced Yes Myope Presbyopic Hard Normal Yes Myope Presbyopic None Reduced No Hypermetrope Presbyopic Soft Normal No Hypermetrope Presbyopic None Reduced Yes Hypermetrope Presbyopic None Normal Yes Hypermetrope Presbyopic Soft Normal No Hypermetrope Pre-presbyopic None Reduced No Hypermetrope Pre-presbyopic Hard Normal Yes Myope Pre-presbyopic None Reduced Yes Myope Pre-presbyopic Soft Normal No Myope Pre-presbyopic None Reduced No Myope Pre-presbyopic hard Normal Yes Hypermetrope Young None Reduced Yes Hypermetrope Young Soft Normal No Hypermetrope Young None Reduced No Hypermetrope Young Hard Normal Yes Myope Young None Reduced Yes Myope Young Soft Normal No Myope Young None Reduced No Myope Young Recommended lenses Tear production rate Astigmatism Spectacle prescription Age
14 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
If tear production rate = reduced then recommendation = none If age = young and astigmatic = no and tear production rate = normal then recommendation = soft If age = pre-presbyopic and astigmatic = no and tear production rate = normal then recommendation = soft If age = presbyopic and spectacle prescription = myope and astigmatic = no then recommendation = none If spectacle prescription = hypermetrope and astigmatic = no and tear production rate = normal then recommendation = soft If spectacle prescription = myope and astigmatic = yes and tear production rate = normal then recommendation = hard If age young and astigmatic = yes and tear production rate = normal then recommendation = hard If age = pre-presbyopic and spectacle prescription = hypermetrope and astigmatic = yes then recommendation = none If age = presbyopic and spectacle prescription = hypermetrope and astigmatic = yes then recommendation = none
15 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
16 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
… … … Iris virginica 1.9 5.1 2.7 5.8 102 101 52 51 2 1 Iris virginica 2.5 6.0 3.3 6.3 Iris versicolor 1.5 4.5 3.2 6.4 Iris versicolor 1.4 4.7 3.2 7.0 Iris setosa 0.2 1.4 3.0 4.9 Iris setosa 0.2 1.4 3.5 5.1 Type Petal width Petal length Sepal width Sepal length
If petal length < 2.45 then Iris setosa If sepal width < 2.10 then Iris versicolor ...
17 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
32 128 CHMAX 8 16 CHMIN Channels Performance Cache (Kb) Main memory (Kb) Cycle time (ns) 45 4000 1000 480 209 67 32 8000 512 480 208 … 269 32 32000 8000 29 2 198 256 6000 256 125 1 PRP CACH MMAX MMIN MYCT
PRP = -55.9 + 0.0489 MYCT + 0.0153 MMIN + 0.0056 MMAX + 0.6410 CACH - 0.2700 CHMIN + 1.480 CHMAX
18 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
good good good bad {good,bad} Acceptability of contract half full ? none {none,half,full} Health plan contribution yes ? ? no {yes,no} Bereavement assistance full full ? none {none,half,full} Dental plan contribution yes ? ? no {yes,no} Long-term disability assistance avg gen gen avg {below-avg,avg,gen} Vacation 12 12 15 11 (Number of days) Statutory holidays ? ? ? yes {yes,no} Education allowance Shift-work supplement Standby pay Pension Working hours per week Cost of living adjustment Wage increase third year Wage increase second year Wage increase first year Duration Attribute 4 4% 5% ? Percentage ? ? 13% ? Percentage ? ? ? none {none,ret-allw, empl-cntr} 40 38 35 28 (Number of hours) none ? tcf none {none,tcf,tc} ? ? ? ? Percentage 4.0 4.4% 5% ? Percentage 4.5 4.3% 4% 2% Percentage 2 3 2 1 (Number of years) 40 … 3 2 1 Type
19 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
20 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
Diaporthe stem canker 19 Diagnosis Normal 3 Condition Root … Yes 2 Stem lodging Abnormal 2 Condition Stem … ? 3 Leaf spot size Abnormal 2 Condition Leaf ? 5 Fruit spots Normal 4 Condition of fruit pods Fruit … Absent 2 Mold growth Normal 2 Condition Seed … Above normal 3 Precipitation July 7 Time of occurrence Environment Sample value Number
Attribute
21 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
If leaf condition is normal and stem condition is abnormal and stem cankers is below soil line and canker lesion color is brown then diagnosis is rhizoctonia root rot If leaf malformation is absent and stem condition is abnormal and stem cankers is below soil line and canker lesion color is brown then diagnosis is rhizoctonia root rot
But in this domain, “leaf condition is normal” implies “leaf malformation is absent”!
22 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ Processing loan applications ◆ Screening images for oil slicks ◆ Electricity supply forecasting ◆ Diagnosis of machine faults ◆ Marketing and sales ◆ Separating crude oil and natural gas ◆ Reducing banding in rotogravure printing ◆ Finding appropriate technicians for telephone faults ◆ Scientific applications: biology, astronomy, chemistry ◆ Automatic selection of TV programs ◆ Monitoring intensive care patients
23 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
Express)
◆ No! Borderline cases are most active customers
24 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ age ◆ years with current employer ◆ years at current address ◆ years with the bank ◆ other credit cards possessed,…
◆ human experts only 50%
25 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
26 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ size of region ◆ shape, area ◆ intensity ◆ sharpness and jaggedness of boundaries ◆ proximity of other regions ◆ info about background
◆ Few training examples—oil slicks are rare! ◆ Unbalanced data: most dark regions aren’t slicks ◆ Regions from same image form a batch ◆ Requirement: adjustable false-alarm rate
27 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ base load for the year ◆ load periodicity over the year ◆ effect of holidays
28 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ temperature ◆ humidity ◆ wind speed ◆ cloud cover readings ◆ plus difference between actual load and predicted load
29 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
30 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
31 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ Customer loyalty:
identifying customers that are likely to defect by detecting changes in their behavior (e.g. banks/phone companies)
◆ Special offers:
identifying profitable customers (e.g. reliable owners of credit cards that need extra money during the holiday season)
32 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ Association techniques find
groups of items that tend to
transaction (used to analyze checkout data)
◆ Focusing promotional mailouts
(targeted campaigns are cheaper than mass-marketed
33 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ Statistics: testing hypotheses ◆ Machine learning: finding the right hypothesis
◆ Decision trees (C4.5 and CART) ◆ Nearest-neighbor methods
◆ Most ML algorithms employ statistical techniques
34 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
Died: 29 July 1962 Adelaide, Australia
theory and application of statistics for making quantitative a vast field of biology
35 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ Enormous, but finite, search space
◆ enumerate the concept space ◆ eliminate descriptions that do not fit examples ◆ surviving descriptions contain target concept
36 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ 4 x 4 x 3 x 3 x 2 = 288 possible combinations ◆ With 14 rules ⇒ 2.7x1034 possible rule sets
◆ More than one description may survive ◆ No description may survive
hill-climbing in description space according to pre-specified matching criterion
◆ Most practical algorithms use heuristic search that cannot guarantee to
find the optimum solution
37 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ Concept description language ◆ Order in which the space is searched ◆ Way that overfitting to the particular training data is avoided
◆ Language bias ◆ Search bias ◆ Overfitting-avoidance bias
38 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ is language universal
39 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ “Greedy” search: performing the best single step ◆ “Beam search”: keeping several alternatives ◆ …
◆ General-to-specific
◆ Specific-to-general
40 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ E.g. balancing simplicity and number of errors
◆ E.g. pruning (simplifying a description)
to an overly complex one
simplifies it afterwards
41 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ 85% of Americans can be identified from just zip
◆ E.g. loan applications: using some information (e.g. sex,
religion, race) is unethical
◆ E.g. same information ok in medical application
◆ E.g. area code may correlate with race
42 Data Mining: Practical Machine Learning Tools and Techniques (Chapter 1)
◆ Who is permitted access to the data? ◆ For what purpose was the data collected? ◆ What kind of conclusions can be legitimately drawn from it?