SlideShare uma empresa Scribd logo
1 de 31
Baixar para ler offline
Change	
  Point	
  Detec.on	
  
with	
  Bayesian	
  Inference	
  
By	
  Frank	
  Kelly	
  
Py	
  data	
  
6th	
  January	
  2015	
  
Overview	
  
•  Nigeria,	
  oil	
  wells	
  &	
  drilling	
  
•  Noisy	
  data	
  
•  Some	
  maths	
  
•  Python	
  implementaDon	
  
•  Examples	
  in	
  different	
  domains	
  
FPSO	
  (oil	
  plaIorm	
  picture)	
  
Mud	
  pulse	
  telemetry	
  
•  InformaDon	
  
encoded	
  digitally,	
  
transmiOed	
  via	
  
pressure	
  pulses	
  
through	
  mud	
  fluid.	
  
•  Alert	
  drillers	
  that	
  
they	
  have	
  reached	
  
oil,	
  detect	
  rock	
  types	
  
and	
  general	
  
monitoring.	
  
The	
  problem	
  
•  Poor	
  bit	
  rate	
  and	
  
resoluDon	
  
•  Time	
  consuming	
  
analysis	
  
Approaches	
  to	
  staDsDcs	
  
•  FrequenDst	
  
– Data	
  gathered	
  is	
  a	
  
repeatable	
  random	
  
sample.	
  “Frequency”	
  
– Underlying	
  
parameters	
  are	
  
constant	
  
– Fisher’s	
  0.05	
  
•  Bayesian	
  
– Data	
  are,	
  fixed	
  and	
  
observed	
  from	
  the	
  
realised	
  sample	
  
– Parameters	
  unknown	
  
and	
  described	
  
probabilisDcally	
  
– Introduce	
  
“subjecDvity”	
  
	
  
FrequenDst	
  vs.	
  Bayesian	
  
The	
  Theory:	
  Bayesian	
  inference	
  
•  Methodology	
  of	
  mathemaDcal	
  inference:	
  	
  
–  Choosing	
  between	
  several	
  possible	
  models	
  
–  ExtracDng	
  parameters	
  for	
  these	
  models	
  
•  Bayes’	
  Theorem:	
  
Rev	
  Thomas	
  Bayes	
  1702	
  
-­‐	
  1761	
  
p(w | D) =
p(D | w)p(w)
p(D)
Likelihood	
  
Prior	
  
Probability	
  
Posterior	
  
Probability	
   Evidence	
  
-­‐  Remove	
  nuisance	
  
parameters	
  by	
  
marginalisaDon	
  
-­‐  InteresDng	
  ones	
  
remain	
  
Modelling	
  the	
  problem	
  
µ2
1µ
m
N
0	
   20	
   40	
   60	
   80	
   100	
   120	
   140	
   160	
   180	
   200	
  
0.5	
  
1	
  
1.5	
  
2	
  
2.5	
  
data	
  =	
  model	
  +	
  noise	
  
	
  
•  a	
  sequence	
  of	
  N	
  
samples	
  of	
  data	
  
from	
  a	
  piecewise	
  
constant	
  source	
  
with	
  added	
  
Gaussian	
  noise.	
  
•  Noise	
  independent	
  
of	
  mean,	
  idenDcally	
  
distributed	
  and	
  S.D.	
  
=	
  σ	
  
•  Heterogenous:	
  
divide	
  into	
  two	
  
homogenous	
  
segments	
  
µ2
⎩
⎨
⎧
+
+
=
i
i
i
e
e
d
2
1
µ
µ
Nim
mi
≤<
≤
1µ
Nm
Single	
  changepoint	
  detector:	
  
How	
  does	
  it	
  work?	
  
	
  
•  SubsDtute	
  likelihood	
  into	
  Bayes’ Law	
  
–  Simple	
  model-­‐	
  consider	
  Ockham’s	
  Razor	
  
•  Interested	
  in	
  changepoint	
  locaDon	
  m,	
  integrate	
  w.r.t.	
  the	
  
nuisance	
  parameters	
  (µ1,	
  µ2	
  and	
  σ)…rearrange	
  this…	
  
•  …get	
  a	
  BIG	
  expression	
  for	
  p({m}|dI),	
  code	
  in	
  Python	
  
•  On	
  running	
  obtain	
  most	
  likely	
  changepoint	
  locaDon	
  
Ockham’s	
  razor:	
  
hOp://www.jstor.org/discover/10.2307/29774559?sid=21105568247973&uid=3738032&uid=4&uid=2	
  	
  
The	
  maths	
  
More	
  maths	
  
•  Integrate	
  w.r.t.	
  (and	
  thereby	
  remove)	
  
nuisance	
  parameters	
  
Other	
  applicaDons…	
  
hOp://moz.com/google-­‐algorithm-­‐change	
  
“Google’s	
  algorithm	
  is	
  the	
  “secret	
  sauce	
  recipe”	
  that	
  has	
  enabled	
  it	
  to	
  dominate	
  search.”	
  	
  
	
  
-­‐	
  FT.com	
  16th	
  Sept	
  2014	
  
hOp://www.p.com/cms/s/0/9615661c-­‐3ce1-­‐11e4-­‐9733-­‐00144feabdc0.html?
siteediDon=uk#axzz3DSwXYAW8	
  
Any	
  business	
  with	
  an	
  online	
  presence	
  today	
  open	
  struggles	
  to	
  accurately	
  evaluate:	
  	
  
	
  
●	
  The	
  quality	
  of	
  their	
  website	
  and	
  associated	
  linking	
  pages,	
  as	
  perceived	
  by	
  Google	
  
	
  
●	
  The	
  robustness	
  of	
  their	
  website	
  to	
  a	
  sudden	
  change	
  in	
  Google’s	
  search	
  algorithm	
  
Web	
  traffic	
  
30000	
  
35000	
  
40000	
  
45000	
  
50000	
  
55000	
  
60000	
  
raw	
  daily	
  google	
  search-­‐sourced	
  pageviews	
  
Web	
  traffic	
  (2)	
  
30000	
  
35000	
  
40000	
  
45000	
  
50000	
  
55000	
  
60000	
  
smoothed	
  data	
  using	
  moving	
  average	
  
Web	
  traffic	
  (3)	
  
30000	
  
35000	
  
40000	
  
45000	
  
50000	
  
55000	
  
60000	
  
smoothed	
  data	
  with	
  cyclicality	
  removed	
  
Web	
  traffic	
  (4)	
  
-­‐838	
  
-­‐837.5	
  
-­‐837	
  
-­‐836.5	
  
-­‐836	
  
-­‐835.5	
  
-­‐835	
  
-­‐834.5	
  
-­‐834	
  
-­‐833.5	
  
-­‐833	
  
30000	
  
35000	
  
40000	
  
45000	
  
50000	
  
55000	
  
60000	
  
likelihood	
  of	
  change	
  in	
  data	
  plo>ed	
  over	
  .me	
  
day	
  removed	
   likelihood	
  CP	
  
number	
  of	
  tropical	
  storms	
  per	
  year	
  in	
  the	
  North	
  AtlanDc	
  
Data	
  obtained	
  from	
  ibtracs	
  database:	
  
hOps://www.ncdc.noaa.gov/ibtracs/	
  
"Amo	
  Dmeseries	
  1856-­‐present"	
  by	
  Rosentod,	
  Marsupilami	
  -­‐	
  hOp://www.cdc.noaa.gov/CorrelaDon/amon.us.long.data.	
  Licensed	
  under	
  Public	
  
Domain	
  via	
  Wikimedia	
  Commons	
  -­‐	
  hOp://commons.wikimedia.org/wiki/File:Amo_Dmeseries_1856-­‐present.svg#mediaviewer/
File:Amo_Dmeseries_1856-­‐present.svg	
  
Other	
  applicaDons	
  /	
  possibiliDes	
  
•  Financial	
  markets	
  and	
  poliDcal	
  events	
  
•  Combine	
  with	
  frequenDst	
  staDcal	
  methods:	
  
– Use	
  of	
  GLR	
  in	
  online	
  (moving	
  window)	
  detecDon	
  
applicaDon	
  
•  Your	
  own	
  data/	
  ideas	
  !	
  
Thank	
  you	
  
•  Link	
  to	
  Python	
  code	
  on	
  github:	
  
hOps://github.com/swhustla/pydata-­‐bayes-­‐changepoint	
  	
  
–  Single	
  changepoint	
  detector	
  (as	
  seen	
  tonight)	
  
