Skip to content

Commit

Permalink
Merge pull request #32 from LSSTDESC/note_bianca
Browse files Browse the repository at this point in the history
Augur note
  • Loading branch information
fjaviersanchez authored Jul 4, 2024
2 parents 7c88944 + 3211958 commit 96bbfd0
Show file tree
Hide file tree
Showing 7 changed files with 284 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "note/desc-tex"]
path = note/desc-tex
url = [email protected]:LSSTDESC/desc-tex.git
8 changes: 8 additions & 0 deletions note/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
export TEXINPUTS:=./desc-tex/styles/:./desc-tex/logos/:

all:
[ -e .logos ] || { ln -s ./desc-tex/logos .logos >/dev/null 2>&1; }
latexmk -pdf -g main.tex

clean:
rm -f *.aux *.fls *.log *Notes.bib *.fdb_latexmk
11 changes: 11 additions & 0 deletions note/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
To compile the author list:

```
mkauthlist -j tex -f -c "LSST Dark Energy Science Collaboration" --cntrb contributions.tex authors.csv authors.tex
```

To make the note:

```
make
```
34 changes: 34 additions & 0 deletions note/authors.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# =============================================================================,,,,,,
# authors.csv,,,,,,
#,,,,,,
# While we wait for the LSST DESC publications system to generate files,,,,,,
# like this from its database, we'll need to edit authors.csv by hand.,,,,,
# Below are some example entries.,,,,,,
#,,,,,,
# Notes:,,,,,,
# - If someone has two affiliations, they get two rows, and the last row is,,,,
# is used for their contribution.,,,,,,
# - mkauthlist cannot deal with empty rows, so please avoid them!,,,,,
# - Try to make your one-sentence contribution statement as informative as,,,,,,
# possible, so that it's clear who did what.,,,,,
# - The contribution statement is a _summary of your impact on the project_,,,,,,
# not a _timecard_. So, if you spent 90% of your time debugging, but 10%,,,,
# of your time designing and implementing the framework that then needed,,,,,,
# debugging, your statement should emphasize the design and implementation,,,,,
# rather than the debugging.,,,,,,
# - BUG: contributions are re-formatted by mkauthlist into Title case,,,,,,
# removing all other capitalizations. Sorry about this!,,,,,,
#,,,,,,
# Example rows for you to adapt:,,,,,,
#,,,,,,
# Drlica-Wagner,Alex,A.~Drlica-Wagner,Contact,"Fermi National Accelerator Laboratory, P. O. Box 500, Batavia, IL 60510, USA","Developed algorithms for switching between document styles and generating author lists, implemented and tested software.",[email protected]
# Marshall,Phil,P.~Marshall,Contributor,"SLAC National Accelerator Laboratory, Menlo Park, CA 94025, USA",Initiated and led project.,[email protected]
# Marshall,Phil,P.~Marshall,Contributor,"Kavli Institute for Particle Astrophysics \& Cosmology, P. O. Box 2450, Stanford University, Stanford, CA 94305, USA","Initiated and led project, designed templates, tested system.",[email protected]
# Digel,Seth,S.~Digel,Builder,"SLAC National Accelerator Laboratory, Menlo Park, CA 94025, USA",Advised on LSST DESC publication system requirements.,[email protected]
# Digel,Seth,S.~Digel,Builder,"Kavli Institute for Particle Astrophysics \& Cosmology, P. O. Box 2450, Stanford University, Stanford, CA 94305, USA",Advised on LSST DESC publication system requirements.,[email protected]
#,,,,,,
# =============================================================================,,,,,,
Lastname,Firstname,Authorname,AuthorType,Affiliation,Contribution,Email
Sanchez, Javier, J. Sanchez, Contributor, "", ""
Sersante, Biancamaria,B. Sersante,Contributor,"Utrecht University","Assessed methods for Fisher forecasting. Wrote documentation.",[email protected]
Chisari, Nora Elisa, N. E. Chisari,Contributor,"Utrecht University","Assessed methods for Fisher forecasting. Wrote documentation.",[email protected]
1 change: 1 addition & 0 deletions note/desc-tex
Submodule desc-tex added at 3e20c0
94 changes: 94 additions & 0 deletions note/macros.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
%
\usepackage{soul}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{xspace}
\usepackage{xifthen}
\usepackage[dvipsnames,svgnames]{xcolor}

