SlideShare a Scribd company logo
Discovering Patterns Perfectly
Matching the Data
Cristian Vava, PhD*

โ€ขCEO of Innovatorium Technologies Corporation, Your Special Analytics Department
Scope
โ€ข

โ€ข
โ€ข
โ€ข
โ€ข

In science and business we often need to find a formula (also called
pattern) describing the relation between a dependent variable and a
set of independent variables
Once found, such formula could be very useful in describing the
relation between its input and output parameters
The main purpose of this white paper is to show a simple method to
find such formula using linear algebra
Weโ€™ll show that with few (X, Y) pairs it is always very easy to find a
formula capable to perfectly match the given data
Table 1
As example weโ€™ll use the (X, Y) pairs from table 1.
X Y
1
2
3
4
Copyright 2014

1
3
5
7
2
Formalizing the Pattern Design
When trying to find a mathematical pattern what we look for is a
function F which generates the values of Y from the values of X in such
a way as to match the given combinations (X1,Y1; X2,Y2; X3,Y3; X4,Y4).
Mathematically the relation can be written as:
Y1 = F(X1); Y2 = F(X2); Y3 = F(X3); Y4 = F(X4)

There are numerous ways to design the function F however, in general
for few pairs of data points the easiest and safest way is to use linear
algebra.

Copyright 2014

3
PATTERN DESIGN ALGORITHM

Copyright 2014

4
Generating Matrix
1.

Select a set of independent functions (called base).
In the examples below weโ€™ll use polynomial functions:
[A]: X0, X1, X2, X3, ...
[B]: X0, X2, X3, X4, ...
[C]: X0, X3, X4, X5, ...
Many other functions can be used, common examples are based on but not limited
to the exponential and trigonometric formulas.

2.

Create the generating matrix M using a number of functions equal
to the number of original X,Y pairs.
For the polynomial functions in example [A]:
M=

0
๐‘‹1
0
๐‘‹2
0
๐‘‹3
0
๐‘‹4

1
๐‘‹1
1
๐‘‹2
1
๐‘‹3
1
๐‘‹4

2
๐‘‹1
2
๐‘‹2
2
๐‘‹3
2
๐‘‹4

3
๐‘‹1
3
๐‘‹2
3
๐‘‹3
3
๐‘‹4

Where X1, X2, X3, X4 are the four given values of X. In our approach the independent
variables X are embedded in the generating matrix M.
Copyright 2014

5
A Little Algebra
3.

Create the output vector as:

๐‘Œ1
๐‘Œ2
๐‘Œ3
๐‘Œ4

4.

Compute the coefficients [C]:

0
๐‘‹1
๐ถ1
0
๐‘‹2
๐ถ2
= 0
๐ถ3
๐‘‹3
0
๐ถ4
๐‘‹4

Here [ ]-1 represents the inverse of the
generating matrix M. In our algorithm M is
a square matrix so to be invertible its
determinant must be different from zero.

5.

The pattern generating formula
becomes:

1
๐‘‹1
1
๐‘‹2
1
๐‘‹3
1
๐‘‹4

2
๐‘‹1
2
๐‘‹2
2
๐‘‹3
2
๐‘‹4

3
๐‘‹1
3
๐‘‹2
3
๐‘‹3
3
๐‘‹4

โˆ’1

๐‘Œ1
๐‘Œ
* 2
๐‘Œ3
๐‘Œ4

Y=M*C

Where M is recreated for any set of X and
from now on C is a constant vector.

Copyright 2014

6
EXAMPLES

Copyright 2014

7
Example: Excel implementation [example A]
Table 2
X

Y

1

1

2

3

6

3

5

7

3.

3
5

2.

C

4

1.

B

4

7

B

C

D

E

14

1

1

1

1

15

1

2

4

8

16

1

3

9

27

17

1

4

16

64

C

D

E

Enter the original pairs in cells B4-C7

Create the generating matrix in cells B14-E17 by
typing in cells B14-E14 the formulas =B3^0,
=B3^1, =B3^2, =B3^3, then select cells B14-E14
and pull down the lower right corner by 3 cells.
Compute the inverse M-1 by typing in cell B26
the formula =MINVERSE(B14:E17), select cells
B26-E29, press key F2 followed by Ctrl-ShiftEnter.
Copyright 2014

Table 3

Table 4
B
26

4.000 -6.000 4.000 -1.000

27

-4.333 9.500 -7.000 1.833

28

1.500 -4.000 3.500 -1.000

29

-0.167 0.500 -0.500 0.167

8
Example: Excel implementation [A] - cont
Table 5

4.

2.

Compute the coefficients C by typing in cell B31
the formula =MMULT(B26:E29,C4:C7), select cells
B31-B34, press key F2 followed by Ctrl-Shift-Enter.

B

31

-1

32

2

33

0

34

0

From C create the engendering formula:
๐‘Œ = โˆ’1 + 2 โˆ— ๐‘‹

Cells B31-B34 contain the coefficient of X0, X1, X2, and X3.

3.

For any value of X compute the corresponding Y by
replacing X in the formula above. For example:
X = 8 implies Y=-1+2*8=15

Copyright 2014

9
Examples of patterns
Table 6 below shows several examples of patterns found using the Excel
Table 6
implementation.
X Ya

The engendering formulas are:
๐‘Œ๐‘Ž = 2 โˆ— ๐‘‹ โˆ’ 1
๐‘Œ๐‘ = โˆ’0.04 + 1.4 โˆ— ๐‘‹2 โˆ’ 0.4 โˆ— ๐‘‹3 + 0.04 โˆ— ๐‘‹4

Yb

Yc

Yd

1 1
1
1
1
2 3
3
3
3
3 5
5
5
5
4 7
7
7
7
5 9 9.96 15.506
716.73
6 11 15.80 48.590
8707.58
7 13 27.40 140.952 58473.76
8 15 48.60 348.976 282983.99