–  Dual	
  changepoint	
  detector	
  
–  Ramp	
  detector	
  
•  Further	
  reading:	
  
–  Numerical	
  Bayesian	
  Methods	
  Applied	
  to	
  Signal	
  Processing	
  
(StaDsDcs	
  and	
  CompuDng)	
  by	
  Fitzgerald,	
  O’Ruanaidh,	
  1996	
  :	
  
hOp://www.amazon.co.uk/Numerical-­‐Bayesian-­‐Processing-­‐
StaDsDcs-­‐CompuDng/dp/0387946292	
  	
  	
  
–  Bayesian	
  Inference	
  on	
  Change	
  Point	
  Problems	
  (2007)
hOp://www.cs.ubc.ca/~murphyk/Students/Xuan_MSc07.pdf	
  	
  
	
  
TwiOer:	
  @norhustla	
  
Email:	
  frank.kelly@cantab.net	
  
Thank	
  you	
  
•  AddiDonal	
  links:	
  
–  Google	
  Algo	
  updates:	
  	
  hOp://moz.com/google-­‐algorithm-­‐change	
  	
  
–  Mathsight	
  -­‐>	
  insights	
  into	
  algorithm	
  changes	
  hOp://mathsight.org	
  	
  
–  AtlanDc	
  mulD-­‐decadal	
  oscillaDon	
  spaDal	
  paOern:
hOp://commons.wikimedia.org/wiki/File:AMO_PaOern.png	
  
–  NaDonal	
  climaDc	
  data	
  center	
  hOps://www.ncdc.noaa.gov/ibtracs/	
  	
  
–  Ockham’s	
  Razor	
  and	
  Bayesian	
  Inference:	
  
hOp://www.jstor.org/discover/10.2307/29774559?
sid=21105568247973&uid=3738032&uid=4&uid=2	
  
–  ConverDng	
  from	
  Matlab	
  to	
  Python:	
  
hOp://mathesaurus.sourceforge.net/matlab-­‐numpy.html	
  	
  
	
  
TwiOer:	
  @norhustla	
  
Email:	
  frank.kelly@cantab.net	
  

Mais conteúdo relacionado

Mais procurados

Fraud Detection using Data Mining Project
Fraud Detection using Data Mining ProjectFraud Detection using Data Mining Project
Fraud Detection using Data Mining Project
Albert Kennedy III
 

Mais procurados (20)

CCS334 BIG DATA ANALYTICS Session 3 Distributed models.pptx
CCS334 BIG DATA ANALYTICS Session 3 Distributed models.pptxCCS334 BIG DATA ANALYTICS Session 3 Distributed models.pptx
CCS334 BIG DATA ANALYTICS Session 3 Distributed models.pptx
 
Intro to machine learning
Intro to machine learningIntro to machine learning
Intro to machine learning
 
[컴퓨터비전과 인공지능] 6. 역전파 1
[컴퓨터비전과 인공지능] 6. 역전파 1[컴퓨터비전과 인공지능] 6. 역전파 1
[컴퓨터비전과 인공지능] 6. 역전파 1
 
Mining data streams
Mining data streamsMining data streams
Mining data streams
 
Fraud Detection using Data Mining Project
Fraud Detection using Data Mining ProjectFraud Detection using Data Mining Project
Fraud Detection using Data Mining Project
 
Feature Engineering
Feature EngineeringFeature Engineering
Feature Engineering
 
Big Data & Analytics (Conceptual and Practical Introduction)
Big Data & Analytics (Conceptual and Practical Introduction)Big Data & Analytics (Conceptual and Practical Introduction)
Big Data & Analytics (Conceptual and Practical Introduction)
 
How to Become a Data Scientist
How to Become a Data ScientistHow to Become a Data Scientist
How to Become a Data Scientist
 
[DL Hacks 実装]Attention is All You Need
[DL Hacks 実装]Attention is All You Need[DL Hacks 実装]Attention is All You Need
[DL Hacks 実装]Attention is All You Need
 
Big data analytics in healthcare industry
Big data analytics in healthcare industryBig data analytics in healthcare industry
Big data analytics in healthcare industry
 
07 Machine Learning - Expectation Maximization
07 Machine Learning - Expectation Maximization07 Machine Learning - Expectation Maximization
07 Machine Learning - Expectation Maximization
 
Data Science and Analysis.pptx
Data Science and Analysis.pptxData Science and Analysis.pptx
Data Science and Analysis.pptx
 
Belief Networks & Bayesian Classification
Belief Networks & Bayesian ClassificationBelief Networks & Bayesian Classification
Belief Networks & Bayesian Classification
 
Clinical Healthcare Data Analytics
Clinical Healthcare Data AnalyticsClinical Healthcare Data Analytics
Clinical Healthcare Data Analytics
 
Market basket analysis
Market basket analysisMarket basket analysis
Market basket analysis
 
Data science in finance industry
Data science in finance industryData science in finance industry
Data science in finance industry
 
Big Data Analytics for Healthcare
Big Data Analytics for HealthcareBig Data Analytics for Healthcare
Big Data Analytics for Healthcare
 
Data manipulation with RapidMiner Studio 7
Data manipulation with RapidMiner Studio 7Data manipulation with RapidMiner Studio 7
Data manipulation with RapidMiner Studio 7
 
Big Data Analytics Architecture PowerPoint Presentation Slides
Big Data Analytics Architecture PowerPoint Presentation SlidesBig Data Analytics Architecture PowerPoint Presentation Slides
Big Data Analytics Architecture PowerPoint Presentation Slides
 
Survival Analysis Superlearner
Survival Analysis SuperlearnerSurvival Analysis Superlearner
Survival Analysis Superlearner
 

Semelhante a Changepoint Detection with Bayesian Inference

flat_presentation_time_evolving_OD_matrix_estimation
flat_presentation_time_evolving_OD_matrix_estimationflat_presentation_time_evolving_OD_matrix_estimation
flat_presentation_time_evolving_OD_matrix_estimation
Luís Moreira-Matias
 
ODSC 2019: Sessionisation via stochastic periods for root event identification
ODSC 2019: Sessionisation via stochastic periods for root event identificationODSC 2019: Sessionisation via stochastic periods for root event identification
ODSC 2019: Sessionisation via stochastic periods for root event identification
Kuldeep Jiwani
 
Evaluating Classification Algorithms Applied To Data Streams Esteban Donato
Evaluating Classification Algorithms Applied To Data Streams   Esteban DonatoEvaluating Classification Algorithms Applied To Data Streams   Esteban Donato
Evaluating Classification Algorithms Applied To Data Streams Esteban Donato
Esteban Donato
 
Alerting mechanism and algorithms introduction
Alerting mechanism and algorithms introductionAlerting mechanism and algorithms introduction
Alerting mechanism and algorithms introduction
FEG
 
Big&open data challenges for smartcity-PIC2014 Shanghai
Big&open data challenges for smartcity-PIC2014 ShanghaiBig&open data challenges for smartcity-PIC2014 Shanghai
Big&open data challenges for smartcity-PIC2014 Shanghai
Victoria López
 

Semelhante a Changepoint Detection with Bayesian Inference (20)

Meteo I/O Introduction
Meteo I/O IntroductionMeteo I/O Introduction
Meteo I/O Introduction
 
Big Data Competition: maximizing your potential
 exampled with the 2014 Higgs...
Big Data Competition: maximizing your potential
 exampled with the 2014 Higgs...Big Data Competition: maximizing your potential
 exampled with the 2014 Higgs...
Big Data Competition: maximizing your potential
 exampled with the 2014 Higgs...
 
"Quantum Clustering - Physics Inspired Clustering Algorithm", Sigalit Bechler...
"Quantum Clustering - Physics Inspired Clustering Algorithm", Sigalit Bechler..."Quantum Clustering - Physics Inspired Clustering Algorithm", Sigalit Bechler...
"Quantum Clustering - Physics Inspired Clustering Algorithm", Sigalit Bechler...
 
flat_presentation_time_evolving_OD_matrix_estimation
flat_presentation_time_evolving_OD_matrix_estimationflat_presentation_time_evolving_OD_matrix_estimation
flat_presentation_time_evolving_OD_matrix_estimation
 
"Quantum clustering - physics inspired clustering algorithm", Sigalit Bechler...
"Quantum clustering - physics inspired clustering algorithm", Sigalit Bechler..."Quantum clustering - physics inspired clustering algorithm", Sigalit Bechler...
"Quantum clustering - physics inspired clustering algorithm", Sigalit Bechler...
 
