Brief Explanation of MCMC implementation in lalsuite

Slides:



Advertisements
Similar presentations
S3/S4 BBH report Thomas Cokelaer LSC Meeting, Boston, 3-4 June 2006.
Advertisements

A walk through some statistic details of LSC results.
Jialin Liu, Bradly Crysler, Yin Lu, Yong Chen Oct. 15. Seminar Data-Intensive Scalable Computing Laboratory (DISCL) Locality-driven High-level.
Higher order waveforms in the search for gravitational waves from compact binary coalescences David McKechan In collaboration with: C. Robinson, B. Sathyaprakash,
LIGO-G v2 Recovering Burst Injections in LIGO S5 Data Alex Cole Data Analysis Meeting May 6, 2014.
LIGO-G Z 1 S2/E10 pulsar injection analysis Réjean Dupuis University of Glasgow 13 November 2003 LSC Meeting, LHO.
Bayesian Estimation in MARK
Inspiral Parameter Estimation via Markov Chain Monte Carlo (MCMC) Methods Nelson Christensen Carleton College LIGO-G Z.
Pulsar Detection and Parameter Estimation with MCMC - Six Parameters Nelson Christensen Physics and Astronomy Carleton College GWDAW December 2003.
GWDAW /12/16 - G Z1 Report on the First Search for BBH Inspiral Signals on the S2 LIGO Data Eirini Messaritaki University of Wisconsin-Milwaukee.
GEO02 February GEO Binary Inspiral Search Analysis.
CHAPTER 16 MARKOV CHAIN MONTE CARLO
BAYESIAN INFERENCE Sampling techniques
Introduction To Signal Processing & Data Analysis
Bayes Factor Based on Han and Carlin (2001, JASA).
Systematic effects in gravitational-wave data analysis
LIGO-G W Gregory Mendell, LIGO Hanford Observatory on behalf of the LIGO Scientific Collaboration Stackslide search for continuous gravitational.
Queensland University of Technology CRICOS No J Towards Likelihood Free Inference Tony Pettitt QUT, Brisbane Joint work with.
1/25 Current results and future scenarios for gravitational wave’s stochastic background G. Cella – INFN sez. Pisa.
Hierarchical Search for MBH mergers in Mock LISA data  Search for tracks in time-frequency plane; get first estimates of chirp mass, reduced mass, and.
Introduction to MCMC and BUGS. Computational problems More parameters -> even more parameter combinations Exact computation and grid approximation become.
A presentation by Robin Upton ( ) ‏ latest version at Attribution – NonCommercial - ShareAlike FF 404.
Ahsanul Haque *, Swarup Chandra *, Latifur Khan * and Michael Baron + * Department of Computer Science, University of Texas at Dallas + Department of Mathematical.
LIGO- G Z LSC ASIS Meeting LIGO Scientific Collaboration - University of Wisconsin - Milwaukee 1 S2 Hardware Pulsar Injections Bruce.
A presentation by Robin Upton ( ) ‏ latest version at Attribution – NonCommercial - ShareAlike FF 4 :
Mock Data Production, Characteristics, and Confusion Background WG4 f2f – Nice 09/01/10 Tania Regimbau.
A coherent null stream consistency test for gravitational wave bursts Antony Searle (ANU) in collaboration with Shourov Chatterji, Albert Lazzarini, Leo.
TAMA binary inspiral event search Hideyuki Tagoshi (Osaka Univ., Japan) 3rd TAMA symposium, ICRR, 2/6/2003.
Members ❖ LSC 20 Members 6 senior 3 post doctors 4 graduate students 4 technical staffs ❖ KAGRA: LSC plus 4 Senior members HW Lee (data analysis; parameter.
Korean Group 12 th KAGRA face-to-face Meeting August 28, 2015 on behalf Korean Gravitational Wave Group 1.
1SBPI 16/06/2009 Heterodyne detection with LISA for gravitational waves parameters estimation Nicolas Douillet.
10/06/2003LSC WIDE COLLOQUIUM1 LSC Pulsar Group and P Shawhan, S Marka, and S Koranda presented by B Allen, R Dupuis, N Christensen, and X Siemens S2 Hardware.
Status of Standalone Inspiral Code Duncan Brown University of Wisconsin-Milwaukee LIGO Scientific Collaboration Inspiral Working Group LIGO-G Z.
The Analysis of Binary Inspiral Signals in LIGO Data Jun-Qi Guo Sept.25, 2007 Department of Physics and Astronomy The University of Mississippi LIGO Scientific.
Hyung Won Lee(Inje), Chunglee Kim(SNU), and Jeongcho Kim(Inje) Nov. 2013, Seoul National University.
LIGO- G Z Analyzing Event Data Lee Samuel Finn Penn State University Reference: T030017, T
Characterization of Hardware Injections in LIGO Data
S.Klimenko, December 16, 2007, GWDAW12, Boston, LIGO-G Z Coherent burst searches for gravitational waves from compact binary objects S.Klimenko,
Searching for Gravitational Waves from Binary Inspirals with LIGO Duncan Brown University of Wisconsin-Milwaukee for the LIGO Scientific Collaboration.
1 Status of Search for Compact Binary Coalescences During LIGO’s Fifth Science Run Drew Keppel 1 for the LIGO Scientific Collaboration 1 California Institute.
Markov Chain Monte Carlo for LDA C. Andrieu, N. D. Freitas, and A. Doucet, An Introduction to MCMC for Machine Learning, R. M. Neal, Probabilistic.
COMPARISON OF PARAMETER ESTIMATION BETWEEN ET-B AND ET-C SENSITIVITIES Tjonnie Li (Nikhef) 2 September ET F2F, Nice.
15-18 Dec 2004Spinning Black Hole Binaries1 Search for Spinning Black Hole Binaries in LIGO/GEO data: The First Steps Speaker: Gareth Jones LSC Inspiral.
S.Klimenko, LSC, August 2004, G Z BurstMon S.Klimenko, A.Sazonov University of Florida l motivation & documentation l description & results l.
GWDAW10, UTB, Dec , Search for inspiraling neutron star binaries using TAMA300 data Hideyuki Tagoshi on behalf of the TAMA collaboration.
1 Chapter 8: Model Inference and Averaging Presented by Hui Fang.
APS meeting, Dallas 22/04/06 1 A search for gravitational wave signals from known pulsars using early data from the LIGO S5 run Matthew Pitkin on behalf.
Stochastic Background Data Analysis Giancarlo Cella I.N.F.N. Pisa first ENTApP - GWA joint meeting Paris, January 23rd and 24th, 2006 Institute d'Astrophysique.
Introduction: Metropolis-Hasting Sampler Purpose--To draw samples from a probability distribution There are three steps 1Propose a move from x to y 2Accept.
LIGO-G v1 Searching for Gravitational Waves from the Coalescence of High Mass Black Hole Binaries 2014 LIGO SURF Summer Seminar August 21 st, 2014.
HW7: Evolutionarily conserved segments ENCODE region 009 (beta-globin locus) Multiple alignment of human, dog, and mouse 2 states: neutral (fast-evolving),
SEARCH FOR INSPIRALING BINARIES S. V. Dhurandhar IUCAA Pune, India.
1 8 th E. Amaldi Conference, New York City, June, 2009 Anand Sengupta California Institute of Technology on behalf of the LSC and Virgo Collaborations.
Search for compact binary systems in LIGO data Craig Robinson On behalf of the LIGO Scientific Collaboration Cardiff University, U.K. LIGO-G
Thomas Cokelaer for the LIGO Scientific Collaboration Cardiff University, U.K. APS April Meeting, Jacksonville, FL 16 April 2007, LIGO-G Z Search.
Generalization Performance of Exchange Monte Carlo Method for Normal Mixture Models Kenji Nagata, Sumio Watanabe Tokyo Institute of Technology.
Capitalizing on GW polarization bias
Development of KAGRA Burst Pipeline
Analysis of LIGO S2 data for GWs from isolated pulsars
GW150914: The first direct detection of gravitational waves
On Behalf of the LIGO Scientific Collaboration and VIRGO
KAGALI PE code development
How to use generateTemplate
KAGALI PE code development
Stochastic gravitational wave and its spectral property
Search for gravitational waves from binary black hole mergers:
Gravitational radiation from known radio pulsars using LIGO data
Yuta Michimura Department of Physics, University of Tokyo
Yuta Michimura Department of Physics, University of Tokyo
Search for Ringdowns in LIGO S4 Data
Presentation transcript:

Brief Explanation of MCMC implementation in lalsuite Hyung Won Lee, Inje University with Chunglee Kim(KHU&KISTI) and Jeongcho Kim(Inje) 6 Feb. 2015, KAGRA f2f meeting, Hongo Campus 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

11th KAGRA f2f Meeting, 4-7 February 2015 Contents Motivation CBC gravitational wave sources Parameter Estimation with Bayesian Inference Implementation in lalsuite Suggestions for KAGALI Discussions 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

11th KAGRA f2f Meeting, 4-7 February 2015 Motivation How does it work parameter estimation Understanding Bayesian inference/MCMC Which physical parameters How it was implemented in lalsuite How it could be implemented for KAGALI Get practical work out items 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

11th KAGRA f2f Meeting, 4-7 February 2015 CBC GW sources Neutron star(NS) + Black hole(BH) binary Mass range : 1 𝑀 ⨀ ~ 10 3 𝑀 ⨀ Frequency range : 1𝐻𝑧 ~ 10𝑘𝐻𝑧 Waveform : Inspiral, Merger, Ringdown 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

CBC Inspiral GW Waveform 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

11th KAGRA f2f Meeting, 4-7 February 2015 Time Domain Template TaylorT1, 2, 3, 4 PadeT1 : P-approximation EOB : effective one body SpinTaylorT1, 2, 3, 4, 5 IMRPhenomA, B, C TaylorT2 can deal with CBC inspirals when there is a BH spin that is aligned to the orbital angular momentum. SpinTaylorT4 is one of the most comprehensive inspiral waveform model used by the LIGO-Virgo collaboration. This can deal with precessing CBC inspirals with two spins. 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

Frequency Domain Template TaylorF1 TaylorF2 : standard for detection pipeline, SPA approximation TaylorF2Amp : include higher harmonics due to amplitude corrections up to 2.5 pN PadeF1 BCV BCVSpin 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

11th KAGRA f2f Meeting, 4-7 February 2015 TaylorF2Amp Waveform Arun et.al., PRD79, 104023(2009) Amplitude corrections up to n=5 (2.5pN) 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

11th KAGRA f2f Meeting, 4-7 February 2015 SPA phase factor + Phase corrections up to 3.5PN (standard in LAL) 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

SPA phase factor(Code) 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

11th KAGRA f2f Meeting, 4-7 February 2015 Physical Parameters Individual masses Luminosity distance Inclination angle Coalescence phase Coalescence time at geocenter Declination Right ascension Polarization Spins, quadrupole deformations 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

Parameter Estimation with Bayesian inference ℘ 𝜃 𝑥 = ℘ 𝜃, 𝑥 ℘ 𝑥 = ℘(𝑥|𝜃)℘ 𝜃 ℘(𝑥|𝜃)℘ 𝜃 𝑑𝜃 ℘ 𝜃,𝑥 =℘ 𝑥 𝜃 ℘ 𝜃 =℘ 𝜃 𝑥 ℘ 𝑥 𝜃 : unobservable model parameters 𝑥 : observable data ℘ 𝜃,𝑥 : Joint probability observing data 𝑥 with model parameter 𝜃 ℘ 𝑥 𝜃 ∝𝐿𝑖𝑘𝑒𝑙𝑖ℎ𝑜𝑜𝑑 𝑓𝑢𝑛𝑐𝑡𝑖𝑜𝑛 Metropolis-Hasting Algorithm, 10 6 ~ 10 7 samples 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

Parameter Estimation with Bayesian inference MCMC Samples PTMCMCOutput.00 PTMCMCOutput.nn Post Process cbcByesPostProc.py 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

11th KAGRA f2f Meeting, 4-7 February 2015 Overlap Calculation Template Data 𝜌=4ℜ 0 +∞ ℎ (𝑓) 𝑠 ∗ (𝑓) 𝑆 𝑛 (𝑓) 𝑑𝑓 𝑆𝑁𝑅 2 =4 0 +∞ ℎ (𝑓) 2 𝑆 𝑛 (𝑓) 𝑑𝑓 Network SNR 𝑆𝑁𝑅 2 = 𝑖=1 𝑁 𝑆𝑁𝑅 𝑖 2 One-sided power spectral density of noise 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

Likelihood Calculation ℒ(𝑠|𝜃)∝exp −2 0 ∞ 𝑠 𝑓 − ℎ (𝜃,𝑓) 2 𝑆 𝑛 (𝑓) 𝑑𝑓 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

11th KAGRA f2f Meeting, 4-7 February 2015 Various Overlaps Unnormalized 𝜌=4ℜ 0 +∞ ℎ 1 (𝑓) ℎ 2 ∗ (𝑓) 𝑆 𝑛 (𝑓) 𝑑𝑓 Normalized 𝜌 𝑘 =4ℜ 0 +∞ ℎ 𝑘 (𝑓) ℎ 𝑘 ∗ (𝑓) 𝑆 𝑛 (𝑓) 𝑑𝑓 𝜌 𝑁 = 𝜌 𝜌 1 𝜌 2 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

11th KAGRA f2f Meeting, 4-7 February 2015 MCMC Process Accept next state with probability 𝑟= ℘(𝑥| 𝜃 2 ) 1/𝑇 ℘ 𝜃 2 ℘(𝑥| 𝜃 1 ) 1/𝑇 ℘ 𝜃 1 Metropolis-Hasting smapling 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

11th KAGRA f2f Meeting, 4-7 February 2015 Parallel Tempering Use few chains with different temperature Use likelihood ℒ 𝑠 𝜃 1 𝑇 , 𝑇>1 Improve convergence Improve mixing The higher temperature, the smoother distribution 𝑇>1 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

Implementation in lalsuite LAL MCMC Pipeline Directory structure of lalsuite Basic entities of LALSuite LAL applications Likelihood, proposal and prior functions Simulation related functions and waveforms Post Processing python script 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

11th KAGRA f2f Meeting, 4-7 February 2015 LAL MCMC Pipeline Start Initialization MPI synchronize PT MCMC Clearance End 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

LALInferenceRunState ProcessParamsTable *commandLine; /** A ProcessParamsTable with command line arguments */ LALInferenceInitModelFunction initModel; /** A function that returns a new set of variables for the model */ LALInferenceAlgorithm algorithm; /** The algorithm function */ LALInferenceEvolveOneStepFunction evolve; /** The algorithm's single iteration function */ LALInferencePriorFunction prior; /** The prior for the parameters */ LALInferenceCubeToPriorFunction CubeToPrior; /** MultiNest prior for the parameters */ LALInferenceLikelihoodFunction likelihood; /** The likelihood function */ LALInferenceProposalFunction proposal; /** The proposal function */ LALInferenceLogFunction logsample; /** Log sample, i.e. to disk */ LALInferenceTemplateFunction templt; /** The template generation function */ … more 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

LAL MCMC pipeline in a glance MCMC main main (start) parseCommandLine Options Initialize Rusnstate initializeMCMC addVariables InitializeCBC Initialize likelihood Initialize MCMC state MPI_Barrier wait synchronization runState ->alogorithm main MCMC routine PTMCMCAlgorithm Deinitialize Clean resources end 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

PTMCMCAlgorithm No Yes Receive runComplete state from root process (start) PTMCMCAlgorithm MPI setup, runComplete = 0 Ladder setup for parallel tempering Ladder[i] = Min ( 𝑀𝑎𝑥 𝑀𝑖𝑛 ) 𝑖 𝑛𝐶ℎ𝑎𝑖𝑛−1 Set temperature for this chain if(MPI_rank == 0) output Anealing related setup Debug related setup Receive runComplete state from root process If(MPI_rank≠0) non-blocking receive MPI_Barrier No !runComplete Yes Ladder update if need Calculate ACL(autocorrelation length) If( i>Neff) runComplete=1 Anealing post-anealing runState ->evolve OneStep MCMC routine PTMCMCOneStep Save for every Nskip step If(i>Niter) runComplete=1 If(MPI_rank==0 && runComplete==1) send run complete value to all other parallel process MPI_Barrier XLALFree() resource free end 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

LALInferenceCyclicProposal PTMCMCOneStep (start) PTMCMCOneStep MPI setup runState ->proposal LALInferenceCyclicProposal Compute prior & likelihood determine acceptance probability Accept end LALInferenceCyclicProposal LALInferenceCyclicProposal (start) LALInferenceProposalFunction *cycle = NULL Must have cycle array and cycle array length in propArgs (cycle[i])(runState, proposedParams) Call proposal end 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

LALInferenceUndecomposed FreqDomainLogLikelihood() Mcmc main PTMCMCAlgorithm() PTMCMCOneStep() LALInferenceUndecomposed FreqDomainLogLikelihood() LALInferenceTemplate XLALSimInspiralChooseWaveform() XLALSimInspiralChooseFD WaveformFromCache() XLALSimInspiralChooseFDWaveform() XLALSimInspiralTaylorF2Amp() Call TaylorF2Amp in MCMC 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

LAL parameter estimation(PE) pipeline 1. waveform library [LALSimulation] 2. PE library [LALInference & LALapps] 3. basic libraries are scattered, but most basic ones are in [LAL] 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

waveform library [LALSimulation] LALSimulation/src/ .. LALSimInspiral.h -> protocol definitions XLALSimInspiralF2AmpPlus() -> ℎ + XLALSimInspiralF2AmpCross() -> ℎ × LALSimInspiral.c -> XLALSimInspiralChooseFDWaveform() call a waveform model XLALSimInspiralF2AmpPlus() XLALSimInspiralF2AmpCross() LALSimInspiralTaylorF2Amp.c -> example of a FD waveform LALSimInspiralWaveformCache.c -> XLALSimInspiralChooseFDWaveformFromCache() call XLALSimInspitalChooseFDWaveform() 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

PE library [LALInference] LALInference/src/.. LALInference.h LALInferenceReadData.c LALInferecneTemplate.c LALInference.h -> collections of structures typedef tagLALInferenceRunState signal/parameters { ∙∙∙ -> Structure to contain inference run state } LALInferenceRunState; typedef struct tagLALInferenceIFOData data for detector including sensitivity ∙∙∙ -> Structure to contain IFOdata } LALInferenceIFOData; 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