๐‘Œ๐‘ = 0.4458 + 0.8735 โˆ— ๐‘‹3 โˆ’ 0.3614 โˆ— ๐‘‹4 + 0.042168 โˆ— ๐‘‹5
๐‘Œ๐‘‘ = 0.9095 + 0.0945 โˆ— ๐‘‹ 5 โˆ’ 3.9638 โˆ— 10โˆ’3 โˆ— ๐‘‹ 8 + 4.0352 โˆ— 10โˆ’5 โˆ— ๐‘‹ 11

Copyright 2014

10
Example: R implementation [A]
1.

Enter the initial pairs

2.

Create the generating matrix

3.

Find the constants C
It produces the same values as in Excel

4.

From the model compute Y for X in the
range 1-8

> X <- matrix(c(1,2,3,4),ncol=1)
> Y <- c(1,3,5,7)
>
> M <- cbind(X^0,X^1,X^2,X^3)
>
> C=solve(M,Y)
>C
[1] -1 2 0 0
>
> Xl <- matrix((1:8), ncol=1)
> Ml <- cbind(Xl^0,Xl^1,Xl^2,Xl^3)
> Yl <- Ml%*%C

The result are: 1, 3, 5, 7, 9, 11, 13, 15

Copyright 2014

11
Example: R implementation (cont.)
Using the R code above we can recreate the same patterns found with
Excel, and sometimes experiment with much more complex bases or
even arbitrarily chosen functions.

โ€ข As a generalization letโ€™s choose the next pair as (5, 7) and the base:
X0.31, X1.54, X3.57, X3.78, X9.11 . The engendering formula becomes:
๐‘Œ = โˆ’0.4356 โˆ— ๐‘‹ 0.31 + 1.564 โˆ— ๐‘‹1.54 โˆ’ 0.41086 โˆ— ๐‘‹ 3.57 + 0.2818 โˆ— ๐‘‹ 3.78 โˆ’ 2.576
โˆ— 10โˆ’6 โˆ— ๐‘‹ 9.11

โ€ข Another example uses sinusoidal functions:
๐‘Œ = 4.7471 โˆ— ๐‘†๐‘–๐‘› ๐‘‹ โˆ’ 21.6737 โˆ— ๐‘†๐‘–๐‘› 2 โˆ— ๐‘‹ โˆ’ 43.5023 โˆ— ๐‘†๐‘–๐‘› 3 โˆ— ๐‘‹ โˆ’ 30.1958
โˆ— ๐‘†๐‘–๐‘›(4 โˆ— ๐‘‹)

Copyright 2014

12
CONCLUSIONS

Copyright 2014

13
Mathematical Perspective
โ€ข

It is possible and generally easy to find a formula describing the
relation between the values of data pairs using simple algebra.

โ€ข

The discovered pattern is not unique and in most cases it is possible
to find a matching formula using almost any type of base and even
almost any type of function, not only polynomial.

โ€ข

Almost any value could be assigned to the next pair of data.

โ€ข

The algorithm can be expanded for several independent variables.

โ€ข

If the number of pairs becomes very large this method involves
tedious matrix manipulations and the result is too complex to have
much practical value.

Copyright 2014

14
Qualitative Patterns
Test Set

Options Set

1

C

5

C

2

3

4

6

7

8

?
โ€ข Most qualitative patterns can be translated into numerical patterns.
โ€ข Steps to solve a Test Set: find relevant features, convert features to
numbers, find numeric patterns, predict next values, translate
numbers into features.
โ€ข To avoid the multiple patterns issue tests give an Options Set
โ€ข Here the relevant features are number of vertices and line type.

15
Alternate Reality?
โ€ข Since values predicted by each model are so different inside and
outside the original range of X it is evident that, at best, a single
model is correct although several models can be acceptable
approximations.
โ€ข This Alternate Reality issue is well known in other fields:
โ€“ Immanuel Kant suggested a division between the natural world called Noumena
(our X,Y pairs) and the human vision of it called Phenomena (model M).
โ€“ Klaus Conrad suggested the term Apophenia to describe a โ€œspecific experience of
an abnormal meaningfulnessโ€ or our tendency to see patterns in random data.

โ€ข To dispel any doubts, the pairs used in this example are totally
independent being created by a quasi-random number generator
from R (see code snippet)

> set.seed(8555)
> C <- floor(t(runif(10))*10)
> Y <- C[1:4]

Copyright 2014

16
Final Word
โ€ข The power and beauty of mathematics could work for or
against us depending on how we handle its intricacies.
โ€ข Are you sure you are not gambling the future of your
company with the latest analytic fad?
โ€ข Contact us today to learn how we can help you validate
your analytic processes.

Copyright 2014

17
Legal Disclaimer
Under no circumstances but not limited to negligence, shall Innovatorium
Technologies Corporation be liable for any direct, indirect, special, incidental
or consequential damages whatsoever that result from the use of
information presented in this white paper, unless that information is
subsequently confirmed in writing as part of a legally binding contract.
The information presented in this white paper cannot and do not address
the unique facts and circumstances of your specific situation and should not
be relied on for your particular applications. Therefore, you should not use
this information without first contacting Innovatorium Technologies
Corporation.

Contact Information
Web: www.innovatt.com; www.heuristicanalytics.com
Email: bd @ innovatt.com
Phone: +1-267- 342-2815
Copyright 2014

18

More Related Content

What's hot

