Skip to content
Snippets Groups Projects
Commit dec965e4 authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Updates to the paper

parent 0ddf0e37
No related branches found
No related tags found
No related merge requests found
...@@ -68,13 +68,12 @@ for depth in depths: ...@@ -68,13 +68,12 @@ for depth in depths:
ntemps = 1 ntemps = 1
log10temperature_min = -1 log10temperature_min = -1
nwalkers = 100 nwalkers = 100
nsteps = [50, 50]
mcmc = pyfstat.MCMCFollowUpSearch( mcmc = pyfstat.MCMCFollowUpSearch(
label=label, outdir=outdir, label=label, outdir=outdir,
sftfilepath='{}/*{}*sft'.format(outdir, data_label), sftfilepath='{}/*{}*sft'.format(outdir, data_label),
theta_prior=theta_prior, theta_prior=theta_prior,
tref=tref, minStartTime=tstart, maxStartTime=tend, nsteps=nsteps, tref=tref, minStartTime=tstart, maxStartTime=tend,
nwalkers=nwalkers, ntemps=ntemps, nwalkers=nwalkers, ntemps=ntemps,
log10temperature_min=log10temperature_min) log10temperature_min=log10temperature_min)
mcmc.run(run_setup=run_setup, create_plots=False, log_table=False, mcmc.run(run_setup=run_setup, create_plots=False, log_table=False,
......
...@@ -440,70 +440,38 @@ temperatures during the search stage, and subsequently a larger number of ...@@ -440,70 +440,38 @@ temperatures during the search stage, and subsequently a larger number of
temperatures (suitably initialised close to the target peak) when estimating temperatures (suitably initialised close to the target peak) when estimating
the Bayes factor. the Bayes factor.
\subsection{The topology of the likelihood} \subsection{Evaluating the search space}
We intend to use the $\F$-statistic as our log-likelihood in MCMC simulations,
but before continuing, it is worthwhile to acquaint ourselves with the typical
behavior of the log-likelihood by considering a specific example.
As shown in Equation~\eqref{eqn_twoF_expectation}, the expectation of
$\widetilde{2\F}$ is 4 in Gaussian noise alone, but proportional to the square
of the SNR in the presence of a signal. To illustrate this, let us consider
$\widetilde{2\F}$ as a function of $f$ (the template frequency) if there exists
a signal in the data with frequency $f_0$. We will assume that all other
Doppler parameters are perfectly matched. Such an example can be calculated
analytically, taking the matched-filtering amplitude (Equation~(11) of
\citep{prix2005}) with $\Delta\Phi(t) = 2\pi(f - f_0) t$, the expectation of
$\widetilde{2\F}$ as a function of the template frequency $f$ is given by
\begin{equation}
\textrm{E}[\widetilde{2\F}](f) = 4 +
(\textrm{E}[\widetilde{2\F_0}] -4)\textrm{sinc}^{2}(\pi(f-f_0)\Tcoh))
\label{eqn_grid_prediction}
\end{equation}
where $\textrm{E}[\widetilde{2\F_0}]$ is the expected $\widetilde{2\F}$ for
a perfectly matched signal (when $f=f_0$).
In Figure~\ref{fig_grid_frequency} we compare the analytic prediction of
Equation~\eqref{eqn_grid_prediction} with the value computed numerically
from simulating a signal in Gaussian noise. As expected, close to the signal
frequency $f_0$ the detection statistic peaks with a a few local secondary
maxima. Away from this frequency, in Gaussian noise, we see many local maxima
centered around the expected value of 4.
\begin{figure}[htb]
\centering \includegraphics[width=0.45\textwidth]{grided_frequency_search_1D}
\caption{Comparison of the analytic prediction of
Equation~\eqref{eqn_grid_prediction} (in red) with the value computed
numerically from simulating a signal in Gaussian noise (in black).
\comment{Need to explain ticks}}
\label{fig_grid_frequency}
\end{figure}
\subsection{Limitations of use}
In general, MCMC samplers are highly effective in generating samples of the In general, MCMC samplers are highly effective in generating samples of the
posterior in multi-dimensional parameter spaces. However, they will perform posterior in multi-dimensional parameter spaces. However, they will perform
poorly if the posterior has multiple small maxima with only a small number of poorly if the posterior has multiple small maxima with only a small number of
large maxima which occupy a small fraction of the prior volume. Since we will large maxima which occupy a small fraction of the prior volume. Later on, in
use $\F$ as our log-likelihood, Figure~\ref{fig_grid_frequency} provides an Section~\ref{sec_topology} we will show that for a signal in Gaussian noise our
example of the space we will ask the sampler to explore. Clearly, if the width log-likelihood $\F$ will have a single peak due to the signal which is
of the signal peak is small compared to the prior volume, the sampler will get surrounded by other peaks particular to given noise realisation. The relative
`stuck' on the local maxima and be inefficient at finding the global maxima. size of the these peaks to the signal peak depends on the SNR. Howeever,
This problem is exacerbated in higher-dimensional search spaces where the volume regardless of the strengt of the signal peak, if the width of the signal peak
fraction of the signal scales with the exponent of the number of dimensions. is small compared to the prior volume, the sampler will get `stuck' on the
local maxima and be inefficient at finding the global maxima. This problem is
exacerbated in higher-dimensional search spaces where the volume fraction of
the signal scales with the exponent of the number of dimensions.
\subsubsection{The metric}
In a traditional CW search which uses a grid of templates (also known as a In a traditional CW search which uses a grid of templates (also known as a
template bank), the spacings of the grid are chosen such that the loss of template bank), the spacings of the grid are chosen such that the loss of
signal to noise ratio (SNR) is bounded to less than $u$, the template-bank signal to noise ratio (SNR) is bounded to less than $\mu$, the
mismatch. The optimal choice of grid then consists of minimising the computing \emph{template-bank mismatch}. The optimal choice of grid then consists of
cost while respecting this minimum template-bank mismatch or vice-verse (for minimising the computing cost while respecting this minimum template-bank
examples see \citet{pletsch2010, prix2012, wette2013, wette2015}). We will now mismatch or vice-verse (for examples see \citet{pletsch2010, prix2012,
discuss how the work on setting up these grids can be applied to the problem of wette2013, wette2015}). We will now discuss how the work on setting up these
determining whether the setup is appropriate for an MCMC method: i.e. given the grids can be applied to the problem of determining whether the setup is
prior volume do we expect a signal to occupy a non-negligible volume? appropriate for an MCMC method: i.e. given the prior volume do we expect a
signal to occupy a non-negligible volume?
For a fully-coherent $\F$-statistic search on data containing Gaussian noise For a fully-coherent $\F$-statistic search on data containing Gaussian noise
and a signal with Doppler parameters $\blambdaSignal$, the template-bank and a signal with Doppler parameters $\blambdaSignal$, the template-bank
mismatch at the grid point $\blambda_{l}$ is defined to be mismatch at the grid point $\blambda_{l}$ we define as
\begin{align} \begin{align}
\mutilde(\blambdaSignal, \blambda_{l}) \equiv 1 - \mutilde(\blambdaSignal, \blambda_{l}) \equiv 1 -
\frac{\tilde{\rho}(\blambda_l;\blambdaSignal)^{2}} \frac{\tilde{\rho}(\blambda_l;\blambdaSignal)^{2}}
...@@ -511,92 +479,105 @@ mismatch at the grid point $\blambda_{l}$ is defined to be ...@@ -511,92 +479,105 @@ mismatch at the grid point $\blambda_{l}$ is defined to be
\end{align} \end{align}
where $\tilde{\rho}(\blambda_l; \blambdaSignal)$ is the non-centrality where $\tilde{\rho}(\blambda_l; \blambdaSignal)$ is the non-centrality
parameter (c.f. Equation~\ref{eqn_twoF_expectation}) at $\blambda_l$, given parameter (c.f. Equation~\ref{eqn_twoF_expectation}) at $\blambda_l$, given
that the signal is at $\blambdaSignal$. As such that the signal is at $\blambdaSignal$; as such $\tilde{\rho}(\blambdaSignal;
$\widetilde{\textrm{SNR}}(\blambdaSignal; \blambdaSignal)$ is the \blambdaSignal)$ is the perfectly-matched non-centrality parameter. For a
perfectly-matched non-centrality parameter, for which the mismatch is zero. fully-coherent search, this non-centrality parameter is equivalent to
For a fully-coherent search, this non-centrality parameter is equivalent to fully-coherent matched-filter signal to noise ratio (SNR). However, as noted by
fully-coherent matched-filter signal to noise ratio SNR. However, \citet{leaci2015}, this is true for the fully-coherent case only. Therefore,
as noted by \citet{leaci2015}, this is true for the fully-coherent case only. we choose to use the non-centrality parameter which easily generalises to the
Therefore, we will use the non-centrality parameter which easily generalised to semi-coherent case.
the semi-coherent case.
To make analytic calculations of the mismatch possible, as first shown by To make analytic calculations of the mismatch possible, as first shown by
\citet{brady1998}, the mismatch can be approximated by \citet{brady1998}, the mismatch can be approximated by
\begin{equation} \begin{equation}
\mutilde(\blambda, \Delta\blambda) \approx \mutilde(\blambda, \Delta\blambda) \approx
\tilde{g}_{\alpha \beta}^{\phi} \Delta\lambda^{\alpha}\Delta\lambda^{\beta} \tilde{g}_{ij}\Delta\lambda^{i}\Delta\lambda^{j}
+ \mathcal{O}\left(\Delta\blambda^{3}\right) + \mathcal{O}\left(\Delta\blambda^{3}\right)
\label{eqn_mutilde_expansion}
\end{equation} \end{equation}
where we switch to using index notation for which we sum over repeated indices. where we use index notation with an implicit summation over repeated indices.
Here, $\tilde{g}_{\alpha\beta}^{\phi}$ is the `phase-metric' given by Here, $\tilde{g}_{ij}^{\phi}$ is the \emph{phase-metric} given by
\begin{align} \begin{align}
\tilde{g}^{\phi}_{\alpha \beta}(\blambda) = \tilde{g}_{ij}(\blambda) =
\langle \langle
\partial_{\Delta\lambda^{\alpha}}\phi \partial_{\Delta\lambda^{i}}\phi
\partial_{\Delta\lambda^{\beta}}\phi \partial_{\Delta\lambda^{j}}\phi
\rangle \rangle
- -
\langle \langle
\partial_{\Delta\lambda^{\alpha}}\phi \partial_{\Delta\lambda^{i}}\phi
\rangle \rangle
\langle \langle
\partial_{\Delta\lambda^{\beta}}\phi \partial_{\Delta\lambda^{j}}\phi
\rangle, \rangle,
\label{eqn_metric} \label{eqn_metric}
\end{align} \end{align}
where $\langle \cdot \rangle$ denotes the time-average over $\Tcoh$ and where $\langle \cdot \rangle$ denotes the time-average over $\Tcoh$ and
$\phi(t; \blambda)$ is the phase evolution of the source. The phase metric is $\phi(t; \blambda)$ is the phase evolution of the source. The phase metric is
in fact an approximation of the full metric which includes modulations of the in fact an approximation of the full metric which includes modulations of the
amplitude parameters $\A$; it was shown by \citet{prix2007metric} that it is a amplitude parameters $\A$. It was shown by \citet{prix2007metric} that
good approximation when using data spans longer than a day and data from when using data spans longer than a day and data from multiple detectors, the
multiple detectors. difference between phase metric and full metric is negligible.
The phase metric, Equation~\eqref{eqn_metric} provides the necessary tool to The phase metric, Equation~\eqref{eqn_metric} provides the necessary tool to
measure distances in the Doppler parameter space in units of mismatch. To measure distances in the Doppler parameter space in units of mismatch. To
calculate it's components, we define the phase evolution calculate components, we define the phase evolution
of the source as \citep{wette2015} of the source as \citep{wette2015}
\begin{align} \begin{align}
\phi(t; \blambda) \approx 2\pi\left( \phi(t; \blambda) \approx 2\pi\left(
\sum_{s=0}^{\smax} f^{(s)}\frac{(t-\tref)^{s+1}}{(s+1)!} \sum_{s=0}^{\smax} f^{(s)}\frac{(t-\tref)^{s+1}}{(s+1)!}
+ \frac{r(t)\cdot\mathbf{n}}{c} \fmax\right), + \frac{r(t)\cdot\mathbf{n}(\alpha, \delta)}{c} \fmax\right),
\label{eqn_phi} \label{eqn_phi}
\end{align} \end{align}
where $\mathbf{n}(\alpha, \delta)$ is the fixed position of the source with where $\mathbf{n}(\alpha, \delta)$ is the fixed position of the source with
respect to the solar system barycenter (with coordinates $\alpha, \delta$ the respect to the solar system barycenter (with coordinates $\alpha$ and $\delta$,
right ascension and declination), $f^(s)\equiv d^{s}\phi/dt^s$, and $\fmax$ the right ascension and declination), $f^{(s)}\equiv d^{s}\phi/dt^s$, and
a constant chosen conservatively to be the maximum frequency over the data $\fmax$ a constant approximating $f(t)$, chosen conservatively to be the
span. maximum frequency over the data span \citep{wette2013}.
The frequency and spin-down components of the metric can be easily calculated The frequency and spin-down components of the metric can be easily calculated
due to their linearity in Equation~\eqref{eqn_phi} and for the special case in due to their linearity in Equation~\eqref{eqn_phi} and for the special case in
which $\tref$ is in the middle of the data span, the frequency and spin-down which $\tref$ is in the middle of the data span, the phase-evolution metric
parts of the metric are diagonal. Accurately approximating the sky components with $\smax{=}1$ (i.e. the frequency and spin-down components) are given by
of the metric is non-trivial, but was accomplished by \citet{wette2013} for the \begin{equation}
fully-coherent case. In \citet{wette2015} it was shown how the calculate the \tilde{g}^{\textrm{PE}}_{ij} \equiv
equivalent semi-coherent metric $\hat{g}_{\alpha\beta}^{\phi}(\blambda, \left[
\Nseg)$. In the following, we will work with this calculation with the \begin{array}{cc}
understanding that $\hat{g}_{\alpha\beta}^{\phi}(\blambda, \Nseg{=}1)= \frac{\pi^{2}\Tcoh^{2}}{3} & 0 \\
\tilde{g}_{\alpha\beta}^{\phi}(\blambda)$. 0 & \frac{4\pi^{2}\Tcoh^{4}}{45}
\end{array}
\right]
\textrm{ for } i, j \in [f, \dot{f}].
\end{equation}.
Accurately approximating the sky components of the metric is non-trivial, but
was accomplished by \citet{wette2013} for the fully-coherent case. In
\citet{wette2015} it was shown how to calculate the equivalent semi-coherent
metric $\hat{g}_{ij}(\blambda, \Nseg)$; in the following, we
will work with this generalised semi-coherent method with the understanding
that $\hat{g}_{ij}(\blambda, \Nseg{=}1)=
\tilde{g}_{ij}(\blambda)$.
\subsubsection{The metric volume}
To understand the volume of parameter space which a true signal would occupy, To understand the volume of parameter space which a true signal would occupy,
we can make use of the \emph{metric-volume} \citep{prix2007}, given by we can make use of the \emph{metric-volume}, defined as \citep{prix2007}
\begin{align} \begin{align}
\mathcal{V} = \int \mathcal{V} = \int
\sqrt{\textrm{det}\hat{g}^{\phi}_{\alpha\beta}(\blambda, \Nseg)} d\blambda \approx \sqrt{\textrm{det}\hat{g}_{ij}(\blambda, \Nseg)} d\blambda \approx
\sqrt{\textrm{det}\hat{g}^{\phi}_{\alpha\beta}(\blambda, \Nseg)} \Delta\blambda \sqrt{\textrm{det}\hat{g}_{ij}(\blambda, \Nseg)} \Delta\blambda
\end{align} \end{align}
where in the second step we assume a constant coefficient metric. Here, $\Delta where in the second step we assume a constant coefficient metric. Here, $\Delta
\blambda$ is the volume element which is given by \blambda$ is the volume element which is given by
\begin{equation} \begin{equation}
\Delta\lambda = \frac{\Delta\Omega}{2} \Delta\lambda = \frac{\cos(\delta_0)\Delta\delta\Delta\alpha}{2}
%\frac{1}{2}\sin\delta\Delta\delta\Delta\alpha %\frac{1}{2}\sin\delta\Delta\delta\Delta\alpha
\prod_{s=0}^{\smax} \Delta f^{(s)}, \prod_{s=0}^{\smax} \Delta f^{(s)},
\end{equation} \end{equation}
where $\Delta\Omega$ is the solid angle of the sky-patch which is searched, where the numerator of the prefactor is the solid angle of the sky-patch at a
$\Delta f^(s)$ is the extend of the frequency and spin-down range(s) searched, declination of $\delta_0$, the factor of $1/2$ comes from converting the
and the factor of $1/2$ comes from converting the normalised determinant which normalised determinant (which is computed over the whole sky) to the solid angle
is computed over the whole sky to the solid angle of the directed search. of the directed search, and $\Delta f^{(s)}$ is the extent of the frequency and
\comment{Not sure I fully understand this yet, or have really derived it properly}. spin-down range(s) searched.
The metric volume $\V$ is the approximate number of templates required to cover The metric volume $\V$ is the approximate number of templates required to cover
the the given Doppler parameter volume at a fixed mismatch of $\approx 1$. As the the given Doppler parameter volume at a fixed mismatch of $\approx 1$. As
...@@ -613,8 +594,8 @@ a particular block form: ...@@ -613,8 +594,8 @@ a particular block form:
\begin{align} \begin{align}
g_{ij} = \left[ g_{ij} = \left[
\begin{array}{cc} \begin{array}{cc}
g^{\rm Sky} & 0 \\ g^{\textrm{Sky}} & 0 \\
0 & g^{\rm PE} 0 & g^{\textrm{PE}}.
\end{array} \end{array}
\right] \right]
\end{align} \end{align}
...@@ -636,6 +617,51 @@ nature of $g^{\rm PE}$ means that one can further identify ...@@ -636,6 +617,51 @@ nature of $g^{\rm PE}$ means that one can further identify
\end{align} \end{align}
This decomposition may be useful in setting up MCMC searches. This decomposition may be useful in setting up MCMC searches.
\subsection{The topology of the likelihood}
\label{sec_topology}
We intend to use the $\F$-statistic as our log-likelihood in MCMC simulations,
but before continuing, it is worthwhile to acquaint ourselves with the typical
behavior of the log-likelihood by considering a specific example.
As shown in Equation~\eqref{eqn_twoF_expectation}, the expectation of
$\widetilde{2\F}$ is 4 in Gaussian noise alone, but proportional to the square
of the non-centrality parameter (or SNR) in the presence of a signal. To
illustrate this, let us consider $\widetilde{2\F}$ as a function of $f$ (the
template frequency) if there exists a signal in the data with frequency $f_0$.
We will fix all the other Doppler parameters so that they are perfectly
matched. Such an example can be calculated analytically, taking the
matched-filtering amplitude (Equation~(11) of \citep{prix2005}) with
$\Delta\Phi(t) = 2\pi(f - f_0) t$, the expectation of $\widetilde{2\F}$ as a
function of the template frequency $f$ is given by
\begin{equation}
\textrm{E}[\widetilde{2\F}](f) = 4 +
(\textrm{E}[\widetilde{2\F_0}] -4)\textrm{sinc}^{2}(\pi(f-f_0)\Tcoh))
\label{eqn_grid_prediction}
\end{equation}
where $\textrm{E}[\widetilde{2\F_0}]$ is the expected $\widetilde{2\F}$ for
a perfectly matched signal (when $f=f_0$).
In Figure~\ref{fig_grid_frequency} we compare the analytic prediction of
Equation~\eqref{eqn_grid_prediction} with the value computed numerically from
simulating a signal in Gaussian noise. This is done over a frequency range of
$\sim20\Delta f$ where $\Delta f$ is the frequency difference between a signal
and the template with $\tilde{\mu}=1$ as calculated from
Equation~\eqref{eqn_mutilde_expansion}. As expected, close to the signal
frequency $f_0$ the detection statistic peaks with a a few local secondary
maxima. Away from this frequency, in Gaussian noise, we see many local maxima
centered around the expected value of 4.
\begin{figure}[htb]
\centering \includegraphics[width=0.45\textwidth]{grided_frequency_search_1D}
\caption{Comparison of the analytic prediction of
Equation~\eqref{eqn_grid_prediction} (in red) with the value computed
numerically from simulating a signal with frequency $f_0$ in Gaussian noise (in
black). $\Delta f$ is the frequency difference corresponding to a
metric-mismatch of unity.}
\label{fig_grid_frequency}
\end{figure}
\subsection{Example: signal in noise} \subsection{Example: signal in noise}
In order to familiarise the reader with the features of an MCMC search, we will In order to familiarise the reader with the features of an MCMC search, we will
...@@ -707,7 +733,7 @@ metric volume $\V$. The production samples, colored black, are only taken once ...@@ -707,7 +733,7 @@ metric volume $\V$. The production samples, colored black, are only taken once
the sampler has converged - these can be used to generate posterior plots. the sampler has converged - these can be used to generate posterior plots.
\begin{figure}[htb] \begin{figure}[htb]
\centering \centering
\includegraphics[width=0.5\textwidth]{fully_coherent_search_using_MCMC_walkers} \includegraphics[width=0.45\textwidth]{fully_coherent_search_using_MCMC_walkers}
\caption{The progress of the MCMC simulation for a simulated signal in Gaussian \caption{The progress of the MCMC simulation for a simulated signal in Gaussian
noise, searching over the frequency and spin-down. The upper two panels show noise, searching over the frequency and spin-down. The upper two panels show
the position of all walkers as a function of the number of steps for the the position of all walkers as a function of the number of steps for the
...@@ -718,8 +744,6 @@ $\widetilde{2\F}$ taken from the production samples.} ...@@ -718,8 +744,6 @@ $\widetilde{2\F}$ taken from the production samples.}
\label{fig_MCMC_simple_example} \label{fig_MCMC_simple_example}
\end{figure} \end{figure}
\subsection{Example: noise-only}
\section{Follow-up} \section{Follow-up}
\label{sec_follow_up} \label{sec_follow_up}
...@@ -826,7 +850,8 @@ similarly converge to this new solution. At times it can appear to be inconsiste ...@@ -826,7 +850,8 @@ similarly converge to this new solution. At times it can appear to be inconsiste
however this is due to the changing way that the Gaussian noise adds to the signal. however this is due to the changing way that the Gaussian noise adds to the signal.
Eventually, the walkers all converge to the true signal. Eventually, the walkers all converge to the true signal.
\begin{figure}[htb] \begin{figure}[htb]
\centering \includegraphics[width=0.5\textwidth]{weak_signal_follow_up_walkers} \centering
\includegraphics[width=0.4\textwidth]{weak_signal_follow_up_walkers}
\caption{In the top three panels we show the progress of the 500 parallel \caption{In the top three panels we show the progress of the 500 parallel
walkers (see Figure~\ref{fig_MCMC_simple_example} for a description) during the walkers (see Figure~\ref{fig_MCMC_simple_example} for a description) during the
MCMC simulation for each of the search parameters, frequency $f$, MCMC simulation for each of the search parameters, frequency $f$,
...@@ -842,6 +867,33 @@ possible for this to occur during an ordinary MCMC simulation (with $\Tcoh$ ...@@ -842,6 +867,33 @@ possible for this to occur during an ordinary MCMC simulation (with $\Tcoh$
fixed at $\Tspan$), it would take substantially longer to converge as the fixed at $\Tspan$), it would take substantially longer to converge as the
chains explore the other `noise peaks' in the data. chains explore the other `noise peaks' in the data.
\section{Monte Carlo studies}
In order to understand how well the MCMC follow-up method works, we will now
study the recovery fraction as a function of signal depth. This will be done in
a Monte Carlo study, with independent random realisations of the Guassian
noise, amplitude, and Doppler parameters in suitable ranges. Such a method is
analagous to the studies performed in \citet{shaltev2013}, except that we
present results as a function of the fixed signal depth, rather than the
squared SNR.
\subsection{Follow-up candidates from a directed search}
\begin{table}[htb]
\caption{Run-setup for the directed follow-up Monte-Carlo study, generated with
$\mathcal{R}=10$ and $\V^{\rm min}=100$}
\label{tab_directed_MC_follow_up}
\input{directed_setup_run_setup}
\end{table}
\begin{figure}[htb]
\centering
\includegraphics[width=0.45\textwidth]{directed_recovery}
\caption{Recovery fraction for the directed follow-up. The Monte-Carlo results
come from random draws searches using the setup described in
Table~\ref{tab_directed_MC_follow_up}.}
\label{fig_directed_MC_follow_up}
\end{figure}
\section{Alternative waveform models} \section{Alternative waveform models}
In a grided search, the template bank is constructed to ensure that a canonical In a grided search, the template bank is constructed to ensure that a canonical
...@@ -902,7 +954,7 @@ days there is an approximately linear increasing in $\widetilde{2\F}$ with time ...@@ -902,7 +954,7 @@ days there is an approximately linear increasing in $\widetilde{2\F}$ with time
from the peak. Such a figure is characteristic of a transient signal. from the peak. Such a figure is characteristic of a transient signal.
\begin{figure}[htb] \begin{figure}[htb]
\centering \centering
\includegraphics[width=0.5\textwidth]{transient_search_initial_stage_twoFcumulative} \includegraphics[width=0.45\textwidth]{transient_search_initial_stage_twoFcumulative}
\caption{Plot of the cumulative $\widetilde{2\F}$ for a transient signal with a \caption{Plot of the cumulative $\widetilde{2\F}$ for a transient signal with a
constant $h_0$ which lasts from 100 to 200 days from the observation start constant $h_0$ which lasts from 100 to 200 days from the observation start
time.} time.}
...@@ -932,7 +984,7 @@ improvement in the evidence for the model. ...@@ -932,7 +984,7 @@ improvement in the evidence for the model.
\begin{figure}[htb] \begin{figure}[htb]
\centering \centering
\includegraphics[width=0.5\textwidth]{transient_search_corner} \includegraphics[width=0.45\textwidth]{transient_search_corner}
\caption{Posterior distributions for a targeted search of data containing \caption{Posterior distributions for a targeted search of data containing
a simulated transient signal and Gaussian noise.} a simulated transient signal and Gaussian noise.}
\label{fig_transient_posterior} \label{fig_transient_posterior}
......
Paper/transient_search_initial_stage_twoFcumulative.png

27.7 KiB | W: | H:

Paper/transient_search_initial_stage_twoFcumulative.png

48.4 KiB | W: | H:

Paper/transient_search_initial_stage_twoFcumulative.png
Paper/transient_search_initial_stage_twoFcumulative.png
Paper/transient_search_initial_stage_twoFcumulative.png
Paper/transient_search_initial_stage_twoFcumulative.png
  • 2-up
  • Swipe
  • Onion skin
import pyfstat import pyfstat
import numpy as np import numpy as np
import matplotlib.pyplot as plt
plt.style.use('thesis')
F0 = 30.0 F0 = 30.0
F1 = -1e-10 F1 = -1e-10
...@@ -21,6 +24,9 @@ transient = pyfstat.Writer( ...@@ -21,6 +24,9 @@ transient = pyfstat.Writer(
F2=F2, duration=duration, Alpha=Alpha, Delta=Delta, h0=h0, sqrtSX=sqrtSX, F2=F2, duration=duration, Alpha=Alpha, Delta=Delta, h0=h0, sqrtSX=sqrtSX,
minStartTime=data_tstart, maxStartTime=data_tend) minStartTime=data_tstart, maxStartTime=data_tend)
transient.make_data() transient.make_data()
print transient.predict_fstat()
DeltaF0 = 6e-7 DeltaF0 = 6e-7
DeltaF1 = 1e-13 DeltaF1 = 1e-13
...@@ -52,6 +58,7 @@ mcmc = pyfstat.MCMCSearch( ...@@ -52,6 +58,7 @@ mcmc = pyfstat.MCMCSearch(
log10temperature_min=log10temperature_min) log10temperature_min=log10temperature_min)
mcmc.run() mcmc.run()
mcmc.plot_cumulative_max() mcmc.plot_cumulative_max()
mcmc.print_summary()
theta_prior = {'F0': {'type': 'unif', theta_prior = {'F0': {'type': 'unif',
'lower': F0-DeltaF0/2., 'lower': F0-DeltaF0/2.,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment