SlideShare a Scribd company logo
1 of 7
Math for Anomaly Detection:
Suppose an aircraft Testing Facility detects whether the aircraft is faulty or not based on two features –
engine heat (x1) and vibration (x2). The testing facility has a training data set of previously seen 10 Non-
Faulty aircrafts, which are represented as (x1, x2) = (2, 2), (3, 4), (1, 3), (4, 4), (5, 7), (6, 9), (7, 8), (10, 14),
(12, 15) and (15, 19). Now,a new aircrafthas arrived at the facility to be tested with the features observed
as engine heat = 10 unit and vibration= 5 unit. Is the new air craft Faulty or Not? Considerthe threshold
probability or epsilon to be 0.1.
1. Explain using the independent uni-variate Gaussian model based anomaly detection algorithm.
2. Explain using the multi-variate Gaussian model based anomaly detection algorithm
3. Practice: Repeat Q.1 and Q.2 above, but now with more features (3~5 features)
1. A new test engine with engine heat = 10 unit and vibration= 5 unit. Is the new air craft Faulty or Not?
Consider the threshold probability or epsilon to be 0.1. Explain using the independent uni-variate
Gaussian model based anomaly detection algorithm.
Ans:
Mean of x1 = MU1 =
1x
m

= (2+3+1+4+5+6+7+10+12+15) / 10 = 6.5
Mean of x2 = MU2 =
2x
m

= (2+4+3+4+7+9+8+14+15+19) / 10 = 8.5
Standard Deviation of Feature1 = STD_DEV1=
 
2
x x
m

=
                   
2 2 2 2 2 2 2 2 2 2
2 6.5 3 6.5 1 6.5 4 6.5 5 6.5 6 6.5 7 6.5 10 6.5 12 6.5 15 6.5
10
                  
= 4.32
Standard Deviation of Feature2 = STD_DEV2=
=
                   
2 2 2 2 2 2 2 2 2 2
2 8.5 4 8.5 3 8.5 4 8.5 7 8.5 9 8.5 8 8.5 14 8.5 15 8.5 19 8.5
10
                  
= 5.46
P(Xtest) = P (10, 5)
= P(x1=10: µ1=6.5, σ1=4.32) * P(x2=5: µ2=8.5, σ2=5.46)
   1 1 2 2
1 2
2 2
2 2
1 22 21 1
2 2
x x
e e
 
 
   
 

 

2 2
2 2
10 6.5 5 8.5
2 4.32 2 5.461 1
4.32 2*3.1216 5.46 2*3.1216
e e
   
   
   
   
   
   
 
 

 

= 0.09235 * 0.72022 * 0.07307 * 0.81428
= 0.00396
P(Xtest) = 0.00396, whichis much smaller than the threshold (epsilon) of 0.1
Hence, Xtest (10, 5)is an AnomalyorOutlier!
2. A new test engine with engine heat = 10 unit and vibration= 5 unit. Is the new air craft Faulty or Not?
Consider thethreshold probability orepsilon to be0.1. Explain using the multi-variateGaussianmodel
based anomaly detection algorithm
For the multi-variate Gaussian model, First you have to construct the variance-covariance matrix.
Another Example (for Learning how to Find the COVARIANCE Matrix):
The table below displays scores on math, English, and art tests for 5 students.
Student Math English Art
1 90 60 90
2 90 90 30
3 60 60 60
4 60 60 90
5 30 30 30
Note that data from the table can be represented in matrix A, where each column in the matrix shows
scores on a test and each row shows scores for a student.
A =
90 60 90
90 90 30
60 60 60
60 60 90
30 30 30
Given the data represented in matrix A, compute the variance of each test and the
covariance between the tests.
If you have a set of m examples in the Training Set
o {x(1), x(2), ..., x(m) }, Each x ( i ) has n features/dimensions within it
Σ - covariance matrix ([n x n] matrix, where n: no. of Features or Variables
Also called: Variance-Covariance Matrix
Now, come back to Our Given Problem …
We have 2 Features and 10 examples, as shown below:
(x1, x2) = (2, 2), (3, 4), (1, 3), (4, 4), (5, 7), (6, 9), (7, 8), (10, 14), (12, 15) and (15, 19).
Thus, the value of P(10, 5) is much smaller than ε or 0.10
Hence, the test point (10, 5) is an Anomaly / Outlier!!!
=====================================================
3. Practice: Repeat Q.1 and Q.2 above, but now with more features (3~4 features)

More Related Content

What's hot

Ma8353 TRANSFORMS AND PARTIAL DIFFERENTIAL EQUATIONS
Ma8353 TRANSFORMS AND PARTIAL DIFFERENTIAL EQUATIONSMa8353 TRANSFORMS AND PARTIAL DIFFERENTIAL EQUATIONS
Ma8353 TRANSFORMS AND PARTIAL DIFFERENTIAL EQUATIONSBIBIN CHIDAMBARANATHAN
 
Difrentiation
DifrentiationDifrentiation
Difrentiationlecturer
 
Integration techniques
Integration techniquesIntegration techniques
Integration techniquesKrishna Gali
 
Applied statistics and probability for engineers solution montgomery && runger
Applied statistics and probability for engineers solution   montgomery && rungerApplied statistics and probability for engineers solution   montgomery && runger
Applied statistics and probability for engineers solution montgomery && rungerAnkit Katiyar
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadraturesTarun Gehlot
 
Gaussian Integration
Gaussian IntegrationGaussian Integration
Gaussian IntegrationReza Rahimi
 
Solution of matlab chapter 6
Solution of matlab chapter 6Solution of matlab chapter 6
Solution of matlab chapter 6AhsanIrshad8
 
PMHMathematicaSample
PMHMathematicaSamplePMHMathematicaSample
PMHMathematicaSamplePeter Hammel
 
Lesson 10 techniques of integration
Lesson 10 techniques of integrationLesson 10 techniques of integration
Lesson 10 techniques of integrationLawrence De Vera
 
Bca3010 computer oreineted numerical methods
Bca3010   computer oreineted numerical methodsBca3010   computer oreineted numerical methods
Bca3010 computer oreineted numerical methodssmumbahelp
 
6.2 the indefinite integral
6.2 the indefinite integral 6.2 the indefinite integral
6.2 the indefinite integral dicosmo178
 
12 epe11 applied mathematics - june, july 2013
12 epe11  applied mathematics - june, july 201312 epe11  applied mathematics - june, july 2013
12 epe11 applied mathematics - june, july 2013Dover Solutions India
 
Increasing and decreasing functions
Increasing and decreasing functionsIncreasing and decreasing functions
Increasing and decreasing functionsKarunaGupta1982
 
Solution of matlab chapter 4
Solution of matlab chapter 4Solution of matlab chapter 4
Solution of matlab chapter 4AhsanIrshad8
 
Common derivatives integrals
Common derivatives integralsCommon derivatives integrals
Common derivatives integralsolziich
 
TALLER PARCIAL II CÁLCULO 3246 (CASTRO,SALAZAR,SHIGUANGO)
TALLER PARCIAL II CÁLCULO 3246 (CASTRO,SALAZAR,SHIGUANGO)TALLER PARCIAL II CÁLCULO 3246 (CASTRO,SALAZAR,SHIGUANGO)
TALLER PARCIAL II CÁLCULO 3246 (CASTRO,SALAZAR,SHIGUANGO)ChrysleerSalazar
 

What's hot (20)

Ma8353 TRANSFORMS AND PARTIAL DIFFERENTIAL EQUATIONS
Ma8353 TRANSFORMS AND PARTIAL DIFFERENTIAL EQUATIONSMa8353 TRANSFORMS AND PARTIAL DIFFERENTIAL EQUATIONS
Ma8353 TRANSFORMS AND PARTIAL DIFFERENTIAL EQUATIONS
 
Difrentiation
DifrentiationDifrentiation
Difrentiation
 
Integration techniques
Integration techniquesIntegration techniques
Integration techniques
 
Applied statistics and probability for engineers solution montgomery && runger
Applied statistics and probability for engineers solution   montgomery && rungerApplied statistics and probability for engineers solution   montgomery && runger
Applied statistics and probability for engineers solution montgomery && runger
 
Gaussian quadratures
Gaussian quadraturesGaussian quadratures
Gaussian quadratures
 
Gaussian Integration
Gaussian IntegrationGaussian Integration
Gaussian Integration
 
Solution of matlab chapter 6
Solution of matlab chapter 6Solution of matlab chapter 6
Solution of matlab chapter 6
 
Numerical integration
Numerical integrationNumerical integration
Numerical integration
 
PMHMathematicaSample
PMHMathematicaSamplePMHMathematicaSample
PMHMathematicaSample
 
Lesson 10 techniques of integration
Lesson 10 techniques of integrationLesson 10 techniques of integration
Lesson 10 techniques of integration
 
Bca3010 computer oreineted numerical methods
Bca3010   computer oreineted numerical methodsBca3010   computer oreineted numerical methods
Bca3010 computer oreineted numerical methods
 
Ch6
Ch6Ch6
Ch6
 
8th Semester (June; July-2014) Computer Science and Information Science Engin...
8th Semester (June; July-2014) Computer Science and Information Science Engin...8th Semester (June; July-2014) Computer Science and Information Science Engin...
8th Semester (June; July-2014) Computer Science and Information Science Engin...
 
6.2 the indefinite integral
6.2 the indefinite integral 6.2 the indefinite integral
6.2 the indefinite integral
 
Mat lab day 1
Mat lab day 1Mat lab day 1
Mat lab day 1
 
12 epe11 applied mathematics - june, july 2013
12 epe11  applied mathematics - june, july 201312 epe11  applied mathematics - june, july 2013
12 epe11 applied mathematics - june, july 2013
 
Increasing and decreasing functions
Increasing and decreasing functionsIncreasing and decreasing functions
Increasing and decreasing functions
 
Solution of matlab chapter 4
Solution of matlab chapter 4Solution of matlab chapter 4
Solution of matlab chapter 4
 
Common derivatives integrals
Common derivatives integralsCommon derivatives integrals
Common derivatives integrals
 
TALLER PARCIAL II CÁLCULO 3246 (CASTRO,SALAZAR,SHIGUANGO)
TALLER PARCIAL II CÁLCULO 3246 (CASTRO,SALAZAR,SHIGUANGO)TALLER PARCIAL II CÁLCULO 3246 (CASTRO,SALAZAR,SHIGUANGO)
TALLER PARCIAL II CÁLCULO 3246 (CASTRO,SALAZAR,SHIGUANGO)
 

Similar to Math for anomaly detection

maXbox starter67 machine learning V
maXbox starter67 machine learning VmaXbox starter67 machine learning V
maXbox starter67 machine learning VMax Kleiner
 
ADAPTIVE FUZZY KERNEL CLUSTERING ALGORITHM
ADAPTIVE FUZZY KERNEL CLUSTERING ALGORITHMADAPTIVE FUZZY KERNEL CLUSTERING ALGORITHM
ADAPTIVE FUZZY KERNEL CLUSTERING ALGORITHMWireilla
 
ADAPTIVE FUZZY KERNEL CLUSTERING ALGORITHM
ADAPTIVE FUZZY KERNEL CLUSTERING ALGORITHMADAPTIVE FUZZY KERNEL CLUSTERING ALGORITHM
ADAPTIVE FUZZY KERNEL CLUSTERING ALGORITHMijfls
 
Idea for ineractive programming language
Idea for ineractive programming languageIdea for ineractive programming language
Idea for ineractive programming languageLincoln Hannah
 
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920Karl Rudeen
 
Assignment 5.2.pdf
Assignment 5.2.pdfAssignment 5.2.pdf
Assignment 5.2.pdfdash41
 
How to use SVM for data classification
How to use SVM for data classificationHow to use SVM for data classification
How to use SVM for data classificationYiwei Chen
 
Matlab polynimials and curve fitting
Matlab polynimials and curve fittingMatlab polynimials and curve fitting
Matlab polynimials and curve fittingAmeen San
 
BUilt in Functions and Simple programs in R.pdf
BUilt in Functions and Simple programs in R.pdfBUilt in Functions and Simple programs in R.pdf
BUilt in Functions and Simple programs in R.pdfkarthikaparthasarath
 
[Q1~12]Aclothingstoreisconsideringtwomethodstoreducetheselosses1).docx
[Q1~12]Aclothingstoreisconsideringtwomethodstoreducetheselosses1).docx[Q1~12]Aclothingstoreisconsideringtwomethodstoreducetheselosses1).docx
[Q1~12]Aclothingstoreisconsideringtwomethodstoreducetheselosses1).docxdanielfoster65629
 
A Multi-Objective Genetic Algorithm for Pruning Support Vector Machines
A Multi-Objective Genetic Algorithm for Pruning Support Vector MachinesA Multi-Objective Genetic Algorithm for Pruning Support Vector Machines
A Multi-Objective Genetic Algorithm for Pruning Support Vector MachinesMohamed Farouk
 
Arna Friend Controls II Final
Arna Friend Controls II FinalArna Friend Controls II Final
Arna Friend Controls II FinalArna Friend
 
maXbox starter69 Machine Learning VII
maXbox starter69 Machine Learning VIImaXbox starter69 Machine Learning VII
maXbox starter69 Machine Learning VIIMax Kleiner
 

Similar to Math for anomaly detection (20)

maXbox starter67 machine learning V
maXbox starter67 machine learning VmaXbox starter67 machine learning V
maXbox starter67 machine learning V
 
presentazione
presentazionepresentazione
presentazione
 
White box-sol
White box-solWhite box-sol
White box-sol
 
ADAPTIVE FUZZY KERNEL CLUSTERING ALGORITHM
ADAPTIVE FUZZY KERNEL CLUSTERING ALGORITHMADAPTIVE FUZZY KERNEL CLUSTERING ALGORITHM
ADAPTIVE FUZZY KERNEL CLUSTERING ALGORITHM
 
