Docsity

Data mining stream and types, Study notes of Data Mining

Toggle sidebar
bg1
Mining Time-Series Data
Time-series database
Consists of sequences of values or events changing with time
Data is recorded at regular intervals
Characteristic time-series components
Trend, cycle, seasonal, irregular
Applications
Financial: stock price, inflation
Industry: power consumption
Scientific: experiment results
Meteorological: precipitation
Categories of Time-Series Movements
Categories of Time-Series Movements
Long-term or trend movements (trend curve): general direction in which a time
series is moving over a long interval of time
Cyclic movements or cycle variations: long term oscillations about a trend line or
curve
e.g., business cycles, may or may not be periodic
Seasonal movements or seasonal variations
i.e, almost identical patterns that a time series appears to follow during
corresponding months of successive years.
Irregular or random movements
Time series analysis: decomposition of a time series into these four basic movements
Additive Modal: TS = T + C + S + I
Multiplicative Modal: TS = T C S I
Estimation of Trend Curve
pf3
pf4
pf5
pf8

Partial preview of the text

Download Data mining stream and types and more Study notes Data Mining in PDF only on Docsity!

Mining Time-Series Data  Time-series database  Consists of sequences of values or events changing with time  Data is recorded at regular intervals  Characteristic time-series components  Trend, cycle, seasonal, irregular  Applications  Financial: stock price, inflation  Industry: power consumption  Scientific: experiment results  Meteorological: precipitation Categories of Time-Series Movements  Categories of Time-Series Movements  Long-term or trend movements (trend curve): general direction in which a time series is moving over a long interval of time  Cyclic movements or cycle variations: long term oscillations about a trend line or curve  e.g., business cycles, may or may not be periodic  Seasonal movements or seasonal variations  i.e, almost identical patterns that a time series appears to follow during corresponding months of successive years.  Irregular or random movements  Time series analysis: decomposition of a time series into these four basic movements  Additive Modal: TS = T + C + S + I  Multiplicative Modal: TS = T  C  S  I Estimation of Trend Curve

 The freehand method  Fit the curve by looking at the graph  Costly and barely reliable for large-scaled data mining  The least-square method  Find the curve minimizing the sum of the squares of the deviation of points on the curve from the corresponding data points  The moving-average method Moving Average  Moving average of order n  Smoothes the data  Eliminates cyclic, seasonal and irregular movements  Loses the data at the beginning or end of a series  Sensitive to outliers (can be reduced by weighted moving average) Trend Discovery in Time-Series (1): Estimation of Seasonal Variations  Seasonal index  Set of numbers showing the relative values of a variable during the months of the year

 Whole matching: find a sequence that is similar to the query sequence  Subsequence matching: find all pairs of similar sequences  Typical Applications  Financial market  Market basket data analysis  Scientific databases  Medical diagnosis Data Transformation  Many techniques for signal analysis require the data to be in the frequency domain  Usually data-independent transformations are used  The transformation matrix is determined a priori  discrete Fourier transform (DFT)  discrete wavelet transform (DWT)  The distance between two signals in the time domain is the same as their Euclidean distance in the frequency domain Discrete Fourier Transform

 DFT does a good job of concentrating energy in the first few coefficients  If we keep only first a few coefficients in DFT, we can compute the lower bounds of the actual distance  Feature extraction: keep the first few coefficients (F-index) as representative of the sequence 

t = 0 n − 1 | xt | 2

f = 0 n − 1 | X (^) f | 2 Parseval’s Theorem  The Euclidean distance between two signals in the time domain is the same as their distance in the frequency domain  Keep the first few (say, 3) coefficients underestimates the distance and there will be no false dismissals!

t = 0 n

| S [ t ]− Q [ t ]|^2 ≤ ε ⇒ ∑

f = 0 3 | F ( S )[ f ]− F ( Q )[ f ]|^2 ≤ ε Multidimensional Indexing in Time-Series  Multidimensional index construction  Constructed for efficient accessing using the first few Fourier coefficients  Similarity search

Steps for Performing a Similarity Search  Atomic matching  Find all pairs of gap-free windows of a small length that are similar  Window stitching  Stitch similar windows to form pairs of large similar subsequences allowing gaps between atomic matches  Subsequence Ordering  Linearly order the subsequence matches to determine whether enough similar pieces exist Query Languages for Time Sequences  Time-sequence query language  Should be able to specify sophisticated queries like Find all of the sequences that are similar to some sequence in class A , but not similar to any sequence in class B  Should be able to support various kinds of queries: range queries, all-pair queries, and nearest neighbor queries  Shape definition language  Allows users to define and query the overall shape of time sequences  Uses human readable series of sequence transitions or macros  Ignores the specific details

 E.g., the pattern up, Up, UP can be used to describe increasing degrees of rising slopes  Macros: spike, valley, etc.