PE library [LALInference] LALInference/src/.. LALInference.h LALInferenceReadData.c LALInferecneTemplate.c reads injection parameters from an xml file reads PSD for each detector reads data for each detector generate noise for each detector LALInferenceIFOData *LALInferenceReadData(ProcessParamsTable *commandLine) -> Read in the data and store it in a LALInferenceIFOData structure 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

PE library [LALInference] LALInference/src/.. LALInference.h LALInferenceReadData.c LALInferecneTemplate.c - Jump around parameter space 𝜆 𝑗 generate template signal LALInferenceTemplate.c -> template calls to LAL template functions LALInferenceTemplateXLALSimInspiralChooseWaveform() Wrapper for LALSimulation waveforms : XLALSimInspiralChooseFDWaveform() XLALSimInspiralChooseTDWaveform() - Parameters of non-spinning waveform in LALInferencePrior.c 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

PE library [LALInference] LALInference/src/.. LALInference.h LALInferenceLikelihood.c LALInferecneTemplate.c LALInferenceLikelihood.c -> Bayesian Followup likelihood function LALInferenceUndeomposedFreqDomainLogLikelihood() Required (`currentParams') parameters are: "rightascension" (REAL8, radian, 0 <= RA <= 2pi) "declination" (REAL8, radian, -pi/2 <= dec <=pi/2) "polarisation” (REAL8, radian, 0 <= psi <= pi) "time" (REAL8, GPS sec.) 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

11th KAGRA f2f Meeting, 4-7 February 2015 PE library [LALapps] LALapps/src/inspiral/posterior/.. LALInferenceMCMC.c LALInferenceMCMCSampler.c LALInferenceMCMC.c -> Bayesian Followup function testing site main() 1. Set up structures for MCMC 2. Choose the likelihood function -> ex) student-T , Undecomposed. 3. Call MCMC algorithm -> sampling posterior function 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

11th KAGRA f2f Meeting, 4-7 February 2015 PE library [LALapps] LALapps/src/inspiral/posterior/.. LALInferenceMCMC.c LALInferenceMCMCSampler.c LALInferenceMCMCSampler.c -> Bayesian Followup, MCMC algorithm PTMCMCAlgorithm() PTMCMCOneStep() -> Metropolis-Hasting algorithm implemented 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

basic functions, libraries lal/FrequencySeries.h -> dataStructure lal/LALDatatypes.h ->Primitive datatypes Aggregate datatypes Store arbitrarily large sets or collections of primitive datatypes. aggregate datatypes are defines Structured datatypes : embed primitive and aggregate datatypes inside structures that define their physical meaning. lal/LALConstants.h -> physical constants, Pi, h, G, etc. 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

Suggestions for KAGALI Directory structure by functionality MCMC chain generation Waveform generation Input output functions Notes to consider Waveform function call parameter Post process language Python Haskell C and gnuplot 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015

11th KAGRA f2f Meeting, 4-7 February 2015 Discussions Bayesian Parameter Estimation Optimal library structure How to post process? All from scratch? Collaboration meeting from 9 to 11 February at Inje University 2015-2-6 11th KAGRA f2f Meeting, 4-7 February 2015