% General formatting
\newcommand{\ie}{i.e.\xspace}
\newcommand{\eg}{e.g.\xspace}
\newcommand{\etc}{etc.\xspace}
\newcommand{\etal}{et al.\xspace}
\newcommand{\vs}{vs.\xspace}
\newcommand{\super}[1]{\ensuremath{^{\textrm{#1}}}}
\newcommand{\sub}[1]{\ensuremath{_{\textrm{#1}}}}

\newcommand{\FIXME}[1]{{\bf \textcolor{red}{#1}}}
%\newcommand{\FIXME}[1]{{#1}}
\newcommand{\CHECK}[1]{{\bf \textcolor{orange}{#1}}}
%\newcommand{\CHECK}[1]{{#1}}
\newcommand{\COMMENT}[1]{{\it \textcolor{blue}{#1}}}
%\newcommand{\COMMENT}[1]{{#1}}
\newcommand{\NEW}[1]{{\textcolor{blue}{#1}}}
%\newcommand{\NEW}[1]{{#1}}

% Math
\mathchardef\mhyphen="2D
\newcommand{\vect}[1]{\boldsymbol{#1}}
\newcommand{\roughly}{\ensuremath{ {\sim}\,} }
\newcommand{\gtr}{\ensuremath{ {>}\,} }
\newcommand{\less}{\ensuremath{ {<}\,} }
\newlength{\dhatheight}
\newcommand{\doublehat}[1]{%
\settoheight{\dhatheight}{\ensuremath{\hat{#1}}}%
\addtolength{\dhatheight}{-0.35ex}%
\hat{\vphantom{\rule{1pt}{\dhatheight}}%
\smash{\hat{#1}}}}
\newcommand{\code}[1]{\texttt{#1}\xspace}
\newcommand{\dd}{\ensuremath{\rm d}}
\newcommand{\var}[1]{\ensuremath{#1}\xspace}


% Referencing
\newcommand{\secref}[1]{Section~\ref{sec:#1}}
\newcommand{\appref}[1]{Appendix~\ref{app:#1}}
\newcommand{\tabref}[1]{Table~\ref{tab:#1}}
\newcommand{\tabrefs}[2]{Tables~\ref{tab:#1} and \ref{tab:#2}}
\newcommand{\figref}[1]{Figure~\ref{fig:#1}}
\newcommand{\figrefs}[2]{Figures~\ref{fig:#1} and \ref{fig:#2}}
\newcommand{\eqnref}[1]{Equation~\eqref{eqn:#1}}

% Astronomy
\newcommand{\LCDM}{\ensuremath{\rm \Lambda CDM}\xspace}
\newcommand{\ra}{{\ensuremath{\alpha_{2000}}}\xspace}
\newcommand{\dec}{{\ensuremath{\delta_{2000}}}\xspace}
\newcommand{\glon}{{\ensuremath{\ell}}\xspace}
\newcommand{\glat}{{\ensuremath{b}}\xspace}

% Units
\newcommand{\unit}[1]{\ensuremath{\mathrm{\,#1}}\xspace}
\newcommand{\Gyr}{\unit{Gyr}}
\newcommand{\MeV}{\unit{MeV}}
\newcommand{\GeV}{\unit{GeV}}
\newcommand{\TeV}{\unit{TeV}}
\newcommand{\degree}{\ensuremath{{}^{\circ}}\xspace}
\newcommand{\mas}{\unit{mas}}
\newcommand{\amin}{\unit{arcmin}}
\newcommand{\asec}{\unit{arcsec}}
\newcommand{\angstrom}{\unit{\AA}}
\newcommand{\um}{\unit{$\mu$m}}
\newcommand{\cm}{\unit{cm}}
\newcommand{\km}{\unit{km}}
\newcommand{\pc}{\unit{pc}}
\newcommand{\kpc}{\unit{kpc}}
\newcommand{\second}{\unit{s}}
\newcommand{\us}{\unit{$\mu$s}}
\newcommand{\photons}{\unit{ph}}
\newcommand{\photon}{\unit{ph}}
\newcommand{\sr}{\unit{sr}}
\newcommand{\Msolar}{\ensuremath{M_\odot}}
\newcommand{\Msun}{\ensuremath{M_\odot}}
\newcommand{\Mstar}{\ensuremath{M_{*}}}
\newcommand{\Lsolar}{\ensuremath{L_\odot}}
\newcommand{\Lsun}{\ensuremath{L_\odot}}
\newcommand{\Lstar}{\ensuremath{L_{*}}}
\newcommand{\Lum}{\ensuremath{ L }\xspace}
\newcommand{\cmcubes}{\ensuremath{\cm^{3}\second^{-1}}\xspace}
\newcommand{\magn}{\unit{mag}}
\newcommand{\mmag}{\unit{mmag}}
\providecommand{\deg}{}
\renewcommand{\deg}{\unit{deg}}
\newcommand{\kms}{{\km\second^{-1}}}
%
133 changes: 133 additions & 0 deletions note/main.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
%
\RequirePackage{docswitch}
\setjournal{\flag}

%\documentclass[\docopts]{\docclass}
\documentclass[modern]{lsstdescnote}

% You could define the document class directly
%\documentclass[]{emulateapj}

%\input{macros}

\usepackage[outdir=./]{epstopdf}
\usepackage{graphicx,verbatim}
\usepackage{xspace}
\usepackage{desc-tex/styles/lsstdesc_macros}

\graphicspath{{./}{./figures/}}
%\bibliographystyle{apj}
\newcommand{\todo}[1]{\textcolor{magenta}{To do: #1}}
\newcommand{\mrm}[1]{\mathrm{#1}}
\newcommand{\augur}{{\tt Augur}\xspace}
\newcommand{\CC}{C\nolinebreak\hspace{-.05em}\raisebox{.3ex}{\footnotesize +}\nolinebreak\hspace{-.10em}\raisebox{.3ex}{\footnotesize +}}


\begin{document}

\title{{\tt Augur}: a forecasting tool for LSST DESC}

\maketitlepre

\begin{abstract}
This document describes the forecasting formalism underlying the {\tt augur} code. This is used for determining modelling choices and constraining power of multi-probe combinations of LSST data.
{\tt augur} has two forecasting modalities: direct likelihood sampling or Fisher forecasting.
For the Fisher forecasting scenario, we describe the specific implementation of: expected uncertainties and ellipse contours for pairs of parameters; expected biases in presence of unknown systematics; model choice citeria.
For now, {\tt augur} only works for 3x2pt probes.
\end{abstract}

\maketitlepost

\newpage
\tableofcontents{}
\newpage


\section{Introduction - The Fisher formalism}
Once raw data have been obtained and compressed into maps, a theoretical model is chosen
to be analyzed. In a $3\times 2$-pt analysis the corresponding two-point functions and the covariance matrix are calculated;
Finally, combining the above ingredients, and possibly multiple probes, the likelihood can be computed.
In order to find the best-fit parameters and corresponding fiducial contours, a sampler is used to compute the likelihood
for many sets of parameters. One can sense that finding the maximum of the likelihood must be achieved numerically.
However, this is computationally demanding: if the cosmological model under consideration includes say 20 free parameters,
then the required number of likelihood evaluations would be $20^{20}$. Algorithms have been developed to achieve this (e.g., the MCMC).\\
Otherwise, there is the possibility, in a forecasting phase, when data are not available yet, to employ the Fisher
foremalism to approximately predict the expcted error bars. This constitutes a computationally inexpensive way
to predict the uncertainties that the measurements will carry out.

\section{How to obtain errors and contours from Fisher matrices}
It is possible to obtain the errors from the Fisher matrices by considering that, under certain conditions,
the Fisher matrix is the inverse of the covariance matrix.
For instance, in the simple case of a one-parameter space, the $1\sigma$ uncertainty on $\theta$ (square root of the covariance) is $1/\sqrt{F}$, while in a two-parameter space we have
\begin{equation}
[F]^{-1}=[C]=\left[\begin{array}{cc}
\sigma_{x}^{2} & \sigma_{x y} \\
\sigma_{x y} & \sigma_{y}^{2}
\end{array}\right].
\end{equation}

In particular, we can distinguish two cases.
On one hand, if we assume to have perfect knowledge of the parameter $\theta_2$, then the error on $\theta_1$ is given by $1/\sqrt{F_{11}}$.
On the other hand, if $\theta_2$ can vary freely, then the proper error on $\theta_1$ can be obtained only after
marginalizing over all possible values of $\theta_2$.
Then the resulting error on $\theta_1$ will be given by $\sqrt{\left(F^{-1}\right)_{11}}$ (according to the above equation).
These results can be easily generalized to the case of a higher-dimensional parameter space.

Moreover, it is possible to obtain fiducial ellipses by considering
that the ellipse parameters are related to the Fisher matrix elements by the following relations
\begin{align}
a^{2} &=\frac{\sigma_{x}^{2}+\sigma_{y}^{2}}{2}+\sqrt{\frac{\left(\sigma_{x}^{2}-\sigma_{y}^{2}\right)^{2}}{4}+\sigma_{x y}^{2}} \\
b^{2} &=\frac{\sigma_{x}^{2}+\sigma_{y}^{2}}{2}-\sqrt{\frac{\left(\sigma_{x}^{2}-\sigma_{y}^{2}\right)^{2}}{4}+\sigma_{x y}^{2}} \\
\tan 2 \theta &=\frac{2 \sigma_{x y}}{\sigma_{x}^{2}-\sigma_{y}^{2}},
\end{align}
where $a$ and $b$ are the axis lengths and $\theta$ the inclination angle.

\section{Methods}
\subsection{Fisher Bias}
Our goal is to determine the bias in some of the cosmological parameters caused by systematics effects.
Systematic errors are not random, but instead they will replicate when an experiment is repeated under the same conditions.
One possible source of such errors are imperfect theoretical models. In paritcular, imperfect modelling choices
can happen, for instance, when we neglect or wrongly model effects that are instead present in the real universe.\\

We now introduce the equation that allows to compute the bias in a certain cosmological parameter $\theta_i$ in the most general way.
The bias is expressed in terms of the inverse of the Fisher matrix, $(\boldsymbol{F})^{-1}_{ij}$, the inverse of the covariance matrix, $\boldsymbol{C_A}^{-1}$, and in terms of the difference between the data vector
corresponding to a fiducial model (assumed to provide a suitable description for the Universe), $\boldsymbol{D}^{\mathrm{true}}$, and the one of the model being analyzed, $\boldsymbol{D}^{\mathrm{model}}$.
We notice that the Fisher matrix is evaluated at the fiducial values of the cosmological parameters under consideration.

\begin{align}
\begin{split}
b\left[\hat{\theta}_{i}\right]&=\left(\boldsymbol{F}^{-1}\right)_{i j} \Tilde{\boldsymbol{B}}_{j}\\
&=\left(\boldsymbol{F}^{-1}\right)_{i j}\sum_{\ell}\left[\boldsymbol{D}^{\mathrm{true}}-\boldsymbol{D}^{\mathrm{model}}(\boldsymbol{\theta})\right](\boldsymbol{\ell})\boldsymbol{C_A}^{-1}(\boldsymbol{\ell})\left(\dfrac{d\boldsymbol{D}^{\mathrm{model}}}{d\theta_j}(\boldsymbol{\ell})\right).
\end{split}
\end{align}


\subsection{Model selection}

One can apply model selection criteria in a forecasting phase in order to study an experiment's ability to carry out model selection tests. For instance, if we consider an experiment aimed at obtaining information on dark energy, we could use model selection techniques to predict whether or not, with our experiment, we will be able to distinguish, say, the $w$CDM from the $\Lambda$CDM model.

The natural question that now arises regards the possible criteria to select models. Although there are quite a few, they are all expressed in terms of the likelihood, which is computationally demanding. Thus, we focus on the Bayes factor as it is possible to express it in terms of the Fisher matrix only. We would like to implement such expression in {\tt augur} as it is computationally inexpensive and can provide interesting information.

The Bayes factor is defined as the ratio of the evidences (marginzalized likelihoods) of the two models under consideration.
In this way, although a complicated model will lead to a higher likelihood (or at least as high) with respect to a simpler/nested model, the evidence will favour the simpler model (provided that the fit is nearly as good), thanks to the smaller prior volume. Then, computing the ratio between the evidences of two models will automatically disfavor complex models involving many parameters.

With this in mind, we now present the equation to compute the Bayes factor in a 2-dimensional parameter space (for nested models). It is expressed in terms of the Fisher matrix $F$ and the prior knowledge
on each parameter (encoded in the ranges $\Delta \theta_{1}$ and $\Delta \theta_{2}$, respectively).
\begin{equation}
\langle B\rangle=\frac{\Delta \theta_{1} \Delta \theta_{2}}{2 \pi \sqrt{\operatorname{det} F^{-1}}} \mathrm{e}^{-(1 / 2) \sum_{\alpha \beta}\left(\theta_{\alpha}-\theta_{\alpha}^{*}\right) F_{\alpha \beta}\left(\theta_{\beta}-\theta_{\beta}^{*}\right)}
\end{equation}


\section{Validation}

TBC


%\input{acknowledgments}

\input{desc-tex/ack/standard}

\input{contributions}


\end{document}

0 comments on commit 96bbfd0

Please sign in to comment.