Module1 exponential functions
Module1  exponential functionsModule1  exponential functions
Module1 exponential functions
dionesioable
ย 
3
33
3silvia
ย 
2. polynomial interpolation
2. polynomial interpolation2. polynomial interpolation
2. polynomial interpolation
EasyStudy3
ย 
Numerical Method 2
Numerical Method 2Numerical Method 2
Numerical Method 2
Rokonuzzaman Rony
ย 
Rational Zeros and Decarte's Rule of Signs
Rational Zeros and Decarte's Rule of SignsRational Zeros and Decarte's Rule of Signs
Rational Zeros and Decarte's Rule of Signsswartzje
ย 
Interp lagrange
Interp lagrangeInterp lagrange
Interp lagrangePradeep Deepu
ย 
Numerical method
Numerical methodNumerical method
Numerical methodKumar Gaurav
ย 
Applied numerical methods lec9
Applied numerical methods lec9Applied numerical methods lec9
Applied numerical methods lec9
Yasser Ahmed
ย 
6.3 evaluating-and-graphing-polynomila-functions
6.3 evaluating-and-graphing-polynomila-functions6.3 evaluating-and-graphing-polynomila-functions
6.3 evaluating-and-graphing-polynomila-functionsmorrobea
ย 
Module 3 polynomial functions
Module 3   polynomial functionsModule 3   polynomial functions
Module 3 polynomial functions
dionesioable
ย 
3.2.interpolation lagrange
3.2.interpolation lagrange3.2.interpolation lagrange
3.2.interpolation lagrange
SamuelOseiAsare
ย 
Data Analysis Assignment Help
Data Analysis Assignment Help Data Analysis Assignment Help
Data Analysis Assignment Help
Statistics Assignment Help
ย 
Spurious correlation (updated)
Spurious correlation (updated)Spurious correlation (updated)
Spurious correlation (updated)
jemille6
ย 
Quadratic functions
Quadratic functionsQuadratic functions
Quadratic functionsReynaldo San Juan
ย 
Algebra 2 Section 4-5
Algebra 2 Section 4-5Algebra 2 Section 4-5
Algebra 2 Section 4-5
Jimbo Lamb
ย 
Lecture 8 section 3.2 polynomial equations
Lecture 8   section 3.2 polynomial equationsLecture 8   section 3.2 polynomial equations
Lecture 8 section 3.2 polynomial equationsnjit-ronbrown
ย 
Graphs of polynomial functions
Graphs of polynomial functionsGraphs of polynomial functions
Graphs of polynomial functionsCarlos Erepol
ย 
Maths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K MukhopadhyayMaths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K Mukhopadhyay
Dr. Asish K Mukhopadhyay
ย 
Mws gen nle_ppt_bisection
Mws gen nle_ppt_bisectionMws gen nle_ppt_bisection
Mws gen nle_ppt_bisectionAlvin Setiawan
ย 

What's hot (20)

Module1 exponential functions
Module1  exponential functionsModule1  exponential functions
Module1 exponential functions
ย 
3
33
3
ย 
2. polynomial interpolation
2. polynomial interpolation2. polynomial interpolation
2. polynomial interpolation
ย 
Numerical Method 2
Numerical Method 2Numerical Method 2
Numerical Method 2
ย 
Rational Zeros and Decarte's Rule of Signs
Rational Zeros and Decarte's Rule of SignsRational Zeros and Decarte's Rule of Signs
Rational Zeros and Decarte's Rule of Signs
ย 
Interp lagrange
Interp lagrangeInterp lagrange
Interp lagrange
ย 
Es272 ch5a
Es272 ch5aEs272 ch5a
Es272 ch5a
ย 
Numerical method
Numerical methodNumerical method
Numerical method
ย 
Applied numerical methods lec9
Applied numerical methods lec9Applied numerical methods lec9
Applied numerical methods lec9
ย 
6.3 evaluating-and-graphing-polynomila-functions
6.3 evaluating-and-graphing-polynomila-functions6.3 evaluating-and-graphing-polynomila-functions
6.3 evaluating-and-graphing-polynomila-functions
ย 
Module 3 polynomial functions
Module 3   polynomial functionsModule 3   polynomial functions
Module 3 polynomial functions
ย 
3.2.interpolation lagrange
3.2.interpolation lagrange3.2.interpolation lagrange
3.2.interpolation lagrange
ย 
Data Analysis Assignment Help
Data Analysis Assignment Help Data Analysis Assignment Help
Data Analysis Assignment Help
ย 
Spurious correlation (updated)
Spurious correlation (updated)Spurious correlation (updated)
Spurious correlation (updated)
ย 
Quadratic functions
Quadratic functionsQuadratic functions
Quadratic functions
ย 
Algebra 2 Section 4-5
Algebra 2 Section 4-5Algebra 2 Section 4-5
Algebra 2 Section 4-5
ย 
Lecture 8 section 3.2 polynomial equations
Lecture 8   section 3.2 polynomial equationsLecture 8   section 3.2 polynomial equations
Lecture 8 section 3.2 polynomial equations
ย 
Graphs of polynomial functions
Graphs of polynomial functionsGraphs of polynomial functions
Graphs of polynomial functions
ย 
Maths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K MukhopadhyayMaths iii quick review by Dr Asish K Mukhopadhyay
Maths iii quick review by Dr Asish K Mukhopadhyay
ย 
Mws gen nle_ppt_bisection
Mws gen nle_ppt_bisectionMws gen nle_ppt_bisection
Mws gen nle_ppt_bisection
ย 

Viewers also liked

Debra Purcell-Regis Youth Athletics
Debra Purcell-Regis Youth AthleticsDebra Purcell-Regis Youth Athletics
Debra Purcell-Regis Youth Athletics
Debra Purcell-Regis
ย 
Light Controlled Vehicle
Light Controlled VehicleLight Controlled Vehicle
Light Controlled VehicleAnshil Bhansali
ย 
RAVI PEO RESUME OCT 2016
RAVI PEO RESUME OCT 2016RAVI PEO RESUME OCT 2016
RAVI PEO RESUME OCT 2016ravi randham
ย 
Innovationsdag
InnovationsdagInnovationsdag
InnovationsdagToke Dam
ย 
PyConCZ'16 - DoS youtself a.k.a. Load Testing
PyConCZ'16 - DoS youtself a.k.a. Load TestingPyConCZ'16 - DoS youtself a.k.a. Load Testing
PyConCZ'16 - DoS youtself a.k.a. Load Testing
Dariusz Aniszewski
ย 
WLA Fall Newletter
WLA Fall NewletterWLA Fall Newletter
WLA Fall NewletterAnissa Jurewicz
ย 
Temp Monitoring
Temp MonitoringTemp Monitoring
Temp MonitoringAnshil Bhansali
ย 
Mvo mkb loket
Mvo mkb loketMvo mkb loket
Mvo mkb loket
Bert van Heusden
ย 
Twitterlinkedinunipadua
TwitterlinkedinunipaduaTwitterlinkedinunipadua
TwitterlinkedinunipaduaRobert Julian Smith
ย 
Presentation1
Presentation1Presentation1
Presentation1Haley Davis
ย 
Local SEO- Why & How we do it? A brief by EZ Rankings | Local SEO
Local SEO- Why & How we do it? A brief by EZ Rankings | Local SEOLocal SEO- Why & How we do it? A brief by EZ Rankings | Local SEO
Local SEO- Why & How we do it? A brief by EZ Rankings | Local SEO
Mansi Rana
ย 
ocenka-juridicheskih-lic
ocenka-juridicheskih-licocenka-juridicheskih-lic
ocenka-juridicheskih-lic
Unirate24
ย 
2014 05 projecte mail art italy
2014 05 projecte mail art italy2014 05 projecte mail art italy
2014 05 projecte mail art italy
CFA Jacint Verdaguer
ย 
Gop e orcamento cmc 2017
Gop e orcamento cmc 2017Gop e orcamento cmc 2017
Gop e orcamento cmc 2017
NDCCOIMBRA
ย 
4.giรกc so do.chuyen cแปก
4.giรกc so do.chuyen cแปก4.giรกc so do.chuyen cแปก
4.giรกc so do.chuyen cแปกlinhdo1313
ย 
Employee Retention - How having a mentoring program can assist
Employee Retention - How having a mentoring program can assistEmployee Retention - How having a mentoring program can assist
Employee Retention - How having a mentoring program can assist
Stephen Grindrod
ย 
Mentoring for Financial Professionals
Mentoring for Financial ProfessionalsMentoring for Financial Professionals
Mentoring for Financial Professionals
Stephen Grindrod
ย 