01-pengantar.pdf
01-pengantar.pdf01-pengantar.pdf
01-pengantar.pdf
 
ODSC 2019: Sessionisation via stochastic periods for root event identification
ODSC 2019: Sessionisation via stochastic periods for root event identificationODSC 2019: Sessionisation via stochastic periods for root event identification
ODSC 2019: Sessionisation via stochastic periods for root event identification
 
5.1 mining data streams
5.1 mining data streams5.1 mining data streams
5.1 mining data streams
 
Christian jensen advanced routing in spatial networks using big data
Christian jensen advanced routing in spatial networks using big dataChristian jensen advanced routing in spatial networks using big data
Christian jensen advanced routing in spatial networks using big data
 
Combining remote sensing earth observations and in situ networks: detection o...
Combining remote sensing earth observations and in situ networks: detection o...Combining remote sensing earth observations and in situ networks: detection o...
Combining remote sensing earth observations and in situ networks: detection o...
 
Evaluating Classification Algorithms Applied To Data Streams Esteban Donato
Evaluating Classification Algorithms Applied To Data Streams   Esteban DonatoEvaluating Classification Algorithms Applied To Data Streams   Esteban Donato
Evaluating Classification Algorithms Applied To Data Streams Esteban Donato
 
Alerting mechanism and algorithms introduction
Alerting mechanism and algorithms introductionAlerting mechanism and algorithms introduction
Alerting mechanism and algorithms introduction
 
Temporal data mining
Temporal data miningTemporal data mining
Temporal data mining
 
Approximation Data Structures for Streaming Applications
Approximation Data Structures for Streaming ApplicationsApproximation Data Structures for Streaming Applications
Approximation Data Structures for Streaming Applications
 
t10_part1.pptx
t10_part1.pptxt10_part1.pptx
t10_part1.pptx
 
Big&open data challenges for smartcity-PIC2014 Shanghai
Big&open data challenges for smartcity-PIC2014 ShanghaiBig&open data challenges for smartcity-PIC2014 Shanghai
Big&open data challenges for smartcity-PIC2014 Shanghai
 
A multi-sensor based uncut crop edge detection method for head-feeding combin...
A multi-sensor based uncut crop edge detection method for head-feeding combin...A multi-sensor based uncut crop edge detection method for head-feeding combin...
A multi-sensor based uncut crop edge detection method for head-feeding combin...
 
Introduction to Bayesian phylogenetics and BEAST
Introduction to Bayesian phylogenetics and BEASTIntroduction to Bayesian phylogenetics and BEAST
Introduction to Bayesian phylogenetics and BEAST
 
A Study on Privacy Level in Publishing Data of Smart Tap Network
A Study on Privacy Level in Publishing Data of Smart Tap NetworkA Study on Privacy Level in Publishing Data of Smart Tap Network
A Study on Privacy Level in Publishing Data of Smart Tap Network
 
Object Detection and Tracking using Statistical and Stochastic Techniques
Object Detection and Tracking using Statistical and Stochastic TechniquesObject Detection and Tracking using Statistical and Stochastic Techniques
Object Detection and Tracking using Statistical and Stochastic Techniques
 

Último

Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
amitlee9823
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
amitlee9823
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
amitlee9823
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
amitlee9823
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
amitlee9823
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
amitlee9823
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
amitlee9823
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
amitlee9823
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
amitlee9823
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
only4webmaster01
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
karishmasinghjnh
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
amitlee9823
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Último (20)

Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Junnasandra Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
Chintamani Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore ...
 
Capstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics ProgramCapstone Project on IBM Data Analytics Program
Capstone Project on IBM Data Analytics Program
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
 
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men  🔝mahisagar🔝   Esc...
➥🔝 7737669865 🔝▻ mahisagar Call-girls in Women Seeking Men 🔝mahisagar🔝 Esc...
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night StandCall Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Doddaballapur Road ☎ 7737669865 🥵 Book Your One night Stand
 
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men  🔝Dindigul🔝   Escor...
➥🔝 7737669865 🔝▻ Dindigul Call-girls in Women Seeking Men 🔝Dindigul🔝 Escor...
 
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
Call Girls Jalahalli Just Call 👗 7737669865 👗 Top Class Call Girl Service Ban...
 
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men  🔝Bangalore🔝   Esc...
➥🔝 7737669865 🔝▻ Bangalore Call-girls in Women Seeking Men 🔝Bangalore🔝 Esc...
 
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night StandCall Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Attibele ☎ 7737669865 🥵 Book Your One night Stand
 
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Saket (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men  🔝Thrissur🔝   Escor...
➥🔝 7737669865 🔝▻ Thrissur Call-girls in Women Seeking Men 🔝Thrissur🔝 Escor...
 
Detecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning ApproachDetecting Credit Card Fraud: A Machine Learning Approach
Detecting Credit Card Fraud: A Machine Learning Approach
 
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 9155563397 👗 Top Class Call Girl Service B...
 
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
👉 Amritsar Call Girl 👉📞 6367187148 👉📞 Just📲 Call Ruhi Call Girl Phone No Amri...
 
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men  🔝malwa🔝   Escorts Ser...
➥🔝 7737669865 🔝▻ malwa Call-girls in Women Seeking Men 🔝malwa🔝 Escorts Ser...
 
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts ServiceCall Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
Call Girls In Shalimar Bagh ( Delhi) 9953330565 Escorts Service
 

Changepoint Detection with Bayesian Inference

  • 1. Change  Point  Detec.on   with  Bayesian  Inference   By  Frank  Kelly   Py  data   6th  January  2015  
  • 2. Overview   •  Nigeria,  oil  wells  &  drilling   •  Noisy  data   •  Some  maths   •  Python  implementaDon   •  Examples  in  different  domains  
  • 3. FPSO  (oil  plaIorm  picture)  
  • 4.
  • 5.
  • 6. Mud  pulse  telemetry   •  InformaDon   encoded  digitally,   transmiOed  via   pressure  pulses   through  mud  fluid.   •  Alert  drillers  that   they  have  reached   oil,  detect  rock  types   and  general   monitoring.  
  • 7. The  problem   •  Poor  bit  rate  and   resoluDon   •  Time  consuming   analysis  
  • 8. Approaches  to  staDsDcs   •  FrequenDst   – Data  gathered  is  a   repeatable  random   sample.  “Frequency”   – Underlying   parameters  are   constant   – Fisher’s  0.05   •  Bayesian   – Data  are,  fixed  and   observed  from  the   realised  sample   – Parameters  unknown   and  described   probabilisDcally   – Introduce   “subjecDvity”    
  • 10. The  Theory:  Bayesian  inference   •  Methodology  of  mathemaDcal  inference:     –  Choosing  between  several  possible  models   –  ExtracDng  parameters  for  these  models   •  Bayes’  Theorem:   Rev  Thomas  Bayes  1702   -­‐  1761   p(w | D) = p(D | w)p(w) p(D) Likelihood   Prior   Probability   Posterior   Probability   Evidence   -­‐  Remove  nuisance   parameters  by   marginalisaDon   -­‐  InteresDng  ones   remain  
  • 11. Modelling  the  problem   µ2 1µ m N
  • 12. 0   20   40   60   80   100   120   140   160   180   200   0.5   1   1.5   2   2.5   data  =  model  +  noise     •  a  sequence  of  N   samples  of  data   from  a  piecewise   constant  source   with  added   Gaussian  noise.   •  Noise  independent   of  mean,  idenDcally   distributed  and  S.D.   =  σ   •  Heterogenous:   divide  into  two   homogenous   segments   µ2 ⎩ ⎨ ⎧ + + = i i i e e d 2 1 µ µ Nim mi ≤< ≤ 1µ Nm
  • 13. Single  changepoint  detector:   How  does  it  work?     •  SubsDtute  likelihood  into  Bayes’ Law   –  Simple  model-­‐  consider  Ockham’s  Razor   •  Interested  in  changepoint  locaDon  m,  integrate  w.r.t.  the   nuisance  parameters  (µ1,  µ2  and  σ)…rearrange  this…   •  …get  a  BIG  expression  for  p({m}|dI),  code  in  Python   •  On  running  obtain  most  likely  changepoint  locaDon   Ockham’s  razor:   hOp://www.jstor.org/discover/10.2307/29774559?sid=21105568247973&uid=3738032&uid=4&uid=2    
  • 15. More  maths   •  Integrate  w.r.t.  (and  thereby  remove)   nuisance  parameters  
  • 16.
  • 17.
  • 20. “Google’s  algorithm  is  the  “secret  sauce  recipe”  that  has  enabled  it  to  dominate  search.”       -­‐  FT.com  16th  Sept  2014   hOp://www.p.com/cms/s/0/9615661c-­‐3ce1-­‐11e4-­‐9733-­‐00144feabdc0.html? siteediDon=uk#axzz3DSwXYAW8   Any  business  with  an  online  presence  today  open  struggles  to  accurately  evaluate:       ●  The  quality  of  their  website  and  associated  linking  pages,  as  perceived  by  Google     ●  The  robustness  of  their  website  to  a  sudden  change  in  Google’s  search  algorithm  
  • 21. Web  traffic   30000   35000   40000   45000   50000   55000   60000   raw  daily  google  search-­‐sourced  pageviews  
  • 22. Web  traffic  (2)   30000   35000   40000   45000   50000   55000   60000   smoothed  data  using  moving  average  
  • 23. Web  traffic  (3)   30000   35000   40000   45000   50000   55000   60000   smoothed  data  with  cyclicality  removed  
  • 24. Web  traffic  (4)   -­‐838   -­‐837.5   -­‐837   -­‐836.5   -­‐836   -­‐835.5   -­‐835   -­‐834.5   -­‐834   -­‐833.5   -­‐833   30000   35000   40000   45000   50000   55000   60000   likelihood  of  change  in  data  plo>ed  over  .me   day  removed   likelihood  CP  
  • 25.
  • 26. number  of  tropical  storms  per  year  in  the  North  AtlanDc   Data  obtained  from  ibtracs  database:   hOps://www.ncdc.noaa.gov/ibtracs/  
  • 27. "Amo  Dmeseries  1856-­‐present"  by  Rosentod,  Marsupilami  -­‐  hOp://www.cdc.noaa.gov/CorrelaDon/amon.us.long.data.  Licensed  under  Public   Domain  via  Wikimedia  Commons  -­‐  hOp://commons.wikimedia.org/wiki/File:Amo_Dmeseries_1856-­‐present.svg#mediaviewer/ File:Amo_Dmeseries_1856-­‐present.svg  
  • 28.
  • 29. Other  applicaDons  /  possibiliDes   •  Financial  markets  and  poliDcal  events   •  Combine  with  frequenDst  staDcal  methods:   – Use  of  GLR  in  online  (moving  window)  detecDon   applicaDon   •  Your  own  data/  ideas  !  
  • 30. Thank  you   •  Link  to  Python  code  on  github:   hOps://github.com/swhustla/pydata-­‐bayes-­‐changepoint     –  Single  changepoint  detector  (as  seen  tonight)   –  Dual  changepoint  detector   –  Ramp  detector   •  Further  reading:   –  Numerical  Bayesian  Methods  Applied  to  Signal  Processing   (StaDsDcs  and  CompuDng)  by  Fitzgerald,  O’Ruanaidh,  1996  :   hOp://www.amazon.co.uk/Numerical-­‐Bayesian-­‐Processing-­‐ StaDsDcs-­‐CompuDng/dp/0387946292       –  Bayesian  Inference  on  Change  Point  Problems  (2007) hOp://www.cs.ubc.ca/~murphyk/Students/Xuan_MSc07.pdf       TwiOer:  @norhustla   Email:  frank.kelly@cantab.net  
  • 31. Thank  you   •  AddiDonal  links:   –  Google  Algo  updates:    hOp://moz.com/google-­‐algorithm-­‐change     –  Mathsight  -­‐>  insights  into  algorithm  changes  hOp://mathsight.org     –  AtlanDc  mulD-­‐decadal  oscillaDon  spaDal  paOern: hOp://commons.wikimedia.org/wiki/File:AMO_PaOern.png   –  NaDonal  climaDc  data  center  hOps://www.ncdc.noaa.gov/ibtracs/     –  Ockham’s  Razor  and  Bayesian  Inference:   hOp://www.jstor.org/discover/10.2307/29774559? sid=21105568247973&uid=3738032&uid=4&uid=2   –  ConverDng  from  Matlab  to  Python:   hOp://mathesaurus.sourceforge.net/matlab-­‐numpy.html       TwiOer:  @norhustla   Email:  frank.kelly@cantab.net