Data Mining: Concepts and Techniques — Chapter 8 — 8

Slides:



Advertisements
Similar presentations
High Performance Discovery from Time Series Streams
Advertisements

Noise & Data Reduction. Paired Sample t Test Data Transformation - Overview From Covariance Matrix to PCA and Dimension Reduction Fourier Analysis - Spectrum.
Decomposition Method.
19- 1 Chapter Nineteen McGraw-Hill/Irwin © 2005 The McGraw-Hill Companies, Inc., All Rights Reserved.
1 BIS APPLICATION MANAGEMENT INFORMATION SYSTEM Advance forecasting Forecasting by identifying patterns in the past data Chapter outline: 1.Extrapolation.
Indexing Time Series. Time Series Databases A time series is a sequence of real numbers, representing the measurements of a real variable at equal time.
Indexing Time Series Based on Slides by C. Faloutsos (CMU) and D. Gunopulos (UCR)
Efficient Similarity Search in Sequence Databases Rakesh Agrawal, Christos Faloutsos and Arun Swami Leila Kaghazian.
Chapter 5 Time Series Analysis
Data Mining: Concepts and Techniques Mining time-series data.
Forecasting.
CS490D: Introduction to Data Mining Prof. Chris Clifton
Based on Slides by D. Gunopulos (UCR)
Part II – TIME SERIES ANALYSIS C2 Simple Time Series Methods & Moving Averages © Angel A. Juan & Carles Serrat - UPC 2007/2008.
Spatial and Temporal Databases Efficiently Time Series Matching by Wavelets (ICDE 98) Kin-pong Chan and Ada Wai-chee Fu.
Indexing Time Series.
Slides 13b: Time-Series Models; Measuring Forecast Error
Business Forecasting Chapter 4 Data Collection and Analysis in Forecasting.
Components of Time Series, Seasonality and Pre-conditions for Seasonal Adjustment Anu Peltola Economic Statistics Section, UNECE UNECE Workshop on Short-Term.
Fast Subsequence Matching in Time-Series Databases Christos Faloutsos M. Ranganathan Yannis Manolopoulos Department of Computer Science and ISR University.
Pattern Matching with Acceleration Data Pramod Vemulapalli.
Slides by John Loucks St. Edward’s University.
TIME SERIES by H.V.S. DE SILVA DEPARTMENT OF MATHEMATICS
Business Forecasting Used to try to predict the future Uses two main methods: Qualitative – seeking opinions on which to base decision making – Consumer.
Chapter 7 Forecasting n Quantitative Approaches to Forecasting n The Components of a Time Series n Measures of Forecast Accuracy n Using Smoothing Methods.
Time Series Data Analysis - I Yaji Sripada. Dept. of Computing Science, University of Aberdeen2 In this lecture you learn What are Time Series? How to.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Time Series Forecasting Chapter 13.
Subsequence Matching in Time Series Databases Xiaojin Xu
Fast Subsequence Matching in Time-Series Databases Author: Christos Faloutsos etc. Speaker: Weijun He.
Time series Decomposition Farideh Dehkordi-Vakil.
E.G.M. PetrakisSearching Signals and Patterns1  Given a query Q and a collection of N objects O 1,O 2,…O N search exactly or approximately  The ideal.
Basic Time Series Analyzing variable star data for the amateur astronomer.
1 Data Mining: Concepts and Techniques — Chapter 8 — 8.2 Mining time-series data Jiawei Han and Micheline Kamber Department of Computer Science University.
Indexing Time Series. Outline Spatial Databases Temporal Databases Spatio-temporal Databases Data Mining Multimedia Databases Text databases Image and.
Data Mining: Concepts and Techniques Mining data streams
Clustering.
Time Series Sequence Matching Jiaqin Wang CMPS 565.
Intelligent Database Systems Lab Advisor : Dr. Hsu Graduate : Chien-Shing Chen Author : Jessica K. Ting Michael K. Ng Hongqiang Rong Joshua Z. Huang 國立雲林科技大學.
Indexing Time Series. Outline Spatial Databases Temporal Databases Spatio-temporal Databases Multimedia Databases Time Series databases Text databases.
Time-Series Forecast Models  A time series is a sequence of evenly time-spaced data points, such as daily shipments, weekly sales, or quarterly earnings.
Chapter 20 Time Series Analysis and Forecasting. Introduction Any variable that is measured over time in sequential order is called a time series. We.
1 Decision Making ADMI 6510 Forecasting Models Key Sources: Data Analysis and Decision Making (Albrigth, Winston and Zappe) An Introduction to Management.
Statistics for Business and Economics Module 2: Regression and time series analysis Spring 2010 Lecture 7: Time Series Analysis and Forecasting 1 Priyantha.
Chapter 20 Time Series Analysis and Forecasting. Introduction Any variable that is measured over time in sequential order is called a time series. We.
Yandell – Econ 216 Chap 16-1 Chapter 16 Time-Series Forecasting.
Keogh, E. , Chakrabarti, K. , Pazzani, M. & Mehrotra, S. (2001)
Fast Subsequence Matching in Time-Series Databases.
Operations Management Contemporary Concepts and Cases
Data Transformation: Normalization
Chapter 7. Classification and Prediction
Chapter Nineteen McGraw-Hill/Irwin
Data Mining: Concepts and Techniques
TIME SERIES ANALYSIS.
Statistics: The Z score and the normal distribution
Subject Name: Data Warehousing and data Mining
Forecasting Chapter 11.
Chapter 4: Seasonal Series: Forecasting and Decomposition
Chapter 12 Using Descriptive Analysis, Performing
Jiawei Han Department of Computer Science
Data Mining: Concepts and Techniques — Chapter 8 — 8
FORCASTING AND DEMAND PLANNING
Finding Similar Time Series
I don’t need a title slide for a lecture
Data Mining: Concepts and Techniques — Chapter 8 — 8
What Is Good Clustering?
Time Series Analysis (Demand Forecasting)
Chapter Nineteen McGraw-Hill/Irwin
Data Mining: Concepts and Techniques — Chapter 8 — 8
Data Pre-processing Lecture Notes for Chapter 2
TIME SERIES MODELS – MOVING AVERAGES.
Presentation transcript:

Data Mining: Concepts and Techniques — Chapter 8 — 8 Data Mining: Concepts and Techniques — Chapter 8 — 8.2 Mining time-series data Jiawei Han and Micheline Kamber Department of Computer Science University of Illinois at Urbana-Champaign www.cs.uiuc.edu/~hanj ©2006 Jiawei Han and Micheline Kamber. All rights reserved. February 5, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques February 5, 2019 Data Mining: Concepts and Techniques

Chapter 8. Mining Stream, Time-Series, and Sequence Data Mining data streams Mining time-series data Mining sequence patterns in transactional databases Mining sequence patterns in biological data February 5, 2019 Data Mining: Concepts and Techniques

Time-Series and Sequential Pattern Mining Regression and trend analysis—A statistical approach Similarity search in time-series analysis Sequential Pattern Mining Markov Chain Hidden Markov Model February 5, 2019 Data Mining: Concepts and Techniques

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 February 5, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques A time series can be illustrated as a time-series graph which describes a point moving with the passage of time February 5, 2019 Data Mining: Concepts and Techniques

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 February 5, 2019 Data Mining: Concepts and Techniques

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 February 5, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques 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) February 5, 2019 Data Mining: Concepts and Techniques

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 E.g., if the sales during October, November, and December are 80%, 120%, and 140% of the average monthly sales for the whole year, respectively, then 80, 120, and 140 are seasonal index numbers for these months Deseasonalized data Data adjusted for seasonal variations for better trend and cyclic analysis Divide the original monthly data by the seasonal index numbers for the corresponding months February 5, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques Seasonal Index Raw data from http://www.bbk.ac.uk/manop/man/docs/QII_2_2003%20Time%20series.pdf February 5, 2019 Data Mining: Concepts and Techniques