Viewers also liked (18)

Debra Purcell-Regis Youth Athletics
Debra Purcell-Regis Youth AthleticsDebra Purcell-Regis Youth Athletics
Debra Purcell-Regis Youth Athletics
ย 
Light Controlled Vehicle
Light Controlled VehicleLight Controlled Vehicle
Light Controlled Vehicle
ย 
RAVI PEO RESUME OCT 2016
RAVI PEO RESUME OCT 2016RAVI PEO RESUME OCT 2016
RAVI PEO RESUME OCT 2016
ย 
Innovationsdag
InnovationsdagInnovationsdag
Innovationsdag
ย 
PyConCZ'16 - DoS youtself a.k.a. Load Testing
PyConCZ'16 - DoS youtself a.k.a. Load TestingPyConCZ'16 - DoS youtself a.k.a. Load Testing
PyConCZ'16 - DoS youtself a.k.a. Load Testing
ย 
WLA Fall Newletter
WLA Fall NewletterWLA Fall Newletter
WLA Fall Newletter
ย 
Temp Monitoring
Temp MonitoringTemp Monitoring
Temp Monitoring
ย 
Mvo mkb loket
Mvo mkb loketMvo mkb loket
Mvo mkb loket
ย 
Twitterlinkedinunipadua
TwitterlinkedinunipaduaTwitterlinkedinunipadua
Twitterlinkedinunipadua
ย 
GurminderBharani
GurminderBharaniGurminderBharani
GurminderBharani
ย 
Presentation1
Presentation1Presentation1
Presentation1
ย 
Local SEO- Why & How we do it? A brief by EZ Rankings | Local SEO
Local SEO- Why & How we do it? A brief by EZ Rankings | Local SEOLocal SEO- Why & How we do it? A brief by EZ Rankings | Local SEO
Local SEO- Why & How we do it? A brief by EZ Rankings | Local SEO
ย 
ocenka-juridicheskih-lic
ocenka-juridicheskih-licocenka-juridicheskih-lic
ocenka-juridicheskih-lic
ย 
2014 05 projecte mail art italy
2014 05 projecte mail art italy2014 05 projecte mail art italy
2014 05 projecte mail art italy
ย 
Gop e orcamento cmc 2017
Gop e orcamento cmc 2017Gop e orcamento cmc 2017
Gop e orcamento cmc 2017
ย 
4.giรกc so do.chuyen cแปก
4.giรกc so do.chuyen cแปก4.giรกc so do.chuyen cแปก
4.giรกc so do.chuyen cแปก
ย 
Employee Retention - How having a mentoring program can assist
Employee Retention - How having a mentoring program can assistEmployee Retention - How having a mentoring program can assist
Employee Retention - How having a mentoring program can assist
ย 
Mentoring for Financial Professionals
Mentoring for Financial ProfessionalsMentoring for Financial Professionals
Mentoring for Financial Professionals
ย 

Similar to Pattern Discovery - part I

