Method
Signal-to-Noise ratio
The Signal-to-noise ratio, or simply SNR is defined as the ratio between the source flux \(F\) and its expected uncertainty \(\sqrt{\mathrm{Var}(F)}\):
\(F=f.t\) is readily computed using the expected number of photons per unit of time \(f\) and the exposure time \(t\). The expected uncertainty \(\sqrt{\var{F}}\) depends on the quality of the estimator of the source flux. Assuming that noise over pixel values is majoritarily Gaussian-distributed and independent from pixel to pixel, source model-fitting using inverse-variance-weighted least-squares regression offers a fully efficient unbiased estimation of the flux through Maximum Likelihood Estimation (MLE). In practice there are of course other contributors to flux uncertainties, such as background estimation errors or contamination by neighboring objects, but they are not relevant in the context of an exposure time calculator.
Let's start assuming we know the position of the source; hence the only fitted parameter is the flux. From there, using Fisher information we can compute a lower bound to the flux uncertainty (the Cramér-Rao bound), and therefore, a higher limit to the SNR.
Under the independent Gaussian noise hypothesis, the log-likelihood of the fit writes
where \(\vec{\phi}\) is the source image model normalized such that \(\sum_i \phi_i = 1\), \(\vec{I}\) the background-subtracted exposure to which the model is fitted, and \(\sigma_i^2\) the variance of pixel \(i\):
comprising contributions from the readout noise \(\sigma_r^2\), from the background noise (per unit of time) \(\sigma_b^2\), and from Poisson noise (in the Gaussian regime) from the source photons themselves, \(F\). Now, the Cramér-Rao bound to the variance of the MLE, \(\var{\hat{F}}\), is simply the inverse of the Fisher information:
with
where the variance is taken over pixel values, at the MLE \(F=\hat{F}\). Note that in order to simplify the computations, we expressed the Fisher information as the variance of the score instead of minus the expectation of the second derivative of the likelihood.
Assuming the covariances between pixels are zero (which is a good approximation on individual exposures), we get
Remarking that
\(\var{I_i - \hat{F}\phi_i} = \sigma_i^2\),
\(\var{(I_i - \hat{F}\phi_i)^2 - \sigma_i^2} = 2\sigma_i^4\) (Gaussian 4th central moment), and
\(\cov{I_i - \hat{F}\phi_i}{(I_i - \hat{F}\phi_i)^2 - \sigma_i^2} = 0\),
(7) simplifies to
and we have