Trend Discovery in Time-Series (2) Estimation of cyclic variations If (approximate) periodicity of cycles occurs, cyclic index can be constructed in much the same manner as seasonal indexes Estimation of irregular variations By adjusting the data for trend, seasonal and cyclic variations With the systematic analysis of the trend, cyclic, seasonal, and irregular components, it is possible to make long- or short-term predictions with reasonable quality February 5, 2019 Data Mining: Concepts and Techniques

Time-Series & Sequential Pattern Mining Regression and trend analysis—A statistical approach Similarity search in time-series analysis Sequential Pattern Mining Markov Chain Hidden Markov Model February 5, 2019 Data Mining: Concepts and Techniques

Similarity Search in Time-Series Analysis Normal database query finds exact match Similarity search finds data sequences that differ only slightly from the given query sequence Two categories of similarity queries 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 February 5, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques 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 February 5, 2019 Data Mining: Concepts and Techniques

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 February 5, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques DFT (continued) 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! February 5, 2019 Data Mining: Concepts and Techniques

Multidimensional Indexing in Time-Series Multidimensional index construction Constructed for efficient accessing using the first few Fourier coefficients Similarity search Use the index to retrieve the sequences that are at most a certain small distance away from the query sequence Perform post-processing by computing the actual distance between sequences in the time domain and discard any false matches February 5, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques Subsequence Matching Break each sequence into a set of pieces of window with length w Extract the features of the subsequence inside the window Map each sequence to a “trail” in the feature space Divide the trail of each sequence into “subtrails” and represent each of them with minimum bounding rectangle Use a multi-piece assembly algorithm to search for longer sequence matches February 5, 2019 Data Mining: Concepts and Techniques

Analysis of Similar Time Series February 5, 2019 Data Mining: Concepts and Techniques

Enhanced Similarity Search Methods Allow for gaps within a sequence or differences in offsets or amplitudes Normalize sequences with amplitude scaling and offset translation Two subsequences are considered similar if one lies within an envelope of  width around the other, ignoring outliers Two sequences are said to be similar if they have enough non-overlapping time-ordered pairs of similar subsequences Parameters specified by a user or expert: sliding window size, width of an envelope for similarity, maximum gap, and matching fraction February 5, 2019 Data Mining: Concepts and Techniques

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 February 5, 2019 Data Mining: Concepts and Techniques

Similar Time Series Analysis VanEck International Fund Fidelity Selective Precious Metal and Mineral Fund Two similar mutual funds in the different fund group February 5, 2019 Data Mining: Concepts and Techniques

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. February 5, 2019 Data Mining: Concepts and Techniques

References on Time-Series & Similarity Search R. Agrawal, C. Faloutsos, and A. Swami. Efficient similarity search in sequence databases. FODO’93 (Foundations of Data Organization and Algorithms). R. Agrawal, K.-I. Lin, H.S. Sawhney, and K. Shim. Fast similarity search in the presence of noise, scaling, and translation in time-series databases. VLDB'95. R. Agrawal, G. Psaila, E. L. Wimmers, and M. Zait. Querying shapes of histories. VLDB'95. C. Chatfield. The Analysis of Time Series: An Introduction, 3rd ed. Chapman & Hall, 1984. C. Faloutsos, M. Ranganathan, and Y. Manolopoulos. Fast subsequence matching in time-series databases. SIGMOD'94. D. Rafiei and A. Mendelzon. Similarity-based queries for time series data. SIGMOD'97. Y. Moon, K. Whang, W. Loh. Duality Based Subsequence Matching in Time-Series Databases, ICDE’02 B.-K. Yi, H. V. Jagadish, and C. Faloutsos. Efficient retrieval of similar time sequences under time warping. ICDE'98. B.-K. Yi, N. Sidiropoulos, T. Johnson, H. V. Jagadish, C. Faloutsos, and A. Biliris. Online data mining for co-evolving time sequences. ICDE'00. Dennis Shasha and Yunyue Zhu. High Performance Discovery in Time Series: Techniques and Case Studies, SPRINGER, 2004 February 5, 2019 Data Mining: Concepts and Techniques

Data Mining: Concepts and Techniques February 5, 2019 Data Mining: Concepts and Techniques