Docsity

Data Mining: Understanding Different Types of Attributes and Handling Missing Values - Pro, Study notes of Computer Science

Toggle sidebar
bg1
1
University of Florida CISE department Gator Engineering
Data Issues
Dr. Sanjay Ranka
Professor
Computer and Information Science and Engineering
University of Florida, Gainesville
Data Mining Sanjay Ranka Fall 2003 2
University of Florida CISE department Gator Engineering
What Is a Data Set ?
• Attributes (describe objects)
– Variable, field, characteristic, feature or
observation
• Objects (have attributes)
– Record, point, case, sample, entity or item
• Data Set
– Collection of objects
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Data Mining: Understanding Different Types of Attributes and Handling Missing Values - Pro and more Study notes Computer Science in PDF only on Docsity!

Data Issues

Dr. Sanjay Ranka

Professor

Computer and Information Science and Engineering

University of Florida, Gainesville

[email protected]

Data Mining Sanjay Ranka Fall 2003 2

University of Florida CISE department Gator Engineering

What Is a Data Set?

• Attributes (describe objects)

– Variable, field, characteristic, feature or

observation

• Objects (have attributes)

– Record, point, case, sample, entity or item

• Data Set

– Collection of objects

Data Mining Sanjay Ranka Fall 2003 3

Type of an Attribute

  • The type of an attribute depends on the

following properties:

  • Distinctness: =, ≠
  • Order: <, >
  • Addition: +, -
  • Multiplication: *, /

Data Mining Sanjay Ranka Fall 2003 4

University of Florida CISE department Gator Engineering

Types of Attributes

Attribute Type

Description Examples Operations

Nominal Each value represents a label. (Typical comparisons between two values are limited to “equal” or “no equal”)

Flower color, gender, zip code

Mode, entropy, contingency correlation, χ^2 test

Ordinal The values can be ordered. (Typical comparisons between two values are “equal” or “greater” or “less”)

Hardness of minerals, {good, better, best}, grades, street numbers, rank, age

Median, percentiles, rank correlation, run tests, sign tests

Interval The differences between values are meaningful, i.e., a unit of measurement exists. (+, - )

Calendar dates, temperature in Celsius or Fahrenheit

Mean, standard deviation, Pearson's correlation, t and F tests Ratio Differences and ratios are meaningful. (*, /)

Monetary quantities, counts, age, mass, length, electrical current

Geometric mean, harmonic mean, percent variation

Data Mining Sanjay Ranka Fall 2003 7

Structured Data Sets

  • Common types
    • Record
    • Graph
    • Ordered
  • Three important characteristics
    • Dimensionality
    • Sparsity
    • Resolution

Data Mining Sanjay Ranka Fall 2003 8

University of Florida CISE department Gator Engineering

Record Data

  • Most of the existing data

mining work is focused

around data sets that

consist of a collection of

records (data objects),

each of which consists of

fixed set of data fields

(attributes)

Lynette F 1.75 m Medium

Amy F 1.8 m Medium

Kim F 1.9 m Tall

Todd M 1.95 m Medium

Debbie F 1.8 m Medium

Steven M 2.1 m Tall

Worth M 2.2 m Tall

Dave M 1.7 m Medium

Kathy F 1.6 m Medium

Bob M 1.85 m Medium

Stephanie F 1.7 m Medium

Martha F 1.88 m Tall

Maggie F 1.9 m Tall

Jim M 2 m Medium

Kristina F 1.6 m Medium

Name Gender Height Output

Source: Data Mining – Introductory and Advanced topics by Margaret Dunham

Data Mining Sanjay Ranka Fall 2003 9

Data Matrix

  • If all objects in data set have the same set of

numeric attributes, then each object represents a

point (vector) in multi-dimensional space

  • Each attribute of the object corresponds to a

dimension

Distance Load Thickness

Projection of Y load

Projection of X load

Data Mining Sanjay Ranka Fall 2003 10

University of Florida CISE department Gator Engineering

Document Data

  • Each document becomes a ‘term’ vector, where

each term is a component (attribute) of the

vector, and where the value of each component

of the vector is the number of times the

corresponding term occurs in the document

Document 1

timeout season team^ coach play ball score^ game win lost

Document 2

Document 3

3 0 5 0 2 6 0 2 0 2

0

0

7 0 2 1 0 0 3 0 0

1 0 0 1 2 2 0 3 0

Data Mining Sanjay Ranka Fall 2003 13

Ordered Data: Transaction Data

(AB) (D) (CE)

(BD) (C) (E)

(CD) (B) (AE)

Data Mining Sanjay Ranka Fall 2003 14

University of Florida CISE department Gator Engineering

Ordered Data: Genomic Sequence

Data

GGTTCCGCCTTCAGCCCCGCGCC

CGCAGGGCCCGCCCCGCGCCGTC

GAGAAGGGCCCGCCTGGCGGGCG

GGGGGAGGCGGGGCCGCCCGAGC

CCAACCGAGTCCGACCAGGTGCC

CCCTCTGCTCGGCCTAGACCTGA

GCTCATTAGGCGGCAGCGGACAG

GCCAAGTAGAACACGCGAAGCGC

TGGGCTGCCTGCTGCGACCAGGG

Data Mining Sanjay Ranka Fall 2003 15

Ordered Data: Spatio-temporal Data

  • Find global climate

patterns of interest to

earth scientists

  • Global snapshots of

values for a number of

variables on land surfaces

and water surfaces

  • Monthly over a range of

10 to 50 years

SST

Precipitation

NPP Pressure

SST

Precipitation

NPP Pressure

Longitude

Latitude

grid cell (^) Time zone

. . .

Ocean and Land Temperature (Jan 1982)

Data Mining Sanjay Ranka Fall 2003 16

University of Florida CISE department Gator Engineering

Data Quality

  • The following are some well known issues
    • Noise and outliers
    • Missing values
    • Duplicate data
    • Inconsistent values

Data Mining Sanjay Ranka Fall 2003 19

Missing Values:

Estimating Them

  • Price of the IBM stock

changes in a reasonably

smooth fashion. The

missing values can be

estimated by

interpolation

  • For a data set that has

many similar data points,

a nearest neighbor

approach can be used to

estimate the missing

value. If the attribute is

continuous, then the

average attribute value of

the nearest neighbors can

be used. While if the

attribute is categorical, then the most commonly

occurring attribute value

can be taken

Data Mining Sanjay Ranka Fall 2003 20

University of Florida CISE department Gator Engineering

Missing Values: Using the Missing

Value As Another Value

  • Many data mining approaches can be

modified to operate by ignoring missing

values

  • E.g. Clustering - Similarity between pairs

of data objects needs to be calculated. If

one or both objects of a pair have missing

values for some attributes, then the

similarity can be calculated by using only

the other attributes.