ADAPTIVE FUZZY KERNEL CLUSTERING ALGORITHM
ADAPTIVE FUZZY KERNEL CLUSTERING ALGORITHMADAPTIVE FUZZY KERNEL CLUSTERING ALGORITHM
ADAPTIVE FUZZY KERNEL CLUSTERING ALGORITHM
 
Idea for ineractive programming language
Idea for ineractive programming languageIdea for ineractive programming language
Idea for ineractive programming language
 
BPstudy sklearn 20180925
BPstudy sklearn 20180925BPstudy sklearn 20180925
BPstudy sklearn 20180925
 
ICPR 2016
ICPR 2016ICPR 2016
ICPR 2016
 
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920
fb69b412-97cb-4e8d-8a28-574c09557d35-160618025920
 
Project Paper
Project PaperProject Paper
Project Paper
 
Assignment 5.2.pdf
Assignment 5.2.pdfAssignment 5.2.pdf
Assignment 5.2.pdf
 
How to use SVM for data classification
How to use SVM for data classificationHow to use SVM for data classification
How to use SVM for data classification
 
Matlab polynimials and curve fitting
Matlab polynimials and curve fittingMatlab polynimials and curve fitting
Matlab polynimials and curve fitting
 
BUilt in Functions and Simple programs in R.pdf
BUilt in Functions and Simple programs in R.pdfBUilt in Functions and Simple programs in R.pdf
BUilt in Functions and Simple programs in R.pdf
 