MODULE_05-Matrix Decomposition.pptx
MODULE_05-Matrix Decomposition.pptxMODULE_05-Matrix Decomposition.pptx
MODULE_05-Matrix Decomposition.pptx
AlokSingh205089
ย 
Regression
RegressionRegression
Chi-squared Goodness of Fit Test Project Overview and.docx
Chi-squared Goodness of Fit Test Project  Overview and.docxChi-squared Goodness of Fit Test Project  Overview and.docx
Chi-squared Goodness of Fit Test Project Overview and.docx
mccormicknadine86
ย 
Chi-squared Goodness of Fit Test Project Overview and.docx
Chi-squared Goodness of Fit Test Project  Overview and.docxChi-squared Goodness of Fit Test Project  Overview and.docx
Chi-squared Goodness of Fit Test Project Overview and.docx
bissacr
ย 
A GENERALIZED SAMPLING THEOREM OVER GALOIS FIELD DOMAINS FOR EXPERIMENTAL DESIGN
A GENERALIZED SAMPLING THEOREM OVER GALOIS FIELD DOMAINS FOR EXPERIMENTAL DESIGNA GENERALIZED SAMPLING THEOREM OVER GALOIS FIELD DOMAINS FOR EXPERIMENTAL DESIGN
A GENERALIZED SAMPLING THEOREM OVER GALOIS FIELD DOMAINS FOR EXPERIMENTAL DESIGN
cscpconf
ย 
A Generalized Sampling Theorem Over Galois Field Domains for Experimental Des...
A Generalized Sampling Theorem Over Galois Field Domains for Experimental Des...A Generalized Sampling Theorem Over Galois Field Domains for Experimental Des...
A Generalized Sampling Theorem Over Galois Field Domains for Experimental Des...
csandit
ย 
Research Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and ScienceResearch Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and Science
researchinventy
ย 
principalcomponentanalysis-150314161616-conversion-gate01 (1).pptx
principalcomponentanalysis-150314161616-conversion-gate01 (1).pptxprincipalcomponentanalysis-150314161616-conversion-gate01 (1).pptx
principalcomponentanalysis-150314161616-conversion-gate01 (1).pptx
sushmitjivtode21
ย 
Deep Learning: Introduction & Chapter 5 Machine Learning Basics
Deep Learning: Introduction & Chapter 5 Machine Learning BasicsDeep Learning: Introduction & Chapter 5 Machine Learning Basics
Deep Learning: Introduction & Chapter 5 Machine Learning Basics
Jason Tsai
ย 
Ijarcet vol-2-issue-4-1579-1582
Ijarcet vol-2-issue-4-1579-1582Ijarcet vol-2-issue-4-1579-1582
Ijarcet vol-2-issue-4-1579-1582Editor IJARCET
ย 
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Maninda Edirisooriya
ย 
Regression
RegressionRegression
Regression
ramyaranjith
ย 
Applications of Multivariable Calculus.ppt
Applications of Multivariable Calculus.pptApplications of Multivariable Calculus.ppt
Applications of Multivariable Calculus.ppt
saiprashanth973626
ย 
Symbolic Computation via Grรถbner Basis
Symbolic Computation via Grรถbner BasisSymbolic Computation via Grรถbner Basis
Symbolic Computation via Grรถbner Basis
IJERA Editor
ย 
NUMERICA METHODS 1 final touch summary for test 1
NUMERICA METHODS 1 final touch summary for test 1NUMERICA METHODS 1 final touch summary for test 1
NUMERICA METHODS 1 final touch summary for test 1
musadoto
ย 
Unit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptxUnit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptx
ssuser01e301
ย 
SAMPLING MEAN DEFINITION The term sampling mean .docx
SAMPLING MEAN DEFINITION The term sampling mean .docxSAMPLING MEAN DEFINITION The term sampling mean .docx
SAMPLING MEAN DEFINITION The term sampling mean .docx
anhlodge
ย 
Fortran chapter 2.pdf
Fortran chapter 2.pdfFortran chapter 2.pdf
Fortran chapter 2.pdf
JifarRaya
ย 

Similar to Pattern Discovery - part I (20)

MODULE_05-Matrix Decomposition.pptx
MODULE_05-Matrix Decomposition.pptxMODULE_05-Matrix Decomposition.pptx
MODULE_05-Matrix Decomposition.pptx
ย 
Regression
RegressionRegression
Regression
ย 
Chi-squared Goodness of Fit Test Project Overview and.docx
Chi-squared Goodness of Fit Test Project  Overview and.docxChi-squared Goodness of Fit Test Project  Overview and.docx
Chi-squared Goodness of Fit Test Project Overview and.docx
ย 
Chi-squared Goodness of Fit Test Project Overview and.docx
Chi-squared Goodness of Fit Test Project  Overview and.docxChi-squared Goodness of Fit Test Project  Overview and.docx
Chi-squared Goodness of Fit Test Project Overview and.docx
ย 
A GENERALIZED SAMPLING THEOREM OVER GALOIS FIELD DOMAINS FOR EXPERIMENTAL DESIGN
A GENERALIZED SAMPLING THEOREM OVER GALOIS FIELD DOMAINS FOR EXPERIMENTAL DESIGNA GENERALIZED SAMPLING THEOREM OVER GALOIS FIELD DOMAINS FOR EXPERIMENTAL DESIGN
A GENERALIZED SAMPLING THEOREM OVER GALOIS FIELD DOMAINS FOR EXPERIMENTAL DESIGN
ย 
A Generalized Sampling Theorem Over Galois Field Domains for Experimental Des...
A Generalized Sampling Theorem Over Galois Field Domains for Experimental Des...A Generalized Sampling Theorem Over Galois Field Domains for Experimental Des...
A Generalized Sampling Theorem Over Galois Field Domains for Experimental Des...
ย 
Research Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and ScienceResearch Inventy : International Journal of Engineering and Science
Research Inventy : International Journal of Engineering and Science
ย 
Fst ch3 notes
Fst ch3 notesFst ch3 notes
Fst ch3 notes
ย 
principalcomponentanalysis-150314161616-conversion-gate01 (1).pptx
principalcomponentanalysis-150314161616-conversion-gate01 (1).pptxprincipalcomponentanalysis-150314161616-conversion-gate01 (1).pptx
principalcomponentanalysis-150314161616-conversion-gate01 (1).pptx
ย 
Deep Learning: Introduction & Chapter 5 Machine Learning Basics
Deep Learning: Introduction & Chapter 5 Machine Learning BasicsDeep Learning: Introduction & Chapter 5 Machine Learning Basics
Deep Learning: Introduction & Chapter 5 Machine Learning Basics
ย 
Ijarcet vol-2-issue-4-1579-1582
Ijarcet vol-2-issue-4-1579-1582Ijarcet vol-2-issue-4-1579-1582
Ijarcet vol-2-issue-4-1579-1582
ย 
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
Lecture 4 - Linear Regression, a lecture in subject module Statistical & Mach...
ย 
Regression
RegressionRegression
Regression
ย 
Applications of Multivariable Calculus.ppt
Applications of Multivariable Calculus.pptApplications of Multivariable Calculus.ppt
Applications of Multivariable Calculus.ppt
ย 
Symbolic Computation via Grรถbner Basis
Symbolic Computation via Grรถbner BasisSymbolic Computation via Grรถbner Basis
Symbolic Computation via Grรถbner Basis
ย 
NUMERICA METHODS 1 final touch summary for test 1
NUMERICA METHODS 1 final touch summary for test 1NUMERICA METHODS 1 final touch summary for test 1
NUMERICA METHODS 1 final touch summary for test 1
ย 
151028_abajpai1
151028_abajpai1151028_abajpai1
151028_abajpai1
ย 
Unit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptxUnit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptx
ย 
SAMPLING MEAN DEFINITION The term sampling mean .docx
SAMPLING MEAN DEFINITION The term sampling mean .docxSAMPLING MEAN DEFINITION The term sampling mean .docx
SAMPLING MEAN DEFINITION The term sampling mean .docx
ย 
Fortran chapter 2.pdf
Fortran chapter 2.pdfFortran chapter 2.pdf
Fortran chapter 2.pdf
ย 

Recently uploaded

The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...
Adam Smith
ย 
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
BBPMedia1
ย 
Buy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star ReviewsBuy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star Reviews
usawebmarket
ย 
What are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdfWhat are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdf
HumanResourceDimensi1
ย 
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdfMeas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
dylandmeas
ย 
What is the TDS Return Filing Due Date for FY 2024-25.pdf
What is the TDS Return Filing Due Date for FY 2024-25.pdfWhat is the TDS Return Filing Due Date for FY 2024-25.pdf
What is the TDS Return Filing Due Date for FY 2024-25.pdf
seoforlegalpillers
ย 
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdfModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
fisherameliaisabella
ย 
April 2024 Nostalgia Products Newsletter
April 2024 Nostalgia Products NewsletterApril 2024 Nostalgia Products Newsletter
April 2024 Nostalgia Products Newsletter
NathanBaughman3
ย 
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-indiafalcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
Falcon Invoice Discounting
ย 
The effects of customers service quality and online reviews on customer loyal...
The effects of customers service quality and online reviews on customer loyal...The effects of customers service quality and online reviews on customer loyal...
The effects of customers service quality and online reviews on customer loyal...
balatucanapplelovely
ย 
Project File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdfProject File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdf
RajPriye
ย 
Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)
Lviv Startup Club
ย 
amptalk_RecruitingDeck_english_2024.06.05
amptalk_RecruitingDeck_english_2024.06.05amptalk_RecruitingDeck_english_2024.06.05
amptalk_RecruitingDeck_english_2024.06.05
marketing317746
ย 
ENTREPRENEURSHIP TRAINING.ppt for graduating class (1).ppt
ENTREPRENEURSHIP TRAINING.ppt for graduating class (1).pptENTREPRENEURSHIP TRAINING.ppt for graduating class (1).ppt
ENTREPRENEURSHIP TRAINING.ppt for graduating class (1).ppt
zechu97
ย 
FINAL PRESENTATION.pptx12143241324134134
FINAL PRESENTATION.pptx12143241324134134FINAL PRESENTATION.pptx12143241324134134
FINAL PRESENTATION.pptx12143241324134134
LR1709MUSIC
ย 
CADAVER AS OUR FIRST TEACHER anatomt in your.pptx
CADAVER AS OUR FIRST TEACHER anatomt in your.pptxCADAVER AS OUR FIRST TEACHER anatomt in your.pptx
CADAVER AS OUR FIRST TEACHER anatomt in your.pptx
fakeloginn69
ย 
20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
tjcomstrang
ย 
Business Valuation Principles for Entrepreneurs
Business Valuation Principles for EntrepreneursBusiness Valuation Principles for Entrepreneurs
Business Valuation Principles for Entrepreneurs
Ben Wann
ย 
LA HUG - Video Testimonials with Chynna Morgan - June 2024
LA HUG - Video Testimonials with Chynna Morgan - June 2024LA HUG - Video Testimonials with Chynna Morgan - June 2024
LA HUG - Video Testimonials with Chynna Morgan - June 2024
Lital Barkan
ย 
Putting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxPutting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptx
Cynthia Clay
ย 

Recently uploaded (20)

The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...The Influence of Marketing Strategy and Market Competition on Business Perfor...
The Influence of Marketing Strategy and Market Competition on Business Perfor...
ย 
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
RMD24 | Debunking the non-endemic revenue myth Marvin Vacquier Droop | First ...
ย 
Buy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star ReviewsBuy Verified PayPal Account | Buy Google 5 Star Reviews
Buy Verified PayPal Account | Buy Google 5 Star Reviews
ย 
What are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdfWhat are the main advantages of using HR recruiter services.pdf
What are the main advantages of using HR recruiter services.pdf
ย 
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdfMeas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
Meas_Dylan_DMBS_PB1_2024-05XX_Revised.pdf
ย 
What is the TDS Return Filing Due Date for FY 2024-25.pdf
What is the TDS Return Filing Due Date for FY 2024-25.pdfWhat is the TDS Return Filing Due Date for FY 2024-25.pdf
What is the TDS Return Filing Due Date for FY 2024-25.pdf
ย 
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdfModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ModelingMarketingStrategiesMKS.CollumbiaUniversitypdf
ย 
April 2024 Nostalgia Products Newsletter
April 2024 Nostalgia Products NewsletterApril 2024 Nostalgia Products Newsletter
April 2024 Nostalgia Products Newsletter
ย 
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-indiafalcon-invoice-discounting-a-premier-platform-for-investors-in-india
falcon-invoice-discounting-a-premier-platform-for-investors-in-india
ย 
The effects of customers service quality and online reviews on customer loyal...
The effects of customers service quality and online reviews on customer loyal...The effects of customers service quality and online reviews on customer loyal...
The effects of customers service quality and online reviews on customer loyal...
ย 
Project File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdfProject File Report BBA 6th semester.pdf
Project File Report BBA 6th semester.pdf
ย 
Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)Maksym Vyshnivetskyi: PMO Quality Management (UA)
Maksym Vyshnivetskyi: PMO Quality Management (UA)
ย 
amptalk_RecruitingDeck_english_2024.06.05
amptalk_RecruitingDeck_english_2024.06.05amptalk_RecruitingDeck_english_2024.06.05
amptalk_RecruitingDeck_english_2024.06.05
ย 
ENTREPRENEURSHIP TRAINING.ppt for graduating class (1).ppt
ENTREPRENEURSHIP TRAINING.ppt for graduating class (1).pptENTREPRENEURSHIP TRAINING.ppt for graduating class (1).ppt
ENTREPRENEURSHIP TRAINING.ppt for graduating class (1).ppt
ย 
FINAL PRESENTATION.pptx12143241324134134
FINAL PRESENTATION.pptx12143241324134134FINAL PRESENTATION.pptx12143241324134134
FINAL PRESENTATION.pptx12143241324134134
ย 
CADAVER AS OUR FIRST TEACHER anatomt in your.pptx
CADAVER AS OUR FIRST TEACHER anatomt in your.pptxCADAVER AS OUR FIRST TEACHER anatomt in your.pptx
CADAVER AS OUR FIRST TEACHER anatomt in your.pptx
ย 
20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf20240425_ TJ Communications Credentials_compressed.pdf
20240425_ TJ Communications Credentials_compressed.pdf
ย 
Business Valuation Principles for Entrepreneurs
Business Valuation Principles for EntrepreneursBusiness Valuation Principles for Entrepreneurs
Business Valuation Principles for Entrepreneurs
ย 
LA HUG - Video Testimonials with Chynna Morgan - June 2024
LA HUG - Video Testimonials with Chynna Morgan - June 2024LA HUG - Video Testimonials with Chynna Morgan - June 2024
LA HUG - Video Testimonials with Chynna Morgan - June 2024
ย 
Putting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptxPutting the SPARK into Virtual Training.pptx
Putting the SPARK into Virtual Training.pptx
ย 