[Q1~12]Aclothingstoreisconsideringtwomethodstoreducetheselosses1).docx
[Q1~12]Aclothingstoreisconsideringtwomethodstoreducetheselosses1).docx[Q1~12]Aclothingstoreisconsideringtwomethodstoreducetheselosses1).docx
[Q1~12]Aclothingstoreisconsideringtwomethodstoreducetheselosses1).docx
 
A Multi-Objective Genetic Algorithm for Pruning Support Vector Machines
A Multi-Objective Genetic Algorithm for Pruning Support Vector MachinesA Multi-Objective Genetic Algorithm for Pruning Support Vector Machines
A Multi-Objective Genetic Algorithm for Pruning Support Vector Machines
 
Karnaugh
KarnaughKarnaugh
Karnaugh
 
Arna Friend Controls II Final
Arna Friend Controls II FinalArna Friend Controls II Final
Arna Friend Controls II Final
 
E10
E10E10
E10
 
maXbox starter69 Machine Learning VII
maXbox starter69 Machine Learning VIImaXbox starter69 Machine Learning VII
maXbox starter69 Machine Learning VII
 

More from MenglinLiu1

Random variables
Random variablesRandom variables
Random variablesMenglinLiu1
 
Probability Basics and Bayes' Theorem
Probability Basics and Bayes' TheoremProbability Basics and Bayes' Theorem
Probability Basics and Bayes' TheoremMenglinLiu1
 
Summation Series
Summation SeriesSummation Series
Summation SeriesMenglinLiu1
 
Recurrent problems: TOH, Pizza Cutting and Josephus Problems
Recurrent problems: TOH, Pizza Cutting and Josephus ProblemsRecurrent problems: TOH, Pizza Cutting and Josephus Problems
Recurrent problems: TOH, Pizza Cutting and Josephus ProblemsMenglinLiu1
 
Anomaly detection Full Article
Anomaly detection Full ArticleAnomaly detection Full Article
Anomaly detection Full ArticleMenglinLiu1
 
Questions on Anomaly Detection
Questions on Anomaly DetectionQuestions on Anomaly Detection
Questions on Anomaly DetectionMenglinLiu1
 

More from MenglinLiu1 (9)

Queueing theory
Queueing theoryQueueing theory
Queueing theory
 
Markov chain
Markov chainMarkov chain
Markov chain
 
Random variables
Random variablesRandom variables
Random variables
 
Probability Basics and Bayes' Theorem
Probability Basics and Bayes' TheoremProbability Basics and Bayes' Theorem
Probability Basics and Bayes' Theorem
 
Number theory
Number theoryNumber theory
Number theory
 
Summation Series
Summation SeriesSummation Series
Summation Series
 
Recurrent problems: TOH, Pizza Cutting and Josephus Problems
Recurrent problems: TOH, Pizza Cutting and Josephus ProblemsRecurrent problems: TOH, Pizza Cutting and Josephus Problems
Recurrent problems: TOH, Pizza Cutting and Josephus Problems
 
Anomaly detection Full Article
Anomaly detection Full ArticleAnomaly detection Full Article
Anomaly detection Full Article
 
Questions on Anomaly Detection
Questions on Anomaly DetectionQuestions on Anomaly Detection
Questions on Anomaly Detection
 

Recently uploaded

Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).pptssuser5c9d4b1
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 

Recently uploaded (20)

Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
247267395-1-Symmetric-and-distributed-shared-memory-architectures-ppt (1).ppt
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 

Math for anomaly detection

  • 1. Math for Anomaly Detection: Suppose an aircraft Testing Facility detects whether the aircraft is faulty or not based on two features – engine heat (x1) and vibration (x2). The testing facility has a training data set of previously seen 10 Non- Faulty aircrafts, which are represented as (x1, x2) = (2, 2), (3, 4), (1, 3), (4, 4), (5, 7), (6, 9), (7, 8), (10, 14), (12, 15) and (15, 19). Now,a new aircrafthas arrived at the facility to be tested with the features observed as engine heat = 10 unit and vibration= 5 unit. Is the new air craft Faulty or Not? Considerthe threshold probability or epsilon to be 0.1. 1. Explain using the independent uni-variate Gaussian model based anomaly detection algorithm. 2. Explain using the multi-variate Gaussian model based anomaly detection algorithm 3. Practice: Repeat Q.1 and Q.2 above, but now with more features (3~5 features) 1. A new test engine with engine heat = 10 unit and vibration= 5 unit. Is the new air craft Faulty or Not? Consider the threshold probability or epsilon to be 0.1. Explain using the independent uni-variate Gaussian model based anomaly detection algorithm. Ans: Mean of x1 = MU1 = 1x m  = (2+3+1+4+5+6+7+10+12+15) / 10 = 6.5 Mean of x2 = MU2 = 2x m  = (2+4+3+4+7+9+8+14+15+19) / 10 = 8.5 Standard Deviation of Feature1 = STD_DEV1=   2 x x m  =                     2 2 2 2 2 2 2 2 2 2 2 6.5 3 6.5 1 6.5 4 6.5 5 6.5 6 6.5 7 6.5 10 6.5 12 6.5 15 6.5 10                    = 4.32 Standard Deviation of Feature2 = STD_DEV2= =                     2 2 2 2 2 2 2 2 2 2 2 8.5 4 8.5 3 8.5 4 8.5 7 8.5 9 8.5 8 8.5 14 8.5 15 8.5 19 8.5 10                    = 5.46 P(Xtest) = P (10, 5) = P(x1=10: µ1=6.5, σ1=4.32) * P(x2=5: µ2=8.5, σ2=5.46)
  • 2.    1 1 2 2 1 2 2 2 2 2 1 22 21 1 2 2 x x e e               2 2 2 2 10 6.5 5 8.5 2 4.32 2 5.461 1 4.32 2*3.1216 5.46 2*3.1216 e e                                 = 0.09235 * 0.72022 * 0.07307 * 0.81428 = 0.00396 P(Xtest) = 0.00396, whichis much smaller than the threshold (epsilon) of 0.1 Hence, Xtest (10, 5)is an AnomalyorOutlier!
  • 3.
  • 4. 2. A new test engine with engine heat = 10 unit and vibration= 5 unit. Is the new air craft Faulty or Not? Consider thethreshold probability orepsilon to be0.1. Explain using the multi-variateGaussianmodel based anomaly detection algorithm For the multi-variate Gaussian model, First you have to construct the variance-covariance matrix. Another Example (for Learning how to Find the COVARIANCE Matrix): The table below displays scores on math, English, and art tests for 5 students. Student Math English Art 1 90 60 90 2 90 90 30 3 60 60 60 4 60 60 90 5 30 30 30 Note that data from the table can be represented in matrix A, where each column in the matrix shows scores on a test and each row shows scores for a student. A = 90 60 90 90 90 30 60 60 60 60 60 90 30 30 30 Given the data represented in matrix A, compute the variance of each test and the covariance between the tests. If you have a set of m examples in the Training Set o {x(1), x(2), ..., x(m) }, Each x ( i ) has n features/dimensions within it Σ - covariance matrix ([n x n] matrix, where n: no. of Features or Variables Also called: Variance-Covariance Matrix
  • 5. Now, come back to Our Given Problem … We have 2 Features and 10 examples, as shown below: (x1, x2) = (2, 2), (3, 4), (1, 3), (4, 4), (5, 7), (6, 9), (7, 8), (10, 14), (12, 15) and (15, 19).
  • 6.
  • 7. Thus, the value of P(10, 5) is much smaller than ε or 0.10 Hence, the test point (10, 5) is an Anomaly / Outlier!!! ===================================================== 3. Practice: Repeat Q.1 and Q.2 above, but now with more features (3~4 features)