Pattern Discovery - part I

  • 1. Discovering Patterns Perfectly Matching the Data Cristian Vava, PhD* โ€ขCEO of Innovatorium Technologies Corporation, Your Special Analytics Department
  • 2. Scope โ€ข โ€ข โ€ข โ€ข โ€ข In science and business we often need to find a formula (also called pattern) describing the relation between a dependent variable and a set of independent variables Once found, such formula could be very useful in describing the relation between its input and output parameters The main purpose of this white paper is to show a simple method to find such formula using linear algebra Weโ€™ll show that with few (X, Y) pairs it is always very easy to find a formula capable to perfectly match the given data Table 1 As example weโ€™ll use the (X, Y) pairs from table 1. X Y 1 2 3 4 Copyright 2014 1 3 5 7 2
  • 3. Formalizing the Pattern Design When trying to find a mathematical pattern what we look for is a function F which generates the values of Y from the values of X in such a way as to match the given combinations (X1,Y1; X2,Y2; X3,Y3; X4,Y4). Mathematically the relation can be written as: Y1 = F(X1); Y2 = F(X2); Y3 = F(X3); Y4 = F(X4) There are numerous ways to design the function F however, in general for few pairs of data points the easiest and safest way is to use linear algebra. Copyright 2014 3
  • 5. Generating Matrix 1. Select a set of independent functions (called base). In the examples below weโ€™ll use polynomial functions: [A]: X0, X1, X2, X3, ... [B]: X0, X2, X3, X4, ... [C]: X0, X3, X4, X5, ... Many other functions can be used, common examples are based on but not limited to the exponential and trigonometric formulas. 2. Create the generating matrix M using a number of functions equal to the number of original X,Y pairs. For the polynomial functions in example [A]: M= 0 ๐‘‹1 0 ๐‘‹2 0 ๐‘‹3 0 ๐‘‹4 1 ๐‘‹1 1 ๐‘‹2 1 ๐‘‹3 1 ๐‘‹4 2 ๐‘‹1 2 ๐‘‹2 2 ๐‘‹3 2 ๐‘‹4 3 ๐‘‹1 3 ๐‘‹2 3 ๐‘‹3 3 ๐‘‹4 Where X1, X2, X3, X4 are the four given values of X. In our approach the independent variables X are embedded in the generating matrix M. Copyright 2014 5
  • 6. A Little Algebra 3. Create the output vector as: ๐‘Œ1 ๐‘Œ2 ๐‘Œ3 ๐‘Œ4 4. Compute the coefficients [C]: 0 ๐‘‹1 ๐ถ1 0 ๐‘‹2 ๐ถ2 = 0 ๐ถ3 ๐‘‹3 0 ๐ถ4 ๐‘‹4 Here [ ]-1 represents the inverse of the generating matrix M. In our algorithm M is a square matrix so to be invertible its determinant must be different from zero. 5. The pattern generating formula becomes: 1 ๐‘‹1 1 ๐‘‹2 1 ๐‘‹3 1 ๐‘‹4 2 ๐‘‹1 2 ๐‘‹2 2 ๐‘‹3 2 ๐‘‹4 3 ๐‘‹1 3 ๐‘‹2 3 ๐‘‹3 3 ๐‘‹4 โˆ’1 ๐‘Œ1 ๐‘Œ * 2 ๐‘Œ3 ๐‘Œ4 Y=M*C Where M is recreated for any set of X and from now on C is a constant vector. Copyright 2014 6
  • 8. Example: Excel implementation [example A] Table 2 X Y 1 1 2 3 6 3 5 7 3. 3 5 2. C 4 1. B 4 7 B C D E 14 1 1 1 1 15 1 2 4 8 16 1 3 9 27 17 1 4 16 64 C D E Enter the original pairs in cells B4-C7 Create the generating matrix in cells B14-E17 by typing in cells B14-E14 the formulas =B3^0, =B3^1, =B3^2, =B3^3, then select cells B14-E14 and pull down the lower right corner by 3 cells. Compute the inverse M-1 by typing in cell B26 the formula =MINVERSE(B14:E17), select cells B26-E29, press key F2 followed by Ctrl-ShiftEnter. Copyright 2014 Table 3 Table 4 B 26 4.000 -6.000 4.000 -1.000 27 -4.333 9.500 -7.000 1.833 28 1.500 -4.000 3.500 -1.000 29 -0.167 0.500 -0.500 0.167 8
  • 9. Example: Excel implementation [A] - cont Table 5 4. 2. Compute the coefficients C by typing in cell B31 the formula =MMULT(B26:E29,C4:C7), select cells B31-B34, press key F2 followed by Ctrl-Shift-Enter. B 31 -1 32 2 33 0 34 0 From C create the engendering formula: ๐‘Œ = โˆ’1 + 2 โˆ— ๐‘‹ Cells B31-B34 contain the coefficient of X0, X1, X2, and X3. 3. For any value of X compute the corresponding Y by replacing X in the formula above. For example: X = 8 implies Y=-1+2*8=15 Copyright 2014 9
  • 10. Examples of patterns Table 6 below shows several examples of patterns found using the Excel Table 6 implementation. X Ya The engendering formulas are: ๐‘Œ๐‘Ž = 2 โˆ— ๐‘‹ โˆ’ 1 ๐‘Œ๐‘ = โˆ’0.04 + 1.4 โˆ— ๐‘‹2 โˆ’ 0.4 โˆ— ๐‘‹3 + 0.04 โˆ— ๐‘‹4 Yb Yc Yd 1 1 1 1 1 2 3 3 3 3 3 5 5 5 5 4 7 7 7 7 5 9 9.96 15.506 716.73 6 11 15.80 48.590 8707.58 7 13 27.40 140.952 58473.76 8 15 48.60 348.976 282983.99 ๐‘Œ๐‘ = 0.4458 + 0.8735 โˆ— ๐‘‹3 โˆ’ 0.3614 โˆ— ๐‘‹4 + 0.042168 โˆ— ๐‘‹5 ๐‘Œ๐‘‘ = 0.9095 + 0.0945 โˆ— ๐‘‹ 5 โˆ’ 3.9638 โˆ— 10โˆ’3 โˆ— ๐‘‹ 8 + 4.0352 โˆ— 10โˆ’5 โˆ— ๐‘‹ 11 Copyright 2014 10
  • 11. Example: R implementation [A] 1. Enter the initial pairs 2. Create the generating matrix 3. Find the constants C It produces the same values as in Excel 4. From the model compute Y for X in the range 1-8 > X <- matrix(c(1,2,3,4),ncol=1) > Y <- c(1,3,5,7) > > M <- cbind(X^0,X^1,X^2,X^3) > > C=solve(M,Y) >C [1] -1 2 0 0 > > Xl <- matrix((1:8), ncol=1) > Ml <- cbind(Xl^0,Xl^1,Xl^2,Xl^3) > Yl <- Ml%*%C The result are: 1, 3, 5, 7, 9, 11, 13, 15 Copyright 2014 11
  • 12. Example: R implementation (cont.) Using the R code above we can recreate the same patterns found with Excel, and sometimes experiment with much more complex bases or even arbitrarily chosen functions. โ€ข As a generalization letโ€™s choose the next pair as (5, 7) and the base: X0.31, X1.54, X3.57, X3.78, X9.11 . The engendering formula becomes: ๐‘Œ = โˆ’0.4356 โˆ— ๐‘‹ 0.31 + 1.564 โˆ— ๐‘‹1.54 โˆ’ 0.41086 โˆ— ๐‘‹ 3.57 + 0.2818 โˆ— ๐‘‹ 3.78 โˆ’ 2.576 โˆ— 10โˆ’6 โˆ— ๐‘‹ 9.11 โ€ข Another example uses sinusoidal functions: ๐‘Œ = 4.7471 โˆ— ๐‘†๐‘–๐‘› ๐‘‹ โˆ’ 21.6737 โˆ— ๐‘†๐‘–๐‘› 2 โˆ— ๐‘‹ โˆ’ 43.5023 โˆ— ๐‘†๐‘–๐‘› 3 โˆ— ๐‘‹ โˆ’ 30.1958 โˆ— ๐‘†๐‘–๐‘›(4 โˆ— ๐‘‹) Copyright 2014 12
  • 14. Mathematical Perspective โ€ข It is possible and generally easy to find a formula describing the relation between the values of data pairs using simple algebra. โ€ข The discovered pattern is not unique and in most cases it is possible to find a matching formula using almost any type of base and even almost any type of function, not only polynomial. โ€ข Almost any value could be assigned to the next pair of data. โ€ข The algorithm can be expanded for several independent variables. โ€ข If the number of pairs becomes very large this method involves tedious matrix manipulations and the result is too complex to have much practical value. Copyright 2014 14
  • 15. Qualitative Patterns Test Set Options Set 1 C 5 C 2 3 4 6 7 8 ? โ€ข Most qualitative patterns can be translated into numerical patterns. โ€ข Steps to solve a Test Set: find relevant features, convert features to numbers, find numeric patterns, predict next values, translate numbers into features. โ€ข To avoid the multiple patterns issue tests give an Options Set โ€ข Here the relevant features are number of vertices and line type. 15
  • 16. Alternate Reality? โ€ข Since values predicted by each model are so different inside and outside the original range of X it is evident that, at best, a single model is correct although several models can be acceptable approximations. โ€ข This Alternate Reality issue is well known in other fields: โ€“ Immanuel Kant suggested a division between the natural world called Noumena (our X,Y pairs) and the human vision of it called Phenomena (model M). โ€“ Klaus Conrad suggested the term Apophenia to describe a โ€œspecific experience of an abnormal meaningfulnessโ€ or our tendency to see patterns in random data. โ€ข To dispel any doubts, the pairs used in this example are totally independent being created by a quasi-random number generator from R (see code snippet) > set.seed(8555) > C <- floor(t(runif(10))*10) > Y <- C[1:4] Copyright 2014 16
  • 17. Final Word โ€ข The power and beauty of mathematics could work for or against us depending on how we handle its intricacies. โ€ข Are you sure you are not gambling the future of your company with the latest analytic fad? โ€ข Contact us today to learn how we can help you validate your analytic processes. Copyright 2014 17
  • 18. Legal Disclaimer Under no circumstances but not limited to negligence, shall Innovatorium Technologies Corporation be liable for any direct, indirect, special, incidental or consequential damages whatsoever that result from the use of information presented in this white paper, unless that information is subsequently confirmed in writing as part of a legally binding contract. The information presented in this white paper cannot and do not address the unique facts and circumstances of your specific situation and should not be relied on for your particular applications. Therefore, you should not use this information without first contacting Innovatorium Technologies Corporation. Contact Information Web: www.innovatt.com; www.heuristicanalytics.com Email: bd @ innovatt.com Phone: +1-267- 342-2815 Copyright 2014 18